w3c / jlreq

Text Layout Requirements for Japanese
https://w3c.github.io/jlreq/
Other
101 stars 17 forks source link

Japanese full-width transforms don't work #172

Open r12a opened 4 years ago

r12a commented 4 years ago

Latin text and numbers embedded in Japanese text are typically proportionally-spaced, but in some cases it is best to display them as full-width characters, especially for acronyms in vertically set text. For example, if the text "国际化活动W3C万维网联盟" is displayed vertically, the 'W3C' should be full-width, upright characters rather than proportionally-spaced text running down the line.

Screenshot 2021-08-11 at 15 40 39

It's useful to be able to achieve this via styling, similar to the case conversion transforms used for Latin text.

Specs: CSS Text provides text-transform: full-width to transform text in this way.

Tests & results: Simple test, standard syntaxproprietary syntax

More tests: a-z, A-Z, punctuation, katakana, punctuation, symbols

Gecko supports this. Blink and Webkit do not.

Browser bug reports: ChromiumWebkit

Priority: The priority was set to basic by the initial reporter. This is certainly a very useful thing to have to hand when working with vertical text, in particular.

r12a commented 4 years ago

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

Relevant gap analysis documents include: _Japanese • [Korean]_

xfq commented 4 years ago
xfq commented 4 years ago

@r12a The "More tests" links seem to be broken?

xfq commented 4 years ago

The "More tests" links seem to be broken?

Sorry, now I see that the URLs work in the Gap Analysis document, and just don't work in the GitHub issue.

r12a commented 4 years ago

Hmm. Links should work here as well as in the document, so i fixed the hrefs. However, i'm not sure why they point to tests in the gap-analysis directory, rather than to the normal set of tests. I'll look into that later.

himorin commented 4 years ago

Hmm. Links should work here as well as in the document, so i fixed the hrefs. However, i'm not sure why they point to tests in the gap-analysis directory, rather than to the normal set of tests. I'll look into that later.

I was actually wondered on that when JLReq was in preparation on tests for gap-analysis. At that point, these tests seemed to be added at the same commit (https://github.com/w3c/jlreq/commit/e2be660a13d94f51e7d049c0be866c7f7c4a71ac) as initial update of gap-analysis document from template, and also were made/added before initial creation of i18n-tests repository. So, we thought there was some historical reason that these test files were not moved into i18n-tests from jlreq gap-analysis (but not sure on why).