w3c / eurlreq

European language enablement
7 stars 3 forks source link

Greek uppercase transforms fail for some characters #15

Open r12a opened 4 years ago

r12a commented 4 years ago

Converting text to uppercase requires special behaviour for some Greek characters.

Specs: The text-transform property is defined in CSS Text Module Level 3.

The spec includes mention of the need for user agents to tailor the transforms for a particular language:

The UA must use the full case mappings for Unicode characters, including any conditional casing rules, as defined in the Default Case Algorithms section of The Unicode Standard. If (and only if) the content language of the element is, according to the rules of the document language, known, then any appropriate language-specific rules must be applied as well. These minimally include, but are not limited to, the language-specific rules in Unicode’s SpecialCasing.txt.

Tests & results: i18n test suite, case conversion, Greek These tests focus on monotonic Greek as used for modern texts.

Issues with WebKit:

  1. transform: uppercase doesn't cause Greek words that are all uppercase to lose tonos.
  2. transform: uppercase doesn't convert diphthongs with tonos on the first character so that the tonos is removed but a dialytika is added above the second character in the diphthong.
  3. text-transform: uppercase should cause a disjunctive eta in a Greek sentence keeps its tonos diacritic, but the test is inconclusive because none of the other tonos marks is removed.

Browser bug reports: WebKit

Bugs reported for characters not used in modern Greek: BlinkGecko

r12a commented 4 years ago

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the document. Proposals for changes or discussion of the content can be made in comments below this point.

Relevant gap analysis documents include: _Greek_

xfq commented 2 years ago

Added link to the spec.

xfq commented 2 years ago

Regarding the special casing tests, I tried them and it seems that Chrome 100 and Firefox 97.0.1 also have issues.

xfq commented 2 years ago

Added links to browser bug reports.