ankidroid / ankidroid/Anki-Android

Improve UX for resolving 'Han Unification' rendering issues

オープン
#19,431 コメント 5 件 リアクション 0 件 担当者 1 名 @xenonnn4w が担当を希望しています GitHub で見る
Keep Open Priority-Low
主要言語
Kotlin
スター
11.8k
フォーク
2.9k
平均マージ
2日 3時間
マージ済み PR(30日)
171

説明

A common issue which learners face is:

**Why does my Kanji render as Hanzi**

This is caused by a Unicode concept: [Han Unification](https://en.wikipedia.org/wiki/Han_unification)

For these characters to render correctly, a `lang=ja` attribute needs to be added to the HTML for a Japanese learner

Example

```html
U+9AA8





```

renders as

Image

**Steps to Resolve**

1. **Detect**: figure out if a character is in the set of 'badly unified' chars
* Ensure it hasn't been disambiguated already
2. What to do?
* Initially: possibly open up a help page?
* Probably an 'ignore' for when the user doesn't care
* Maybe an 'auto-fix' button for the general 'basic' note type case

I'd accept a 'stage 1' fix as writing code to detect the issue, there's a brief UX discussion on how we improve the UX

----

Originally posted as https://github.com/ankidroid/Anki-Android/issues/19150#issuecomment-3240453441

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。