larvitgeodata
Version:
Geo data, primarily ISO territories, languages etc. Data fetched mostly from CLDR.
29 lines (28 loc) • 1.68 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: 11914 $"/>
<transforms>
<transform source="lt" target="Title" direction="forward">
<comment># Copyright (C) 2011-2014, Google, Inc.; Unicode, Inc.; and others. All Rights Reserved.</comment>
<comment># Make any string of letters after a cased letter be lower</comment>
<tRule>::NFD();</tRule>
<tRule>[:cased:] [:case-ignorable:]* {I } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → i \u0307;</tRule>
<tRule>[:cased:] [:case-ignorable:]* {J } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → j \u0307;</tRule>
<tRule>[:cased:] [:case-ignorable:]* {I \u0328 } [^[:ccc=Not_Reordered:][:ccc=Above:]]* [:ccc=Above:] → i \u0328 \u0307;</tRule>
<tRule>[:cased:] [:case-ignorable:]* {I \u0300 → i \u0307 \u0300;</tRule>
<tRule>[:cased:] [:case-ignorable:]* {I \u0301 → i \u0307 \u0301;</tRule>
<tRule>[:cased:] [:case-ignorable:]* {I \u0303 → i \u0307 \u0303;</tRule>
<tRule>[:cased:] [:case-ignorable:]* { (.) → &Any-Lower($1) ;</tRule>
<comment># Otherwise all lowercase go to upper (titlecase stay as is)</comment>
<tRule>[:Soft_Dotted:] [^[:ccc=Not_Reordered:][:ccc=Above:]]* { \u0307 → ;</tRule>
<tRule>([:Lowercase:]) → &Any-Upper($1) ;</tRule>
<tRule>::NFC();</tRule>
</transform>
</transforms>
</supplementalData>