springheel.genchbook module¶
Generate chapter page.
- springheel.genchbook.genChapBook(translated_strings: dict, chap: list, nocomment_test: str, modeclass: str, meta_file_ext: str, transcr_file_ext: str) → str¶
Create a chapter page from a list of chapter elements.
- Parameters
- translated_stringsdict
The translation file contents for this site.
- chaplist
A list of Chapter objects belonging to a comic.
- nocomment_teststr
An HTML string. Page commentary is checked against this string, which is usually “<p>The author has not provided commentary for this comic.</p>” (or equivalent in current locale), to determine if the page really has commentary or not. If it does match, the page is interpreted as not having commentary and the commentary block becomes a mere metadata block.
- modeclassstr
Either an empty string (default) or ” webtoon” in webtoon mode. Used as a class selector.
- meta_file_extstr
The file extension for metadata files.
- transcr_file_extstr
The file extension for transcript files.
- Returns
- str
The HTML-formatted page sections, separated by line breaks.