Michael[tm] Smith avatar Michael[tm] Smith committed d90e109

make the build grab a copy of the IANA Charsets registry (b=693, r=hsivonen)
http://bugzilla.validator.nu/show_bug.cgi?id=693

Comments (0)

Files changed (1)

 html5specLink = 'http://www.whatwg.org/specs/web-apps/current-work/'
 html5specLoad = 'file:validator/spec/html5.html'
 ianaLang = 'http://www.iana.org/assignments/language-subtag-registry'
+ianaCharset = 'http://www.iana.org/assignments/character-sets'
 aboutPage = 'http://about.validator.nu/'
 microsyntax = 'http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions'
 altAdvice = 'http://wiki.whatwg.org/wiki/Validator.nu_alt_advice'
     '-Dnu.validator.servlet.version=3',
     '-Dnu.validator.servlet.service-name=' + serviceName,
     '-Dorg.whattf.datatype.lang-registry=' + ianaLang,
+    '-Dorg.whattf.datatype.charset-registry=' + ianaCharset,
     '-Dorg.whattf.datatype.warn=true',
     '-Dnu.validator.servlet.about-page=' + aboutPage,
     '-Dnu.validator.servlet.style-sheet=' + stylesheet,
   print "                                Sets the load URL of the HTML5 spec"
   print "  --iana-lang=http://www.iana.org/assignments/language-subtag-registry"
   print "                                Sets the URL for language tag registry"
+  print "  --iana-charset=http://www.iana.org/assignments/character-sets"
+  print "                                Sets the URL for charset registry"
   print "  --about=http://about.validator.nu/"
   print "                                Sets the URL for the about page"
   print "  --stylesheet=http://about.validator.nu/style.css"
       html5specLoad = arg[12:]
     elif arg.startswith("--iana-lang="):
       ianaLang = arg[12:]
+    elif arg.startswith("--iana-charset="):
+      ianaCharset = arg[15:]
     elif arg.startswith("--about="):
       aboutPage = arg[8:]
     elif arg.startswith("--microsyntax="):
           icon = aboutPage + 'icon.png'
         if useLocalCopies:
           ianaLang = 'file:local-entities/www.iana.org/assignments/language-subtag-registry'
+          ianaCharset = 'file:local-entities/www.iana.org/assignments/character-sets'
           microsyntax = 'file:local-entities/wiki.whatwg.org/wiki/MicrosyntaxDescriptions'
           altAdvice = 'file:local-entities/wiki.whatwg.org/wiki/Validator.nu_alt_advice'
         runValidator()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.