Skip to content

Conversation

@dmiceman
Copy link

Purpose.
This is pain to learn Japanese when you don't know the readings of all that kanji. To help myself and my daughter I have modified mastodon android client in the way that every kanji character will be inscribed by kana. I know, very limited audience will found that useful, but I think this is cool :-)
Library used.
To show the reading https://github.com/atilika/kuromoji library was used. It break down Japanese sentences and return a reading in kana. For all the scholars pain reading depend on context, thus use of heavy external library is inevitable.
UI.
By default, furigana is disabled. There are two checkboxes added to the Settings → Display to enable furigana and change between hiragana and katakana.
Code added.
Main code is located in FuriganaHelper.java and FuriganaSpan.java classes.
Code changed.
CustomEmojiSpan.java changed because it draw emoji at the top of the line, not related to baseline. Hope it not broke things a lot.
Example.
Screenshot_20251031_022901

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