cchardet 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.gitmodules +3 -0
- data/.rubocop.yml +11 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +10 -0
- data/README.md +35 -0
- data/Rakefile +15 -0
- data/cchardet.gemspec +30 -0
- data/ext/cchardet/extconf.rb +26 -0
- data/ext/uchardet/.gitignore +1 -0
- data/ext/uchardet/.gitlab-ci.yml +106 -0
- data/ext/uchardet/AUTHORS +16 -0
- data/ext/uchardet/CMakeLists.txt +74 -0
- data/ext/uchardet/COPYING +1316 -0
- data/ext/uchardet/INSTALL +26 -0
- data/ext/uchardet/README.md +295 -0
- data/ext/uchardet/build-mac/uchardet.cpp +7 -0
- data/ext/uchardet/build-mac/uchardet.xcodeproj/project.pbxproj +543 -0
- data/ext/uchardet/build-mac/uchardet.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/uchardet/build-mac/uchardet.xcodeproj/project.xcworkspace/xcshareddata/uchardet.xccheckout +41 -0
- data/ext/uchardet/build-mac/uchardet.xcodeproj/xcshareddata/xcschemes/uchardet-ios.xcscheme +77 -0
- data/ext/uchardet/build-mac/uchardet.xcodeproj/xcshareddata/xcschemes/uchardet.xcscheme +77 -0
- data/ext/uchardet/doc/CMakeLists.txt +6 -0
- data/ext/uchardet/doc/README.maintainer +59 -0
- data/ext/uchardet/doc/uchardet.1 +18 -0
- data/ext/uchardet/script/BuildLangModel.py +533 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangArabicModel.log +142 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangCroatianModel.log +157 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangCzechModel.log +161 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangDanishModel.log +158 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangEsperantoModel.log +110 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangEstonianModel.log +159 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangFinnishModel.log +156 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangFrenchModel.log +116 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangGermanModel.log +159 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangGreekModel.log +272 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangHungarianModel.log +109 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangIrishModel.log +156 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangItalianModel.log +162 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangLatvianModel.log +162 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangLithuanianModel.log +162 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangMalteseModel.log +147 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangPolishModel.log +154 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangPortugueseModel.log +166 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangRomanianModel.log +153 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangSlovakModel.log +158 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangSloveneModel.log +148 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangSpanishModel.log +109 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangSwedishModel.log +151 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangThaiModel.log +141 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangTurkishModel.log +113 -0
- data/ext/uchardet/script/BuildLangModelLogs/LangVietnameseModel.log +121 -0
- data/ext/uchardet/script/README +63 -0
- data/ext/uchardet/script/charsets/codepoints.py +53 -0
- data/ext/uchardet/script/charsets/db.py +73 -0
- data/ext/uchardet/script/charsets/ibm852.py +72 -0
- data/ext/uchardet/script/charsets/iso-8859-1.py +85 -0
- data/ext/uchardet/script/charsets/iso-8859-10.py +73 -0
- data/ext/uchardet/script/charsets/iso-8859-11.py +77 -0
- data/ext/uchardet/script/charsets/iso-8859-13.py +72 -0
- data/ext/uchardet/script/charsets/iso-8859-15.py +80 -0
- data/ext/uchardet/script/charsets/iso-8859-16.py +83 -0
- data/ext/uchardet/script/charsets/iso-8859-2.py +73 -0
- data/ext/uchardet/script/charsets/iso-8859-3.py +75 -0
- data/ext/uchardet/script/charsets/iso-8859-4.py +73 -0
- data/ext/uchardet/script/charsets/iso-8859-6.py +73 -0
- data/ext/uchardet/script/charsets/iso-8859-7.py +73 -0
- data/ext/uchardet/script/charsets/iso-8859-9.py +76 -0
- data/ext/uchardet/script/charsets/mac-centraleurope.py +72 -0
- data/ext/uchardet/script/charsets/tis-620.py +77 -0
- data/ext/uchardet/script/charsets/viscii.py +72 -0
- data/ext/uchardet/script/charsets/windows-1250.py +75 -0
- data/ext/uchardet/script/charsets/windows-1252.py +76 -0
- data/ext/uchardet/script/charsets/windows-1253.py +72 -0
- data/ext/uchardet/script/charsets/windows-1256.py +75 -0
- data/ext/uchardet/script/charsets/windows-1257.py +72 -0
- data/ext/uchardet/script/charsets/windows-1258.py +72 -0
- data/ext/uchardet/script/debug.sh +9 -0
- data/ext/uchardet/script/header-template.cpp +38 -0
- data/ext/uchardet/script/langs/ar.py +59 -0
- data/ext/uchardet/script/langs/cs.py +80 -0
- data/ext/uchardet/script/langs/da.py +69 -0
- data/ext/uchardet/script/langs/de.py +69 -0
- data/ext/uchardet/script/langs/el.py +55 -0
- data/ext/uchardet/script/langs/eo.py +67 -0
- data/ext/uchardet/script/langs/es.py +69 -0
- data/ext/uchardet/script/langs/et.py +57 -0
- data/ext/uchardet/script/langs/fi.py +60 -0
- data/ext/uchardet/script/langs/fr.py +79 -0
- data/ext/uchardet/script/langs/ga.py +60 -0
- data/ext/uchardet/script/langs/hr.py +59 -0
- data/ext/uchardet/script/langs/hu.py +66 -0
- data/ext/uchardet/script/langs/it.py +56 -0
- data/ext/uchardet/script/langs/lt.py +70 -0
- data/ext/uchardet/script/langs/lv.py +69 -0
- data/ext/uchardet/script/langs/mt.py +80 -0
- data/ext/uchardet/script/langs/pl.py +81 -0
- data/ext/uchardet/script/langs/pt.py +80 -0
- data/ext/uchardet/script/langs/ro.py +65 -0
- data/ext/uchardet/script/langs/sk.py +80 -0
- data/ext/uchardet/script/langs/sl.py +59 -0
- data/ext/uchardet/script/langs/sv.py +56 -0
- data/ext/uchardet/script/langs/th.py +55 -0
- data/ext/uchardet/script/langs/tr.py +67 -0
- data/ext/uchardet/script/langs/vi.py +64 -0
- data/ext/uchardet/script/release.sh +8 -0
- data/ext/uchardet/script/win32.sh +7 -0
- data/ext/uchardet/src/Big5Freq.tab +943 -0
- data/ext/uchardet/src/CMakeLists.txt +160 -0
- data/ext/uchardet/src/CharDistribution.cpp +109 -0
- data/ext/uchardet/src/CharDistribution.h +242 -0
- data/ext/uchardet/src/EUCKRFreq.tab +614 -0
- data/ext/uchardet/src/EUCTWFreq.tab +447 -0
- data/ext/uchardet/src/GB2312Freq.tab +491 -0
- data/ext/uchardet/src/JISFreq.tab +589 -0
- data/ext/uchardet/src/JpCntx.cpp +230 -0
- data/ext/uchardet/src/JpCntx.h +140 -0
- data/ext/uchardet/src/LangModels/LangArabicModel.cpp +267 -0
- data/ext/uchardet/src/LangModels/LangBulgarianModel.cpp +249 -0
- data/ext/uchardet/src/LangModels/LangCroatianModel.cpp +298 -0
- data/ext/uchardet/src/LangModels/LangCzechModel.cpp +285 -0
- data/ext/uchardet/src/LangModels/LangDanishModel.cpp +201 -0
- data/ext/uchardet/src/LangModels/LangEsperantoModel.cpp +142 -0
- data/ext/uchardet/src/LangModels/LangEstonianModel.cpp +268 -0
- data/ext/uchardet/src/LangModels/LangFinnishModel.cpp +297 -0
- data/ext/uchardet/src/LangModels/LangFrenchModel.cpp +209 -0
- data/ext/uchardet/src/LangModels/LangGermanModel.cpp +170 -0
- data/ext/uchardet/src/LangModels/LangGreekModel.cpp +231 -0
- data/ext/uchardet/src/LangModels/LangHebrewModel.cpp +220 -0
- data/ext/uchardet/src/LangModels/LangHungarianModel.cpp +171 -0
- data/ext/uchardet/src/LangModels/LangIrishModel.cpp +234 -0
- data/ext/uchardet/src/LangModels/LangItalianModel.cpp +269 -0
- data/ext/uchardet/src/LangModels/LangLatvianModel.cpp +210 -0
- data/ext/uchardet/src/LangModels/LangLithuanianModel.cpp +209 -0
- data/ext/uchardet/src/LangModels/LangMalteseModel.cpp +138 -0
- data/ext/uchardet/src/LangModels/LangPolishModel.cpp +304 -0
- data/ext/uchardet/src/LangModels/LangPortugueseModel.cpp +241 -0
- data/ext/uchardet/src/LangModels/LangRomanianModel.cpp +236 -0
- data/ext/uchardet/src/LangModels/LangRussianModel.cpp +367 -0
- data/ext/uchardet/src/LangModels/LangSlovakModel.cpp +293 -0
- data/ext/uchardet/src/LangModels/LangSloveneModel.cpp +264 -0
- data/ext/uchardet/src/LangModels/LangSpanishModel.cpp +204 -0
- data/ext/uchardet/src/LangModels/LangSwedishModel.cpp +266 -0
- data/ext/uchardet/src/LangModels/LangThaiModel.cpp +267 -0
- data/ext/uchardet/src/LangModels/LangTurkishModel.cpp +175 -0
- data/ext/uchardet/src/LangModels/LangVietnameseModel.cpp +249 -0
- data/ext/uchardet/src/nsBig5Prober.cpp +88 -0
- data/ext/uchardet/src/nsBig5Prober.h +75 -0
- data/ext/uchardet/src/nsCharSetProber.cpp +125 -0
- data/ext/uchardet/src/nsCharSetProber.h +77 -0
- data/ext/uchardet/src/nsCodingStateMachine.h +105 -0
- data/ext/uchardet/src/nsEUCJPProber.cpp +99 -0
- data/ext/uchardet/src/nsEUCJPProber.h +79 -0
- data/ext/uchardet/src/nsEUCKRProber.cpp +91 -0
- data/ext/uchardet/src/nsEUCKRProber.h +81 -0
- data/ext/uchardet/src/nsEUCTWProber.cpp +91 -0
- data/ext/uchardet/src/nsEUCTWProber.h +75 -0
- data/ext/uchardet/src/nsEscCharsetProber.cpp +101 -0
- data/ext/uchardet/src/nsEscCharsetProber.h +70 -0
- data/ext/uchardet/src/nsEscSM.cpp +267 -0
- data/ext/uchardet/src/nsGB2312Prober.cpp +96 -0
- data/ext/uchardet/src/nsGB2312Prober.h +77 -0
- data/ext/uchardet/src/nsHebrewProber.cpp +194 -0
- data/ext/uchardet/src/nsHebrewProber.h +177 -0
- data/ext/uchardet/src/nsLatin1Prober.cpp +182 -0
- data/ext/uchardet/src/nsLatin1Prober.h +73 -0
- data/ext/uchardet/src/nsMBCSGroupProber.cpp +242 -0
- data/ext/uchardet/src/nsMBCSGroupProber.h +81 -0
- data/ext/uchardet/src/nsMBCSSM.cpp +513 -0
- data/ext/uchardet/src/nsPkgInt.h +89 -0
- data/ext/uchardet/src/nsSBCSGroupProber.cpp +343 -0
- data/ext/uchardet/src/nsSBCSGroupProber.h +71 -0
- data/ext/uchardet/src/nsSBCharSetProber.cpp +160 -0
- data/ext/uchardet/src/nsSBCharSetProber.h +258 -0
- data/ext/uchardet/src/nsSJISProber.cpp +98 -0
- data/ext/uchardet/src/nsSJISProber.h +81 -0
- data/ext/uchardet/src/nsUTF8Prober.cpp +87 -0
- data/ext/uchardet/src/nsUTF8Prober.h +66 -0
- data/ext/uchardet/src/nsUniversalDetector.cpp +339 -0
- data/ext/uchardet/src/nsUniversalDetector.h +91 -0
- data/ext/uchardet/src/nscore.h +59 -0
- data/ext/uchardet/src/prmem.h +49 -0
- data/ext/uchardet/src/symbols.cmake +41 -0
- data/ext/uchardet/src/tools/CMakeLists.txt +23 -0
- data/ext/uchardet/src/tools/uchardet.cpp +254 -0
- data/ext/uchardet/src/uchardet.cpp +274 -0
- data/ext/uchardet/src/uchardet.h +136 -0
- data/ext/uchardet/test/CMakeLists.txt +47 -0
- data/ext/uchardet/test/ar/iso-8859-6.txt +3 -0
- data/ext/uchardet/test/ar/utf-8.txt +3 -0
- data/ext/uchardet/test/ar/windows-1256.txt +3 -0
- data/ext/uchardet/test/bg/windows-1251.txt +3 -0
- data/ext/uchardet/test/cs/ibm852.txt +4 -0
- data/ext/uchardet/test/cs/iso-8859-2.txt +4 -0
- data/ext/uchardet/test/cs/mac-centraleurope.txt +4 -0
- data/ext/uchardet/test/cs/utf-8.txt +4 -0
- data/ext/uchardet/test/cs/windows-1250.txt +4 -0
- data/ext/uchardet/test/da/iso-8859-1.txt +7 -0
- data/ext/uchardet/test/da/iso-8859-15.txt +10 -0
- data/ext/uchardet/test/da/utf-8.txt +10 -0
- data/ext/uchardet/test/da/windows-1252.txt +10 -0
- data/ext/uchardet/test/de/iso-8859-1.txt +11 -0
- data/ext/uchardet/test/de/windows-1252.txt +11 -0
- data/ext/uchardet/test/el/iso-8859-7.txt +3 -0
- data/ext/uchardet/test/el/utf-8.txt +3 -0
- data/ext/uchardet/test/el/windows-1253.txt +5 -0
- data/ext/uchardet/test/en/ascii.txt +4 -0
- data/ext/uchardet/test/eo/iso-8859-3.txt +7 -0
- data/ext/uchardet/test/es/iso-8859-1.txt +5 -0
- data/ext/uchardet/test/es/iso-8859-15.txt +5 -0
- data/ext/uchardet/test/es/utf-8.txt +5 -0
- data/ext/uchardet/test/es/windows-1252.txt +5 -0
- data/ext/uchardet/test/et/iso-8859-13.txt +6 -0
- data/ext/uchardet/test/et/iso-8859-15.txt +6 -0
- data/ext/uchardet/test/et/iso-8859-4.txt +6 -0
- data/ext/uchardet/test/et/utf-8.txt +6 -0
- data/ext/uchardet/test/et/windows-1252.txt +6 -0
- data/ext/uchardet/test/et/windows-1257.txt +6 -0
- data/ext/uchardet/test/fi/iso-8859-1.txt +8 -0
- data/ext/uchardet/test/fi/utf-8.txt +8 -0
- data/ext/uchardet/test/fr/iso-8859-1.txt +5 -0
- data/ext/uchardet/test/fr/iso-8859-15.txt +16 -0
- data/ext/uchardet/test/fr/utf-16.be +0 -0
- data/ext/uchardet/test/fr/utf-32.le +0 -0
- data/ext/uchardet/test/fr/utf-8.txt +14 -0
- data/ext/uchardet/test/fr/windows-1252.txt +3 -0
- data/ext/uchardet/test/ga/iso-8859-1.txt +6 -0
- data/ext/uchardet/test/ga/utf-8.txt +6 -0
- data/ext/uchardet/test/ga/windows-1252.txt +6 -0
- data/ext/uchardet/test/he/iso-8859-8.txt +2 -0
- data/ext/uchardet/test/he/utf-8.txt +3 -0
- data/ext/uchardet/test/he/windows-1255.txt +1 -0
- data/ext/uchardet/test/hr/ibm852.txt +4 -0
- data/ext/uchardet/test/hr/iso-8859-13.txt +4 -0
- data/ext/uchardet/test/hr/iso-8859-16.txt +4 -0
- data/ext/uchardet/test/hr/iso-8859-2.txt +4 -0
- data/ext/uchardet/test/hr/mac-centraleurope.txt +4 -0
- data/ext/uchardet/test/hr/utf-8.txt +4 -0
- data/ext/uchardet/test/hr/windows-1250.txt +4 -0
- data/ext/uchardet/test/hu/iso-8859-2.txt +3 -0
- data/ext/uchardet/test/hu/windows-1250.txt +1 -0
- data/ext/uchardet/test/it/iso-8859-1.txt +18 -0
- data/ext/uchardet/test/it/utf-8.txt +18 -0
- data/ext/uchardet/test/ja/euc-jp.txt +10 -0
- data/ext/uchardet/test/ja/iso-2022-jp.txt +8 -0
- data/ext/uchardet/test/ja/shift_jis.txt +1 -0
- data/ext/uchardet/test/ja/utf-16be.txt +0 -0
- data/ext/uchardet/test/ja/utf-16le.txt +0 -0
- data/ext/uchardet/test/ja/utf-8.txt +9 -0
- data/ext/uchardet/test/ko/iso-2022-kr.txt +8 -0
- data/ext/uchardet/test/ko/uhc.smi +16 -0
- data/ext/uchardet/test/ko/utf-16.le +0 -0
- data/ext/uchardet/test/ko/utf-32.be +0 -0
- data/ext/uchardet/test/ko/utf-8.txt +3 -0
- data/ext/uchardet/test/lt/iso-8859-10.txt +3 -0
- data/ext/uchardet/test/lt/iso-8859-13.txt +3 -0
- data/ext/uchardet/test/lt/iso-8859-4.txt +3 -0
- data/ext/uchardet/test/lt/utf-8.txt +3 -0
- data/ext/uchardet/test/lv/iso-8859-10.txt +6 -0
- data/ext/uchardet/test/lv/iso-8859-13.txt +6 -0
- data/ext/uchardet/test/lv/iso-8859-4.txt +6 -0
- data/ext/uchardet/test/lv/utf-8.txt +6 -0
- data/ext/uchardet/test/mt/iso-8859-3.txt +4 -0
- data/ext/uchardet/test/mt/utf-8.txt +4 -0
- data/ext/uchardet/test/pl/ibm852.txt +3 -0
- data/ext/uchardet/test/pl/iso-8859-13.txt +3 -0
- data/ext/uchardet/test/pl/iso-8859-16.txt +3 -0
- data/ext/uchardet/test/pl/iso-8859-2.txt +3 -0
- data/ext/uchardet/test/pl/mac-centraleurope.txt +3 -0
- data/ext/uchardet/test/pl/utf-8.txt +3 -0
- data/ext/uchardet/test/pl/windows-1250.txt +3 -0
- data/ext/uchardet/test/pt/iso-8859-1.txt +6 -0
- data/ext/uchardet/test/pt/utf-8.txt +6 -0
- data/ext/uchardet/test/ro/ibm852.txt +9 -0
- data/ext/uchardet/test/ro/iso-8859-16.txt +9 -0
- data/ext/uchardet/test/ro/utf-8.txt +9 -0
- data/ext/uchardet/test/ro/windows-1250.txt +9 -0
- data/ext/uchardet/test/ru/ibm855.txt +5 -0
- data/ext/uchardet/test/ru/ibm866.txt +11 -0
- data/ext/uchardet/test/ru/iso-8859-5.txt +3 -0
- data/ext/uchardet/test/ru/koi8-r.txt +1 -0
- data/ext/uchardet/test/ru/mac-cyrillic.txt +9 -0
- data/ext/uchardet/test/ru/windows-1251.txt +4 -0
- data/ext/uchardet/test/sk/ibm852.txt +3 -0
- data/ext/uchardet/test/sk/iso-8859-2.txt +3 -0
- data/ext/uchardet/test/sk/mac-centraleurope.txt +3 -0
- data/ext/uchardet/test/sk/utf-8.txt +3 -0
- data/ext/uchardet/test/sk/windows-1250.txt +3 -0
- data/ext/uchardet/test/sl/ibm852.txt +9 -0
- data/ext/uchardet/test/sl/iso-8859-16.txt +9 -0
- data/ext/uchardet/test/sl/iso-8859-2.txt +9 -0
- data/ext/uchardet/test/sl/mac-centraleurope.txt +9 -0
- data/ext/uchardet/test/sl/utf-8.txt +9 -0
- data/ext/uchardet/test/sl/windows-1250.txt +9 -0
- data/ext/uchardet/test/sv/iso-8859-1.txt +10 -0
- data/ext/uchardet/test/sv/utf-8.txt +10 -0
- data/ext/uchardet/test/sv/windows-1252.txt +10 -0
- data/ext/uchardet/test/th/iso-8859-11.txt +5 -0
- data/ext/uchardet/test/th/tis-620.txt +5 -0
- data/ext/uchardet/test/th/utf-8.txt +1 -0
- data/ext/uchardet/test/tr/iso-8859-3.txt +13 -0
- data/ext/uchardet/test/tr/iso-8859-9.txt +13 -0
- data/ext/uchardet/test/uchardet-tests.c +130 -0
- data/ext/uchardet/test/vi/utf-8.txt +4 -0
- data/ext/uchardet/test/vi/viscii.txt +4 -0
- data/ext/uchardet/test/vi/windows-1258.txt +4 -0
- data/ext/uchardet/test/zh/big5.txt +1 -0
- data/ext/uchardet/test/zh/euc-tw.txt +1 -0
- data/ext/uchardet/test/zh/gb18030.txt +1 -0
- data/ext/uchardet/test/zh/utf-8.txt +1 -0
- data/ext/uchardet/uchardet.doap +51 -0
- data/ext/uchardet/uchardet.pc.in +10 -0
- data/lib/cchardet.rb +56 -0
- data/lib/cchardet/lib_finder.rb +32 -0
- data/lib/cchardet/version.rb +5 -0
- metadata +362 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# ##### BEGIN LICENSE BLOCK #####
|
|
5
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
6
|
+
#
|
|
7
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
|
8
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
9
|
+
# the License. You may obtain a copy of the License at
|
|
10
|
+
# http://www.mozilla.org/MPL/
|
|
11
|
+
#
|
|
12
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
14
|
+
# for the specific language governing rights and limitations under the
|
|
15
|
+
# License.
|
|
16
|
+
#
|
|
17
|
+
# The Original Code is Mozilla Universal charset detector code.
|
|
18
|
+
#
|
|
19
|
+
# The Initial Developer of the Original Code is
|
|
20
|
+
# Netscape Communications Corporation.
|
|
21
|
+
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
22
|
+
# the Initial Developer. All Rights Reserved.
|
|
23
|
+
#
|
|
24
|
+
# Contributor(s):
|
|
25
|
+
# Jehan <jehan@girinstud.io>
|
|
26
|
+
#
|
|
27
|
+
# Alternatively, the contents of this file may be used under the terms of
|
|
28
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
29
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
30
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
31
|
+
# of those above. If you wish to allow use of your version of this file only
|
|
32
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
33
|
+
# use your version of this file under the terms of the MPL, indicate your
|
|
34
|
+
# decision by deleting the provisions above and replace them with the notice
|
|
35
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
36
|
+
# the provisions above, a recipient may use your version of this file under
|
|
37
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
38
|
+
#
|
|
39
|
+
# ##### END LICENSE BLOCK #####
|
|
40
|
+
|
|
41
|
+
from codepoints import *
|
|
42
|
+
|
|
43
|
+
# ISO-8859-1 is the full 8-bit range, IANA-defined, superset of ISO/CEI 8859-1.
|
|
44
|
+
# It is basically the same as ISO/CEI 8859-1, but with control characters.
|
|
45
|
+
# As far as I can see, `iconv` has no support for the ISO/CEI 8859-1 subset,
|
|
46
|
+
# so there is no need for us to support it anyway.
|
|
47
|
+
|
|
48
|
+
name = 'ISO-8859-1'
|
|
49
|
+
aliases = ['ISO_8859-1:1987', 'ISO_8859-1', 'iso-ir-100',
|
|
50
|
+
'csISOLatin1', 'latin1', 'l1', 'IBM819', 'CP819']
|
|
51
|
+
|
|
52
|
+
language = \
|
|
53
|
+
{
|
|
54
|
+
# Languages with complete coverage.
|
|
55
|
+
# Some languages actually have several alphabets and only one of them is
|
|
56
|
+
# compatible with ISO-8859-1 (ex: Kurdish).
|
|
57
|
+
# Some don't have a ISO language code (like Leonese, for which I used
|
|
58
|
+
# a Glottolog code).
|
|
59
|
+
'complete': [ 'af', 'sq', 'eu', 'br', 'co', 'da', 'en', 'fo', 'gl', 'de',
|
|
60
|
+
'is', 'id', 'it', 'ku', 'leon1250', 'lb', 'ms', 'gv', 'no',
|
|
61
|
+
'oc', 'pt', 'rm', 'gd', 'es', 'sw', 'sv', 'wa' ],
|
|
62
|
+
'incomplete': [ 'ca', 'cs', 'nl', 'et', 'fi', 'fr', 'gn', 'hu', 'ga',
|
|
63
|
+
'la', 'mi', 'ro', 'tr', 'cy' ]
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
# X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF #
|
|
67
|
+
charmap = \
|
|
68
|
+
[
|
|
69
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,RET,CTR,CTR,RET,CTR,CTR, # 0X
|
|
70
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 1X
|
|
71
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # 2X
|
|
72
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,SYM,SYM,SYM,SYM,SYM,SYM, # 3X
|
|
73
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 4X
|
|
74
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM, # 5X
|
|
75
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 6X
|
|
76
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,CTR, # 7X
|
|
77
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 8X
|
|
78
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 9X
|
|
79
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # AX
|
|
80
|
+
SYM,SYM,SYM,SYM,SYM,LET,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # BX
|
|
81
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # CX
|
|
82
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,LET, # DX
|
|
83
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # EX
|
|
84
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,LET, # FX
|
|
85
|
+
]
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# ##### BEGIN LICENSE BLOCK #####
|
|
5
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
6
|
+
#
|
|
7
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
|
8
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
9
|
+
# the License. You may obtain a copy of the License at
|
|
10
|
+
# http://www.mozilla.org/MPL/
|
|
11
|
+
#
|
|
12
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
14
|
+
# for the specific language governing rights and limitations under the
|
|
15
|
+
# License.
|
|
16
|
+
#
|
|
17
|
+
# The Original Code is Mozilla Universal charset detector code.
|
|
18
|
+
#
|
|
19
|
+
# The Initial Developer of the Original Code is
|
|
20
|
+
# Netscape Communications Corporation.
|
|
21
|
+
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
22
|
+
# the Initial Developer. All Rights Reserved.
|
|
23
|
+
#
|
|
24
|
+
# Contributor(s):
|
|
25
|
+
# Jehan <jehan@girinstud.io>
|
|
26
|
+
#
|
|
27
|
+
# Alternatively, the contents of this file may be used under the terms of
|
|
28
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
29
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
30
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
31
|
+
# of those above. If you wish to allow use of your version of this file only
|
|
32
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
33
|
+
# use your version of this file under the terms of the MPL, indicate your
|
|
34
|
+
# decision by deleting the provisions above and replace them with the notice
|
|
35
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
36
|
+
# the provisions above, a recipient may use your version of this file under
|
|
37
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
38
|
+
#
|
|
39
|
+
# ##### END LICENSE BLOCK #####
|
|
40
|
+
|
|
41
|
+
from codepoints import *
|
|
42
|
+
|
|
43
|
+
name = 'ISO-8859-10'
|
|
44
|
+
aliases = ['ISO_8859-10:1992', 'ISO_8859-10', 'iso-ir-157',
|
|
45
|
+
'csISOLatin6', 'latin6', 'l6']
|
|
46
|
+
|
|
47
|
+
language = \
|
|
48
|
+
{
|
|
49
|
+
# Nordic languages. Supersedes ISO-8859-4.
|
|
50
|
+
'complete': [ 'et', 'lv', 'lt', 'kl', 'saam1281' ],
|
|
51
|
+
'incomplete': []
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
# X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF #
|
|
55
|
+
charmap = \
|
|
56
|
+
[
|
|
57
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,RET,CTR,CTR,RET,CTR,CTR, # 0X
|
|
58
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 1X
|
|
59
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # 2X
|
|
60
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,SYM,SYM,SYM,SYM,SYM,SYM, # 3X
|
|
61
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 4X
|
|
62
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM, # 5X
|
|
63
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 6X
|
|
64
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,CTR, # 7X
|
|
65
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 8X
|
|
66
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 9X
|
|
67
|
+
SYM,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,SYM,LET,LET, # AX
|
|
68
|
+
SYM,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,LET, # BX
|
|
69
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # CX
|
|
70
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # DX
|
|
71
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # EX
|
|
72
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # FX
|
|
73
|
+
]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# ##### BEGIN LICENSE BLOCK #####
|
|
5
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
6
|
+
#
|
|
7
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
|
8
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
9
|
+
# the License. You may obtain a copy of the License at
|
|
10
|
+
# http://www.mozilla.org/MPL/
|
|
11
|
+
#
|
|
12
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
14
|
+
# for the specific language governing rights and limitations under the
|
|
15
|
+
# License.
|
|
16
|
+
#
|
|
17
|
+
# The Original Code is Mozilla Universal charset detector code.
|
|
18
|
+
#
|
|
19
|
+
# The Initial Developer of the Original Code is
|
|
20
|
+
# Netscape Communications Corporation.
|
|
21
|
+
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
22
|
+
# the Initial Developer. All Rights Reserved.
|
|
23
|
+
#
|
|
24
|
+
# Contributor(s):
|
|
25
|
+
# Jehan <jehan@girinstud.io>
|
|
26
|
+
#
|
|
27
|
+
# Alternatively, the contents of this file may be used under the terms of
|
|
28
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
29
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
30
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
31
|
+
# of those above. If you wish to allow use of your version of this file only
|
|
32
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
33
|
+
# use your version of this file under the terms of the MPL, indicate your
|
|
34
|
+
# decision by deleting the provisions above and replace them with the notice
|
|
35
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
36
|
+
# the provisions above, a recipient may use your version of this file under
|
|
37
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
38
|
+
#
|
|
39
|
+
# ##### END LICENSE BLOCK #####
|
|
40
|
+
|
|
41
|
+
from codepoints import *
|
|
42
|
+
|
|
43
|
+
# ISO-8859-1 is the full 8-bit range, IANA-defined, superset of ISO/CEI 8859-1.
|
|
44
|
+
# It is basically the same as ISO/CEI 8859-1, but with control characters.
|
|
45
|
+
# As far as I can see, `iconv` has no support for the ISO/CEI 8859-1 subset,
|
|
46
|
+
# so there is no need for us to support it anyway.
|
|
47
|
+
|
|
48
|
+
name = 'ISO-8859-11'
|
|
49
|
+
aliases = []
|
|
50
|
+
|
|
51
|
+
language = \
|
|
52
|
+
{
|
|
53
|
+
# Designed for Thai language.
|
|
54
|
+
'complete': ['th'],
|
|
55
|
+
'incomplete': []
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
# X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF #
|
|
59
|
+
charmap = \
|
|
60
|
+
[
|
|
61
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,RET,CTR,CTR,RET,CTR,CTR, # 0X
|
|
62
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 1X
|
|
63
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # 2X
|
|
64
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,SYM,SYM,SYM,SYM,SYM,SYM, # 3X
|
|
65
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 4X
|
|
66
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM, # 5X
|
|
67
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 6X
|
|
68
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,CTR, # 7X
|
|
69
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 8X
|
|
70
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 9X
|
|
71
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # AX
|
|
72
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # BX
|
|
73
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # CX
|
|
74
|
+
LET,SYM,LET,LET,SYM,SYM,SYM,SYM,SYM,SYM,SYM,ILL,ILL,ILL,ILL,SYM, # DX
|
|
75
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,LET, # EX
|
|
76
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,LET,LET,ILL,ILL,ILL,ILL, # FX
|
|
77
|
+
]
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# ##### BEGIN LICENSE BLOCK #####
|
|
5
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
6
|
+
#
|
|
7
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
|
8
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
9
|
+
# the License. You may obtain a copy of the License at
|
|
10
|
+
# http://www.mozilla.org/MPL/
|
|
11
|
+
#
|
|
12
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
14
|
+
# for the specific language governing rights and limitations under the
|
|
15
|
+
# License.
|
|
16
|
+
#
|
|
17
|
+
# The Original Code is Mozilla Universal charset detector code.
|
|
18
|
+
#
|
|
19
|
+
# The Initial Developer of the Original Code is
|
|
20
|
+
# Netscape Communications Corporation.
|
|
21
|
+
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
22
|
+
# the Initial Developer. All Rights Reserved.
|
|
23
|
+
#
|
|
24
|
+
# Contributor(s):
|
|
25
|
+
# Jehan <jehan@girinstud.io>
|
|
26
|
+
#
|
|
27
|
+
# Alternatively, the contents of this file may be used under the terms of
|
|
28
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
29
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
30
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
31
|
+
# of those above. If you wish to allow use of your version of this file only
|
|
32
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
33
|
+
# use your version of this file under the terms of the MPL, indicate your
|
|
34
|
+
# decision by deleting the provisions above and replace them with the notice
|
|
35
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
36
|
+
# the provisions above, a recipient may use your version of this file under
|
|
37
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
38
|
+
#
|
|
39
|
+
# ##### END LICENSE BLOCK #####
|
|
40
|
+
|
|
41
|
+
from codepoints import *
|
|
42
|
+
|
|
43
|
+
name = 'ISO-8859-13'
|
|
44
|
+
aliases = ['csISO885913']
|
|
45
|
+
|
|
46
|
+
language = \
|
|
47
|
+
{
|
|
48
|
+
# Designed to cover Baltic languages.
|
|
49
|
+
'complete': [ 'lv', 'lt' ],
|
|
50
|
+
'incomplete': []
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
# X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF #
|
|
54
|
+
charmap = \
|
|
55
|
+
[
|
|
56
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,RET,CTR,CTR,RET,CTR,CTR, # 0X
|
|
57
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 1X
|
|
58
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # 2X
|
|
59
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,SYM,SYM,SYM,SYM,SYM,SYM, # 3X
|
|
60
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 4X
|
|
61
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM, # 5X
|
|
62
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 6X
|
|
63
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,CTR, # 7X
|
|
64
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 8X
|
|
65
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 9X
|
|
66
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,LET,SYM,LET,SYM,SYM,SYM,SYM,LET, # AX
|
|
67
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,LET,SYM,LET,SYM,SYM,SYM,SYM,LET, # BX
|
|
68
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # CX
|
|
69
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,LET, # DX
|
|
70
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # EX
|
|
71
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,SYM, # FX
|
|
72
|
+
]
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# ##### BEGIN LICENSE BLOCK #####
|
|
5
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
6
|
+
#
|
|
7
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
|
8
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
9
|
+
# the License. You may obtain a copy of the License at
|
|
10
|
+
# http://www.mozilla.org/MPL/
|
|
11
|
+
#
|
|
12
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
14
|
+
# for the specific language governing rights and limitations under the
|
|
15
|
+
# License.
|
|
16
|
+
#
|
|
17
|
+
# The Original Code is Mozilla Universal charset detector code.
|
|
18
|
+
#
|
|
19
|
+
# The Initial Developer of the Original Code is
|
|
20
|
+
# Netscape Communications Corporation.
|
|
21
|
+
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
22
|
+
# the Initial Developer. All Rights Reserved.
|
|
23
|
+
#
|
|
24
|
+
# Contributor(s):
|
|
25
|
+
# Jehan <jehan@girinstud.io>
|
|
26
|
+
#
|
|
27
|
+
# Alternatively, the contents of this file may be used under the terms of
|
|
28
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
29
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
30
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
31
|
+
# of those above. If you wish to allow use of your version of this file only
|
|
32
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
33
|
+
# use your version of this file under the terms of the MPL, indicate your
|
|
34
|
+
# decision by deleting the provisions above and replace them with the notice
|
|
35
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
36
|
+
# the provisions above, a recipient may use your version of this file under
|
|
37
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
38
|
+
#
|
|
39
|
+
# ##### END LICENSE BLOCK #####
|
|
40
|
+
|
|
41
|
+
from codepoints import *
|
|
42
|
+
|
|
43
|
+
# ISO-8859-15 is the full 8-bit range, IANA-defined, superset of ISO/CEI 8859-15.
|
|
44
|
+
# It is basically the same as ISO/CEI 8859-15, but with control characters.
|
|
45
|
+
# As far as I can see, `iconv` has no support for the ISO/CEI 8859-15 subset,
|
|
46
|
+
# so there is no need for us to support it anyway.
|
|
47
|
+
|
|
48
|
+
name = 'ISO-8859-15'
|
|
49
|
+
aliases = ['ISO_8859-15', 'csISO885915', 'Latin-9']
|
|
50
|
+
|
|
51
|
+
language = \
|
|
52
|
+
{
|
|
53
|
+
# Languages with complete coverage.
|
|
54
|
+
'complete': [ 'af', 'sq', 'br', 'ca', 'da', 'nl', 'en', 'et', 'fo', 'fi',
|
|
55
|
+
'fr', 'gl', 'de', 'is', 'ga', 'it', 'ku', 'la', 'lb', 'ms',
|
|
56
|
+
'no', 'oc', 'pt', 'rm', 'gd', 'sco', 'es', 'sw', 'sv', 'tl',
|
|
57
|
+
'wa' ],
|
|
58
|
+
'incomplete': []
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
# X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF #
|
|
62
|
+
charmap = \
|
|
63
|
+
[
|
|
64
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,RET,CTR,CTR,RET,CTR,CTR, # 0X
|
|
65
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 1X
|
|
66
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # 2X
|
|
67
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,SYM,SYM,SYM,SYM,SYM,SYM, # 3X
|
|
68
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 4X
|
|
69
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM, # 5X
|
|
70
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 6X
|
|
71
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,CTR, # 7X
|
|
72
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 8X
|
|
73
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 9X
|
|
74
|
+
SYM,SYM,SYM,SYM,SYM,SYM,LET,SYM,LET,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # AX
|
|
75
|
+
SYM,SYM,SYM,SYM,LET,LET,SYM,SYM,LET,SYM,SYM,SYM,LET,LET,LET,SYM, # BX
|
|
76
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # CX
|
|
77
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,LET, # DX
|
|
78
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # EX
|
|
79
|
+
LET,LET,LET,LET,LET,LET,LET,SYM,LET,LET,LET,LET,LET,LET,LET,LET, # FX
|
|
80
|
+
]
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
# ##### BEGIN LICENSE BLOCK #####
|
|
5
|
+
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
6
|
+
#
|
|
7
|
+
# The contents of this file are subject to the Mozilla Public License Version
|
|
8
|
+
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
9
|
+
# the License. You may obtain a copy of the License at
|
|
10
|
+
# http://www.mozilla.org/MPL/
|
|
11
|
+
#
|
|
12
|
+
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
13
|
+
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
14
|
+
# for the specific language governing rights and limitations under the
|
|
15
|
+
# License.
|
|
16
|
+
#
|
|
17
|
+
# The Original Code is Mozilla Universal charset detector code.
|
|
18
|
+
#
|
|
19
|
+
# The Initial Developer of the Original Code is
|
|
20
|
+
# Netscape Communications Corporation.
|
|
21
|
+
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
22
|
+
# the Initial Developer. All Rights Reserved.
|
|
23
|
+
#
|
|
24
|
+
# Contributor(s):
|
|
25
|
+
# Jehan <jehan@girinstud.io>
|
|
26
|
+
#
|
|
27
|
+
# Alternatively, the contents of this file may be used under the terms of
|
|
28
|
+
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
29
|
+
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
30
|
+
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
31
|
+
# of those above. If you wish to allow use of your version of this file only
|
|
32
|
+
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
33
|
+
# use your version of this file under the terms of the MPL, indicate your
|
|
34
|
+
# decision by deleting the provisions above and replace them with the notice
|
|
35
|
+
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
36
|
+
# the provisions above, a recipient may use your version of this file under
|
|
37
|
+
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
38
|
+
#
|
|
39
|
+
# ##### END LICENSE BLOCK #####
|
|
40
|
+
|
|
41
|
+
from codepoints import *
|
|
42
|
+
|
|
43
|
+
# ISO-8859-1 is the full 8-bit range, IANA-defined, superset of ISO/CEI 8859-1.
|
|
44
|
+
# It is basically the same as ISO/CEI 8859-1, but with control characters.
|
|
45
|
+
# As far as I can see, `iconv` has no support for the ISO/CEI 8859-1 subset,
|
|
46
|
+
# so there is no need for us to support it anyway.
|
|
47
|
+
|
|
48
|
+
name = 'ISO-8859-16'
|
|
49
|
+
aliases = ['ISO_8859-16:2001', 'ISO_8859-16', 'iso-ir-226',
|
|
50
|
+
'csISO885916', 'latin10', 'l10']
|
|
51
|
+
|
|
52
|
+
language = \
|
|
53
|
+
{
|
|
54
|
+
# Languages with complete coverage.
|
|
55
|
+
# Some languages actually have several alphabets and only one of them is
|
|
56
|
+
# compatible with ISO-8859-1 (ex: Kurdish).
|
|
57
|
+
# Some don't have a ISO language code (like Leonese, for which I used
|
|
58
|
+
# a Glottolog code).
|
|
59
|
+
'complete': [ 'sq', 'hr', 'hu', 'pl', 'ro', 'sr', 'sl',
|
|
60
|
+
'fr', 'de', 'it', 'ga' ],
|
|
61
|
+
'incomplete': []
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
# X0 X1 X2 X3 X4 X5 X6 X7 X8 X9 XA XB XC XD XE XF #
|
|
65
|
+
charmap = \
|
|
66
|
+
[
|
|
67
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,RET,CTR,CTR,RET,CTR,CTR, # 0X
|
|
68
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 1X
|
|
69
|
+
SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM,SYM, # 2X
|
|
70
|
+
NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,NUM,SYM,SYM,SYM,SYM,SYM,SYM, # 3X
|
|
71
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 4X
|
|
72
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,SYM, # 5X
|
|
73
|
+
SYM,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # 6X
|
|
74
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,SYM,SYM,SYM,SYM,CTR, # 7X
|
|
75
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 8X
|
|
76
|
+
CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR,CTR, # 9X
|
|
77
|
+
SYM,LET,LET,LET,SYM,SYM,LET,SYM,LET,SYM,LET,SYM,LET,SYM,LET,LET, # AX
|
|
78
|
+
SYM,SYM,LET,LET,LET,SYM,SYM,SYM,LET,LET,LET,SYM,LET,LET,LET,LET, # BX
|
|
79
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # CX
|
|
80
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # DX
|
|
81
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # EX
|
|
82
|
+
LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET,LET, # FX
|
|
83
|
+
]
|