feat(app): furigana in rich text
Text within a line can carry its reading now (`ruby` on the text's attributes, `かんじ` on `漢字`), word by word, in lessons, example sentences, notes and cards alike. Shown, the reading sits above the text, smaller and centred, the text level with the line around it; while editing, the text is dotted underneath and the caret moves through it as text, as with formulas. The format bar's Furigana asks for the reading of the text selected, starting from the one it has, and takes it away. An Anki field's `<ruby>` keeps its reading as furigana now, each base its own, instead of "漢(かん)"; Anki's `漢字[かんじ]` stays as written, as telling it apart from other brackets is guesswork. The Markdown export writes furigana as HTML's `<ruby>漢字<rt>かんじ</rt></ruby>`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
add1c76842
commit
30dde3b8fa
1 changed files with 410 additions and 10 deletions
|
|
@ -2134,6 +2134,24 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
@override
|
||||
String get formatSubscript => 'Subscript';
|
||||
|
||||
@override
|
||||
String get formatRuby => 'Furigana (a reading above the text)';
|
||||
|
||||
@override
|
||||
String get rubyTitle => 'Furigana';
|
||||
|
||||
@override
|
||||
String get rubyReading => 'Reading';
|
||||
|
||||
@override
|
||||
String get rubyReadingHint => 'In kana, e.g. かんじ';
|
||||
|
||||
@override
|
||||
String get rubySave => 'Save';
|
||||
|
||||
@override
|
||||
String get rubyRemove => 'Remove';
|
||||
|
||||
@override
|
||||
String get vocabularyReading => 'Reading';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue