Something went wrong. Try again.
A fork of https://github.com/crosspoint-reader/crosspoint-reader
Something went wrong. Try again.
609 B · 16 lines
C
1234567891011121314151617#pragma once
#include <Epub/Page.h>
#include <memory>#include <string>#include <vector>
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<std::unique_ptr<Page>>& pagesOut);