Open Bug 289130 Opened 20 years ago Updated 2 years ago

Should implement text-spacing from CSS Text 4

Categories

(Core :: Layout: Text and Fonts, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: masayuki, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: css3, dev-doc-needed, intl)

http://www.w3.org/TR/css3-text/#text-autospace-prop We should implement CSS3 text-autospace property for Japanese people.
Priority: -- → P5
As it stands now the CSS3 Text Module is going back to working draft... fantasai? So if you are planning to implement this it should be implemented as -moz-text-autospace unless this property has no issues.
Blocks: css-text-3
No longer depends on: 288439
No longer blocks: 156369
Depends on: 156369
At the tech plenary last week, Tatsuo Kobayashi of Justsystem mentioned that this behavior is defined in JIS X 4051, and said something about adding 1/3-spaces to either side of the latin/numerals... the old CSS3 Text drafts don't really give details on the behavior. Masayuki -- do you have access to a copy of the JIS X 4051:2004 standard?
(In reply to comment #2) > At the tech plenary last week, Tatsuo Kobayashi of Justsystem mentioned that > this behavior is defined in JIS X 4051, and said something about adding > 1/3-spaces to either side of the latin/numerals... the old CSS3 Text drafts > don't really give details on the behavior. What's 1/3-spaces? Does that mean 0.3em? or 1/3 of width of SPACE(U+0020)? # But I think that if we defines 'text-autospace-width' property, the page authors may be happy. Isn't this idea on your discussion? > Masayuki -- do you have access to a copy of the JIS X 4051:2004 standard? I don't have the spec. But I can buy it. Should I buy it? And I have a question. '[A]<span style="font-size: 2em;">english</span>' # [A] is a Japanese character. In this case, should we render which?: '[A] <span>english</span>' or '[A]<span> english</span>'
And there is a question: '<p style="text-autospace: none;"> [A]<span style="text-autospace: ideograph-alpha;">english</span> </p>' or '<p style="text-autospace: ideograph-alpha;"> [A]<span style="text-autospace: none;">english</span> </p>' In these cases, should we add extra space? I think that text-autospace should be only applied to block-level element.
It's 1/3 of an ideographic space, I think. The sizes are from hot-metal typesetting days, I'm told. I don't think text-autospace-width is necessary at this point.. and it might never be necessary. Another question is, are the spaces added to the text stream at the same level as text-transform or the same level as letter-spacing? I haven't actually spent much time thinking about this property yet. But you have brought up a lot of good questions. MSIE seems to have implemented it already, btw http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/textautospace.asp As for JIS X 4051, it will be necessary for implementing a lot of CSS3 Text related things. I don't know what's in it (I can't read Japanese) but it is referenced for pretty much anything relating to Japanese typography. *needs to learn Japanese*
Masayuki - Martin Heijdra and I ran across a PDF of an early draft, if that helps. http://www.tufs.ac.jp/ts/personal/kumihan/4051draft.pdf I have a physical copy of the spec itself, so I can scan sections you need from the final version if you give me the section title or so.
Thank you, fantasai. But I will buy it for our work.
I'm resetting bugs which are assigned to me but I'm not working on them and I don't have plan for fixing them in near future.
Assignee: masayuki → nobody
text-autospace / text-spacing has been delayed to CSS Level 4 as per the newest draft
Eager to support this attribute.
Note that the text-autospace property has been merged w/ text-trim into 'text-spacing' in September 2011 WD [1] and it has deferred to CSS Text Level 4 in the January 2012 WD [2] [1] http://www.w3.org/TR/2011/WD-css3-text-20110901/#recent-changes [2] http://www.w3.org/TR/2012/WD-css3-text-20120119/#recent-changes
I'll add the caniuse.com data.
No longer blocks: css-text-3
Summary: Should implement CSS3 text-autospace → Should implement text-spacing from CSS Text 4
Blocks: css-text-4
Severity: normal → S3

(Recent spec change here, FWIW - essentially the normal value now incorporates some trim-end behavior: https://github.com/w3c/csswg-drafts/issues/7055#issuecomment-1276421476 )

You need to log in before you can comment on or make changes to this bug.