Skip to main content

Crate chaptr

Crate chaptr 

Source
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 manga and novel.
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§

ChapterNumber
A chapter or volume number.
NumberRange
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.