-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify text combination. #797
Comments
Regarding
I do not agree with this proposed change, and believe it actually makes the text more difficult to read. The paragraph you are questioning is intended to describe the special case of applicability when it comes to character (text node) children of a Furthermore, the [construct anonymous spans] procedure operates independently from these statements, and, moreover, it is not the intent of the (existing) language to define an alternative interpretation of anonymous span construction. Nonetheless, I am willing to add an informative note in the prologue of 10.2 that refers the reader to the [construct anonymous spans] procedure when interpreting the details of anonymous spans. |
Regarding your second point
The use and definition of To resolve this point, I suggest we remove the [1] https://www.w3.org/TR/2015/CR-css-writing-modes-3-20151215/#text-combine-upright |
I do not understand your fourth point:
Please elaborate what you mean by "not ... shear". In the current specification, shear applies to individual (spacing) glyph areas irregardless of whether text combination applies. |
On the first point, the question is: should each character be enclosed in an anonymous span or are sibling anonymous spans merged and nested anonymous spans removed? I'm concerned that that sentence gives a different result from the [create anonymous span] procedure. I don't understand why you say this "operates independently", the [create anonymous span] procedure is referenced from [flow transformation]. Also clearly enclosing each character in a span does not give the correct result. |
On the 4th point, assuming the fontShear property is applied to individual glyph areas, the shear transform depends on the inline progression direction:
which in turns depends on the writing mode:
defines by the tts:writingMode
In the case of vertical text with tate-chu-yoko, given that tts:writingMode sets a vertical writing mode, the shear transform is the one corresponding to the Y axis. |
This thread is somewhat overtaken by events (see #803). As for the 4th point above, even though a vertical writing mode applies to the primary line areas, the use of tate-chu-yoko causes the effective creation of an inline block set in horizontal writing mode. Therefore, when shear is applied to individual glyphs contained within the inline block, the shear direction is different from shear applied to individual glyphs in the same line outside the inline block. |
At the very least, this should be said explicitly in the spec. The current text can be interpreted differently. |
"For the purpose of determining applicability of this style property, each character child of a p element is considered to be enclosed in an anonymous span."
I know this is common text used plenty of times, but I find it nevertheless confusing and possibly wrong in this case. I checked how the following paragraphs would render in TTPE and the results are different.
セミ25の鳴き声
セミ25の鳴き声
I think we should change the text (throughout the spec) to say:
"For the purpose of determining applicability of this style property, the [construct anonymous spans] procedure applies."
because the anonymous span construction procedure is clearer, creates on span per text node and removes unnecessary ones (nested spans).
This relates to #784.
"If the specified value of this attribute is digits, then all affected characters should be combined if they are a sequence of a digits which length is equal to or less than a specified count, or two (2) if no count is specified."
This seems to be contradictory to the example:
AB34
Here all the affected characters do not form a sequence of digits.
(Note: I tested in TTPE and it does not seem to be supported)
Also it is not clear what would happen if multiple sequences of digits would be present like in:
AB34AB34
or
AB3434AB343434
I think it should say:
"If the specified value of this attribute is digits, then among all affected characters, the longest sequences of consecutive digits of length L or less (where L is the specified count or two (2) if no count is specified) are formed; and within each such sequence the characters are combined."
CSS limits the range: "Integers outside the range 2-4 are invalid."
We should do the same.
The spec says:
"Combination applies after all affected characters have been processed as if a horizontal writing mode applied."
Are we clear that the horizontal mode only applies for combination and not for other features such as shear (See Add support for block level shear. #784).
The text was updated successfully, but these errors were encountered: