Repository navigation
OPDS comics: Honor manga reading direction from ComicInfo.xml - #3427
Merged
kovidgoyal merged 1 commit intoOct 30, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set readingProgression to rtl in Readium Divina manifests when a CBZ contains a root-level ComicInfo.xml with Manga set to YesAndRightToLeft.
This lets compatible OPDS readers navigate manga in the intended direction. Page images retain their existing natural order.
ComicInfo is read only when requesting the manifest, preserving lazy catalog generation. Reads are bounded to 1 MiB of decompressed metadata and use calibre's safe XML parser. Missing, malformed, oversized or unreadable metadata preserves existing behavior.
Metadata filenames are matched case insensitively. Manga values Yes, No and Unknown do not imply right-to-left reading.
Includes documentation and tests covering manifest output, page ordering and retrieval, filename handling, malformed XML, size limits, encrypted metadata and external-entity protection.
Validation: