Closed Bug 740120 Opened 13 years ago Closed 13 years ago

text-transform:lowercase should use conditional mapping for Greek sigma

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: jfkthame, Assigned: jfkthame)

Details

(Keywords: dev-doc-complete, intl)

Attachments

(2 files, 1 obsolete file)

Applying text-transform:lowercase to Greek text currently converts Σ to σ in all cases. However, when the sigma is word-final, it should be converted to ς instead.

See http://dev.w3.org/csswg/css3-text/#text-transform, and SpecialCasing.txt in the Unicode Character Database.

In general terms, the mapping for Σ should be to σ whenever there is a following Greek letter, or when the character Σ occurs in isolation; and to ς when it is preceded by another letter but not followed by one.

(Compare also bug 307039 regarding the Greek uppercase transform.)
This should provide a decent approximation of the required behavior. I note that Safari already implements something similar, BTW.

We'll want a reftest to go with this...
Attachment #612511 - Flags: review?(smontagu)
Simple reftest for the Sigma behavior. Matches webkit behavior for these testcases.
Attachment #612519 - Flags: review?(smontagu)
Comment on attachment 612511 [details] [diff] [review]
patch, use contextual lowercasing for Greek sigma

Review of attachment 612511 [details] [diff] [review]:
-----------------------------------------------------------------

I'm finding this a little hard to follow and needing to use the reftests as documentation for the code. Can you add comments specifying in which cases we're converting to final sigma and which not (as in comment 0, but in-source)?
I've added comments to try and explain better what's being done - hope this makes it easier to follow.
Attachment #612511 - Attachment is obsolete: true
Attachment #612511 - Flags: review?(smontagu)
Attachment #615134 - Flags: review?(smontagu)
Attachment #615134 - Flags: review?(smontagu) → review+
Attachment #612519 - Flags: review?(smontagu) → review+
I've updated https://developer.mozilla.org/en/CSS/text-transform (summary, examples and the browser compatibility table).
and added a note in: https://developer.mozilla.org/en/Firefox_14_for_developers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: