RE: [CSS3]hanging-punctuation-*

“first” includes Ps, Pf, Pi, but the test is not testing Pf. “first” is the first char of paragraph, not left line edge, so you must put final quotes at the first character of the div. Closing brackets is Pe, so it should not hang. If you’re testing “first” should not hang Pe, it has to come at the first character of the div too.

“allow-end” should test two conditions for both characters. I know it’d be strange Japanese if we do so, but this is a test and no one cares if the text is correct Japanese or not. Testing all criteria is more important.

Also since it’s 10em width box, we should have 8em+punctuation. Otherwise we can’t see difference between “allow-end” and “force-end”.

“last” was removed from the spec; please remove from the test directory.


Regards,
Koji

From: public-css-testsuite-request@w3.org [mailto:public-css-testsuite-request@w3.org] On Behalf Of taka oshiyama
Sent: Tuesday, March 29, 2011 6:17 PM
To: fantasai
Cc: public-css-testsuite@w3.org
Subject: Re: [CSS3]hanging-punctuation-*

(2011/03/29 15:10), fantasai wrote:
On 03/18/2011 01:26 AM, taka oshiyama wrote:

Attached, please find a new testcase for your review.

http://test.csswg.org/source/contributors/east-tokyo/submitted/css3-text/


Hm, it seems that the Japanese font on my system has characters less
than 1em wide. Therefore the test isn't working. :/ We might need to
make the IPA fonts required to ensure that these characters are
rendered with exactly 1em advance width.
IPA fonts provide totally four fonts - Mincho style and Gothic style and fixed width and proportional for each.
Our testcases  ONLY select fixed width Mincho and fixed width Gothic (two font types out of four) to ensure full width characters such as Kanji/Hiragana to be rendered with exactly 1em advance width and half width characters such as Alphabets to be rendered with 0.5em advance width.
Please note the source of the testcase says "font-family: "IPAMincho", "IPAGothic", "IPA明朝", "IPAゴシック";", this actually calls two font files, both are fixed width.
Please refer to the spec more detail. http://ossipedia.ipa.go.jp/ipafont/fontspec.html



Koji has a good point: these tests should include combinations with
both left and justified alignment, because that is a key distinction
in the behavior of allow-end and force-end.
Okay, I will update it with the combinations.

Ideally there should also
be right aligned and centered combinations, so that the interpretation
of these is consistent. (It might make sense to make a separate test
for each alignment combination, otherwise the tests will get very
long.)
Okay, I will update it accordingly.


I think Koji's point to include a test where the character fits without
hanging and another where it doesn't fit without hanging is important.
I will include this idea and will update with it.



Lastly, the references for "first" don't work correctly if the UA is
trimming the starting punctuation to half-width, which seems to be the
case on my system.
It seems required IPA fonts are not installed, nor activated correctly on your browser.
In that case, please follow the next nine steps.
1. visit the site here http://ossipedia.ipa.go.jp/ipafont/index.html

2. Press the "Accept" button at the bottom of the same page.
3.Select ipam00302.zip(5.50 MB) <http://ossipedia.ipa.go.jp/ipafont/ipam00302.php> to start downloading
4. Open the ipamxxxx.zip folder
5. You can find ipam.ttf file (with 5,630KB) then doubleclick it.
6. A popup window titled IPAMincho (TrueType) appears with two buttons on the above
7. Press the right hand button to install
8. Reboot your browser to make sure the IPAMincho is in effect
9. Try the testcase again!


~fantasai






--





押山 隆 taka oshiyama

oshiyama@est.co.jp<mailto:oshiyama@est.co.jp> (or takaoshiyama@gmail.com<mailto:takaoshiyama@gmail.com>)

mobile: 080-4148-7654

イースト株式会社

〒151-0053 渋谷区代々木2-22-8

Received on Monday, 4 April 2011 03:01:35 UTC