Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emojis containing VS16 (U+FE0F) are displayed as the text style #1055

Open
tats-u opened this issue Aug 31, 2024 · 5 comments
Open

Emojis containing VS16 (U+FE0F) are displayed as the text style #1055

tats-u opened this issue Aug 31, 2024 · 5 comments

Comments

@tats-u
Copy link
Contributor

tats-u commented Aug 31, 2024

Description

Some emojis are built on the top of existing text symbols.
However, they are shown as the text style even though VS16 (U+FE0F) that shows the symbol should be displayed as the emoji style if possible.
Affected characters are annotated as [Symbol] [VS16].

https://ja.wikipedia.org/wiki/Unicode6.0%E3%81%AE%E6%90%BA%E5%B8%AF%E9%9B%BB%E8%A9%B1%E3%81%AE%E7%B5%B5%E6%96%87%E5%AD%97%E3%81%AE%E4%B8%80%E8%A6%A7

Steps to reproduce

Steps to reproduce the behavior:

  1. Type "まるひ"
  2. Press Space

Expected behavior

A clear and concise description of what you expected to happen.

  • Only "絵文字 絵文字" one should be displayed as "㊙️" (emoji style)
  • "丸秘" one should be displayed as "㊙︎" (text style)

Actual behavior

A clear and concise description of what you actually got.

Both are displayed as "㊙︎" (text style)

Screenshots

If applicable, add screenshots to help explain your problem.

image

It's difficult to choose one If we want to force the emoji style.

Version or commit-id

[e.g. Mozc-2.28.4960.100+24.11.oss or d50a8b9]
You can get the version string by converting "Version" or "ばーじょん".

See below

Environment

  • Windows 11 (Windows Sandbox) + Mozc-2.30.5544.100+24.11.oss
  • (Compare) Windows 11 (Windows Sandbox) + GoogleJapaneseInput-2.30.5448.100+24.11.9
  • (Compare) Windows 11 (bare metal) + GoogleJapaneseInput-2.30.5448.100+24.11.9 (Office is installed)

Investigations

  • Whether this issue happens on both Ibus and other IMF (e.g. Fcitx, uim).
    • I haven't tried Linux
  • Whether this issue happens on other IMEs (e.g. Anthy, SKK).
    • I haven't tried Linux
  • What applications this issue happens on (e.g. Chromium, gedit).
    • Notepad
  • What applications this issue does not happen on (e.g. Chromium, gedit).
    • not-found
  • (optional) What versions or commit-ids this issue did not happen on
    (e.g. Mozc-2.28.4960.100+24.11.oss).
    not-found

Additional context

Add any other context about the problem here.

Choose "絵文字 絵文字" basically (similar ones that don't contain "絵文字" don't contain VS16):

  • 0 1 ... 9 | 0️⃣ ... 9️⃣
  • # | #️⃣
  • ちょさくけん | ©️
  • とうろくしょうひょう | ®️
  • !! | ‼️
  • !? | ⁉️
  • さゆう | ↔️
  • じょうげ | ↕️
  • やじるし (絵文字 〇〇) | ↔️ ... ⬇️
  • しかく | ▪️ ... ⬜️
  • (はれ) (both emoji in Windows Sandbox) |☀️
  • (くもり) (both emoji in Windows Sandbox) | ☁️
  • (おんせん) (both emoji in Windows Sandbox) | ♨️
  • (でんわ) (both emoji in Windows Sandbox) | ☎️
  • いおりてん | 〽️
  • まる | Ⓜ️ ... ⭕️
  • ほし | ⭐️
  • (けいこく) (both emoji in Windows Sandbox) | ⚠️
  • まるひ | ㊙️

I don't think the above list covers all.

🃏️ and 🀄️ have already been displayed as emoji without VS16. It's probably because a font supporting such characters is missing.

"丸秘" doesn't contain VS15 (U+FE0E) or VS16.

@yisibl
Copy link

yisibl commented Oct 11, 2024

Emoji rendering is indeed complex, and Chrome 131 started with a lot of improvements, but there are still some issues, you can try it in the latest version of Chrome Canary.

https://groups.google.com/a/chromium.org/g/blink-dev/c/i5AeH4ZE2RY/m/ZkTWLj93AwAJ

Image

data:text/html;charset=UTF-8,<!doctype html>
<style>
  .test { font-size: 38px; margin-top: 6px; font-family: arial, sans-serif;}
  .bug1 { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; }
  .bug2 { font-family: -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji"; }
  .bug3 { font-family: sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; }
  .bug4 { font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji"; }
</style>
<span class="test bug1">㊙️</span>
<span class="test bug2">㊙️</span>
<span class="test bug3">㊙️</span>
<span class="test bug4">㊙️</span>
<p>Expected:</p>
<span class="test">㊙️</span>

@tats-u
Copy link
Contributor Author

tats-u commented Oct 12, 2024

Firefox (Windows):

Image

Chrome (Windows):

Image

Your example always contains VS-16.
I believe it's just a Chrome's bug. Chrome should respect VS-16 even when non-emoji fonts come first.
This bug applies to Qt GUI in Mozc, too.
However, I think Mozc doesn't use WebView.

@yisibl
Copy link

yisibl commented Oct 12, 2024

Thanks for the screenshot, what is the Chrome version?

@tats-u
Copy link
Contributor Author

tats-u commented Oct 12, 2024

129.0.6668.100 & 129.0.6668.101

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

No branches or pull requests

2 participants