diff --git a/.upstream-sync.yaml b/.upstream-sync.yaml index c356c7ef92f..0a47758e591 100644 --- a/.upstream-sync.yaml +++ b/.upstream-sync.yaml @@ -188,6 +188,36 @@ relocations: to: lib/Typesetter/Typesetter/ParsedText.cpp - from: lib/Epub/Epub/ParsedText.h to: lib/Typesetter/Typesetter/ParsedText.h + - from: lib/Epub/Epub/Page.cpp + to: lib/Typesetter/Typesetter/Page.cpp + - from: lib/Epub/Epub/Page.h + to: lib/Typesetter/Typesetter/Page.h + - from: lib/Epub/Epub/converters/** + to: lib/ImageDecoder/** + - from: lib/Epub/Epub/hyphenation/** + to: lib/Hyphenation/** + - from: lib/JpegToBmpConverter/** + to: lib/ImageDecoder/** + - from: lib/PngToBmpConverter/** + to: lib/ImageDecoder/** + - from: lib/JsonParser/** + to: lib/JsonIO/** + - from: lib/FsHelpers/** + to: lib/Utility/** + - from: lib/InflateReader/** + to: lib/Utility/** + - from: lib/Serialization/** + to: lib/Utility/** + - from: lib/Utf8/** + to: lib/Utility/** + - from: lib/XmlParserUtils/** + to: lib/Utility/** + - from: lib/ZipFile/** + to: lib/Utility/** + - from: src/activities/reader/EpubReaderFootnotesActivity.cpp + to: src/activities/reader/ReaderLinkPickerActivity.cpp + - from: src/activities/reader/EpubReaderPercentSelectionActivity.cpp + to: src/activities/reader/ReaderPercentSelectionActivity.cpp - from: lib/Epub/Epub/blocks/** to: lib/Typesetter/Typesetter/blocks/** - from: lib/Epub/Epub/FootnoteEntry.h diff --git a/lib/EpdFont/scripts/fontconvert_sdcard.py b/lib/EpdFont/scripts/fontconvert_sdcard.py index 8bede4dcda3..69d12d74f57 100755 --- a/lib/EpdFont/scripts/fontconvert_sdcard.py +++ b/lib/EpdFont/scripts/fontconvert_sdcard.py @@ -40,7 +40,8 @@ "ascii": [(0x0020, 0x007E)], "latin1": [(0x0080, 0x00FF)], "latin-ext": [(0x0020, 0x007E), (0x0080, 0x00FF), (0x0100, 0x024F), - (0x1E00, 0x1EFF), (0x2000, 0x206F), (0xFB00, 0xFB06)], + (0x02B0, 0x02FF), (0x1E00, 0x1EFF), (0x2000, 0x206F), + (0xFB00, 0xFB06)], "greek": [(0x0370, 0x03FF), (0x1F00, 0x1FFF)], "cyrillic": [(0x0400, 0x04FF), (0x0500, 0x052F)], "hebrew": [(0x0590, 0x05FF), (0xFB1D, 0xFB4F)], @@ -62,7 +63,7 @@ # Composite preset for English-language literary fiction including scifi/popsci. # Greek for physics terms, math operators, geometric shapes, uncommon # dialogue punctuation, CJK quote marks, miscellaneous symbols (♪♫♬), dingbats. - "reading": [(0x0020, 0x024F), (0x0300, 0x036F), (0x0370, 0x03FF), + "reading": [(0x0020, 0x024F), (0x02B0, 0x02FF), (0x0300, 0x036F), (0x0370, 0x03FF), (0x0400, 0x04FF), (0x1E00, 0x1EFF), (0x2000, 0x206F), (0x2070, 0x209F), (0x20A0, 0x20CF), (0x2150, 0x218F), (0x2190, 0x21FF), (0x2200, 0x22FF), (0x2500, 0x257F), diff --git a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp index aee51878c3e..93761309867 100644 --- a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp +++ b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp @@ -278,6 +278,14 @@ void XMLCALL ChapterHtmlSlimParser::startElement(void* userData, const XML_Char* const bool isTocAnchor = std::find(self->tocAnchors.begin(), self->tocAnchors.end(), idValue) != self->tocAnchors.end(); if (isTocAnchor || (!isNonNavigableInlineElement(name) && self->anchorData.size() < MAX_ANCHORS_PER_CHAPTER)) { + // Flush a displaced anchor before overwriting. Consecutive non-block elements + // (e.g.