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

Emphasis Dots (text-emphasis) and Fonts #446

Open
bobbytung opened this issue Nov 7, 2024 · 2 comments
Open

Emphasis Dots (text-emphasis) and Fonts #446

bobbytung opened this issue Nov 7, 2024 · 2 comments
Labels
i:emphasis Emphasis & highlighting l:ja Japanese question Questions about how Japanese works. These issues should be tracked in i18n-activity tracker. s:jpan Japanese script

Comments

@bobbytung
Copy link

bobbytung commented Nov 7, 2024

Hello JLREQ folks!

There is a quite old issue confusing me for years.

傍点 (emphasis dots) in Japanese is also 着重号 in Simplified Chinese. It's not used in Taiwan, but more and more translated novels from Japanese used this way for emphasis.

This requirement is fulfilled by CSS properties "text-emphasis" and supported by browser with vertical writing many years ago.

But the implement depends on font design. Only a few Japanese fonts can display as intended. With other fonts, line-height will be expanded to break layout.

Here's a sample: Oe Kenzaburo's novel in TC. line-height set to 1.7, and obviously expanded by emphasis dots.
截圖 2024-10-31 清晨6 43 32

I've found that Apple's system font, such as Hiragino Mincho, Yu Mincho...the glyphs used by text-emphasis are designed with narrow width as this:

截圖 2024-10-31 清晨6 46 23

But most all the other TC / SC / JP fonts are using width 1000 as default. That will cause line-height broadened.

I've filed an issue on Webkit rader several years ago. But nothing changed.

I'd like to hear your opinion and figure out how to solve this old problem.

@bobbytung bobbytung changed the title Emphasis Dots and Fonts Emphasis Dots (text-emphasis) and Fonts Nov 7, 2024
@himorin himorin added the question Questions about how Japanese works. These issues should be tracked in i18n-activity tracker. label Nov 7, 2024
@xfq xfq added i:emphasis Emphasis & highlighting s:jpan Japanese script l:ja Japanese labels Nov 8, 2024
@xfq
Copy link
Member

xfq commented Nov 20, 2024

There are at least two potential solutions:

The first is to create a comprehensive font guideline and collaborate with font vendors to ensure adherence. While this could standardize practices, challenges may persist with legacy fonts and niche fonts.

The second solution is to introduce a new CSS mechanism to force the browser to choose a font that display emphasis mark correctly (and do not widen the line spacing). We already have this text in CSS Text Decoration:

the UA may opt to use a font known to be good for emphasis marks, or the marks may instead be synthesized by the UA.

But it may not be enough, because it is only a MAY and there is no way for authors to force it.

@xfq
Copy link
Member

xfq commented Nov 20, 2024

cc @frivoal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i:emphasis Emphasis & highlighting l:ja Japanese question Questions about how Japanese works. These issues should be tracked in i18n-activity tracker. s:jpan Japanese script
Projects
None yet
Development

No branches or pull requests

3 participants