Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[css-text] Add lang=ja in css3-text-line-break-jazh tests #9805
requested review from
Mar 5, 2018
It seems a bit awkward to me that the phrase "中文" which means Chinese in Chinese is tagged as being Japanese, but I guess that was that way in the original test. Since there could be differences between Chinese and Japanese line breaking, I do not suggest changing the language tag (at least not without checking with the author of the test for unintended side effects). The test is valid as merged, but maybe we could replace 中中中文 by 日日本語 or something like that.
@r12a, any thoughts?
Fwiw, i just spent the past four days (including weekend) porting the i18n test suite to github at https://github.com/w3c/i18n-tests/. I improved a bunch of tests in addition to moving them. In particular, i applied the same fix to the tests mentioned here. It may be that there are other tests in this jazh series that should have had the lang attribute added. There are separate tests for Japanese and Chinese behaviours.
@frivoal the text 中中中￠文 isn't really chinese either ;-). I chose ideographs that appear in both chinese and japanese, but didn't really try to have end-to-end meaningful strings. I also chose those han characters, iirc, because they are quite simple (and therefore easier to detect for people unlike us who know nothing of Japanese/Chinese writing).
If you think we should change, we could perhaps use something like 文字, which is both chinese and japanese. In that case, i or someone should resubmit the whole set of tests.
btw, another change i made to (all) those tests was to change
Compare https://github.com/mrego/web-platform-tests/blob/98b733787a32327667a1a30b7247416186aff69b/css/css-text/i18n/css3-text-line-break-jazh-059.html and https://github.com/w3c/i18n-tests/blob/gh-pages/css-text/line-breaks/css3-text-line-break-jazh-059.html