#pragma once #include #include #include #include class GfxRenderer; // Lays out a StarDict HTML definition through the EPUB chapter parser, // yielding the same styled, paginated Pages the reader renders. Returns false // when the fragment cannot be normalized into parseable XHTML (or on OOM) — // the caller falls back to the plain-text viewer path. bool buildDictionaryHtmlPages(GfxRenderer& renderer, const std::string& definition, uint16_t viewportWidth, uint16_t viewportHeight, std::vector>& pagesOut);