cldr
Version:
Library for extracting data from CLDR (the Unicode Common Locale Data Repository)
30 lines (29 loc) • 1.36 kB
text/xml
<!--
Copyright © 1991-2014 Unicode, Inc.
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
For terms of use, see http://www.unicode.org/copyright.html
-->
<supplementalData>
<version number="$Revision$"/>
<transforms>
<transform source="lt" target="Title" direction="forward" alias="lt-t-d0-title">
<tRule><![CDATA[
# Make any string of letters after a cased letter be lower
::NFD();
[:cased:] [:case-ignorable:]* {I } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → i \u0307;
[:cased:] [:case-ignorable:]* {J } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → j \u0307;
[:cased:] [:case-ignorable:]* {I \u0328 } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → i \u0328 \u0307;
[:cased:] [:case-ignorable:]* {I \u0300 → i \u0307 \u0300;
[:cased:] [:case-ignorable:]* {I \u0301 → i \u0307 \u0301;
[:cased:] [:case-ignorable:]* {I \u0303 → i \u0307 \u0303;
[:cased:] [:case-ignorable:]* { (.) → &Any-Lower($1) ;
# Otherwise all lowercase go to upper (titlecase stay as is)
[:Soft_Dotted:] [^[:ccc=Not_Reordered:][:ccc=Above:]]* { \u0307 → ;
([:Lowercase:]) → &Any-Upper($1) ;
::NFC();
]]></tRule>
</transform>
</transforms>
</supplementalData>