Book markup: fonts and textures
A resolved BOOK DESC is HTML-like markup:
<font face='$HandwrittenFont'><font size='40'><p align='center'>
Conjure Dremora Lord
<img src='img://Textures/Interface/Books/Alchemy Ingredients/dragonfly.png'>
Pipelines/Books/BookMarkupScanner.Scan collects every face='...' and src='...' value of a
language’s books. export:books then exports the fonts behind the faces, see
Font export, and copies the textures. A face with no map entry resolves to
(unmapped): vanilla text has at least one typo’d tag ($DwemerFont size=, a missing quote). How
the site renders the markup is in Bethesda markup handling.
Textures
Game/Assets/TextureSource looks a texture up in the load order’s
archive file system. It normalizes the
reference first (NormalizeToArchivePath):
- Strip a leading
img://. - Convert
/to\. - Drop everything before a
data\textures\folder, see assumptions. - Prepend
Textures\when the path doesn’t start with it.
The entry found is copied to <output>/textures/<path under Textures\>, named with the archive
entry’s casing, not the reference’s: vanilla spells the same letter W_letter.png and
w_letter.png, and the file name must not depend on which book is scanned first. Textures are
copied once for all languages.
A reference matching nothing logs a warning and the export goes on, see data problems.
The generator copies textures/ and each language’s fonts/ into the site and resolves the same
references with its own code (Rendering/SiteAssets/), since it can’t reference the exporter.