Skip to content

fix: render U+FFFD replacement character instead of ?#366

Merged
daveallie merged 1 commit intocrosspoint-reader:masterfrom
maeveynot:replacement-character
Jan 19, 2026
Merged

fix: render U+FFFD replacement character instead of ?#366
daveallie merged 1 commit intocrosspoint-reader:masterfrom
maeveynot:replacement-character

Conversation

@maeveynot
Copy link
Contributor

The current behavior of rendering ? for an unknown Unicode character can be hard to distinguish from a typo. Use the standard Unicode "replacement character" instead, that's what it's designed for:

https://en.wikipedia.org/wiki/Specials_(Unicode_block)

I'm making this PR as a draft because I'm not sure I did everything that was needed to change the character set covered by the fonts. Running that script is in its own commit. If this is proper, I'll rebase/squash into one commit and un-draft.

@maeveynot maeveynot marked this pull request as draft January 14, 2026 05:51
@maeveynot
Copy link
Contributor Author

An example of this showing up in a user question is https://www.reddit.com/r/xteinkereader/comments/1qbmn2p/x4_crosspoint_0120_question_marks_mid_text/

Re: their question, It looks like we can just uncomment Greek, yeah? But that's a separate PR.

@daveallie
Copy link
Member

Your script updating looks good, no concerns there, happy to approve and merge this once you're happy.

@maeveynot maeveynot force-pushed the replacement-character branch from 812726e to 5f9cd33 Compare January 14, 2026 15:38
@maeveynot maeveynot marked this pull request as ready for review January 14, 2026 15:39
@maeveynot
Copy link
Contributor Author

OK, ready to go! Thanks!

@maeveynot maeveynot changed the title WIP: render U+FFFD replacement character instead of ? render U+FFFD replacement character instead of ? Jan 14, 2026
@maeveynot maeveynot changed the title render U+FFFD replacement character instead of ? fix: render U+FFFD replacement character instead of ? Jan 14, 2026
@maeveynot maeveynot force-pushed the replacement-character branch from 5f9cd33 to ea7ed3e Compare January 16, 2026 05:09
@daveallie daveallie merged commit 5fef99c into crosspoint-reader:master Jan 19, 2026
1 check passed
jdk2pq added a commit to jdk2pq/crosspoint-reader that referenced this pull request Jan 20, 2026
* origin:
  fix: truncate chapter names that are too long (crosspoint-reader#422)
  feat: dict based Hyphenation (crosspoint-reader#305)
  fix: render U+FFFD replacement character instead of ? (crosspoint-reader#366)
  fix: Invert colors on home screen cover overlay when recent book is selected (crosspoint-reader#390)
  Adds KOReader Sync support (crosspoint-reader#232)
  feat: Change keyboard "caps" to "shift" & Wrap Keyboard (crosspoint-reader#377)
  fix: XTC 1-bit thumb BMP polarity inversion (crosspoint-reader#373)
@maeveynot maeveynot deleted the replacement-character branch January 21, 2026 03:22
yingirene pushed a commit to yingirene/crosspoint-reader that referenced this pull request Jan 25, 2026
…der#366)

The current behavior of rendering `?` for an unknown Unicode character
can be hard to distinguish from a typo. Use the standard Unicode
"replacement character" instead, that's what it's designed for:

https://en.wikipedia.org/wiki/Specials_(Unicode_block)

I'm making this PR as a draft because I'm not sure I did everything that
was needed to change the character set covered by the fonts. Running
that script is in its own commit. If this is proper, I'll rebase/squash
into one commit and un-draft.

Co-authored-by: Maeve Andrews <[email protected]>
Unintendedsideeffects pushed a commit to Unintendedsideeffects/crosspoint-reader that referenced this pull request Feb 17, 2026
…der#366)

The current behavior of rendering `?` for an unknown Unicode character
can be hard to distinguish from a typo. Use the standard Unicode
"replacement character" instead, that's what it's designed for:

https://en.wikipedia.org/wiki/Specials_(Unicode_block)

I'm making this PR as a draft because I'm not sure I did everything that
was needed to change the character set covered by the fonts. Running
that script is in its own commit. If this is proper, I'll rebase/squash
into one commit and un-draft.

Co-authored-by: Maeve Andrews <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants