ankidroid / ankidroid/Anki-Android

Improve UX for resolving 'Han Unification' rendering issues

Đang mở
#19,431 5 bình luận 0 reaction 1 người được giao Được @xenonnn4w nhận Xem trên GitHub
Keep Open Priority-Low
Ngôn ngữ chính
Kotlin
Star
11.8k
Fork
2.9k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
171

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.