Updating UN Codes

  1. UM M19
    1. Open https://unstats.un.org/unsd/methodology/m49/overview/# 
    2. Hit the Copy button, to copy all the data to the clipboard
    3. Open ...workspace/cldr/tools/java/org/unicode/cldr/util/data/external/UnCodes.txt
    4. Hit paste. you should see tab-separated fields
    5. Save
    6. Note: "git diff --word-diff" is helpful for finding that, for example, only a column was added.
  2. EU
    1. Go to  https://europa.eu/european-union/about-eu/countries_en
    2. Find the section "The XX member countries of the EU:
    3. Copy and past into ...workspace/cldr/tools/java/org/unicode/cldr/util/data/external/EuCodes.txt
    4. Compare with last revision; if there are differences, update containment. 
      1. If there are no real differences, do not bother updating EuCodes.txt
    5. Note: "git diff --word-diff" is helpful for finding that, for example, only whitespace changed.
  3. Record the latest version that's been synced as a meta-data//This is new (Aug 2020)! 
    1. Q: Not sure how or where to do this?
  4. Run TestUnContainment
    1. ant -f cldr/tools/java all && ant -f cldr/tools/cldr-unittest unittest -Drununittest.arg='-v -n TestUnContainment'
Comments