Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
at-text-transform [2011/12/01 06:47] – [German uppercase] florianat-text-transform [2011/12/01 07:38] florian
Line 118: Line 118:
 } }
  
-@text-transform german-uppercase+@text-transform german-lowercase
 { {
     convert-predefined: lowercase;     convert-predefined: lowercase;
Line 124: Line 124:
 } }
 </code> </code>
 +
 +==== Turkish i/ı ====
 +
 +http://en.wikipedia.org/wiki/Dotted_and_dotless_I
 +
 +In Turkish and a few related languages, dotted and dotless i are distinct letters, both in upper land lower case.
 +
 +The uppercasing and lowercasing algorithm defined for the text-transform property only preserve this when the content language of the element is known.
 +
 +Someone, for example in a user style sheet, may want to apply an uppercase or lowercase transform to a document where language is insufficiently marked up, but known to the author of the style sheet to be Turkish. In this case, the generic uppercase and lowercase transforms would fail, but the following would work. 
 +
 +
 +<code>
 +@text-transform turkic-uppercase
 +{
 +    convert: "i" to "İ";
 +    convert-predefined: uppercase;
 +}
 +
 +@text-transform turkic-lowercase
 +{
 +    convert: "I" to "ı";
 +    convert-predefined: lowercase;
 +}
 +</code>
 +
 +==== Georgian upper/lower case ====
 +
 +http://en.wikipedia.org/wiki/Letter_case#Other_forms_of_case
 +http://en.wikipedia.org/wiki/Georgian_alphabet
 +
 +The Georgian language has used three different unicameral alphabets through history: Asomtavruli, Nuskhuri, and Mkhedruli. Recently, some authors have been using Asomtavruli letters in an otherwise Mkhedruli text, in a way that resembles a bicameral alphabet. One may assume that they would find the following transform useful.
 +
 +@text-transform Mkhedruli-to-Asomtavruli
 +{
 +    convert: "ა","ჵ" to "Ⴀ","Ⴥ";
 +}
 +
 +@text-transform Asomtavruli-to-Mkhedruli
 +{
 +    convert: "Ⴀ","Ⴥ" to "ა","ჵ";
 +}
 +
  
 ===== Cross-language use cases ===== ===== Cross-language use cases =====
 
at-text-transform.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki