Expand description
Filename tokenizer for manga, manhwa, manhua, and light novels.
chaptr exposes two domain entry points — manga::parse and novel::parse —
built on a shared lexical layer (lexer). Inputs are filename strings; outputs
are zero-allocation structs whose string fields borrow from the input.
No I/O, no network, no archive reading. Sidecar parsing (ComicInfo.xml, OPF) is deliberately out of scope and belongs one layer up in the consumer.
Modules§
- lexer
- Shared lexical layer (L1) for both
mangaandnovel. - manga
- Manga / manhwa / manhua filename parser.
- novel
- Light novel filename parser.
- tables
- Compile-time lookup tables for known scanlation groups, LN publishers, and LN scanners.
Structs§
- Chapter
Number - A chapter or volume number.
- Number
Range - A single chapter/volume number or an inclusive range (
c001-050).
Enums§
- Language
- Languages detected from filename tags (
[EN],[JP],(English),(Raw), etc.).
Functions§
- detect_
chapter - Re-exported detector building blocks for consumers who want to build their own L2 classifier on top of the shared lexer.
- detect_
chapter_ revision - Re-exported detector building blocks for consumers who want to build their own L2 classifier on top of the shared lexer.
- detect_
language - Re-exported detector building blocks for consumers who want to build their own L2 classifier on top of the shared lexer.
- detect_
volume - Re-exported detector building blocks for consumers who want to build their own L2 classifier on top of the shared lexer.