[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 

Changeset 7432


Ignore:
Timestamp:
07/20/12 12:36:22 (5 years ago)
Author:
travis
Message:

cldrbug 4374: Add gender information e.g neutral, maleTaints, mixedNeutral

Location:
branches/jchye/converter/java/org/unicode/cldr/icu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/jchye/converter/java/org/unicode/cldr/icu/NewLdml2IcuConverter.java

    r7430 r7432  
    2020import org.unicode.cldr.tool.Option.Options; 
    2121import org.unicode.cldr.util.CLDRFile.DraftStatus; 
    22 import org.unicode.cldr.util.Builder; 
    2322import org.unicode.cldr.util.Factory; 
    2423import org.unicode.cldr.util.SupplementalDataInfo; 
     
    3736 * It may make more sense down the road to refactor CLDRConverterTool such that 
    3837 * this class doesn't inherit unnecessary functionality. 
    39  *  
     38 * 
    4039 * @author jchye 
    4140 */ 
     
    4443 
    4544    static final Pattern SEMI = Pattern.compile("\\s*+;\\s*+"); 
    46      
     45 
    4746    enum Type { 
    4847        locale, likelySubtags, metaZones, numberingSystems, plurals, 
    49         supplementalData, metadata, windowsZones; 
     48        supplementalData, metadata, windowsZones, genderList; 
    5049    } 
    5150 
     
    8584        return dirMapping; 
    8685    } 
    87      
     86 
    8887    private static Map<String, String> loadMapFromFile(String filename) { 
    8988        Map<String, String> map = new HashMap<String, String>(); 
     
    184183        } 
    185184    } 
    186      
     185 
    187186    private void processPlurals() { 
    188187        PluralsMapper mapper = new PluralsMapper(sourceDir); 
    189188        writeIcuData(mapper.fillFromCldr(), destinationDir); 
    190189    } 
    191      
     190 
    192191    private void processSupplementalData(Type type, String cldrVersion) { 
    193192        SupplementalMapper mapper = new SupplementalMapper(sourceDir, cldrVersion); 
     
    244243    /** 
    245244     * In this prototype, just convert one file. 
    246      *  
     245     * 
    247246     * @param args 
    248247     * @throws IOException 
  • branches/jchye/converter/java/org/unicode/cldr/icu/ldml2icu_supplemental.txt

    r7430 r7432  
    155155# windowsZones.txt 
    156156//supplementalData/windowsZones/mapTimezones[@otherVersion="%W"][@typeVersion="%W"]/mapZone[@type="(%A)"][@other="(%A)"][@territory="(%W)"] ; /mapTimezones/"$2"/$3 ; values="$1" 
     157 
     158# genderList.txt 
     159//supplementalData/gender/personList[@type="(%W)"][@locales="(%W)"] ; /genderList/$2 ; values=$1 
Note: See TracChangeset for help on using the changeset viewer.