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)
Core
Layout: Text and Fonts
Tracking
()
NEW
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.
Reporter | ||
Updated•20 years ago
|
Priority: -- → P5
Comment 1•20 years ago
|
||
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.
Updated•20 years ago
|
Blocks: css-text-3
Reporter | ||
Updated•19 years ago
|
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?
Reporter | ||
Comment 3•19 years ago
|
||
(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>'
Reporter | ||
Comment 4•19 years ago
|
||
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.
Reporter | ||
Comment 7•19 years ago
|
||
Thank you, fantasai. But I will buy it for our work.
Reporter | ||
Comment 8•15 years ago
|
||
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
Comment 9•12 years ago
|
||
text-autospace / text-spacing has been delayed to CSS Level 4 as per the newest draft
Comment 10•11 years ago
|
||
Eager to support this attribute.
Updated•10 years ago
|
Keywords: dev-doc-needed
Comment 12•9 years ago
|
||
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
Comment 13•9 years ago
|
||
I'll add the caniuse.com data.
Updated•9 years ago
|
No longer blocks: css-text-3
Summary: Should implement CSS3 text-autospace → Should implement text-spacing from CSS Text 4
Updated•6 years ago
|
Blocks: css-text-4
Updated•6 years ago
|
Updated•2 years ago
|
Severity: normal → S3
Comment 14•2 years ago
|
||
(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 )
Comment 15•2 years ago
|
||
FWIW, the property has been refactored in Feb 2023: https://github.com/w3c/csswg-drafts/commit/29661048af03edf0c093f339e03afc41803c6238
You need to log in
before you can comment on or make changes to this bug.
Description
•