1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// For God so loved the world that he gave his only begotten Son,
// that whoever believes in him should not perish but have eternal life.
// John 3:16
//! SWORD module implementations.
//!
//! This module provides drivers for reading and writing SWORD module formats.
//! Each driver implements the [`SwModuleChirho`] trait for uniform access.
//!
//! ## Module Types
//!
//! | Category | Uncompressed | Compressed |
//! |----------|--------------|------------|
//! | Bible texts | [`RawTextChirho`], [`RawText4Chirho`] | [`ZTextChirho`], [`ZText4Chirho`] |
//! | Commentaries | [`RawComChirho`], [`RawCom4Chirho`] | [`ZComChirho`], [`ZCom4Chirho`] |
//! | Lexicons | [`RawLdChirho`], [`RawLd4Chirho`] | [`ZLdChirho`], [`ZLd4Chirho`] |
//! | General books | [`RawGenBookChirho`] | [`ZGenBookChirho`] |
//! | Daily devotional | [`DailyDevotionalChirho`] | - |
//! | Images/Maps | [`ImageModuleChirho`] | - |
//!
//! ## Storage Formats
//!
//! - **Raw** modules use uncompressed storage with 6-byte or 8-byte index entries
//! - **Z** (compressed) modules use block compression (verse, chapter, or book blocks)
//! - **4** variants use 32-bit offsets (for modules > 64KB)
//!
//! ## Usage
//!
//! Modules are typically loaded via [`SwMgrChirho`](crate::manager_chirho::SwMgrChirho):
//!
//! ```rust,ignore
//! use rsword_chirho::{SwMgrChirho, VerseKeyChirho};
//!
//! let mgr_chirho = SwMgrChirho::with_system_paths_chirho().unwrap();
//!
//! // Get a module driver
//! if let Some(mut module_chirho) = mgr_chirho.get_module_driver_chirho("KJV").unwrap() {
//! // Set position and read
//! let key_chirho = VerseKeyChirho::from_str_chirho("Psalm 23:1").unwrap();
//! module_chirho.set_key_chirho(&key_chirho).unwrap();
//!
//! // Get raw text (with original markup)
//! let raw_chirho = module_chirho.get_raw_entry_chirho().unwrap();
//!
//! // Get rendered text (filters applied)
//! let rendered_chirho = module_chirho.render_text_chirho().unwrap();
//! }
//! ```
//!
//! ## Encrypted Modules
//!
//! Some modules require a cipher key:
//!
//! ```rust,ignore
//! use rsword_chirho::{SwMgrChirho, SwModuleChirho};
//!
//! let mgr_chirho = SwMgrChirho::with_system_paths_chirho().unwrap();
//!
//! if let Some(mut module_chirho) = mgr_chirho.get_module_driver_chirho("EncryptedMod").unwrap() {
//! if module_chirho.is_encrypted_chirho() {
//! module_chirho.set_cipher_key_chirho("unlock-key").unwrap();
//! }
//! }
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use DailyDevotionalChirho;
pub use HrefComChirho;
pub use GlossaryChirho;
pub use ;