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

Japanese full-width transforms don't work #172

Open
r12a opened this issue Feb 3, 2020 · 6 comments
Open

Japanese full-width transforms don't work #172

r12a opened this issue Feb 3, 2020 · 6 comments
Labels
doc:jlreq Used for gap analysis (only) to indicate target document. gap The first comment in this issue is read by the gap-analysis document. i:transforms Transforming characters l:ja Japanese p:basic Used for gap analysis issues (only) to indicate priority. s:jpan Japanese script x:blink x:jpan x:webkit

Comments

@r12a
Copy link
Contributor

r12a commented Feb 3, 2020

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 r12a added gap The first comment in this issue is read by the gap-analysis document. doc:jlreq Used for gap analysis (only) to indicate target document. p:basic Used for gap analysis issues (only) to indicate priority. i:transforms Transforming characters labels Feb 3, 2020
@r12a
Copy link
Contributor Author

r12a commented Feb 3, 2020

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
Copy link
Member

xfq commented Feb 16, 2020

@xfq
Copy link
Member

xfq commented Feb 16, 2020

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

@xfq
Copy link
Member

xfq commented Feb 16, 2020

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
Copy link
Contributor Author

r12a commented Feb 17, 2020

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
Copy link
Contributor

himorin commented Feb 17, 2020

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 (e2be660) 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).

@r12a r12a changed the title Full-width transforms don't work Japanese full-width transforms don't work May 18, 2021
@r12a r12a added x:jpan and removed x:jlreq labels Jun 9, 2021
@r12a r12a added s:jpan Japanese script l:ja Japanese labels Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:jlreq Used for gap analysis (only) to indicate target document. gap The first comment in this issue is read by the gap-analysis document. i:transforms Transforming characters l:ja Japanese p:basic Used for gap analysis issues (only) to indicate priority. s:jpan Japanese script x:blink x:jpan x:webkit
Projects
Status: Browser bug raised
Development

No branches or pull requests

3 participants