Skip to content

[Plugin] Added support for hexadecimal code points to OPDS parser#13482

Merged
Frenzie merged 3 commits into
koreader:masterfrom
ReneeIbeji:OPDSHexadecimalParsing
Apr 2, 2025
Merged

[Plugin] Added support for hexadecimal code points to OPDS parser#13482
Frenzie merged 3 commits into
koreader:masterfrom
ReneeIbeji:OPDSHexadecimalParsing

Conversation

@ReneeIbeji

@ReneeIbeji ReneeIbeji commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

Fixes a bug where OPDS parser fails when attempting to fetch from OPDS catalogue that uses hexadecimal code points, eg &#x27, as the parser fails to convert these to numbers.

The issue is most likely with KOReader as the OPDS catalogue that was failing to be parsed by KOReader was able to be correctly parsed by other OPDS supported software (eg thorium and moon+ reader) which correctly displayed the codepoint &#x27 as an apostrophe ' instead of completely failing to parse the page or displaying it as an unknown character.


This change is Reviewable

Comment thread plugins/opds.koplugin/opdsparser.lua Outdated
Comment thread plugins/opds.koplugin/opdsparser.lua Outdated
Comment thread plugins/opds.koplugin/opdsparser.lua Outdated
@Frenzie

Frenzie commented Mar 29, 2025

Copy link
Copy Markdown
Member

There is a better XML parser hanging around in the codebase btw, but this'll do for the moment.

@Frenzie Frenzie added the Plugin label Mar 29, 2025
@Frenzie Frenzie added this to the 2025.03 milestone Mar 29, 2025
@Frenzie Frenzie merged commit 7b68fb6 into koreader:master Apr 2, 2025
@Frenzie

Frenzie commented Apr 2, 2025

Copy link
Copy Markdown
Member

Thanks!

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants