geometor.pacioli.parse_winterberg¶
Functions¶
|
Remove page artifacts and clean text. |
Parses the Winterberg text file into top-level sections. |
|
|
Splits the intro file into metadata, title page, and introduction. |
|
Split book lines into chapter files. |
|
Looks for a parenthetical block at the end of lines. |
Module Contents¶
- geometor.pacioli.parse_winterberg.clean_lines(lines: List[str]) List[str]¶
Remove page artifacts and clean text.
- geometor.pacioli.parse_winterberg.parse_winterberg()¶
Parses the Winterberg text file into top-level sections.
- geometor.pacioli.parse_winterberg.split_intro(lines: List[str], output_dir: pathlib.Path)¶
Splits the intro file into metadata, title page, and introduction.
- geometor.pacioli.parse_winterberg.split_book_into_chapters(lines: List[str], output_dir: pathlib.Path, filename: str)¶
Split book lines into chapter files.