mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
Major consolidation of styling infrastructure: - Remove TextBlock::Style enum (JUSTIFIED, LEFT_ALIGN, etc.) Alignment is now stored in BlockStyle.alignment using CssTextAlign - Remove wordUnderlines list from TextBlock and ParsedText Underline state is now encoded in EpdFontFamily::Style via UNDERLINE bitflag - Use BlockStyle::fromCssStyle() and getCombinedBlockStyle() in parser Removes duplicated createBlockStyleFromCss() and mergeBlockStyles() - Simplify text block rendering to check style bitflag for underlines - Revert spurious spaces handling (isAttachingPunctuation logic) The actualGapCount approach had issues; using standard word gaps This reduces code duplication and simplifies the style inheritance model. |
||
|---|---|---|
| .. | ||
| blocks | ||
| css | ||
| hyphenation | ||
| parsers | ||
| BookMetadataCache.cpp | ||
| BookMetadataCache.h | ||
| Page.cpp | ||
| Page.h | ||
| ParsedText.cpp | ||
| ParsedText.h | ||
| Section.cpp | ||
| Section.h | ||