Skip to content

fix(styles): keep real letters and accents when converting to plain text (#983) - #988

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/plain-text-keeps-real-letters
Nov 28, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/plain-text-keeps-real-letters

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Follow-up to #986. toPlainText runs on every learned word and could still change real text:

  • The upside-down style (can't be typed live) uses letters of real alphabets (ɔ ǝ ɐ ɯ, and Ɛ became 3). It is no longer reversed.
  • Every combining mark was removed, so accents typed as separate characters were lost. Only marks added by a style are removed now.

isStyledCharacter, which decides which characters belong to a word, is unchanged. Text that is already upside-down may no longer fully convert back when another style is applied (not tested).

Style tests and InputLogicTest pass, the standard debug APK builds and the offline flavor compiles.

Part of #983.

https://claude.ai/code/session_017YwBxS1AFMMTMRfvDSKqCR

…ext (#983)

The upside-down style, which can't be typed live, uses letters of real alphabets, so words with them were changed when learned. Only combining marks added by a style are removed now, other accents stay. Which characters belong to a word is unchanged.
@LeanBitLab
LeanBitLab merged commit b312fb6 into main Nov 28, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/plain-text-keeps-real-letters branch November 28, 2026 09:22
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.

1 participant