-
Notifications
You must be signed in to change notification settings - Fork 719
[css-text] Clarify importance of writing system as well as language for lang-specific effects #2015
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
Comments
@fantasai I wonder if this edit is actually sufficient. Shouldn't we also change bits of text like that in the definition of the If we don't do that, it seems to be that the text you've added, while a great explanation of the situation, isn't actually invoked properly from the rest of the spec. |
Reopening, so that the above comment doesn't get lost. We can close again if there's nothing to be done, but I'd like to make sure. |
But can we actually say "if the writing system is Chinese"? Chinese isn't a writing system, so it seems we should we instead say something like "if the writing system is one of Hans / Hant / Hani / Hanb, or the language is Chinese and the writing system is unspecified". It would be nice if we could drop the second part of the sentence, but it's not clear to me that the mapping from languages to default writing-system for that language is fully defined, and if it isn't, then we need that second clause. |
Then again, the above introduces a direct dependency from css to iso15924 writing system tags, instead of leaving the specific way to encode these to the document language. So maybe we should speak of "the Chinese writing system", rather than "one of Hans / Hant / Hani / Hanb"… |
Since I was the one making the original complaint, I should first apologize for not joining in the discussion, but I think I need to make it clear that my issue was not specific to the Chinese writing system. I did observe the problem while marking up Chinese, but I can’t see how this isn’t going to affect other languages that can be written in multiple scripts (basically anything that’s not written in the Latin alphabet). I just cobbled up a minimal test:
I have not tried overriding any styling yet, but with default styling all the three non-English words are being displayed using a different font (on Firefox Nightly 64.0a1) even though they are all “latn”. This doesn’t look like something specific to the Chinese writing system to me. |
Alright, I've made a pull request that attempt to deal with this. It's quite possible I didn't get it write on the first attempt, but it's a start. @fantasai, feedback very much welcome. |
Made some tentative tests to go along with that spec pull request: web-platform-tests/wpt#13430 |
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <git@florian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <git@florian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <git@florian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <git@florian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <gitflorian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430 UltraBlame original commit: f3cb0265f0c1de2b76f36205c6735e5203dd7a67
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <gitflorian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430 UltraBlame original commit: 2cf194f546b2f3818e7f79b4e13bb0cc4e5f37cc
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <gitflorian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430 UltraBlame original commit: f3cb0265f0c1de2b76f36205c6735e5203dd7a67
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <gitflorian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430 UltraBlame original commit: 2cf194f546b2f3818e7f79b4e13bb0cc4e5f37cc
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <gitflorian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430 UltraBlame original commit: f3cb0265f0c1de2b76f36205c6735e5203dd7a67
…stem dependent rules, a=testonly Automatic update from web-platform-tests[css-text][css-fonts] Testing writing system dependent rules Related to w3c/csswg-drafts#2015 -- fix typo Co-Authored-By: frivoal <gitflorian.rivoal.net> -- Merge pull request #13430 from frivoal/writing-system [css-text][css-fonts] Testing writing system dependent rules -- wpt-commits: 60e792e88bf7e2839b584354b128600bb89a7e8f, 643c8394abb53fbca39590728bc30ad96b1feb6c, 9b65752bd8f279c76532401268f06250ac5d479c wpt-pr: 13430 UltraBlame original commit: 2cf194f546b2f3818e7f79b4e13bb0cc4e5f37cc
https://www.w3.org/TR/css-text-3/#languages notes that typographic effects vary by language but should also mention writing system, and should give examples like ja-latn to emphasize that UAs need to detect script tags. See https://twitter.com/little_potato/status/935608512297820160
The text was updated successfully, but these errors were encountered: