2012-05-16 7:06, tlvp wrote:
> OK, I guess I understand what to expect from the style-specification
>
> | text-align:justify; /* 0 */
It's trickier than it looks like. The methods of justification have not
been specified, and they may vary by browser, content language, phase of
the moon, etc. But in general, *I* would expect ugly results, since
usually browsers a) apply simple methods that just increase inter-word
spacing, b) do not hyphenate words, and c) often have to work under
constraints that make the column narrow (perhaps just a few words per line).
> but what do I make of this?
>
> | text-justify:inter-ideograph; /* 1 */
According to the current CSS3 Text draft
http://www.w3.org/TR/css3-text/
it means:
"Justification primarily changes spacing at word separators and between
characters in block scripts. This value is typically used for CJK
languages."
I would expect even IE apply that, more or less, in the versions that
support this setting. The text-justify property was probably invented by
Microsoft but originally implemented with a few values only. Their document
http://msdn.microsoft.com/en-us/library/ms531172%28v=vs.85%29
describes the setting as follows:
"Justifies lines of ideographic text, and increases or decreases both
inter-ideograph and inter-word spacing."
That page is obscure about implementation details, but it seems that
this value was introduced in IE 8 and that in "Standards Mode", you can
alternatively use the name -ms-text-justify for it.
Anyway, I would not expect this setting to have much effect unless the
text contains so-called Chinese-Japanese-Korean characters,
"ideographs". If the text contains them, then the setting affects the
way justification is made, on some browsers, probably in a useful way.
> (All text in the document in question is using Latin characters, at times
> decorated with a diacritical mark chosen from among just a few relatively
> common ones (acute, grave, circumflex, umlaut, ogonek, and their closest
> relatives), but nothing properly "ideographic" like Japanese Kanji or
> Chinese glyphs or the like.)
The declaration still has the effect that it sets text-justify to a
non-default value. The default is auto, and its meaning is up to the
browser. So the declaration _could_ have an effect. The details of
justification are browser-dependent, and a browser could use different
algorithms for texts in Latin letters, too, for different values.
My tests suggest that there is no difference on IE 9. This is what I
expected, but there is really no guarantee.
> Is that just MS being ornery, and covering all bases, even those that are
> thousands of km away from the document involved?
Yep.
> Should I imagine I might
> safely strike that fragment from the CSS that MS is offering me without any
> harm to the visible presentation of that document?
Yep. Removing it probably has no effect (if you do not make mistakes -
there is always a 0.1% chance of making silly mistakes in routine
operations - one of the reasons for "if it works, don't clean it up").
And if it has an effect, there is no reason to expect it to be harmful;
rather the contrary.
> And what about these?
>
> | punctuation-wrap:simple; /* 2 */
> | text-autospace:none; /* 3 */
Such properties do not exist in any CSS3 drafts, as far as I can see.
For the latter, presented as -ms-text-autospace, the page
http://msdn.microsoft.com/en-us/library/ms531164%28v=vs.85%29 refers to
"CSS Text Level 3, Section 9.4", but there isn't even such a section in
the current CSS3 Text draft. Moreover, the initial value, according to
the Microsoft page, is none, so the declaration would do nothing except
for possibly removing the effect of setting this property in other style
sheets (like a user style sheet).
The former has appeared in some drafts and proposals, e.g.
http://www.w3.org/TR/1999/WD-i18n-format-19990322/#a6-1
Note the statement "this property may in the future be expanded to cover
other punctuation behaviors behaviors for other types of punctuation as
well, not just full-width". It would in fact be an interesting feature
in styling, even for Western texts, as it might be used to achieve
"optical justification" instead of mechanical. But it seems that the
idea has been abandoned for now.
To summarize, the odds for getting nasty effects, or *any* effects, from
these declarations, especially for English text, are very, very small.
But Microsoft's idea of ejecting them, apparently for global safety, is
distorted.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/