├── .gitignore ├── project.clj ├── src └── slugger │ ├── core.clj │ └── conversions.clj ├── test └── slugger │ ├── core_test.clj │ └── conversions_test.clj ├── README.md └── java └── net └── sf └── junidecode ├── App.java ├── Xfc.java ├── Xfd.java ├── X24.java ├── X27.java ├── Xfe.java ├── Xfb.java ├── X1e.java ├── X25.java ├── X01.java ├── X03.java ├── X1f.java ├── X02.java ├── X06.java ├── Xff.java ├── X05.java ├── X26.java ├── X21.java ├── X30.java ├── X0f.java ├── X04.java ├── X09.java ├── X0e.java ├── X0c.java ├── X18.java └── X10.java /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /lib 3 | /classes 4 | /checkouts 5 | pom.xml 6 | *.jar 7 | *.class 8 | .lein-deps-sum 9 | .lein-failures 10 | .lein-plugins 11 | -------------------------------------------------------------------------------- /project.clj: -------------------------------------------------------------------------------- 1 | (defproject slugger "1.0.1" 2 | :description "Create good slugs from unicode data" 3 | :java-source-paths ["java"] 4 | :license {:name "Eclipse Public License" 5 | :url "http://www.eclipse.org/legal/epl-v10.html"} 6 | :dependencies [[org.clojure/clojure "1.4.0"]]) 7 | -------------------------------------------------------------------------------- /src/slugger/core.clj: -------------------------------------------------------------------------------- 1 | (ns slugger.core 2 | (:refer-clojure :exclude [replace]) 3 | (:use [slugger.conversions] 4 | [clojure.string :only [replace lower-case trim]])) 5 | 6 | (defn ->slug 7 | "Convert a UTF-8/16 string into a 7 bit ascii representation suitable for use as a slug in a url." 8 | [text] 9 | (-> (unidecode text) 10 | (convert-accented-entities) 11 | (convert-misc-entities) 12 | (convert-misc-characters) 13 | (lower-case) 14 | (trim) 15 | (replace #"\s+" "-"))) -------------------------------------------------------------------------------- /test/slugger/core_test.clj: -------------------------------------------------------------------------------- 1 | (ns slugger.core-test 2 | (:use clojure.test 3 | slugger.core)) 4 | 5 | 6 | (deftest slug-tests 7 | (is (= (->slug "learn how to say 你好") "learn-how-to-say-ni-hao")) 8 | (is (= (->slug " this string should be simple enough") "this-string-should-be-simple-enough")) 9 | (is (= (->slug "Vi vil have mere Øl") "vi-vil-have-mere-oel")) 10 | (is (= (->slug "Vi vil have mere øl") "vi-vil-have-mere-oel")) 11 | (is (= (->slug "An idea worth $100") "an-idea-worth-100-dollars")) 12 | (is (= (->slug "my email address is pelle@picomoney.com") "my-email-address-is-pelle-at-picomoney-dot-com")) 13 | ) 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # slugger 2 | 3 | Slugger is a library primarily to create 7-bit url slugs from strings. 4 | 5 | The goal is for Slugger to replicate the functionality of the Ruby stringex gem. 6 | 7 | https://github.com/rsl/stringex 8 | 9 | ## Usage 10 | 11 | Add the following to your project.clj 12 | 13 | ```clojure 14 | [slugger "1.0.1"] 15 | ``` 16 | 17 | Then you can use it: 18 | 19 | ```clojure 20 | (use 'slugger.core) 21 | 22 | (->slug "learn how to say 你好") 23 | => "learn-how-to-say-ni-hao" 24 | 25 | (->slug "learn how to say 你好") 26 | => "learn-how-to-say-ni-hao" 27 | 28 | (->slug " this string should be simple enough") 29 | => "this-string-should-be-simple-enough" 30 | 31 | (->slug "Vi vil have mere Øl") 32 | => "vi-vil-have-mere-oel" 33 | 34 | (->slug "Vi vil have mere øl") 35 | => "vi-vil-have-mere-oel" 36 | 37 | (->slug "An idea worth $100") 38 | => "an-idea-worth-100-dollars" 39 | 40 | (->slug "my email address is pelle@picomoney.com") 41 | => "my-email-address-is-pelle-at-picomoney-dot-com" 42 | ``` 43 | 44 | ## Unidecoder 45 | 46 | This library includes Giuseppe Cardone's excellent Junidecode. 47 | 48 | http://junidecode.sourceforge.net/ 49 | 50 | It is not available in a maven library so I include it within the jar. 51 | 52 | Note I have made a few minor changes to it for transliterating Scandinavian letters using local rules. 53 | 54 | You can also use it directly: 55 | 56 | ```clojure 57 | (use '[slugger.core :only [unidecode]]) 58 | (unidecode "私はガラスを食べられます。それは私を傷つけません。") 59 | =>"Si hagarasuwoShi beraremasu. sorehaSi woShang tukemasen. " 60 | ``` 61 | 62 | ## License 63 | 64 | Copyright © 2012 Pelle Braendgaard 65 | 66 | Distributed under the Eclipse Public License, the same as Clojure. 67 | 68 | Junidecoder © Giuseppe Cardone 69 | 70 | Distributed under BSD license 71 | 72 | http://junidecode.sourceforge.net/ -------------------------------------------------------------------------------- /java/net/sf/junidecode/App.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | import java.io.BufferedReader; 30 | import java.io.IOException; 31 | import java.io.InputStreamReader; 32 | 33 | import static net.sf.junidecode.Junidecode.*; 34 | 35 | /** 36 | * Simple example application for JUnidecode. If launched with arguments 37 | * will strip diacritics and transliterate the arguments. If launched without 38 | * arguments will read lines from stdin, convert input to ASCII 7-bit and 39 | * write to stdout. For example: 40 | * Ελληνικά becomes 41 | * Ellenika. 42 | * @author Giuseppe Cardone 43 | * @version 0.1 44 | */ 45 | public class App { 46 | 47 | /** 48 | * Private constructor to avoid instatiation. 49 | */ 50 | private App() { 51 | } 52 | 53 | /** 54 | * Main. 55 | * @param args Strings to transliterate. If args.length == 0 56 | * then the input will be read from stdin. 57 | */ 58 | public static void main(String[] args) { 59 | if (args.length > 0) { 60 | StringBuilder sb = new StringBuilder(); 61 | for (String s : args) { 62 | sb.append(unidecode(s)).append(" "); 63 | } 64 | System.out.println(sb.toString().trim()); 65 | } else { 66 | try { 67 | BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); 68 | String line; 69 | while ((line = br.readLine()) != null) { 70 | System.out.println(unidecode(line)); 71 | } 72 | } catch (IOException ex) { 73 | System.err.println(ex.getLocalizedMessage()); 74 | } 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/slugger/conversions.clj: -------------------------------------------------------------------------------- 1 | (ns slugger.conversions 2 | (:refer-clojure :exclude [replace]) 3 | (:use [clojure.string :only [replace lower-case trim]]) 4 | (:import [net.sf.junidecode Junidecode])) 5 | 6 | (defn unidecode 7 | "Create 7-bit ascii version of unicode string." 8 | [text] 9 | (net.sf.junidecode.Junidecode/unidecode text)) 10 | 11 | (defn convert-accented-entities 12 | "Convert html accent entities to correct 7bit ascii version" 13 | [text] 14 | (replace text #"&([A-Za-z])(grave|acute|circ|tilde|uml|ring|cedil|slash);" #(let [d (lower-case (second %))] 15 | (cond 16 | (= d "o") "oe" 17 | (= d "a") "aa" 18 | (= d "u") "ue" 19 | :else d)))) 20 | 21 | (def ENTITY_RULES { "#822[01]" "\"" 22 | "#821[67]" "'" 23 | "#8230" "..." 24 | "#8211" "-" 25 | "#8212" "--" 26 | "#215" "x" 27 | "gt" ">" 28 | "lt" "<" 29 | "(#8482|trade)" "(tm)" 30 | "(#174|reg)" "(r)" 31 | "(#169|copy)" "(c)" 32 | "(#38|amp)" "and" 33 | "nbsp" " " 34 | "(#162|cent)" " cent" 35 | "(#163|pound)" " pound" 36 | "(#188|frac14)" "one fourth" 37 | "(#189|frac12)" "half" 38 | "(#190|frac34)" "three fourths" 39 | "(#176|deg)" " degrees"}) 40 | 41 | (defn convert-misc-entities [text] 42 | (replace (reduce #(replace %1 (re-pattern (str "&" (key %2) ";")) (val %2)) text ENTITY_RULES) #"&[^;]+;" "")) 43 | 44 | (defn convert-rules 45 | "Convert text by applying rules. 46 | 47 | Rules is a map consisting of a regex as the key and the string as the replacement value." 48 | [text rules] 49 | (reduce #(replace %1 (key %2) (val %2)) text rules)) 50 | 51 | (def CURRENCY_RULES { 52 | #"(\s|^)\$(\d+)\.(\d+)(\s|$)" " $2 dollars $3 cents " 53 | #"(\s|^)\€(\d+)\.(\d+)(\s|$)" " $2 euros $3 cents " 54 | #"(\s|^)£(\d+)\.(\d+)(\s|$)" " $2 pounds $3 pence "}) 55 | 56 | (defn convert-currency 57 | "Convert misc money values with cents to text." 58 | [text] 59 | (convert-rules text CURRENCY_RULES)) 60 | 61 | (def NORMAL_RULES { 62 | #"\s*&\s*" " and " 63 | #"\s*#" " number " 64 | #"\s*@\s*" " at " 65 | #"(\S|^)\.(\S)" "$1 dot $2" 66 | #"(\s|^)\$(\d*)(\s|$)" " $2 dollars " 67 | #"(\s|^)\€(\d*)(\s|$)" " $2 euros " 68 | #"(\s|^)£(\d*)(\s|$)" " $2 pounds " 69 | #"(\s|^)¥(\d*)(\s|$)" " $2 yen " 70 | #"\s*\*\s*" " star " 71 | #"\s*%\s*" " percent " 72 | #"\s*(\\|\/)\s*" " slash " 73 | #"(\s*=\s*)" " equals "}) 74 | 75 | (defn convert-normal 76 | "Convert various symbols to spelled out English" 77 | [text] 78 | (convert-rules text NORMAL_RULES)) 79 | 80 | (defn convert-misc-characters [text] 81 | (-> (replace text #"\.{3,}" " dot dot dot ") 82 | (convert-currency) 83 | (convert-normal) 84 | (replace #"(^|\w)'(\w|$)" "$1$2") 85 | (replace (re-pattern "[.,:;()\\[\\]/\\\\?!^'\"_]") " ") 86 | )) 87 | -------------------------------------------------------------------------------- /test/slugger/conversions_test.clj: -------------------------------------------------------------------------------- 1 | (ns slugger.conversions-test 2 | (:use clojure.test 3 | slugger.conversions)) 4 | 5 | (deftest unidecode-test 6 | ;; I Changed the unidecode rules for scandivian and german letters to follow conventions 7 | (is (= (unidecode "Brændgård vil have øl i grünefeldt") "Braendgaard vil have oel i gruenefeldt")) 8 | 9 | ;; The following tests were converted from Java from Junidecoder 10 | (is (= (unidecode "\u00C6neid") "AEneid")) 11 | (is (= (unidecode "\u00e9tude") "etude")) 12 | ; Chinese 13 | (is (= (unidecode "\u5317\u4eb0") "Bei Jing ")) 14 | ; Canadian syllabics 15 | (is (= (unidecode "\u1515\u14c7\u14c7") "shanana")) 16 | ; Cherokee 17 | (is (= (unidecode "\u13d4\u13b5\u13c6") "taliqua")) 18 | ; Syriac 19 | (is (= (unidecode "\u0726\u071b\u073d\u0710\u073a") "ptu'i")) 20 | ;Devangari 21 | (is (= (unidecode "\u0905\u092d\u093f\u091c\u0940\u0924") "abhijiit")) 22 | ; Bengali 23 | (is (= (unidecode "\u0985\u09ad\u09bf\u099c\u09c0\u09a4") "abhijiit")) 24 | ;Malayalaam 25 | (is (= (unidecode "\u0d05\u0d2d\u0d3f\u0d1c\u0d40\u0d24") "abhijiit")) 26 | 27 | ;; Malayalaam. The correct transliteration is "malayaalam" but 28 | ;; since junidecode is context insentitive this is the best we can 29 | ;; do. 30 | (is (= (unidecode "\u0d2e\u0d32\u0d2f\u0d3e\u0d32\u0d2e\u0d4d") "mlyaalm")) 31 | ; Japanese 32 | (is (= (unidecode "\u3052\u3093\u307e\u3044\u8336") "genmaiCha ")) 33 | 34 | ; The following tests were taken from here: 35 | ; https://github.com/rsl/stringex/blob/master/test/unidecoder_test.rb 36 | 37 | ; Which took it from here originally 38 | ; http://www.columbia.edu/kermit/utf8.html 39 | (let [ dont-convert [ "Vitrum edere possum; mihi non nocet." ; Latin 40 | "Je puis mangier del voirre. Ne me nuit." ; Old French 41 | "Kristala jan dezaket, ez dit minik ematen." ; Basque 42 | "Kaya kong kumain nang bubog at hindi ako masaktan." ; Tagalog 43 | "Ich kann Glas essen, ohne mir weh zu tun." ; German 44 | "I can eat glass and it doesn't hurt me."]] ; English 45 | (doseq [s dont-convert] 46 | (is (= (unidecode s) s)) 47 | )) 48 | 49 | (let [convert { "Je peux manger du verre, ça ne me fait pas de mal." ; French 50 | "Je peux manger du verre, ca ne me fait pas de mal." 51 | "Pot să mănânc sticlă și ea nu mă rănește." ; Romanian 52 | "Pot sa mananc sticla si ea nu ma raneste." 53 | "Ég get etið gler án þess að meiða mig." ; Icelandic 54 | "Eg get etid gler an thess ad meida mig." 55 | "Unë mund të ha qelq dhe nuk më gjen gjë." ; Albanian 56 | "Une mund te ha qelq dhe nuk me gjen gje." 57 | "Mogę jeść szkło i mi nie szkodzi." ; Polish 58 | "Moge jesc szklo i mi nie szkodzi." 59 | "Я могу есть стекло, оно мне не вредит." ; Russian 60 | "Ia moghu iest' stieklo, ono mnie nie vriedit." 61 | "Мога да ям стъкло, то не ми вреди." ; Bulgarian 62 | "Mogha da iam stklo, to nie mi vriedi." 63 | "ᛁᚳ᛫ᛗᚨᚷ᛫ᚷᛚᚨᛋ᛫ᛖᚩᛏᚪᚾ᛫ᚩᚾᛞ᛫ᚻᛁᛏ᛫ᚾᛖ᛫ᚻᛖᚪᚱᛗᛁᚪᚧ᛫ᛗᛖ᛬" ; Anglo-Saxon 64 | "ic.mag.glas.eotacn.ond.hit.ne.heacrmiacth.me:" 65 | "ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει" ; Classical Greek 66 | "ualon phagein dunamai; touto ou me blaptei" 67 | "मैं काँच खा सकता हूँ और मुझे उससे कोई चोट नहीं पहुंचती" ; Hindi 68 | "maiN kaaNc khaa sktaa huuN aur mujhe usse koii cott nhiiN phuNctii" 69 | "من می توانم بدونِ احساس درد شيشه بخورم" ; Persian 70 | "mn my twnm bdwni Hss drd shyshh bkhwrm" 71 | "أنا قادر على أكل الزجاج و هذا لا يؤلمن" ; Arabic 72 | "'n qdr `l~ 'kl lzjj w hdh l yw'lmn" 73 | "אני יכול לאכול זכוכית וזה לא מזיק לי" ; Hebrew 74 | "ny ykvl lkvl zkvkyt vzh l mzyq ly" 75 | "ฉันกินกระจกได้ แต่มันไม่ทำให้ฉันเจ็บ" ; Thai 76 | "chankinkracchkaid aetmanaimthamaihchanecchb" 77 | "我能吞下玻璃而不伤身体。" ; Chinese 78 | "Wo Neng Tun Xia Bo Li Er Bu Shang Shen Ti . " 79 | "私はガラスを食べられます。それは私を傷つけません。" ; Japanese 80 | "Si hagarasuwoShi beraremasu. sorehaSi woShang tukemasen. "}] 81 | (doseq [s convert] 82 | (is (= (unidecode (key s)) (val s)))))) 83 | 84 | (deftest convert-accented-html-entities-test 85 | (let [ examples { "å" "aa" 86 | "è" "e" 87 | "î" "i" 88 | "Ø" "oe" 89 | "ü" "ue" 90 | "Ñ" "n" 91 | "ç" "c" }] 92 | (doseq [ s examples] 93 | (is (= (convert-accented-entities (key s)) (val s)))))) 94 | 95 | (deftest convert-misc-html-entities-test 96 | (let [ examples { "America™" "America(tm)" 97 | "Tea & Sympathy" "Tea and Sympathy" 98 | "To be continued…" "To be continued..." 99 | "Foo Bar" "Foo Bar" 100 | "100£" "100 pound" 101 | "½ a dollar" "half a dollar" 102 | "35°" "35 degrees" }] 103 | (doseq [ s examples] 104 | (is (= (convert-misc-entities (key s)) (val s)))))) 105 | 106 | (deftest convert-misc-characters-test 107 | (let [ examples { "Foo & bar make foobar" "Foo and bar make foobar" 108 | "Breakdown #9" "Breakdown number 9" 109 | "foo@bar.com" "foo at bar dot com" 110 | "100% of yr love" "100 percent of yr love" 111 | "Kisses are $3.25 each" "Kisses are 3 dollars 25 cents each" 112 | "Kisses are €3.25 each" "Kisses are 3 euros 25 cents each" 113 | "That CD is £3.25 plus tax" "That CD is 3 pounds 25 pence plus tax" 114 | "This CD is ¥1000 instead" "This CD is 1000 yen instead"} ] 115 | (doseq [ s examples] 116 | (is (= (convert-misc-characters (key s)) (val s)))))) 117 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/Xfc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+FCxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class Xfc { 35 | 36 | public static final String[] map = new String[]{ 37 | "", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | "", // 0x08 46 | "", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "", // 0x0f 53 | "", // 0x10 54 | "", // 0x11 55 | "", // 0x12 56 | "", // 0x13 57 | "", // 0x14 58 | "", // 0x15 59 | "", // 0x16 60 | "", // 0x17 61 | "", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "", // 0x23 73 | "", // 0x24 74 | "", // 0x25 75 | "", // 0x26 76 | "", // 0x27 77 | "", // 0x28 78 | "", // 0x29 79 | "", // 0x2a 80 | "", // 0x2b 81 | "", // 0x2c 82 | "", // 0x2d 83 | "", // 0x2e 84 | "", // 0x2f 85 | "", // 0x30 86 | "", // 0x31 87 | "", // 0x32 88 | "", // 0x33 89 | "", // 0x34 90 | "", // 0x35 91 | "", // 0x36 92 | "", // 0x37 93 | "", // 0x38 94 | "", // 0x39 95 | "", // 0x3a 96 | "", // 0x3b 97 | "", // 0x3c 98 | "", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "", // 0x40 102 | "", // 0x41 103 | "", // 0x42 104 | "", // 0x43 105 | "", // 0x44 106 | "", // 0x45 107 | "", // 0x46 108 | "", // 0x47 109 | "", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "", // 0x4b 113 | "", // 0x4c 114 | "", // 0x4d 115 | "", // 0x4e 116 | "", // 0x4f 117 | "", // 0x50 118 | "", // 0x51 119 | "", // 0x52 120 | "", // 0x53 121 | "", // 0x54 122 | "", // 0x55 123 | "", // 0x56 124 | "", // 0x57 125 | "", // 0x58 126 | "", // 0x59 127 | "", // 0x5a 128 | "", // 0x5b 129 | "", // 0x5c 130 | "", // 0x5d 131 | "", // 0x5e 132 | "", // 0x5f 133 | "", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "", // 0x63 137 | "", // 0x64 138 | "", // 0x65 139 | "", // 0x66 140 | "", // 0x67 141 | "", // 0x68 142 | "", // 0x69 143 | "", // 0x6a 144 | "", // 0x6b 145 | "", // 0x6c 146 | "", // 0x6d 147 | "", // 0x6e 148 | "", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "", // 0x72 152 | "", // 0x73 153 | "", // 0x74 154 | "", // 0x75 155 | "", // 0x76 156 | "", // 0x77 157 | "", // 0x78 158 | "", // 0x79 159 | "", // 0x7a 160 | "", // 0x7b 161 | "", // 0x7c 162 | "", // 0x7d 163 | "", // 0x7e 164 | "", // 0x7f 165 | "", // 0x80 166 | "", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "", // 0x8c 178 | "", // 0x8d 179 | "", // 0x8e 180 | "", // 0x8f 181 | "", // 0x90 182 | "", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "", // 0xb0 214 | "", // 0xb1 215 | "", // 0xb2 216 | "", // 0xb3 217 | "", // 0xb4 218 | "", // 0xb5 219 | "", // 0xb6 220 | "", // 0xb7 221 | "", // 0xb8 222 | "", // 0xb9 223 | "", // 0xba 224 | "", // 0xbb 225 | "", // 0xbc 226 | "", // 0xbd 227 | "", // 0xbe 228 | "", // 0xbf 229 | "", // 0xc0 230 | "", // 0xc1 231 | "", // 0xc2 232 | "", // 0xc3 233 | "", // 0xc4 234 | "", // 0xc5 235 | "", // 0xc6 236 | "", // 0xc7 237 | "", // 0xc8 238 | "", // 0xc9 239 | "", // 0xca 240 | "", // 0xcb 241 | "", // 0xcc 242 | "", // 0xcd 243 | "", // 0xce 244 | "", // 0xcf 245 | "", // 0xd0 246 | "", // 0xd1 247 | "", // 0xd2 248 | "", // 0xd3 249 | "", // 0xd4 250 | "", // 0xd5 251 | "", // 0xd6 252 | "", // 0xd7 253 | "", // 0xd8 254 | "", // 0xd9 255 | "", // 0xda 256 | "", // 0xdb 257 | "", // 0xdc 258 | "", // 0xdd 259 | "", // 0xde 260 | "", // 0xdf 261 | "", // 0xe0 262 | "", // 0xe1 263 | "", // 0xe2 264 | "", // 0xe3 265 | "", // 0xe4 266 | "", // 0xe5 267 | "", // 0xe6 268 | "", // 0xe7 269 | "", // 0xe8 270 | "", // 0xe9 271 | "", // 0xea 272 | "", // 0xeb 273 | "", // 0xec 274 | "", // 0xed 275 | "", // 0xee 276 | "", // 0xef 277 | "", // 0xf0 278 | "", // 0xf1 279 | "", // 0xf2 280 | "", // 0xf3 281 | "", // 0xf4 282 | "", // 0xf5 283 | "", // 0xf6 284 | "", // 0xf7 285 | "", // 0xf8 286 | "", // 0xf9 287 | "", // 0xfa 288 | "", // 0xfb 289 | "", // 0xfc 290 | "", // 0xfd 291 | "", // 0xfe 292 | "" // 0xff 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/Xfd.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+FDxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class Xfd { 35 | 36 | public static final String[] map = new String[]{ 37 | "", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | "", // 0x08 46 | "", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "", // 0x0f 53 | "", // 0x10 54 | "", // 0x11 55 | "", // 0x12 56 | "", // 0x13 57 | "", // 0x14 58 | "", // 0x15 59 | "", // 0x16 60 | "", // 0x17 61 | "", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "", // 0x23 73 | "", // 0x24 74 | "", // 0x25 75 | "", // 0x26 76 | "", // 0x27 77 | "", // 0x28 78 | "", // 0x29 79 | "", // 0x2a 80 | "", // 0x2b 81 | "", // 0x2c 82 | "", // 0x2d 83 | "", // 0x2e 84 | "", // 0x2f 85 | "", // 0x30 86 | "", // 0x31 87 | "", // 0x32 88 | "", // 0x33 89 | "", // 0x34 90 | "", // 0x35 91 | "", // 0x36 92 | "", // 0x37 93 | "", // 0x38 94 | "", // 0x39 95 | "", // 0x3a 96 | "", // 0x3b 97 | "", // 0x3c 98 | "", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "[?]", // 0x40 102 | "[?]", // 0x41 103 | "[?]", // 0x42 104 | "[?]", // 0x43 105 | "[?]", // 0x44 106 | "[?]", // 0x45 107 | "[?]", // 0x46 108 | "[?]", // 0x47 109 | "[?]", // 0x48 110 | "[?]", // 0x49 111 | "[?]", // 0x4a 112 | "[?]", // 0x4b 113 | "[?]", // 0x4c 114 | "[?]", // 0x4d 115 | "[?]", // 0x4e 116 | "[?]", // 0x4f 117 | "", // 0x50 118 | "", // 0x51 119 | "", // 0x52 120 | "", // 0x53 121 | "", // 0x54 122 | "", // 0x55 123 | "", // 0x56 124 | "", // 0x57 125 | "", // 0x58 126 | "", // 0x59 127 | "", // 0x5a 128 | "", // 0x5b 129 | "", // 0x5c 130 | "", // 0x5d 131 | "", // 0x5e 132 | "", // 0x5f 133 | "", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "", // 0x63 137 | "", // 0x64 138 | "", // 0x65 139 | "", // 0x66 140 | "", // 0x67 141 | "", // 0x68 142 | "", // 0x69 143 | "", // 0x6a 144 | "", // 0x6b 145 | "", // 0x6c 146 | "", // 0x6d 147 | "", // 0x6e 148 | "", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "", // 0x72 152 | "", // 0x73 153 | "", // 0x74 154 | "", // 0x75 155 | "", // 0x76 156 | "", // 0x77 157 | "", // 0x78 158 | "", // 0x79 159 | "", // 0x7a 160 | "", // 0x7b 161 | "", // 0x7c 162 | "", // 0x7d 163 | "", // 0x7e 164 | "", // 0x7f 165 | "", // 0x80 166 | "", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "", // 0x8c 178 | "", // 0x8d 179 | "", // 0x8e 180 | "", // 0x8f 181 | "[?]", // 0x90 182 | "[?]", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "", // 0xb0 214 | "", // 0xb1 215 | "", // 0xb2 216 | "", // 0xb3 217 | "", // 0xb4 218 | "", // 0xb5 219 | "", // 0xb6 220 | "", // 0xb7 221 | "", // 0xb8 222 | "", // 0xb9 223 | "", // 0xba 224 | "", // 0xbb 225 | "", // 0xbc 226 | "", // 0xbd 227 | "", // 0xbe 228 | "", // 0xbf 229 | "", // 0xc0 230 | "", // 0xc1 231 | "", // 0xc2 232 | "", // 0xc3 233 | "", // 0xc4 234 | "", // 0xc5 235 | "", // 0xc6 236 | "", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "[?]", // 0xd6 252 | "[?]", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "[?]", // 0xdc 258 | "[?]", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "[?]", // 0xe0 262 | "[?]", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "[?]", // 0xe6 268 | "[?]", // 0xe7 269 | "[?]", // 0xe8 270 | "[?]", // 0xe9 271 | "[?]", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "", // 0xf0 278 | "", // 0xf1 279 | "", // 0xf2 280 | "", // 0xf3 281 | "", // 0xf4 282 | "", // 0xf5 283 | "", // 0xf6 284 | "", // 0xf7 285 | "", // 0xf8 286 | "", // 0xf9 287 | "", // 0xfa 288 | "", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X24.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+24xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X24 { 35 | 36 | public static final String[] map = new String[]{ 37 | "", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | "", // 0x08 46 | "", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "", // 0x0f 53 | "", // 0x10 54 | "", // 0x11 55 | "", // 0x12 56 | "", // 0x13 57 | "", // 0x14 58 | "", // 0x15 59 | "", // 0x16 60 | "", // 0x17 61 | "", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "", // 0x23 73 | "", // 0x24 74 | "", // 0x25 75 | "", // 0x26 76 | "[?]", // 0x27 77 | "[?]", // 0x28 78 | "[?]", // 0x29 79 | "[?]", // 0x2a 80 | "[?]", // 0x2b 81 | "[?]", // 0x2c 82 | "[?]", // 0x2d 83 | "[?]", // 0x2e 84 | "[?]", // 0x2f 85 | "[?]", // 0x30 86 | "[?]", // 0x31 87 | "[?]", // 0x32 88 | "[?]", // 0x33 89 | "[?]", // 0x34 90 | "[?]", // 0x35 91 | "[?]", // 0x36 92 | "[?]", // 0x37 93 | "[?]", // 0x38 94 | "[?]", // 0x39 95 | "[?]", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "[?]", // 0x3e 100 | "[?]", // 0x3f 101 | "", // 0x40 102 | "", // 0x41 103 | "", // 0x42 104 | "", // 0x43 105 | "", // 0x44 106 | "", // 0x45 107 | "", // 0x46 108 | "", // 0x47 109 | "", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "[?]", // 0x4b 113 | "[?]", // 0x4c 114 | "[?]", // 0x4d 115 | "[?]", // 0x4e 116 | "[?]", // 0x4f 117 | "[?]", // 0x50 118 | "[?]", // 0x51 119 | "[?]", // 0x52 120 | "[?]", // 0x53 121 | "[?]", // 0x54 122 | "[?]", // 0x55 123 | "[?]", // 0x56 124 | "[?]", // 0x57 125 | "[?]", // 0x58 126 | "[?]", // 0x59 127 | "[?]", // 0x5a 128 | "[?]", // 0x5b 129 | "[?]", // 0x5c 130 | "[?]", // 0x5d 131 | "[?]", // 0x5e 132 | "[?]", // 0x5f 133 | "", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "", // 0x63 137 | "", // 0x64 138 | "", // 0x65 139 | "", // 0x66 140 | "", // 0x67 141 | "", // 0x68 142 | "", // 0x69 143 | "", // 0x6a 144 | "", // 0x6b 145 | "", // 0x6c 146 | "", // 0x6d 147 | "", // 0x6e 148 | "", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "", // 0x72 152 | "", // 0x73 153 | "", // 0x74 154 | "", // 0x75 155 | "", // 0x76 156 | "", // 0x77 157 | "", // 0x78 158 | "", // 0x79 159 | "", // 0x7a 160 | "", // 0x7b 161 | "", // 0x7c 162 | "", // 0x7d 163 | "", // 0x7e 164 | "", // 0x7f 165 | "", // 0x80 166 | "", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "", // 0x8c 178 | "", // 0x8d 179 | "", // 0x8e 180 | "", // 0x8f 181 | "", // 0x90 182 | "", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "", // 0xb0 214 | "", // 0xb1 215 | "", // 0xb2 216 | "", // 0xb3 217 | "", // 0xb4 218 | "", // 0xb5 219 | "", // 0xb6 220 | "", // 0xb7 221 | "", // 0xb8 222 | "", // 0xb9 223 | "", // 0xba 224 | "", // 0xbb 225 | "", // 0xbc 226 | "", // 0xbd 227 | "", // 0xbe 228 | "", // 0xbf 229 | "", // 0xc0 230 | "", // 0xc1 231 | "", // 0xc2 232 | "", // 0xc3 233 | "", // 0xc4 234 | "", // 0xc5 235 | "", // 0xc6 236 | "", // 0xc7 237 | "", // 0xc8 238 | "", // 0xc9 239 | "", // 0xca 240 | "", // 0xcb 241 | "", // 0xcc 242 | "", // 0xcd 243 | "", // 0xce 244 | "", // 0xcf 245 | "", // 0xd0 246 | "", // 0xd1 247 | "", // 0xd2 248 | "", // 0xd3 249 | "", // 0xd4 250 | "", // 0xd5 251 | "", // 0xd6 252 | "", // 0xd7 253 | "", // 0xd8 254 | "", // 0xd9 255 | "", // 0xda 256 | "", // 0xdb 257 | "", // 0xdc 258 | "", // 0xdd 259 | "", // 0xde 260 | "", // 0xdf 261 | "", // 0xe0 262 | "", // 0xe1 263 | "", // 0xe2 264 | "", // 0xe3 265 | "", // 0xe4 266 | "", // 0xe5 267 | "", // 0xe6 268 | "", // 0xe7 269 | "", // 0xe8 270 | "", // 0xe9 271 | "", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X27.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+27xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X27 { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | "", // 0x08 46 | "", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "", // 0x0f 53 | "", // 0x10 54 | "", // 0x11 55 | "", // 0x12 56 | "", // 0x13 57 | "", // 0x14 58 | "", // 0x15 59 | "", // 0x16 60 | "", // 0x17 61 | "", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "", // 0x23 73 | "", // 0x24 74 | "", // 0x25 75 | "", // 0x26 76 | "", // 0x27 77 | "", // 0x28 78 | "", // 0x29 79 | "", // 0x2a 80 | "", // 0x2b 81 | "", // 0x2c 82 | "", // 0x2d 83 | "", // 0x2e 84 | "", // 0x2f 85 | "", // 0x30 86 | "", // 0x31 87 | "", // 0x32 88 | "", // 0x33 89 | "", // 0x34 90 | "", // 0x35 91 | "", // 0x36 92 | "", // 0x37 93 | "", // 0x38 94 | "", // 0x39 95 | "", // 0x3a 96 | "", // 0x3b 97 | "", // 0x3c 98 | "", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "", // 0x40 102 | "", // 0x41 103 | "", // 0x42 104 | "", // 0x43 105 | "", // 0x44 106 | "", // 0x45 107 | "", // 0x46 108 | "", // 0x47 109 | "", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "", // 0x4b 113 | "", // 0x4c 114 | "", // 0x4d 115 | "", // 0x4e 116 | "", // 0x4f 117 | "", // 0x50 118 | "", // 0x51 119 | "", // 0x52 120 | "", // 0x53 121 | "", // 0x54 122 | "", // 0x55 123 | "", // 0x56 124 | "", // 0x57 125 | "", // 0x58 126 | "", // 0x59 127 | "", // 0x5a 128 | "", // 0x5b 129 | "", // 0x5c 130 | "", // 0x5d 131 | "", // 0x5e 132 | "[?]", // 0x5f 133 | "[?]", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "", // 0x63 137 | "", // 0x64 138 | "", // 0x65 139 | "", // 0x66 140 | "", // 0x67 141 | "", // 0x68 142 | "", // 0x69 143 | "", // 0x6a 144 | "", // 0x6b 145 | "", // 0x6c 146 | "", // 0x6d 147 | "", // 0x6e 148 | "", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "", // 0x72 152 | "", // 0x73 153 | "", // 0x74 154 | "", // 0x75 155 | "", // 0x76 156 | "", // 0x77 157 | "", // 0x78 158 | "", // 0x79 159 | "", // 0x7a 160 | "", // 0x7b 161 | "", // 0x7c 162 | "", // 0x7d 163 | "", // 0x7e 164 | "", // 0x7f 165 | "", // 0x80 166 | "", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "", // 0x8c 178 | "", // 0x8d 179 | "", // 0x8e 180 | "", // 0x8f 181 | "", // 0x90 182 | "", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "[?]", // 0xb0 214 | "", // 0xb1 215 | "", // 0xb2 216 | "", // 0xb3 217 | "", // 0xb4 218 | "", // 0xb5 219 | "", // 0xb6 220 | "", // 0xb7 221 | "", // 0xb8 222 | "", // 0xb9 223 | "", // 0xba 224 | "", // 0xbb 225 | "", // 0xbc 226 | "", // 0xbd 227 | "", // 0xbe 228 | "[?]", // 0xbf 229 | "[?]", // 0xc0 230 | "[?]", // 0xc1 231 | "[?]", // 0xc2 232 | "[?]", // 0xc3 233 | "[?]", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "[?]", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "[?]", // 0xd6 252 | "[?]", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "[?]", // 0xdc 258 | "[?]", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "[?]", // 0xe0 262 | "[?]", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "[?]", // 0xe6 268 | "[?]", // 0xe7 269 | "[?]", // 0xe8 270 | "[?]", // 0xe9 271 | "[?]", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/Xfe.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+FExx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class Xfe { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "[?]", // 0x01 39 | "[?]", // 0x02 40 | "[?]", // 0x03 41 | "[?]", // 0x04 42 | "[?]", // 0x05 43 | "[?]", // 0x06 44 | "[?]", // 0x07 45 | "[?]", // 0x08 46 | "[?]", // 0x09 47 | "[?]", // 0x0a 48 | "[?]", // 0x0b 49 | "[?]", // 0x0c 50 | "[?]", // 0x0d 51 | "[?]", // 0x0e 52 | "[?]", // 0x0f 53 | "[?]", // 0x10 54 | "[?]", // 0x11 55 | "[?]", // 0x12 56 | "[?]", // 0x13 57 | "[?]", // 0x14 58 | "[?]", // 0x15 59 | "[?]", // 0x16 60 | "[?]", // 0x17 61 | "[?]", // 0x18 62 | "[?]", // 0x19 63 | "[?]", // 0x1a 64 | "[?]", // 0x1b 65 | "[?]", // 0x1c 66 | "[?]", // 0x1d 67 | "[?]", // 0x1e 68 | "[?]", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "~", // 0x23 73 | "[?]", // 0x24 74 | "[?]", // 0x25 75 | "[?]", // 0x26 76 | "[?]", // 0x27 77 | "[?]", // 0x28 78 | "[?]", // 0x29 79 | "[?]", // 0x2a 80 | "[?]", // 0x2b 81 | "[?]", // 0x2c 82 | "[?]", // 0x2d 83 | "[?]", // 0x2e 84 | "[?]", // 0x2f 85 | "..", // 0x30 86 | "--", // 0x31 87 | "-", // 0x32 88 | "_", // 0x33 89 | "_", // 0x34 90 | "(", // 0x35 91 | ") ", // 0x36 92 | "{", // 0x37 93 | "} ", // 0x38 94 | "[", // 0x39 95 | "] ", // 0x3a 96 | "[(", // 0x3b 97 | ")] ", // 0x3c 98 | "<<", // 0x3d 99 | ">> ", // 0x3e 100 | "<", // 0x3f 101 | "> ", // 0x40 102 | "[", // 0x41 103 | "] ", // 0x42 104 | "{", // 0x43 105 | "}", // 0x44 106 | "[?]", // 0x45 107 | "[?]", // 0x46 108 | "[?]", // 0x47 109 | "[?]", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "", // 0x4b 113 | "", // 0x4c 114 | "", // 0x4d 115 | "", // 0x4e 116 | "", // 0x4f 117 | ",", // 0x50 118 | ",", // 0x51 119 | ".", // 0x52 120 | "", // 0x53 121 | ";", // 0x54 122 | ":", // 0x55 123 | "?", // 0x56 124 | "!", // 0x57 125 | "-", // 0x58 126 | "(", // 0x59 127 | ")", // 0x5a 128 | "{", // 0x5b 129 | "}", // 0x5c 130 | "{", // 0x5d 131 | "}", // 0x5e 132 | "#", // 0x5f 133 | "&", // 0x60 134 | "*", // 0x61 135 | "+", // 0x62 136 | "-", // 0x63 137 | "<", // 0x64 138 | ">", // 0x65 139 | "=", // 0x66 140 | "", // 0x67 141 | "\\", // 0x68 142 | "$", // 0x69 143 | "%", // 0x6a 144 | "@", // 0x6b 145 | "[?]", // 0x6c 146 | "[?]", // 0x6d 147 | "[?]", // 0x6e 148 | "[?]", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "", // 0x72 152 | "[?]", // 0x73 153 | "", // 0x74 154 | "[?]", // 0x75 155 | "", // 0x76 156 | "", // 0x77 157 | "", // 0x78 158 | "", // 0x79 159 | "", // 0x7a 160 | "", // 0x7b 161 | "", // 0x7c 162 | "", // 0x7d 163 | "", // 0x7e 164 | "", // 0x7f 165 | "", // 0x80 166 | "", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "", // 0x8c 178 | "", // 0x8d 179 | "", // 0x8e 180 | "", // 0x8f 181 | "", // 0x90 182 | "", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "", // 0xb0 214 | "", // 0xb1 215 | "", // 0xb2 216 | "", // 0xb3 217 | "", // 0xb4 218 | "", // 0xb5 219 | "", // 0xb6 220 | "", // 0xb7 221 | "", // 0xb8 222 | "", // 0xb9 223 | "", // 0xba 224 | "", // 0xbb 225 | "", // 0xbc 226 | "", // 0xbd 227 | "", // 0xbe 228 | "", // 0xbf 229 | "", // 0xc0 230 | "", // 0xc1 231 | "", // 0xc2 232 | "", // 0xc3 233 | "", // 0xc4 234 | "", // 0xc5 235 | "", // 0xc6 236 | "", // 0xc7 237 | "", // 0xc8 238 | "", // 0xc9 239 | "", // 0xca 240 | "", // 0xcb 241 | "", // 0xcc 242 | "", // 0xcd 243 | "", // 0xce 244 | "", // 0xcf 245 | "", // 0xd0 246 | "", // 0xd1 247 | "", // 0xd2 248 | "", // 0xd3 249 | "", // 0xd4 250 | "", // 0xd5 251 | "", // 0xd6 252 | "", // 0xd7 253 | "", // 0xd8 254 | "", // 0xd9 255 | "", // 0xda 256 | "", // 0xdb 257 | "", // 0xdc 258 | "", // 0xdd 259 | "", // 0xde 260 | "", // 0xdf 261 | "", // 0xe0 262 | "", // 0xe1 263 | "", // 0xe2 264 | "", // 0xe3 265 | "", // 0xe4 266 | "", // 0xe5 267 | "", // 0xe6 268 | "", // 0xe7 269 | "", // 0xe8 270 | "", // 0xe9 271 | "", // 0xea 272 | "", // 0xeb 273 | "", // 0xec 274 | "", // 0xed 275 | "", // 0xee 276 | "", // 0xef 277 | "", // 0xf0 278 | "", // 0xf1 279 | "", // 0xf2 280 | "", // 0xf3 281 | "", // 0xf4 282 | "", // 0xf5 283 | "", // 0xf6 284 | "", // 0xf7 285 | "", // 0xf8 286 | "", // 0xf9 287 | "", // 0xfa 288 | "", // 0xfb 289 | "", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]", // 0xfe 292 | "" // 0xff 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/Xfb.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+FBxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class Xfb { 35 | 36 | public static final String[] map = new String[]{ 37 | "ff", // 0x00 38 | "fi", // 0x01 39 | "fl", // 0x02 40 | "ffi", // 0x03 41 | "ffl", // 0x04 42 | "st", // 0x05 43 | "st", // 0x06 44 | "[?]", // 0x07 45 | "[?]", // 0x08 46 | "[?]", // 0x09 47 | "[?]", // 0x0a 48 | "[?]", // 0x0b 49 | "[?]", // 0x0c 50 | "[?]", // 0x0d 51 | "[?]", // 0x0e 52 | "[?]", // 0x0f 53 | "[?]", // 0x10 54 | "[?]", // 0x11 55 | "[?]", // 0x12 56 | "mn", // 0x13 57 | "me", // 0x14 58 | "mi", // 0x15 59 | "vn", // 0x16 60 | "mkh", // 0x17 61 | "[?]", // 0x18 62 | "[?]", // 0x19 63 | "[?]", // 0x1a 64 | "[?]", // 0x1b 65 | "[?]", // 0x1c 66 | "yi", // 0x1d 67 | "", // 0x1e 68 | "ay", // 0x1f 69 | "`", // 0x20 70 | "", // 0x21 71 | "d", // 0x22 72 | "h", // 0x23 73 | "k", // 0x24 74 | "l", // 0x25 75 | "m", // 0x26 76 | "m", // 0x27 77 | "t", // 0x28 78 | "+", // 0x29 79 | "sh", // 0x2a 80 | "s", // 0x2b 81 | "sh", // 0x2c 82 | "s", // 0x2d 83 | "a", // 0x2e 84 | "a", // 0x2f 85 | "", // 0x30 86 | "b", // 0x31 87 | "g", // 0x32 88 | "d", // 0x33 89 | "h", // 0x34 90 | "v", // 0x35 91 | "z", // 0x36 92 | "[?]", // 0x37 93 | "t", // 0x38 94 | "y", // 0x39 95 | "k", // 0x3a 96 | "k", // 0x3b 97 | "l", // 0x3c 98 | "[?]", // 0x3d 99 | "l", // 0x3e 100 | "[?]", // 0x3f 101 | "n", // 0x40 102 | "n", // 0x41 103 | "[?]", // 0x42 104 | "p", // 0x43 105 | "p", // 0x44 106 | "[?]", // 0x45 107 | "ts", // 0x46 108 | "ts", // 0x47 109 | "r", // 0x48 110 | "sh", // 0x49 111 | "t", // 0x4a 112 | "vo", // 0x4b 113 | "b", // 0x4c 114 | "k", // 0x4d 115 | "p", // 0x4e 116 | "l", // 0x4f 117 | "", // 0x50 118 | "", // 0x51 119 | "", // 0x52 120 | "", // 0x53 121 | "", // 0x54 122 | "", // 0x55 123 | "", // 0x56 124 | "", // 0x57 125 | "", // 0x58 126 | "", // 0x59 127 | "", // 0x5a 128 | "", // 0x5b 129 | "", // 0x5c 130 | "", // 0x5d 131 | "", // 0x5e 132 | "", // 0x5f 133 | "", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "", // 0x63 137 | "", // 0x64 138 | "", // 0x65 139 | "", // 0x66 140 | "", // 0x67 141 | "", // 0x68 142 | "", // 0x69 143 | "", // 0x6a 144 | "", // 0x6b 145 | "", // 0x6c 146 | "", // 0x6d 147 | "", // 0x6e 148 | "", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "", // 0x72 152 | "", // 0x73 153 | "", // 0x74 154 | "", // 0x75 155 | "", // 0x76 156 | "", // 0x77 157 | "", // 0x78 158 | "", // 0x79 159 | "", // 0x7a 160 | "", // 0x7b 161 | "", // 0x7c 162 | "", // 0x7d 163 | "", // 0x7e 164 | "", // 0x7f 165 | "", // 0x80 166 | "", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "", // 0x8c 178 | "", // 0x8d 179 | "", // 0x8e 180 | "", // 0x8f 181 | "", // 0x90 182 | "", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "", // 0xb0 214 | "", // 0xb1 215 | "[?]", // 0xb2 216 | "[?]", // 0xb3 217 | "[?]", // 0xb4 218 | "[?]", // 0xb5 219 | "[?]", // 0xb6 220 | "[?]", // 0xb7 221 | "[?]", // 0xb8 222 | "[?]", // 0xb9 223 | "[?]", // 0xba 224 | "[?]", // 0xbb 225 | "[?]", // 0xbc 226 | "[?]", // 0xbd 227 | "[?]", // 0xbe 228 | "[?]", // 0xbf 229 | "[?]", // 0xc0 230 | "[?]", // 0xc1 231 | "[?]", // 0xc2 232 | "[?]", // 0xc3 233 | "[?]", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "[?]", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "", // 0xd3 249 | "", // 0xd4 250 | "", // 0xd5 251 | "", // 0xd6 252 | "", // 0xd7 253 | "", // 0xd8 254 | "", // 0xd9 255 | "", // 0xda 256 | "", // 0xdb 257 | "", // 0xdc 258 | "", // 0xdd 259 | "", // 0xde 260 | "", // 0xdf 261 | "", // 0xe0 262 | "", // 0xe1 263 | "", // 0xe2 264 | "", // 0xe3 265 | "", // 0xe4 266 | "", // 0xe5 267 | "", // 0xe6 268 | "", // 0xe7 269 | "", // 0xe8 270 | "", // 0xe9 271 | "", // 0xea 272 | "", // 0xeb 273 | "", // 0xec 274 | "", // 0xed 275 | "", // 0xee 276 | "", // 0xef 277 | "", // 0xf0 278 | "", // 0xf1 279 | "", // 0xf2 280 | "", // 0xf3 281 | "", // 0xf4 282 | "", // 0xf5 283 | "", // 0xf6 284 | "", // 0xf7 285 | "", // 0xf8 286 | "", // 0xf9 287 | "", // 0xfa 288 | "", // 0xfb 289 | "", // 0xfc 290 | "", // 0xfd 291 | "", // 0xfe 292 | "" // 0xff 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X1e.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+1Exx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X1e { 35 | 36 | public static final String[] map = new String[]{ 37 | "A", // 0x00 38 | "a", // 0x01 39 | "B", // 0x02 40 | "b", // 0x03 41 | "B", // 0x04 42 | "b", // 0x05 43 | "B", // 0x06 44 | "b", // 0x07 45 | "C", // 0x08 46 | "c", // 0x09 47 | "D", // 0x0a 48 | "d", // 0x0b 49 | "D", // 0x0c 50 | "d", // 0x0d 51 | "D", // 0x0e 52 | "d", // 0x0f 53 | "D", // 0x10 54 | "d", // 0x11 55 | "D", // 0x12 56 | "d", // 0x13 57 | "E", // 0x14 58 | "e", // 0x15 59 | "E", // 0x16 60 | "e", // 0x17 61 | "E", // 0x18 62 | "e", // 0x19 63 | "E", // 0x1a 64 | "e", // 0x1b 65 | "E", // 0x1c 66 | "e", // 0x1d 67 | "F", // 0x1e 68 | "f", // 0x1f 69 | "G", // 0x20 70 | "g", // 0x21 71 | "H", // 0x22 72 | "h", // 0x23 73 | "H", // 0x24 74 | "h", // 0x25 75 | "H", // 0x26 76 | "h", // 0x27 77 | "H", // 0x28 78 | "h", // 0x29 79 | "H", // 0x2a 80 | "h", // 0x2b 81 | "I", // 0x2c 82 | "i", // 0x2d 83 | "I", // 0x2e 84 | "i", // 0x2f 85 | "K", // 0x30 86 | "k", // 0x31 87 | "K", // 0x32 88 | "k", // 0x33 89 | "K", // 0x34 90 | "k", // 0x35 91 | "L", // 0x36 92 | "l", // 0x37 93 | "L", // 0x38 94 | "l", // 0x39 95 | "L", // 0x3a 96 | "l", // 0x3b 97 | "L", // 0x3c 98 | "l", // 0x3d 99 | "M", // 0x3e 100 | "m", // 0x3f 101 | "M", // 0x40 102 | "m", // 0x41 103 | "M", // 0x42 104 | "m", // 0x43 105 | "N", // 0x44 106 | "n", // 0x45 107 | "N", // 0x46 108 | "n", // 0x47 109 | "N", // 0x48 110 | "n", // 0x49 111 | "N", // 0x4a 112 | "n", // 0x4b 113 | "O", // 0x4c 114 | "o", // 0x4d 115 | "O", // 0x4e 116 | "o", // 0x4f 117 | "O", // 0x50 118 | "o", // 0x51 119 | "O", // 0x52 120 | "o", // 0x53 121 | "P", // 0x54 122 | "p", // 0x55 123 | "P", // 0x56 124 | "p", // 0x57 125 | "R", // 0x58 126 | "r", // 0x59 127 | "R", // 0x5a 128 | "r", // 0x5b 129 | "R", // 0x5c 130 | "r", // 0x5d 131 | "R", // 0x5e 132 | "r", // 0x5f 133 | "S", // 0x60 134 | "s", // 0x61 135 | "S", // 0x62 136 | "s", // 0x63 137 | "S", // 0x64 138 | "s", // 0x65 139 | "S", // 0x66 140 | "s", // 0x67 141 | "S", // 0x68 142 | "s", // 0x69 143 | "T", // 0x6a 144 | "t", // 0x6b 145 | "T", // 0x6c 146 | "t", // 0x6d 147 | "T", // 0x6e 148 | "t", // 0x6f 149 | "T", // 0x70 150 | "t", // 0x71 151 | "U", // 0x72 152 | "u", // 0x73 153 | "U", // 0x74 154 | "u", // 0x75 155 | "U", // 0x76 156 | "u", // 0x77 157 | "U", // 0x78 158 | "u", // 0x79 159 | "U", // 0x7a 160 | "u", // 0x7b 161 | "V", // 0x7c 162 | "v", // 0x7d 163 | "V", // 0x7e 164 | "v", // 0x7f 165 | "W", // 0x80 166 | "w", // 0x81 167 | "W", // 0x82 168 | "w", // 0x83 169 | "W", // 0x84 170 | "w", // 0x85 171 | "W", // 0x86 172 | "w", // 0x87 173 | "W", // 0x88 174 | "w", // 0x89 175 | "X", // 0x8a 176 | "x", // 0x8b 177 | "X", // 0x8c 178 | "x", // 0x8d 179 | "Y", // 0x8e 180 | "y", // 0x8f 181 | "Z", // 0x90 182 | "z", // 0x91 183 | "Z", // 0x92 184 | "z", // 0x93 185 | "Z", // 0x94 186 | "z", // 0x95 187 | "h", // 0x96 188 | "t", // 0x97 189 | "w", // 0x98 190 | "y", // 0x99 191 | "a", // 0x9a 192 | "S", // 0x9b 193 | "[?]", // 0x9c 194 | "[?]", // 0x9d 195 | "[?]", // 0x9e 196 | "[?]", // 0x9f 197 | "A", // 0xa0 198 | "a", // 0xa1 199 | "A", // 0xa2 200 | "a", // 0xa3 201 | "A", // 0xa4 202 | "a", // 0xa5 203 | "A", // 0xa6 204 | "a", // 0xa7 205 | "A", // 0xa8 206 | "a", // 0xa9 207 | "A", // 0xaa 208 | "a", // 0xab 209 | "A", // 0xac 210 | "a", // 0xad 211 | "A", // 0xae 212 | "a", // 0xaf 213 | "A", // 0xb0 214 | "a", // 0xb1 215 | "A", // 0xb2 216 | "a", // 0xb3 217 | "A", // 0xb4 218 | "a", // 0xb5 219 | "A", // 0xb6 220 | "a", // 0xb7 221 | "E", // 0xb8 222 | "e", // 0xb9 223 | "E", // 0xba 224 | "e", // 0xbb 225 | "E", // 0xbc 226 | "e", // 0xbd 227 | "E", // 0xbe 228 | "e", // 0xbf 229 | "E", // 0xc0 230 | "e", // 0xc1 231 | "E", // 0xc2 232 | "e", // 0xc3 233 | "E", // 0xc4 234 | "e", // 0xc5 235 | "E", // 0xc6 236 | "e", // 0xc7 237 | "I", // 0xc8 238 | "i", // 0xc9 239 | "I", // 0xca 240 | "i", // 0xcb 241 | "O", // 0xcc 242 | "o", // 0xcd 243 | "O", // 0xce 244 | "o", // 0xcf 245 | "O", // 0xd0 246 | "o", // 0xd1 247 | "O", // 0xd2 248 | "o", // 0xd3 249 | "O", // 0xd4 250 | "o", // 0xd5 251 | "O", // 0xd6 252 | "o", // 0xd7 253 | "O", // 0xd8 254 | "o", // 0xd9 255 | "O", // 0xda 256 | "o", // 0xdb 257 | "O", // 0xdc 258 | "o", // 0xdd 259 | "O", // 0xde 260 | "o", // 0xdf 261 | "O", // 0xe0 262 | "o", // 0xe1 263 | "O", // 0xe2 264 | "o", // 0xe3 265 | "U", // 0xe4 266 | "u", // 0xe5 267 | "U", // 0xe6 268 | "u", // 0xe7 269 | "U", // 0xe8 270 | "u", // 0xe9 271 | "U", // 0xea 272 | "u", // 0xeb 273 | "U", // 0xec 274 | "u", // 0xed 275 | "U", // 0xee 276 | "u", // 0xef 277 | "U", // 0xf0 278 | "u", // 0xf1 279 | "Y", // 0xf2 280 | "y", // 0xf3 281 | "Y", // 0xf4 282 | "y", // 0xf5 283 | "Y", // 0xf6 284 | "y", // 0xf7 285 | "Y", // 0xf8 286 | "y", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X25.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+25xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X25 { 35 | 36 | public static final String[] map = new String[]{ 37 | "-", // 0x00 38 | "-", // 0x01 39 | "|", // 0x02 40 | "|", // 0x03 41 | "-", // 0x04 42 | "-", // 0x05 43 | "|", // 0x06 44 | "|", // 0x07 45 | "-", // 0x08 46 | "-", // 0x09 47 | "|", // 0x0a 48 | "|", // 0x0b 49 | "+", // 0x0c 50 | "+", // 0x0d 51 | "+", // 0x0e 52 | "+", // 0x0f 53 | "+", // 0x10 54 | "+", // 0x11 55 | "+", // 0x12 56 | "+", // 0x13 57 | "+", // 0x14 58 | "+", // 0x15 59 | "+", // 0x16 60 | "+", // 0x17 61 | "+", // 0x18 62 | "+", // 0x19 63 | "+", // 0x1a 64 | "+", // 0x1b 65 | "+", // 0x1c 66 | "+", // 0x1d 67 | "+", // 0x1e 68 | "+", // 0x1f 69 | "+", // 0x20 70 | "+", // 0x21 71 | "+", // 0x22 72 | "+", // 0x23 73 | "+", // 0x24 74 | "+", // 0x25 75 | "+", // 0x26 76 | "+", // 0x27 77 | "+", // 0x28 78 | "+", // 0x29 79 | "+", // 0x2a 80 | "+", // 0x2b 81 | "+", // 0x2c 82 | "+", // 0x2d 83 | "+", // 0x2e 84 | "+", // 0x2f 85 | "+", // 0x30 86 | "+", // 0x31 87 | "+", // 0x32 88 | "+", // 0x33 89 | "+", // 0x34 90 | "+", // 0x35 91 | "+", // 0x36 92 | "+", // 0x37 93 | "+", // 0x38 94 | "+", // 0x39 95 | "+", // 0x3a 96 | "+", // 0x3b 97 | "+", // 0x3c 98 | "+", // 0x3d 99 | "+", // 0x3e 100 | "+", // 0x3f 101 | "+", // 0x40 102 | "+", // 0x41 103 | "+", // 0x42 104 | "+", // 0x43 105 | "+", // 0x44 106 | "+", // 0x45 107 | "+", // 0x46 108 | "+", // 0x47 109 | "+", // 0x48 110 | "+", // 0x49 111 | "+", // 0x4a 112 | "+", // 0x4b 113 | "-", // 0x4c 114 | "-", // 0x4d 115 | "|", // 0x4e 116 | "|", // 0x4f 117 | "-", // 0x50 118 | "|", // 0x51 119 | "+", // 0x52 120 | "+", // 0x53 121 | "+", // 0x54 122 | "+", // 0x55 123 | "+", // 0x56 124 | "+", // 0x57 125 | "+", // 0x58 126 | "+", // 0x59 127 | "+", // 0x5a 128 | "+", // 0x5b 129 | "+", // 0x5c 130 | "+", // 0x5d 131 | "+", // 0x5e 132 | "+", // 0x5f 133 | "+", // 0x60 134 | "+", // 0x61 135 | "+", // 0x62 136 | "+", // 0x63 137 | "+", // 0x64 138 | "+", // 0x65 139 | "+", // 0x66 140 | "+", // 0x67 141 | "+", // 0x68 142 | "+", // 0x69 143 | "+", // 0x6a 144 | "+", // 0x6b 145 | "+", // 0x6c 146 | "+", // 0x6d 147 | "+", // 0x6e 148 | "+", // 0x6f 149 | "+", // 0x70 150 | "/", // 0x71 151 | "\\", // 0x72 152 | "X", // 0x73 153 | "-", // 0x74 154 | "|", // 0x75 155 | "-", // 0x76 156 | "|", // 0x77 157 | "-", // 0x78 158 | "|", // 0x79 159 | "-", // 0x7a 160 | "|", // 0x7b 161 | "-", // 0x7c 162 | "|", // 0x7d 163 | "-", // 0x7e 164 | "|", // 0x7f 165 | "#", // 0x80 166 | "#", // 0x81 167 | "#", // 0x82 168 | "#", // 0x83 169 | "#", // 0x84 170 | "#", // 0x85 171 | "#", // 0x86 172 | "#", // 0x87 173 | "#", // 0x88 174 | "#", // 0x89 175 | "#", // 0x8a 176 | "#", // 0x8b 177 | "#", // 0x8c 178 | "#", // 0x8d 179 | "#", // 0x8e 180 | "#", // 0x8f 181 | "#", // 0x90 182 | "#", // 0x91 183 | "#", // 0x92 184 | "#", // 0x93 185 | "-", // 0x94 186 | "|", // 0x95 187 | "[?]", // 0x96 188 | "[?]", // 0x97 189 | "[?]", // 0x98 190 | "[?]", // 0x99 191 | "[?]", // 0x9a 192 | "[?]", // 0x9b 193 | "[?]", // 0x9c 194 | "[?]", // 0x9d 195 | "[?]", // 0x9e 196 | "[?]", // 0x9f 197 | "#", // 0xa0 198 | "#", // 0xa1 199 | "#", // 0xa2 200 | "#", // 0xa3 201 | "#", // 0xa4 202 | "#", // 0xa5 203 | "#", // 0xa6 204 | "#", // 0xa7 205 | "#", // 0xa8 206 | "#", // 0xa9 207 | "#", // 0xaa 208 | "#", // 0xab 209 | "#", // 0xac 210 | "#", // 0xad 211 | "#", // 0xae 212 | "#", // 0xaf 213 | "#", // 0xb0 214 | "#", // 0xb1 215 | "^", // 0xb2 216 | "^", // 0xb3 217 | "^", // 0xb4 218 | "^", // 0xb5 219 | ">", // 0xb6 220 | ">", // 0xb7 221 | ">", // 0xb8 222 | ">", // 0xb9 223 | ">", // 0xba 224 | ">", // 0xbb 225 | "V", // 0xbc 226 | "V", // 0xbd 227 | "V", // 0xbe 228 | "V", // 0xbf 229 | "<", // 0xc0 230 | "<", // 0xc1 231 | "<", // 0xc2 232 | "<", // 0xc3 233 | "<", // 0xc4 234 | "<", // 0xc5 235 | "*", // 0xc6 236 | "*", // 0xc7 237 | "*", // 0xc8 238 | "*", // 0xc9 239 | "*", // 0xca 240 | "*", // 0xcb 241 | "*", // 0xcc 242 | "*", // 0xcd 243 | "*", // 0xce 244 | "*", // 0xcf 245 | "*", // 0xd0 246 | "*", // 0xd1 247 | "*", // 0xd2 248 | "*", // 0xd3 249 | "*", // 0xd4 250 | "*", // 0xd5 251 | "*", // 0xd6 252 | "*", // 0xd7 253 | "*", // 0xd8 254 | "*", // 0xd9 255 | "*", // 0xda 256 | "*", // 0xdb 257 | "*", // 0xdc 258 | "*", // 0xdd 259 | "*", // 0xde 260 | "*", // 0xdf 261 | "*", // 0xe0 262 | "*", // 0xe1 263 | "*", // 0xe2 264 | "*", // 0xe3 265 | "*", // 0xe4 266 | "*", // 0xe5 267 | "*", // 0xe6 268 | "#", // 0xe7 269 | "#", // 0xe8 270 | "#", // 0xe9 271 | "#", // 0xea 272 | "#", // 0xeb 273 | "^", // 0xec 274 | "^", // 0xed 275 | "^", // 0xee 276 | "O", // 0xef 277 | "#", // 0xf0 278 | "#", // 0xf1 279 | "#", // 0xf2 280 | "#", // 0xf3 281 | "#", // 0xf4 282 | "#", // 0xf5 283 | "#", // 0xf6 284 | "#", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X01.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+01xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X01 { 35 | 36 | public static final String[] map = new String[]{ 37 | "A", // 0x00 38 | "a", // 0x01 39 | "A", // 0x02 40 | "a", // 0x03 41 | "A", // 0x04 42 | "a", // 0x05 43 | "C", // 0x06 44 | "c", // 0x07 45 | "C", // 0x08 46 | "c", // 0x09 47 | "C", // 0x0a 48 | "c", // 0x0b 49 | "C", // 0x0c 50 | "c", // 0x0d 51 | "D", // 0x0e 52 | "d", // 0x0f 53 | "D", // 0x10 54 | "d", // 0x11 55 | "E", // 0x12 56 | "e", // 0x13 57 | "E", // 0x14 58 | "e", // 0x15 59 | "E", // 0x16 60 | "e", // 0x17 61 | "E", // 0x18 62 | "e", // 0x19 63 | "E", // 0x1a 64 | "e", // 0x1b 65 | "G", // 0x1c 66 | "g", // 0x1d 67 | "G", // 0x1e 68 | "g", // 0x1f 69 | "G", // 0x20 70 | "g", // 0x21 71 | "G", // 0x22 72 | "g", // 0x23 73 | "H", // 0x24 74 | "h", // 0x25 75 | "H", // 0x26 76 | "h", // 0x27 77 | "I", // 0x28 78 | "i", // 0x29 79 | "I", // 0x2a 80 | "i", // 0x2b 81 | "I", // 0x2c 82 | "i", // 0x2d 83 | "I", // 0x2e 84 | "i", // 0x2f 85 | "I", // 0x30 86 | "i", // 0x31 87 | "IJ", // 0x32 88 | "", // 0x33 89 | "J", // 0x34 90 | "j", // 0x35 91 | "K", // 0x36 92 | "k", // 0x37 93 | "k", // 0x38 94 | "L", // 0x39 95 | "l", // 0x3a 96 | "L", // 0x3b 97 | "l", // 0x3c 98 | "L", // 0x3d 99 | "l", // 0x3e 100 | "L", // 0x3f 101 | "l", // 0x40 102 | "L", // 0x41 103 | "l", // 0x42 104 | "N", // 0x43 105 | "n", // 0x44 106 | "N", // 0x45 107 | "n", // 0x46 108 | "N", // 0x47 109 | "n", // 0x48 110 | "\'n", // 0x49 111 | "NG", // 0x4a 112 | "ng", // 0x4b 113 | "O", // 0x4c 114 | "o", // 0x4d 115 | "O", // 0x4e 116 | "o", // 0x4f 117 | "O", // 0x50 118 | "o", // 0x51 119 | "OE", // 0x52 120 | "oe", // 0x53 121 | "R", // 0x54 122 | "r", // 0x55 123 | "R", // 0x56 124 | "r", // 0x57 125 | "R", // 0x58 126 | "r", // 0x59 127 | "S", // 0x5a 128 | "s", // 0x5b 129 | "S", // 0x5c 130 | "s", // 0x5d 131 | "S", // 0x5e 132 | "s", // 0x5f 133 | "S", // 0x60 134 | "s", // 0x61 135 | "T", // 0x62 136 | "t", // 0x63 137 | "T", // 0x64 138 | "t", // 0x65 139 | "T", // 0x66 140 | "t", // 0x67 141 | "U", // 0x68 142 | "u", // 0x69 143 | "U", // 0x6a 144 | "u", // 0x6b 145 | "U", // 0x6c 146 | "u", // 0x6d 147 | "U", // 0x6e 148 | "u", // 0x6f 149 | "U", // 0x70 150 | "u", // 0x71 151 | "U", // 0x72 152 | "u", // 0x73 153 | "W", // 0x74 154 | "w", // 0x75 155 | "Y", // 0x76 156 | "y", // 0x77 157 | "Y", // 0x78 158 | "Z", // 0x79 159 | "z", // 0x7a 160 | "Z", // 0x7b 161 | "z", // 0x7c 162 | "Z", // 0x7d 163 | "z", // 0x7e 164 | "s", // 0x7f 165 | "b", // 0x80 166 | "B", // 0x81 167 | "B", // 0x82 168 | "b", // 0x83 169 | "6", // 0x84 170 | "6", // 0x85 171 | "O", // 0x86 172 | "C", // 0x87 173 | "c", // 0x88 174 | "D", // 0x89 175 | "D", // 0x8a 176 | "D", // 0x8b 177 | "d", // 0x8c 178 | "d", // 0x8d 179 | "3", // 0x8e 180 | "@", // 0x8f 181 | "E", // 0x90 182 | "F", // 0x91 183 | "f", // 0x92 184 | "G", // 0x93 185 | "G", // 0x94 186 | "hv", // 0x95 187 | "I", // 0x96 188 | "I", // 0x97 189 | "K", // 0x98 190 | "k", // 0x99 191 | "l", // 0x9a 192 | "l", // 0x9b 193 | "W", // 0x9c 194 | "N", // 0x9d 195 | "n", // 0x9e 196 | "O", // 0x9f 197 | "O", // 0xa0 198 | "o", // 0xa1 199 | "OI", // 0xa2 200 | "oi", // 0xa3 201 | "P", // 0xa4 202 | "p", // 0xa5 203 | "YR", // 0xa6 204 | "2", // 0xa7 205 | "2", // 0xa8 206 | "SH", // 0xa9 207 | "sh", // 0xaa 208 | "t", // 0xab 209 | "T", // 0xac 210 | "t", // 0xad 211 | "T", // 0xae 212 | "U", // 0xaf 213 | "u", // 0xb0 214 | "Y", // 0xb1 215 | "V", // 0xb2 216 | "Y", // 0xb3 217 | "y", // 0xb4 218 | "Z", // 0xb5 219 | "z", // 0xb6 220 | "ZH", // 0xb7 221 | "ZH", // 0xb8 222 | "zh", // 0xb9 223 | "zh", // 0xba 224 | "2", // 0xbb 225 | "5", // 0xbc 226 | "5", // 0xbd 227 | "ts", // 0xbe 228 | "w", // 0xbf 229 | "|", // 0xc0 230 | "||", // 0xc1 231 | "|=", // 0xc2 232 | "!", // 0xc3 233 | "DZ", // 0xc4 234 | "Dz", // 0xc5 235 | "dz", // 0xc6 236 | "LJ", // 0xc7 237 | "Lj", // 0xc8 238 | "lj", // 0xc9 239 | "NJ", // 0xca 240 | "Nj", // 0xcb 241 | "nj", // 0xcc 242 | "A", // 0xcd 243 | "a", // 0xce 244 | "I", // 0xcf 245 | "i", // 0xd0 246 | "O", // 0xd1 247 | "o", // 0xd2 248 | "U", // 0xd3 249 | "u", // 0xd4 250 | "U", // 0xd5 251 | "u", // 0xd6 252 | "U", // 0xd7 253 | "u", // 0xd8 254 | "U", // 0xd9 255 | "u", // 0xda 256 | "U", // 0xdb 257 | "u", // 0xdc 258 | "@", // 0xdd 259 | "A", // 0xde 260 | "a", // 0xdf 261 | "A", // 0xe0 262 | "a", // 0xe1 263 | "AE", // 0xe2 264 | "ae", // 0xe3 265 | "G", // 0xe4 266 | "g", // 0xe5 267 | "G", // 0xe6 268 | "g", // 0xe7 269 | "K", // 0xe8 270 | "k", // 0xe9 271 | "O", // 0xea 272 | "o", // 0xeb 273 | "O", // 0xec 274 | "o", // 0xed 275 | "ZH", // 0xee 276 | "zh", // 0xef 277 | "j", // 0xf0 278 | "DZ", // 0xf1 279 | "D", // 0xf2 280 | "dz", // 0xf3 281 | "G", // 0xf4 282 | "g", // 0xf5 283 | "HV", // 0xf6 284 | "W", // 0xf7 285 | "N", // 0xf8 286 | "n", // 0xf9 287 | "A", // 0xfa 288 | "a", // 0xfb 289 | "AE", // 0xfc 290 | "ae", // 0xfd 291 | "O", // 0xfe 292 | "o" // 0xff 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X03.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+03xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X03 { 35 | 36 | public static final String[] map = new String[]{ 37 | "", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | "", // 0x08 46 | "", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "", // 0x0f 53 | "", // 0x10 54 | "", // 0x11 55 | "", // 0x12 56 | "", // 0x13 57 | "", // 0x14 58 | "", // 0x15 59 | "", // 0x16 60 | "", // 0x17 61 | "", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "", // 0x23 73 | "", // 0x24 74 | "", // 0x25 75 | "", // 0x26 76 | "", // 0x27 77 | "", // 0x28 78 | "", // 0x29 79 | "", // 0x2a 80 | "", // 0x2b 81 | "", // 0x2c 82 | "", // 0x2d 83 | "", // 0x2e 84 | "", // 0x2f 85 | "", // 0x30 86 | "", // 0x31 87 | "", // 0x32 88 | "", // 0x33 89 | "", // 0x34 90 | "", // 0x35 91 | "", // 0x36 92 | "", // 0x37 93 | "", // 0x38 94 | "", // 0x39 95 | "", // 0x3a 96 | "", // 0x3b 97 | "", // 0x3c 98 | "", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "", // 0x40 102 | "", // 0x41 103 | "", // 0x42 104 | "", // 0x43 105 | "", // 0x44 106 | "", // 0x45 107 | "", // 0x46 108 | "", // 0x47 109 | "", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "", // 0x4b 113 | "", // 0x4c 114 | "", // 0x4d 115 | "", // 0x4e 116 | "[?]", // 0x4f 117 | "[?]", // 0x50 118 | "[?]", // 0x51 119 | "[?]", // 0x52 120 | "[?]", // 0x53 121 | "[?]", // 0x54 122 | "[?]", // 0x55 123 | "[?]", // 0x56 124 | "[?]", // 0x57 125 | "[?]", // 0x58 126 | "[?]", // 0x59 127 | "[?]", // 0x5a 128 | "[?]", // 0x5b 129 | "[?]", // 0x5c 130 | "[?]", // 0x5d 131 | "[?]", // 0x5e 132 | "[?]", // 0x5f 133 | "", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "[?]", // 0x63 137 | "[?]", // 0x64 138 | "[?]", // 0x65 139 | "[?]", // 0x66 140 | "[?]", // 0x67 141 | "[?]", // 0x68 142 | "[?]", // 0x69 143 | "[?]", // 0x6a 144 | "[?]", // 0x6b 145 | "[?]", // 0x6c 146 | "[?]", // 0x6d 147 | "[?]", // 0x6e 148 | "[?]", // 0x6f 149 | "[?]", // 0x70 150 | "[?]", // 0x71 151 | "[?]", // 0x72 152 | "[?]", // 0x73 153 | "\'", // 0x74 154 | ",", // 0x75 155 | "[?]", // 0x76 156 | "[?]", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "?", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "[?]", // 0x81 167 | "[?]", // 0x82 168 | "[?]", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "A", // 0x86 172 | ";", // 0x87 173 | "E", // 0x88 174 | "E", // 0x89 175 | "I", // 0x8a 176 | "[?]", // 0x8b 177 | "O", // 0x8c 178 | "[?]", // 0x8d 179 | "U", // 0x8e 180 | "O", // 0x8f 181 | "I", // 0x90 182 | "A", // 0x91 183 | "B", // 0x92 184 | "G", // 0x93 185 | "D", // 0x94 186 | "E", // 0x95 187 | "Z", // 0x96 188 | "E", // 0x97 189 | "Th", // 0x98 190 | "I", // 0x99 191 | "K", // 0x9a 192 | "L", // 0x9b 193 | "M", // 0x9c 194 | "N", // 0x9d 195 | "Ks", // 0x9e 196 | "O", // 0x9f 197 | "P", // 0xa0 198 | "R", // 0xa1 199 | "[?]", // 0xa2 200 | "S", // 0xa3 201 | "T", // 0xa4 202 | "U", // 0xa5 203 | "Ph", // 0xa6 204 | "Kh", // 0xa7 205 | "Ps", // 0xa8 206 | "O", // 0xa9 207 | "I", // 0xaa 208 | "U", // 0xab 209 | "a", // 0xac 210 | "e", // 0xad 211 | "e", // 0xae 212 | "i", // 0xaf 213 | "u", // 0xb0 214 | "a", // 0xb1 215 | "b", // 0xb2 216 | "g", // 0xb3 217 | "d", // 0xb4 218 | "e", // 0xb5 219 | "z", // 0xb6 220 | "e", // 0xb7 221 | "th", // 0xb8 222 | "i", // 0xb9 223 | "k", // 0xba 224 | "l", // 0xbb 225 | "m", // 0xbc 226 | "n", // 0xbd 227 | "x", // 0xbe 228 | "o", // 0xbf 229 | "p", // 0xc0 230 | "r", // 0xc1 231 | "s", // 0xc2 232 | "s", // 0xc3 233 | "t", // 0xc4 234 | "u", // 0xc5 235 | "ph", // 0xc6 236 | "kh", // 0xc7 237 | "ps", // 0xc8 238 | "o", // 0xc9 239 | "i", // 0xca 240 | "u", // 0xcb 241 | "o", // 0xcc 242 | "u", // 0xcd 243 | "o", // 0xce 244 | "[?]", // 0xcf 245 | "b", // 0xd0 246 | "th", // 0xd1 247 | "U", // 0xd2 248 | "U", // 0xd3 249 | "U", // 0xd4 250 | "ph", // 0xd5 251 | "p", // 0xd6 252 | "&", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "St", // 0xda 256 | "st", // 0xdb 257 | "W", // 0xdc 258 | "w", // 0xdd 259 | "Q", // 0xde 260 | "q", // 0xdf 261 | "Sp", // 0xe0 262 | "sp", // 0xe1 263 | "Sh", // 0xe2 264 | "sh", // 0xe3 265 | "F", // 0xe4 266 | "f", // 0xe5 267 | "Kh", // 0xe6 268 | "kh", // 0xe7 269 | "H", // 0xe8 270 | "h", // 0xe9 271 | "G", // 0xea 272 | "g", // 0xeb 273 | "CH", // 0xec 274 | "ch", // 0xed 275 | "Ti", // 0xee 276 | "ti", // 0xef 277 | "k", // 0xf0 278 | "r", // 0xf1 279 | "c", // 0xf2 280 | "j", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X1f.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+1Fxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X1f { 35 | 36 | public static final String[] map = new String[]{ 37 | "a", // 0x00 38 | "a", // 0x01 39 | "a", // 0x02 40 | "a", // 0x03 41 | "a", // 0x04 42 | "a", // 0x05 43 | "a", // 0x06 44 | "a", // 0x07 45 | "A", // 0x08 46 | "A", // 0x09 47 | "A", // 0x0a 48 | "A", // 0x0b 49 | "A", // 0x0c 50 | "A", // 0x0d 51 | "A", // 0x0e 52 | "A", // 0x0f 53 | "e", // 0x10 54 | "e", // 0x11 55 | "e", // 0x12 56 | "e", // 0x13 57 | "e", // 0x14 58 | "e", // 0x15 59 | "[?]", // 0x16 60 | "[?]", // 0x17 61 | "E", // 0x18 62 | "E", // 0x19 63 | "E", // 0x1a 64 | "E", // 0x1b 65 | "E", // 0x1c 66 | "E", // 0x1d 67 | "[?]", // 0x1e 68 | "[?]", // 0x1f 69 | "e", // 0x20 70 | "e", // 0x21 71 | "e", // 0x22 72 | "e", // 0x23 73 | "e", // 0x24 74 | "e", // 0x25 75 | "e", // 0x26 76 | "e", // 0x27 77 | "E", // 0x28 78 | "E", // 0x29 79 | "E", // 0x2a 80 | "E", // 0x2b 81 | "E", // 0x2c 82 | "E", // 0x2d 83 | "E", // 0x2e 84 | "E", // 0x2f 85 | "i", // 0x30 86 | "i", // 0x31 87 | "i", // 0x32 88 | "i", // 0x33 89 | "i", // 0x34 90 | "i", // 0x35 91 | "i", // 0x36 92 | "i", // 0x37 93 | "I", // 0x38 94 | "I", // 0x39 95 | "I", // 0x3a 96 | "I", // 0x3b 97 | "I", // 0x3c 98 | "I", // 0x3d 99 | "I", // 0x3e 100 | "I", // 0x3f 101 | "o", // 0x40 102 | "o", // 0x41 103 | "o", // 0x42 104 | "o", // 0x43 105 | "o", // 0x44 106 | "o", // 0x45 107 | "[?]", // 0x46 108 | "[?]", // 0x47 109 | "O", // 0x48 110 | "O", // 0x49 111 | "O", // 0x4a 112 | "O", // 0x4b 113 | "O", // 0x4c 114 | "O", // 0x4d 115 | "[?]", // 0x4e 116 | "[?]", // 0x4f 117 | "u", // 0x50 118 | "u", // 0x51 119 | "u", // 0x52 120 | "u", // 0x53 121 | "u", // 0x54 122 | "u", // 0x55 123 | "u", // 0x56 124 | "u", // 0x57 125 | "[?]", // 0x58 126 | "U", // 0x59 127 | "[?]", // 0x5a 128 | "U", // 0x5b 129 | "[?]", // 0x5c 130 | "U", // 0x5d 131 | "[?]", // 0x5e 132 | "U", // 0x5f 133 | "o", // 0x60 134 | "o", // 0x61 135 | "o", // 0x62 136 | "o", // 0x63 137 | "o", // 0x64 138 | "o", // 0x65 139 | "o", // 0x66 140 | "o", // 0x67 141 | "O", // 0x68 142 | "O", // 0x69 143 | "O", // 0x6a 144 | "O", // 0x6b 145 | "O", // 0x6c 146 | "O", // 0x6d 147 | "O", // 0x6e 148 | "O", // 0x6f 149 | "a", // 0x70 150 | "a", // 0x71 151 | "e", // 0x72 152 | "e", // 0x73 153 | "e", // 0x74 154 | "e", // 0x75 155 | "i", // 0x76 156 | "i", // 0x77 157 | "o", // 0x78 158 | "o", // 0x79 159 | "u", // 0x7a 160 | "u", // 0x7b 161 | "o", // 0x7c 162 | "o", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "a", // 0x80 166 | "a", // 0x81 167 | "a", // 0x82 168 | "a", // 0x83 169 | "a", // 0x84 170 | "a", // 0x85 171 | "a", // 0x86 172 | "a", // 0x87 173 | "A", // 0x88 174 | "A", // 0x89 175 | "A", // 0x8a 176 | "A", // 0x8b 177 | "A", // 0x8c 178 | "A", // 0x8d 179 | "A", // 0x8e 180 | "A", // 0x8f 181 | "e", // 0x90 182 | "e", // 0x91 183 | "e", // 0x92 184 | "e", // 0x93 185 | "e", // 0x94 186 | "e", // 0x95 187 | "e", // 0x96 188 | "e", // 0x97 189 | "E", // 0x98 190 | "E", // 0x99 191 | "E", // 0x9a 192 | "E", // 0x9b 193 | "E", // 0x9c 194 | "E", // 0x9d 195 | "E", // 0x9e 196 | "E", // 0x9f 197 | "o", // 0xa0 198 | "o", // 0xa1 199 | "o", // 0xa2 200 | "o", // 0xa3 201 | "o", // 0xa4 202 | "o", // 0xa5 203 | "o", // 0xa6 204 | "o", // 0xa7 205 | "O", // 0xa8 206 | "O", // 0xa9 207 | "O", // 0xaa 208 | "O", // 0xab 209 | "O", // 0xac 210 | "O", // 0xad 211 | "O", // 0xae 212 | "O", // 0xaf 213 | "a", // 0xb0 214 | "a", // 0xb1 215 | "a", // 0xb2 216 | "a", // 0xb3 217 | "a", // 0xb4 218 | "[?]", // 0xb5 219 | "a", // 0xb6 220 | "a", // 0xb7 221 | "A", // 0xb8 222 | "A", // 0xb9 223 | "A", // 0xba 224 | "A", // 0xbb 225 | "A", // 0xbc 226 | "\'", // 0xbd 227 | "i", // 0xbe 228 | "\'", // 0xbf 229 | "~", // 0xc0 230 | "\"~", // 0xc1 231 | "e", // 0xc2 232 | "e", // 0xc3 233 | "e", // 0xc4 234 | "[?]", // 0xc5 235 | "e", // 0xc6 236 | "e", // 0xc7 237 | "E", // 0xc8 238 | "E", // 0xc9 239 | "E", // 0xca 240 | "E", // 0xcb 241 | "E", // 0xcc 242 | "\'`", // 0xcd 243 | "\'\'", // 0xce 244 | "\'~", // 0xcf 245 | "i", // 0xd0 246 | "i", // 0xd1 247 | "i", // 0xd2 248 | "i", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "i", // 0xd6 252 | "i", // 0xd7 253 | "I", // 0xd8 254 | "I", // 0xd9 255 | "I", // 0xda 256 | "I", // 0xdb 257 | "[?]", // 0xdc 258 | "`\'", // 0xdd 259 | "`\'", // 0xde 260 | "`~", // 0xdf 261 | "u", // 0xe0 262 | "u", // 0xe1 263 | "u", // 0xe2 264 | "u", // 0xe3 265 | "R", // 0xe4 266 | "R", // 0xe5 267 | "u", // 0xe6 268 | "u", // 0xe7 269 | "U", // 0xe8 270 | "U", // 0xe9 271 | "U", // 0xea 272 | "U", // 0xeb 273 | "R", // 0xec 274 | "\"`", // 0xed 275 | "\"\'", // 0xee 276 | "`", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "o", // 0xf2 280 | "o", // 0xf3 281 | "o", // 0xf4 282 | "[?]", // 0xf5 283 | "o", // 0xf6 284 | "o", // 0xf7 285 | "O", // 0xf8 286 | "O", // 0xf9 287 | "O", // 0xfa 288 | "O", // 0xfb 289 | "O", // 0xfc 290 | "\'", // 0xfd 291 | "`" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X02.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+02xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X02 { 35 | 36 | public static final String[] map = new String[]{ 37 | "A", // 0x00 38 | "a", // 0x01 39 | "A", // 0x02 40 | "a", // 0x03 41 | "E", // 0x04 42 | "e", // 0x05 43 | "E", // 0x06 44 | "e", // 0x07 45 | "I", // 0x08 46 | "i", // 0x09 47 | "I", // 0x0a 48 | "i", // 0x0b 49 | "O", // 0x0c 50 | "o", // 0x0d 51 | "O", // 0x0e 52 | "o", // 0x0f 53 | "R", // 0x10 54 | "r", // 0x11 55 | "R", // 0x12 56 | "r", // 0x13 57 | "U", // 0x14 58 | "u", // 0x15 59 | "U", // 0x16 60 | "u", // 0x17 61 | "S", // 0x18 62 | "s", // 0x19 63 | "T", // 0x1a 64 | "t", // 0x1b 65 | "Y", // 0x1c 66 | "y", // 0x1d 67 | "H", // 0x1e 68 | "h", // 0x1f 69 | "[?]", // 0x20 70 | "[?]", // 0x21 71 | "OU", // 0x22 72 | "ou", // 0x23 73 | "Z", // 0x24 74 | "z", // 0x25 75 | "A", // 0x26 76 | "a", // 0x27 77 | "E", // 0x28 78 | "e", // 0x29 79 | "O", // 0x2a 80 | "o", // 0x2b 81 | "O", // 0x2c 82 | "o", // 0x2d 83 | "O", // 0x2e 84 | "o", // 0x2f 85 | "O", // 0x30 86 | "o", // 0x31 87 | "Y", // 0x32 88 | "y", // 0x33 89 | "[?]", // 0x34 90 | "[?]", // 0x35 91 | "[?]", // 0x36 92 | "[?]", // 0x37 93 | "[?]", // 0x38 94 | "[?]", // 0x39 95 | "[?]", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "[?]", // 0x3e 100 | "[?]", // 0x3f 101 | "[?]", // 0x40 102 | "[?]", // 0x41 103 | "[?]", // 0x42 104 | "[?]", // 0x43 105 | "[?]", // 0x44 106 | "[?]", // 0x45 107 | "[?]", // 0x46 108 | "[?]", // 0x47 109 | "[?]", // 0x48 110 | "[?]", // 0x49 111 | "[?]", // 0x4a 112 | "[?]", // 0x4b 113 | "[?]", // 0x4c 114 | "[?]", // 0x4d 115 | "[?]", // 0x4e 116 | "[?]", // 0x4f 117 | "a", // 0x50 118 | "a", // 0x51 119 | "a", // 0x52 120 | "b", // 0x53 121 | "o", // 0x54 122 | "c", // 0x55 123 | "d", // 0x56 124 | "d", // 0x57 125 | "e", // 0x58 126 | "@", // 0x59 127 | "@", // 0x5a 128 | "e", // 0x5b 129 | "e", // 0x5c 130 | "e", // 0x5d 131 | "e", // 0x5e 132 | "j", // 0x5f 133 | "g", // 0x60 134 | "g", // 0x61 135 | "g", // 0x62 136 | "g", // 0x63 137 | "u", // 0x64 138 | "Y", // 0x65 139 | "h", // 0x66 140 | "h", // 0x67 141 | "i", // 0x68 142 | "i", // 0x69 143 | "I", // 0x6a 144 | "l", // 0x6b 145 | "l", // 0x6c 146 | "l", // 0x6d 147 | "lZ", // 0x6e 148 | "W", // 0x6f 149 | "W", // 0x70 150 | "m", // 0x71 151 | "n", // 0x72 152 | "n", // 0x73 153 | "n", // 0x74 154 | "o", // 0x75 155 | "OE", // 0x76 156 | "O", // 0x77 157 | "F", // 0x78 158 | "R", // 0x79 159 | "R", // 0x7a 160 | "R", // 0x7b 161 | "R", // 0x7c 162 | "r", // 0x7d 163 | "r", // 0x7e 164 | "R", // 0x7f 165 | "R", // 0x80 166 | "R", // 0x81 167 | "s", // 0x82 168 | "S", // 0x83 169 | "j", // 0x84 170 | "S", // 0x85 171 | "S", // 0x86 172 | "t", // 0x87 173 | "t", // 0x88 174 | "U", // 0x89 175 | "U", // 0x8a 176 | "v", // 0x8b 177 | "^", // 0x8c 178 | "W", // 0x8d 179 | "Y", // 0x8e 180 | "Y", // 0x8f 181 | "z", // 0x90 182 | "z", // 0x91 183 | "Z", // 0x92 184 | "Z", // 0x93 185 | "?", // 0x94 186 | "?", // 0x95 187 | "?", // 0x96 188 | "C", // 0x97 189 | "@", // 0x98 190 | "B", // 0x99 191 | "E", // 0x9a 192 | "G", // 0x9b 193 | "H", // 0x9c 194 | "j", // 0x9d 195 | "k", // 0x9e 196 | "L", // 0x9f 197 | "q", // 0xa0 198 | "?", // 0xa1 199 | "?", // 0xa2 200 | "dz", // 0xa3 201 | "dZ", // 0xa4 202 | "dz", // 0xa5 203 | "ts", // 0xa6 204 | "tS", // 0xa7 205 | "tC", // 0xa8 206 | "fN", // 0xa9 207 | "ls", // 0xaa 208 | "lz", // 0xab 209 | "WW", // 0xac 210 | "]]", // 0xad 211 | "[?]", // 0xae 212 | "[?]", // 0xaf 213 | "k", // 0xb0 214 | "h", // 0xb1 215 | "j", // 0xb2 216 | "r", // 0xb3 217 | "r", // 0xb4 218 | "r", // 0xb5 219 | "r", // 0xb6 220 | "w", // 0xb7 221 | "y", // 0xb8 222 | "\'", // 0xb9 223 | "\"", // 0xba 224 | "`", // 0xbb 225 | "\'", // 0xbc 226 | "`", // 0xbd 227 | "`", // 0xbe 228 | "\'", // 0xbf 229 | "?", // 0xc0 230 | "?", // 0xc1 231 | "<", // 0xc2 232 | ">", // 0xc3 233 | "^", // 0xc4 234 | "V", // 0xc5 235 | "^", // 0xc6 236 | "V", // 0xc7 237 | "\'", // 0xc8 238 | "-", // 0xc9 239 | "/", // 0xca 240 | "\\", // 0xcb 241 | ",", // 0xcc 242 | "_", // 0xcd 243 | "\\", // 0xce 244 | "/", // 0xcf 245 | ":", // 0xd0 246 | ".", // 0xd1 247 | "`", // 0xd2 248 | "\'", // 0xd3 249 | "^", // 0xd4 250 | "V", // 0xd5 251 | "+", // 0xd6 252 | "-", // 0xd7 253 | "V", // 0xd8 254 | ".", // 0xd9 255 | "@", // 0xda 256 | ",", // 0xdb 257 | "~", // 0xdc 258 | "\"", // 0xdd 259 | "R", // 0xde 260 | "X", // 0xdf 261 | "G", // 0xe0 262 | "l", // 0xe1 263 | "s", // 0xe2 264 | "x", // 0xe3 265 | "?", // 0xe4 266 | "", // 0xe5 267 | "", // 0xe6 268 | "", // 0xe7 269 | "", // 0xe8 270 | "", // 0xe9 271 | "", // 0xea 272 | "", // 0xeb 273 | "V", // 0xec 274 | "=", // 0xed 275 | "\"", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X06.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+06xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X06 { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "[?]", // 0x01 39 | "[?]", // 0x02 40 | "[?]", // 0x03 41 | "[?]", // 0x04 42 | "[?]", // 0x05 43 | "[?]", // 0x06 44 | "[?]", // 0x07 45 | "[?]", // 0x08 46 | "[?]", // 0x09 47 | "[?]", // 0x0a 48 | "[?]", // 0x0b 49 | ",", // 0x0c 50 | "[?]", // 0x0d 51 | "[?]", // 0x0e 52 | "[?]", // 0x0f 53 | "[?]", // 0x10 54 | "[?]", // 0x11 55 | "[?]", // 0x12 56 | "[?]", // 0x13 57 | "[?]", // 0x14 58 | "[?]", // 0x15 59 | "[?]", // 0x16 60 | "[?]", // 0x17 61 | "[?]", // 0x18 62 | "[?]", // 0x19 63 | "[?]", // 0x1a 64 | ";", // 0x1b 65 | "[?]", // 0x1c 66 | "[?]", // 0x1d 67 | "[?]", // 0x1e 68 | "?", // 0x1f 69 | "[?]", // 0x20 70 | "", // 0x21 71 | "a", // 0x22 72 | "\'", // 0x23 73 | "w\'", // 0x24 74 | "", // 0x25 75 | "y\'", // 0x26 76 | "", // 0x27 77 | "b", // 0x28 78 | "@", // 0x29 79 | "t", // 0x2a 80 | "th", // 0x2b 81 | "j", // 0x2c 82 | "H", // 0x2d 83 | "kh", // 0x2e 84 | "d", // 0x2f 85 | "dh", // 0x30 86 | "r", // 0x31 87 | "z", // 0x32 88 | "s", // 0x33 89 | "sh", // 0x34 90 | "S", // 0x35 91 | "D", // 0x36 92 | "T", // 0x37 93 | "Z", // 0x38 94 | "`", // 0x39 95 | "G", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "[?]", // 0x3e 100 | "[?]", // 0x3f 101 | "", // 0x40 102 | "f", // 0x41 103 | "q", // 0x42 104 | "k", // 0x43 105 | "l", // 0x44 106 | "m", // 0x45 107 | "n", // 0x46 108 | "h", // 0x47 109 | "w", // 0x48 110 | "~", // 0x49 111 | "y", // 0x4a 112 | "an", // 0x4b 113 | "un", // 0x4c 114 | "in", // 0x4d 115 | "a", // 0x4e 116 | "u", // 0x4f 117 | "i", // 0x50 118 | "W", // 0x51 119 | "", // 0x52 120 | "", // 0x53 121 | "\'", // 0x54 122 | "\'", // 0x55 123 | "[?]", // 0x56 124 | "[?]", // 0x57 125 | "[?]", // 0x58 126 | "[?]", // 0x59 127 | "[?]", // 0x5a 128 | "[?]", // 0x5b 129 | "[?]", // 0x5c 130 | "[?]", // 0x5d 131 | "[?]", // 0x5e 132 | "[?]", // 0x5f 133 | "0", // 0x60 134 | "1", // 0x61 135 | "2", // 0x62 136 | "3", // 0x63 137 | "4", // 0x64 138 | "5", // 0x65 139 | "6", // 0x66 140 | "7", // 0x67 141 | "8", // 0x68 142 | "9", // 0x69 143 | "%", // 0x6a 144 | ".", // 0x6b 145 | ",", // 0x6c 146 | "*", // 0x6d 147 | "[?]", // 0x6e 148 | "[?]", // 0x6f 149 | "", // 0x70 150 | "\'", // 0x71 151 | "\'", // 0x72 152 | "\'", // 0x73 153 | "", // 0x74 154 | "\'", // 0x75 155 | "\'w", // 0x76 156 | "\'u", // 0x77 157 | "\'y", // 0x78 158 | "tt", // 0x79 159 | "tth", // 0x7a 160 | "b", // 0x7b 161 | "t", // 0x7c 162 | "T", // 0x7d 163 | "p", // 0x7e 164 | "th", // 0x7f 165 | "bh", // 0x80 166 | "\'h", // 0x81 167 | "H", // 0x82 168 | "ny", // 0x83 169 | "dy", // 0x84 170 | "H", // 0x85 171 | "ch", // 0x86 172 | "cch", // 0x87 173 | "dd", // 0x88 174 | "D", // 0x89 175 | "D", // 0x8a 176 | "Dt", // 0x8b 177 | "dh", // 0x8c 178 | "ddh", // 0x8d 179 | "d", // 0x8e 180 | "D", // 0x8f 181 | "D", // 0x90 182 | "rr", // 0x91 183 | "R", // 0x92 184 | "R", // 0x93 185 | "R", // 0x94 186 | "R", // 0x95 187 | "R", // 0x96 188 | "R", // 0x97 189 | "j", // 0x98 190 | "R", // 0x99 191 | "S", // 0x9a 192 | "S", // 0x9b 193 | "S", // 0x9c 194 | "S", // 0x9d 195 | "S", // 0x9e 196 | "T", // 0x9f 197 | "GH", // 0xa0 198 | "F", // 0xa1 199 | "F", // 0xa2 200 | "F", // 0xa3 201 | "v", // 0xa4 202 | "f", // 0xa5 203 | "ph", // 0xa6 204 | "Q", // 0xa7 205 | "Q", // 0xa8 206 | "kh", // 0xa9 207 | "k", // 0xaa 208 | "K", // 0xab 209 | "K", // 0xac 210 | "ng", // 0xad 211 | "K", // 0xae 212 | "g", // 0xaf 213 | "G", // 0xb0 214 | "N", // 0xb1 215 | "G", // 0xb2 216 | "G", // 0xb3 217 | "G", // 0xb4 218 | "L", // 0xb5 219 | "L", // 0xb6 220 | "L", // 0xb7 221 | "L", // 0xb8 222 | "N", // 0xb9 223 | "N", // 0xba 224 | "N", // 0xbb 225 | "N", // 0xbc 226 | "N", // 0xbd 227 | "h", // 0xbe 228 | "Ch", // 0xbf 229 | "hy", // 0xc0 230 | "h", // 0xc1 231 | "H", // 0xc2 232 | "@", // 0xc3 233 | "W", // 0xc4 234 | "oe", // 0xc5 235 | "oe", // 0xc6 236 | "u", // 0xc7 237 | "yu", // 0xc8 238 | "yu", // 0xc9 239 | "W", // 0xca 240 | "v", // 0xcb 241 | "y", // 0xcc 242 | "Y", // 0xcd 243 | "Y", // 0xce 244 | "W", // 0xcf 245 | "", // 0xd0 246 | "", // 0xd1 247 | "y", // 0xd2 248 | "y\'", // 0xd3 249 | ".", // 0xd4 250 | "ae", // 0xd5 251 | "", // 0xd6 252 | "", // 0xd7 253 | "", // 0xd8 254 | "", // 0xd9 255 | "", // 0xda 256 | "", // 0xdb 257 | "", // 0xdc 258 | "@", // 0xdd 259 | "#", // 0xde 260 | "", // 0xdf 261 | "", // 0xe0 262 | "", // 0xe1 263 | "", // 0xe2 264 | "", // 0xe3 265 | "", // 0xe4 266 | "", // 0xe5 267 | "", // 0xe6 268 | "", // 0xe7 269 | "", // 0xe8 270 | "^", // 0xe9 271 | "", // 0xea 272 | "", // 0xeb 273 | "", // 0xec 274 | "", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "0", // 0xf0 278 | "1", // 0xf1 279 | "2", // 0xf2 280 | "3", // 0xf3 281 | "4", // 0xf4 282 | "5", // 0xf5 283 | "6", // 0xf6 284 | "7", // 0xf7 285 | "8", // 0xf8 286 | "9", // 0xf9 287 | "Sh", // 0xfa 288 | "D", // 0xfb 289 | "Gh", // 0xfc 290 | "&", // 0xfd 291 | "+m" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/Xff.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+FFxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class Xff { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "!", // 0x01 39 | "\"", // 0x02 40 | "#", // 0x03 41 | "$", // 0x04 42 | "%", // 0x05 43 | "&", // 0x06 44 | "\'", // 0x07 45 | "(", // 0x08 46 | ")", // 0x09 47 | "*", // 0x0a 48 | "+", // 0x0b 49 | ",", // 0x0c 50 | "-", // 0x0d 51 | ".", // 0x0e 52 | "/", // 0x0f 53 | "0", // 0x10 54 | "1", // 0x11 55 | "2", // 0x12 56 | "3", // 0x13 57 | "4", // 0x14 58 | "5", // 0x15 59 | "6", // 0x16 60 | "7", // 0x17 61 | "8", // 0x18 62 | "9", // 0x19 63 | ":", // 0x1a 64 | ";", // 0x1b 65 | "<", // 0x1c 66 | "=", // 0x1d 67 | ">", // 0x1e 68 | "?", // 0x1f 69 | "@", // 0x20 70 | "A", // 0x21 71 | "B", // 0x22 72 | "C", // 0x23 73 | "D", // 0x24 74 | "E", // 0x25 75 | "F", // 0x26 76 | "G", // 0x27 77 | "H", // 0x28 78 | "I", // 0x29 79 | "J", // 0x2a 80 | "K", // 0x2b 81 | "L", // 0x2c 82 | "M", // 0x2d 83 | "N", // 0x2e 84 | "O", // 0x2f 85 | "P", // 0x30 86 | "Q", // 0x31 87 | "R", // 0x32 88 | "S", // 0x33 89 | "T", // 0x34 90 | "U", // 0x35 91 | "V", // 0x36 92 | "W", // 0x37 93 | "X", // 0x38 94 | "Y", // 0x39 95 | "Z", // 0x3a 96 | "[", // 0x3b 97 | "\\", // 0x3c 98 | "]", // 0x3d 99 | "^", // 0x3e 100 | "_", // 0x3f 101 | "`", // 0x40 102 | "a", // 0x41 103 | "b", // 0x42 104 | "c", // 0x43 105 | "d", // 0x44 106 | "e", // 0x45 107 | "f", // 0x46 108 | "g", // 0x47 109 | "h", // 0x48 110 | "i", // 0x49 111 | "j", // 0x4a 112 | "k", // 0x4b 113 | "l", // 0x4c 114 | "m", // 0x4d 115 | "n", // 0x4e 116 | "o", // 0x4f 117 | "p", // 0x50 118 | "q", // 0x51 119 | "r", // 0x52 120 | "s", // 0x53 121 | "t", // 0x54 122 | "u", // 0x55 123 | "v", // 0x56 124 | "w", // 0x57 125 | "x", // 0x58 126 | "y", // 0x59 127 | "z", // 0x5a 128 | "{", // 0x5b 129 | "|", // 0x5c 130 | "}", // 0x5d 131 | "~", // 0x5e 132 | "[?]", // 0x5f 133 | "[?]", // 0x60 134 | ".", // 0x61 135 | "[", // 0x62 136 | "]", // 0x63 137 | ",", // 0x64 138 | "*", // 0x65 139 | "wo", // 0x66 140 | "a", // 0x67 141 | "i", // 0x68 142 | "u", // 0x69 143 | "e", // 0x6a 144 | "o", // 0x6b 145 | "ya", // 0x6c 146 | "yu", // 0x6d 147 | "yo", // 0x6e 148 | "tu", // 0x6f 149 | "+", // 0x70 150 | "a", // 0x71 151 | "i", // 0x72 152 | "u", // 0x73 153 | "e", // 0x74 154 | "o", // 0x75 155 | "ka", // 0x76 156 | "ki", // 0x77 157 | "ku", // 0x78 158 | "ke", // 0x79 159 | "ko", // 0x7a 160 | "sa", // 0x7b 161 | "si", // 0x7c 162 | "su", // 0x7d 163 | "se", // 0x7e 164 | "so", // 0x7f 165 | "ta", // 0x80 166 | "ti", // 0x81 167 | "tu", // 0x82 168 | "te", // 0x83 169 | "to", // 0x84 170 | "na", // 0x85 171 | "ni", // 0x86 172 | "nu", // 0x87 173 | "ne", // 0x88 174 | "no", // 0x89 175 | "ha", // 0x8a 176 | "hi", // 0x8b 177 | "hu", // 0x8c 178 | "he", // 0x8d 179 | "ho", // 0x8e 180 | "ma", // 0x8f 181 | "mi", // 0x90 182 | "mu", // 0x91 183 | "me", // 0x92 184 | "mo", // 0x93 185 | "ya", // 0x94 186 | "yu", // 0x95 187 | "yo", // 0x96 188 | "ra", // 0x97 189 | "ri", // 0x98 190 | "ru", // 0x99 191 | "re", // 0x9a 192 | "ro", // 0x9b 193 | "wa", // 0x9c 194 | "n", // 0x9d 195 | ":", // 0x9e 196 | ";", // 0x9f 197 | "", // 0xa0 198 | "g", // 0xa1 199 | "gg", // 0xa2 200 | "gs", // 0xa3 201 | "n", // 0xa4 202 | "nj", // 0xa5 203 | "nh", // 0xa6 204 | "d", // 0xa7 205 | "dd", // 0xa8 206 | "r", // 0xa9 207 | "lg", // 0xaa 208 | "lm", // 0xab 209 | "lb", // 0xac 210 | "ls", // 0xad 211 | "lt", // 0xae 212 | "lp", // 0xaf 213 | "rh", // 0xb0 214 | "m", // 0xb1 215 | "b", // 0xb2 216 | "bb", // 0xb3 217 | "bs", // 0xb4 218 | "s", // 0xb5 219 | "ss", // 0xb6 220 | "", // 0xb7 221 | "j", // 0xb8 222 | "jj", // 0xb9 223 | "c", // 0xba 224 | "k", // 0xbb 225 | "t", // 0xbc 226 | "p", // 0xbd 227 | "h", // 0xbe 228 | "[?]", // 0xbf 229 | "[?]", // 0xc0 230 | "[?]", // 0xc1 231 | "a", // 0xc2 232 | "ae", // 0xc3 233 | "ya", // 0xc4 234 | "yae", // 0xc5 235 | "eo", // 0xc6 236 | "e", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "yeo", // 0xca 240 | "ye", // 0xcb 241 | "o", // 0xcc 242 | "wa", // 0xcd 243 | "wae", // 0xce 244 | "oe", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "yo", // 0xd2 248 | "u", // 0xd3 249 | "weo", // 0xd4 250 | "we", // 0xd5 251 | "wi", // 0xd6 252 | "yu", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "eu", // 0xda 256 | "yi", // 0xdb 257 | "i", // 0xdc 258 | "[?]", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "/C", // 0xe0 262 | "PS", // 0xe1 263 | "!", // 0xe2 264 | "-", // 0xe3 265 | "|", // 0xe4 266 | "Y=", // 0xe5 267 | "W=", // 0xe6 268 | "[?]", // 0xe7 269 | "|", // 0xe8 270 | "-", // 0xe9 271 | "|", // 0xea 272 | "-", // 0xeb 273 | "|", // 0xec 274 | "#", // 0xed 275 | "O", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "{", // 0xf9 287 | "|", // 0xfa 288 | "}", // 0xfb 289 | "", // 0xfc 290 | "", // 0xfd 291 | "", // 0xfe 292 | "" // 0xff 293 | }; 294 | } 295 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X05.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+05xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X05 { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "[?]", // 0x01 39 | "[?]", // 0x02 40 | "[?]", // 0x03 41 | "[?]", // 0x04 42 | "[?]", // 0x05 43 | "[?]", // 0x06 44 | "[?]", // 0x07 45 | "[?]", // 0x08 46 | "[?]", // 0x09 47 | "[?]", // 0x0a 48 | "[?]", // 0x0b 49 | "[?]", // 0x0c 50 | "[?]", // 0x0d 51 | "[?]", // 0x0e 52 | "[?]", // 0x0f 53 | "[?]", // 0x10 54 | "[?]", // 0x11 55 | "[?]", // 0x12 56 | "[?]", // 0x13 57 | "[?]", // 0x14 58 | "[?]", // 0x15 59 | "[?]", // 0x16 60 | "[?]", // 0x17 61 | "[?]", // 0x18 62 | "[?]", // 0x19 63 | "[?]", // 0x1a 64 | "[?]", // 0x1b 65 | "[?]", // 0x1c 66 | "[?]", // 0x1d 67 | "[?]", // 0x1e 68 | "[?]", // 0x1f 69 | "[?]", // 0x20 70 | "[?]", // 0x21 71 | "[?]", // 0x22 72 | "[?]", // 0x23 73 | "[?]", // 0x24 74 | "[?]", // 0x25 75 | "[?]", // 0x26 76 | "[?]", // 0x27 77 | "[?]", // 0x28 78 | "[?]", // 0x29 79 | "[?]", // 0x2a 80 | "[?]", // 0x2b 81 | "[?]", // 0x2c 82 | "[?]", // 0x2d 83 | "[?]", // 0x2e 84 | "[?]", // 0x2f 85 | "[?]", // 0x30 86 | "A", // 0x31 87 | "B", // 0x32 88 | "G", // 0x33 89 | "D", // 0x34 90 | "E", // 0x35 91 | "Z", // 0x36 92 | "E", // 0x37 93 | "E", // 0x38 94 | "T`", // 0x39 95 | "Zh", // 0x3a 96 | "I", // 0x3b 97 | "L", // 0x3c 98 | "Kh", // 0x3d 99 | "Ts", // 0x3e 100 | "K", // 0x3f 101 | "H", // 0x40 102 | "Dz", // 0x41 103 | "Gh", // 0x42 104 | "Ch", // 0x43 105 | "M", // 0x44 106 | "Y", // 0x45 107 | "N", // 0x46 108 | "Sh", // 0x47 109 | "O", // 0x48 110 | "Ch`", // 0x49 111 | "P", // 0x4a 112 | "J", // 0x4b 113 | "Rh", // 0x4c 114 | "S", // 0x4d 115 | "V", // 0x4e 116 | "T", // 0x4f 117 | "R", // 0x50 118 | "Ts`", // 0x51 119 | "W", // 0x52 120 | "P`", // 0x53 121 | "K`", // 0x54 122 | "O", // 0x55 123 | "F", // 0x56 124 | "[?]", // 0x57 125 | "[?]", // 0x58 126 | "<", // 0x59 127 | "\'", // 0x5a 128 | "/", // 0x5b 129 | "!", // 0x5c 130 | ",", // 0x5d 131 | "?", // 0x5e 132 | ".", // 0x5f 133 | "[?]", // 0x60 134 | "a", // 0x61 135 | "b", // 0x62 136 | "g", // 0x63 137 | "d", // 0x64 138 | "e", // 0x65 139 | "z", // 0x66 140 | "e", // 0x67 141 | "e", // 0x68 142 | "t`", // 0x69 143 | "zh", // 0x6a 144 | "i", // 0x6b 145 | "l", // 0x6c 146 | "kh", // 0x6d 147 | "ts", // 0x6e 148 | "k", // 0x6f 149 | "h", // 0x70 150 | "dz", // 0x71 151 | "gh", // 0x72 152 | "ch", // 0x73 153 | "m", // 0x74 154 | "y", // 0x75 155 | "n", // 0x76 156 | "sh", // 0x77 157 | "o", // 0x78 158 | "ch`", // 0x79 159 | "p", // 0x7a 160 | "j", // 0x7b 161 | "rh", // 0x7c 162 | "s", // 0x7d 163 | "v", // 0x7e 164 | "t", // 0x7f 165 | "r", // 0x80 166 | "ts`", // 0x81 167 | "w", // 0x82 168 | "p`", // 0x83 169 | "k`", // 0x84 170 | "o", // 0x85 171 | "f", // 0x86 172 | "ew", // 0x87 173 | "[?]", // 0x88 174 | ".", // 0x89 175 | "-", // 0x8a 176 | "[?]", // 0x8b 177 | "[?]", // 0x8c 178 | "[?]", // 0x8d 179 | "[?]", // 0x8e 180 | "[?]", // 0x8f 181 | "[?]", // 0x90 182 | "", // 0x91 183 | "", // 0x92 184 | "", // 0x93 185 | "", // 0x94 186 | "", // 0x95 187 | "", // 0x96 188 | "", // 0x97 189 | "", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "", // 0x9d 195 | "", // 0x9e 196 | "", // 0x9f 197 | "", // 0xa0 198 | "", // 0xa1 199 | "[?]", // 0xa2 200 | "", // 0xa3 201 | "", // 0xa4 202 | "", // 0xa5 203 | "", // 0xa6 204 | "", // 0xa7 205 | "", // 0xa8 206 | "", // 0xa9 207 | "", // 0xaa 208 | "", // 0xab 209 | "", // 0xac 210 | "", // 0xad 211 | "", // 0xae 212 | "", // 0xaf 213 | "@", // 0xb0 214 | "e", // 0xb1 215 | "a", // 0xb2 216 | "o", // 0xb3 217 | "i", // 0xb4 218 | "e", // 0xb5 219 | "e", // 0xb6 220 | "a", // 0xb7 221 | "a", // 0xb8 222 | "o", // 0xb9 223 | "[?]", // 0xba 224 | "u", // 0xbb 225 | "\'", // 0xbc 226 | "", // 0xbd 227 | "", // 0xbe 228 | "", // 0xbf 229 | "", // 0xc0 230 | "", // 0xc1 231 | "", // 0xc2 232 | ":", // 0xc3 233 | "", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "[?]", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "", // 0xd0 246 | "b", // 0xd1 247 | "g", // 0xd2 248 | "d", // 0xd3 249 | "h", // 0xd4 250 | "v", // 0xd5 251 | "z", // 0xd6 252 | "kh", // 0xd7 253 | "t", // 0xd8 254 | "y", // 0xd9 255 | "k", // 0xda 256 | "k", // 0xdb 257 | "l", // 0xdc 258 | "m", // 0xdd 259 | "m", // 0xde 260 | "n", // 0xdf 261 | "n", // 0xe0 262 | "s", // 0xe1 263 | "`", // 0xe2 264 | "p", // 0xe3 265 | "p", // 0xe4 266 | "ts", // 0xe5 267 | "ts", // 0xe6 268 | "q", // 0xe7 269 | "r", // 0xe8 270 | "sh", // 0xe9 271 | "t", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "V", // 0xf0 278 | "oy", // 0xf1 279 | "i", // 0xf2 280 | "\'", // 0xf3 281 | "\"", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X26.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+26xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X26 { 35 | 36 | public static final String[] map = new String[]{ 37 | "", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | "", // 0x08 46 | "", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "", // 0x0f 53 | "", // 0x10 54 | "", // 0x11 55 | "", // 0x12 56 | "", // 0x13 57 | "[?]", // 0x14 58 | "[?]", // 0x15 59 | "[?]", // 0x16 60 | "[?]", // 0x17 61 | "[?]", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "", // 0x20 70 | "", // 0x21 71 | "", // 0x22 72 | "", // 0x23 73 | "", // 0x24 74 | "", // 0x25 75 | "", // 0x26 76 | "", // 0x27 77 | "", // 0x28 78 | "", // 0x29 79 | "", // 0x2a 80 | "", // 0x2b 81 | "", // 0x2c 82 | "", // 0x2d 83 | "", // 0x2e 84 | "", // 0x2f 85 | "", // 0x30 86 | "", // 0x31 87 | "", // 0x32 88 | "", // 0x33 89 | "", // 0x34 90 | "", // 0x35 91 | "", // 0x36 92 | "", // 0x37 93 | "", // 0x38 94 | "", // 0x39 95 | "", // 0x3a 96 | "", // 0x3b 97 | "", // 0x3c 98 | "", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "", // 0x40 102 | "", // 0x41 103 | "", // 0x42 104 | "", // 0x43 105 | "", // 0x44 106 | "", // 0x45 107 | "", // 0x46 108 | "", // 0x47 109 | "", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "", // 0x4b 113 | "", // 0x4c 114 | "", // 0x4d 115 | "", // 0x4e 116 | "", // 0x4f 117 | "", // 0x50 118 | "", // 0x51 119 | "", // 0x52 120 | "", // 0x53 121 | "", // 0x54 122 | "", // 0x55 123 | "", // 0x56 124 | "", // 0x57 125 | "", // 0x58 126 | "", // 0x59 127 | "", // 0x5a 128 | "", // 0x5b 129 | "", // 0x5c 130 | "", // 0x5d 131 | "", // 0x5e 132 | "", // 0x5f 133 | "", // 0x60 134 | "", // 0x61 135 | "", // 0x62 136 | "", // 0x63 137 | "", // 0x64 138 | "", // 0x65 139 | "", // 0x66 140 | "", // 0x67 141 | "", // 0x68 142 | "", // 0x69 143 | "", // 0x6a 144 | "", // 0x6b 145 | "", // 0x6c 146 | "", // 0x6d 147 | "", // 0x6e 148 | "", // 0x6f 149 | "", // 0x70 150 | "", // 0x71 151 | "[?]", // 0x72 152 | "[?]", // 0x73 153 | "[?]", // 0x74 154 | "[?]", // 0x75 155 | "[?]", // 0x76 156 | "[?]", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "[?]", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "[?]", // 0x81 167 | "[?]", // 0x82 168 | "[?]", // 0x83 169 | "[?]", // 0x84 170 | "[?]", // 0x85 171 | "[?]", // 0x86 172 | "[?]", // 0x87 173 | "[?]", // 0x88 174 | "[?]", // 0x89 175 | "[?]", // 0x8a 176 | "[?]", // 0x8b 177 | "[?]", // 0x8c 178 | "[?]", // 0x8d 179 | "[?]", // 0x8e 180 | "[?]", // 0x8f 181 | "[?]", // 0x90 182 | "[?]", // 0x91 183 | "[?]", // 0x92 184 | "[?]", // 0x93 185 | "[?]", // 0x94 186 | "[?]", // 0x95 187 | "[?]", // 0x96 188 | "[?]", // 0x97 189 | "[?]", // 0x98 190 | "[?]", // 0x99 191 | "[?]", // 0x9a 192 | "[?]", // 0x9b 193 | "[?]", // 0x9c 194 | "[?]", // 0x9d 195 | "[?]", // 0x9e 196 | "[?]", // 0x9f 197 | "[?]", // 0xa0 198 | "[?]", // 0xa1 199 | "[?]", // 0xa2 200 | "[?]", // 0xa3 201 | "[?]", // 0xa4 202 | "[?]", // 0xa5 203 | "[?]", // 0xa6 204 | "[?]", // 0xa7 205 | "[?]", // 0xa8 206 | "[?]", // 0xa9 207 | "[?]", // 0xaa 208 | "[?]", // 0xab 209 | "[?]", // 0xac 210 | "[?]", // 0xad 211 | "[?]", // 0xae 212 | "[?]", // 0xaf 213 | "[?]", // 0xb0 214 | "[?]", // 0xb1 215 | "[?]", // 0xb2 216 | "[?]", // 0xb3 217 | "[?]", // 0xb4 218 | "[?]", // 0xb5 219 | "[?]", // 0xb6 220 | "[?]", // 0xb7 221 | "[?]", // 0xb8 222 | "[?]", // 0xb9 223 | "[?]", // 0xba 224 | "[?]", // 0xbb 225 | "[?]", // 0xbc 226 | "[?]", // 0xbd 227 | "[?]", // 0xbe 228 | "[?]", // 0xbf 229 | "[?]", // 0xc0 230 | "[?]", // 0xc1 231 | "[?]", // 0xc2 232 | "[?]", // 0xc3 233 | "[?]", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "[?]", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "[?]", // 0xd6 252 | "[?]", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "[?]", // 0xdc 258 | "[?]", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "[?]", // 0xe0 262 | "[?]", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "[?]", // 0xe6 268 | "[?]", // 0xe7 269 | "[?]", // 0xe8 270 | "[?]", // 0xe9 271 | "[?]", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X21.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+21xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X21 { 35 | 36 | public static final String[] map = new String[]{ 37 | "a/c", // 0x00 38 | "a/s", // 0x01 39 | "C", // 0x02 40 | "C", // 0x03 41 | "CL", // 0x04 42 | "c/o", // 0x05 43 | "c/u", // 0x06 44 | "e", // 0x07 45 | "[?]", // 0x08 46 | "F", // 0x09 47 | "g", // 0x0a 48 | "H", // 0x0b 49 | "H", // 0x0c 50 | "H", // 0x0d 51 | "h", // 0x0e 52 | "h", // 0x0f 53 | "I", // 0x10 54 | "I", // 0x11 55 | "L", // 0x12 56 | "l", // 0x13 57 | "lb", // 0x14 58 | "N", // 0x15 59 | "No", // 0x16 60 | "(P)", // 0x17 61 | "P", // 0x18 62 | "P", // 0x19 63 | "Q", // 0x1a 64 | "R", // 0x1b 65 | "R", // 0x1c 66 | "R", // 0x1d 67 | "Px", // 0x1e 68 | "R/", // 0x1f 69 | "(SM)", // 0x20 70 | "TEL", // 0x21 71 | "(TM)", // 0x22 72 | "V/", // 0x23 73 | "Z", // 0x24 74 | "[?]", // 0x25 75 | "Ohm", // 0x26 76 | "mho", // 0x27 77 | "Z", // 0x28 78 | "i", // 0x29 79 | "K", // 0x2a 80 | "A", // 0x2b 81 | "B", // 0x2c 82 | "C", // 0x2d 83 | "e", // 0x2e 84 | "e", // 0x2f 85 | "e", // 0x30 86 | "F", // 0x31 87 | "F", // 0x32 88 | "M", // 0x33 89 | "o", // 0x34 90 | "N", // 0x35 91 | "", // 0x36 92 | "", // 0x37 93 | "", // 0x38 94 | "", // 0x39 95 | "O", // 0x3a 96 | "FAX", // 0x3b 97 | "pi", // 0x3c 98 | "[?]", // 0x3d 99 | "[?]", // 0x3e 100 | "[?]", // 0x3f 101 | "[?]", // 0x40 102 | "[?]", // 0x41 103 | "[?]", // 0x42 104 | "[?]", // 0x43 105 | "[?]", // 0x44 106 | "D", // 0x45 107 | "d", // 0x46 108 | "e", // 0x47 109 | "i", // 0x48 110 | "j", // 0x49 111 | "[?]", // 0x4a 112 | "&", // 0x4b 113 | "[?]", // 0x4c 114 | "[?]", // 0x4d 115 | "f", // 0x4e 116 | "[?]", // 0x4f 117 | "[?]", // 0x50 118 | "[?]", // 0x51 119 | "[?]", // 0x52 120 | " 1/3 ", // 0x53 121 | " 2/3 ", // 0x54 122 | " 1/5 ", // 0x55 123 | " 2/5 ", // 0x56 124 | " 3/5 ", // 0x57 125 | " 4/5 ", // 0x58 126 | " 1/6 ", // 0x59 127 | " 5/6 ", // 0x5a 128 | " 1/8 ", // 0x5b 129 | " 3/8 ", // 0x5c 130 | " 5/8 ", // 0x5d 131 | " 7/8 ", // 0x5e 132 | " 1/", // 0x5f 133 | "I", // 0x60 134 | "II", // 0x61 135 | "III", // 0x62 136 | "IV", // 0x63 137 | "V", // 0x64 138 | "VI", // 0x65 139 | "VII", // 0x66 140 | "VIII", // 0x67 141 | "IX", // 0x68 142 | "X", // 0x69 143 | "XI", // 0x6a 144 | "XII", // 0x6b 145 | "L", // 0x6c 146 | "C", // 0x6d 147 | "D", // 0x6e 148 | "M", // 0x6f 149 | "i", // 0x70 150 | "ii", // 0x71 151 | "iii", // 0x72 152 | "iv", // 0x73 153 | "v", // 0x74 154 | "vi", // 0x75 155 | "vii", // 0x76 156 | "viii", // 0x77 157 | "ix", // 0x78 158 | "x", // 0x79 159 | "xi", // 0x7a 160 | "xii", // 0x7b 161 | "l", // 0x7c 162 | "c", // 0x7d 163 | "d", // 0x7e 164 | "m", // 0x7f 165 | "(D", // 0x80 166 | "D)", // 0x81 167 | "((|))", // 0x82 168 | ")", // 0x83 169 | "[?]", // 0x84 170 | "[?]", // 0x85 171 | "[?]", // 0x86 172 | "[?]", // 0x87 173 | "[?]", // 0x88 174 | "[?]", // 0x89 175 | "[?]", // 0x8a 176 | "[?]", // 0x8b 177 | "[?]", // 0x8c 178 | "[?]", // 0x8d 179 | "[?]", // 0x8e 180 | "[?]", // 0x8f 181 | "-", // 0x90 182 | "|", // 0x91 183 | "-", // 0x92 184 | "|", // 0x93 185 | "-", // 0x94 186 | "|", // 0x95 187 | "\\", // 0x96 188 | "/", // 0x97 189 | "\\", // 0x98 190 | "/", // 0x99 191 | "-", // 0x9a 192 | "-", // 0x9b 193 | "~", // 0x9c 194 | "~", // 0x9d 195 | "-", // 0x9e 196 | "|", // 0x9f 197 | "-", // 0xa0 198 | "|", // 0xa1 199 | "-", // 0xa2 200 | "-", // 0xa3 201 | "-", // 0xa4 202 | "|", // 0xa5 203 | "-", // 0xa6 204 | "|", // 0xa7 205 | "|", // 0xa8 206 | "-", // 0xa9 207 | "-", // 0xaa 208 | "-", // 0xab 209 | "-", // 0xac 210 | "-", // 0xad 211 | "-", // 0xae 212 | "|", // 0xaf 213 | "|", // 0xb0 214 | "|", // 0xb1 215 | "|", // 0xb2 216 | "|", // 0xb3 217 | "|", // 0xb4 218 | "|", // 0xb5 219 | "^", // 0xb6 220 | "V", // 0xb7 221 | "\\", // 0xb8 222 | "=", // 0xb9 223 | "V", // 0xba 224 | "^", // 0xbb 225 | "-", // 0xbc 226 | "-", // 0xbd 227 | "|", // 0xbe 228 | "|", // 0xbf 229 | "-", // 0xc0 230 | "-", // 0xc1 231 | "|", // 0xc2 232 | "|", // 0xc3 233 | "=", // 0xc4 234 | "|", // 0xc5 235 | "=", // 0xc6 236 | "=", // 0xc7 237 | "|", // 0xc8 238 | "=", // 0xc9 239 | "|", // 0xca 240 | "=", // 0xcb 241 | "=", // 0xcc 242 | "=", // 0xcd 243 | "=", // 0xce 244 | "=", // 0xcf 245 | "=", // 0xd0 246 | "|", // 0xd1 247 | "=", // 0xd2 248 | "|", // 0xd3 249 | "=", // 0xd4 250 | "|", // 0xd5 251 | "\\", // 0xd6 252 | "/", // 0xd7 253 | "\\", // 0xd8 254 | "/", // 0xd9 255 | "=", // 0xda 256 | "=", // 0xdb 257 | "~", // 0xdc 258 | "~", // 0xdd 259 | "|", // 0xde 260 | "|", // 0xdf 261 | "-", // 0xe0 262 | "|", // 0xe1 263 | "-", // 0xe2 264 | "|", // 0xe3 265 | "-", // 0xe4 266 | "-", // 0xe5 267 | "-", // 0xe6 268 | "|", // 0xe7 269 | "-", // 0xe8 270 | "|", // 0xe9 271 | "|", // 0xea 272 | "|", // 0xeb 273 | "|", // 0xec 274 | "|", // 0xed 275 | "|", // 0xee 276 | "|", // 0xef 277 | "-", // 0xf0 278 | "\\", // 0xf1 279 | "\\", // 0xf2 280 | "|", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X30.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+30xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X30 { 35 | 36 | public static final String[] map = new String[]{ 37 | " ", // 0x00 38 | ", ", // 0x01 39 | ". ", // 0x02 40 | "\"", // 0x03 41 | "[JIS]", // 0x04 42 | "\"", // 0x05 43 | "/", // 0x06 44 | "0", // 0x07 45 | "<", // 0x08 46 | "> ", // 0x09 47 | "<<", // 0x0a 48 | ">> ", // 0x0b 49 | "[", // 0x0c 50 | "] ", // 0x0d 51 | "{", // 0x0e 52 | "} ", // 0x0f 53 | "[(", // 0x10 54 | ")] ", // 0x11 55 | "@", // 0x12 56 | "X ", // 0x13 57 | "[", // 0x14 58 | "] ", // 0x15 59 | "[[", // 0x16 60 | "]] ", // 0x17 61 | "((", // 0x18 62 | ")) ", // 0x19 63 | "[[", // 0x1a 64 | "]] ", // 0x1b 65 | "~ ", // 0x1c 66 | "``", // 0x1d 67 | "\'\'", // 0x1e 68 | ",,", // 0x1f 69 | "@", // 0x20 70 | "1", // 0x21 71 | "2", // 0x22 72 | "3", // 0x23 73 | "4", // 0x24 74 | "5", // 0x25 75 | "6", // 0x26 76 | "7", // 0x27 77 | "8", // 0x28 78 | "9", // 0x29 79 | "", // 0x2a 80 | "", // 0x2b 81 | "", // 0x2c 82 | "", // 0x2d 83 | "", // 0x2e 84 | "", // 0x2f 85 | "~", // 0x30 86 | "+", // 0x31 87 | "+", // 0x32 88 | "+", // 0x33 89 | "+", // 0x34 90 | "", // 0x35 91 | "@", // 0x36 92 | " // ", // 0x37 93 | "+10+", // 0x38 94 | "+20+", // 0x39 95 | "+30+", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "[?]", // 0x40 102 | "a", // 0x41 103 | "a", // 0x42 104 | "i", // 0x43 105 | "i", // 0x44 106 | "u", // 0x45 107 | "u", // 0x46 108 | "e", // 0x47 109 | "e", // 0x48 110 | "o", // 0x49 111 | "o", // 0x4a 112 | "ka", // 0x4b 113 | "ga", // 0x4c 114 | "ki", // 0x4d 115 | "gi", // 0x4e 116 | "ku", // 0x4f 117 | "gu", // 0x50 118 | "ke", // 0x51 119 | "ge", // 0x52 120 | "ko", // 0x53 121 | "go", // 0x54 122 | "sa", // 0x55 123 | "za", // 0x56 124 | "si", // 0x57 125 | "zi", // 0x58 126 | "su", // 0x59 127 | "zu", // 0x5a 128 | "se", // 0x5b 129 | "ze", // 0x5c 130 | "so", // 0x5d 131 | "zo", // 0x5e 132 | "ta", // 0x5f 133 | "da", // 0x60 134 | "ti", // 0x61 135 | "di", // 0x62 136 | "tu", // 0x63 137 | "tu", // 0x64 138 | "du", // 0x65 139 | "te", // 0x66 140 | "de", // 0x67 141 | "to", // 0x68 142 | "do", // 0x69 143 | "na", // 0x6a 144 | "ni", // 0x6b 145 | "nu", // 0x6c 146 | "ne", // 0x6d 147 | "no", // 0x6e 148 | "ha", // 0x6f 149 | "ba", // 0x70 150 | "pa", // 0x71 151 | "hi", // 0x72 152 | "bi", // 0x73 153 | "pi", // 0x74 154 | "hu", // 0x75 155 | "bu", // 0x76 156 | "pu", // 0x77 157 | "he", // 0x78 158 | "be", // 0x79 159 | "pe", // 0x7a 160 | "ho", // 0x7b 161 | "bo", // 0x7c 162 | "po", // 0x7d 163 | "ma", // 0x7e 164 | "mi", // 0x7f 165 | "mu", // 0x80 166 | "me", // 0x81 167 | "mo", // 0x82 168 | "ya", // 0x83 169 | "ya", // 0x84 170 | "yu", // 0x85 171 | "yu", // 0x86 172 | "yo", // 0x87 173 | "yo", // 0x88 174 | "ra", // 0x89 175 | "ri", // 0x8a 176 | "ru", // 0x8b 177 | "re", // 0x8c 178 | "ro", // 0x8d 179 | "wa", // 0x8e 180 | "wa", // 0x8f 181 | "wi", // 0x90 182 | "we", // 0x91 183 | "wo", // 0x92 184 | "n", // 0x93 185 | "vu", // 0x94 186 | "[?]", // 0x95 187 | "[?]", // 0x96 188 | "[?]", // 0x97 189 | "[?]", // 0x98 190 | "", // 0x99 191 | "", // 0x9a 192 | "", // 0x9b 193 | "", // 0x9c 194 | "\"", // 0x9d 195 | "\"", // 0x9e 196 | "[?]", // 0x9f 197 | "[?]", // 0xa0 198 | "a", // 0xa1 199 | "a", // 0xa2 200 | "i", // 0xa3 201 | "i", // 0xa4 202 | "u", // 0xa5 203 | "u", // 0xa6 204 | "e", // 0xa7 205 | "e", // 0xa8 206 | "o", // 0xa9 207 | "o", // 0xaa 208 | "ka", // 0xab 209 | "ga", // 0xac 210 | "ki", // 0xad 211 | "gi", // 0xae 212 | "ku", // 0xaf 213 | "gu", // 0xb0 214 | "ke", // 0xb1 215 | "ge", // 0xb2 216 | "ko", // 0xb3 217 | "go", // 0xb4 218 | "sa", // 0xb5 219 | "za", // 0xb6 220 | "si", // 0xb7 221 | "zi", // 0xb8 222 | "su", // 0xb9 223 | "zu", // 0xba 224 | "se", // 0xbb 225 | "ze", // 0xbc 226 | "so", // 0xbd 227 | "zo", // 0xbe 228 | "ta", // 0xbf 229 | "da", // 0xc0 230 | "ti", // 0xc1 231 | "di", // 0xc2 232 | "tu", // 0xc3 233 | "tu", // 0xc4 234 | "du", // 0xc5 235 | "te", // 0xc6 236 | "de", // 0xc7 237 | "to", // 0xc8 238 | "do", // 0xc9 239 | "na", // 0xca 240 | "ni", // 0xcb 241 | "nu", // 0xcc 242 | "ne", // 0xcd 243 | "no", // 0xce 244 | "ha", // 0xcf 245 | "ba", // 0xd0 246 | "pa", // 0xd1 247 | "hi", // 0xd2 248 | "bi", // 0xd3 249 | "pi", // 0xd4 250 | "hu", // 0xd5 251 | "bu", // 0xd6 252 | "pu", // 0xd7 253 | "he", // 0xd8 254 | "be", // 0xd9 255 | "pe", // 0xda 256 | "ho", // 0xdb 257 | "bo", // 0xdc 258 | "po", // 0xdd 259 | "ma", // 0xde 260 | "mi", // 0xdf 261 | "mu", // 0xe0 262 | "me", // 0xe1 263 | "mo", // 0xe2 264 | "ya", // 0xe3 265 | "ya", // 0xe4 266 | "yu", // 0xe5 267 | "yu", // 0xe6 268 | "yo", // 0xe7 269 | "yo", // 0xe8 270 | "ra", // 0xe9 271 | "ri", // 0xea 272 | "ru", // 0xeb 273 | "re", // 0xec 274 | "ro", // 0xed 275 | "wa", // 0xee 276 | "wa", // 0xef 277 | "wi", // 0xf0 278 | "we", // 0xf1 279 | "wo", // 0xf2 280 | "n", // 0xf3 281 | "vu", // 0xf4 282 | "ka", // 0xf5 283 | "ke", // 0xf6 284 | "va", // 0xf7 285 | "vi", // 0xf8 286 | "ve", // 0xf9 287 | "vo", // 0xfa 288 | "", // 0xfb 289 | "", // 0xfc 290 | "\"", // 0xfd 291 | "\"" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X0f.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+0Fxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X0f { 35 | 36 | public static final String[] map = new String[]{ 37 | "AUM", // 0x00 38 | "", // 0x01 39 | "", // 0x02 40 | "", // 0x03 41 | "", // 0x04 42 | "", // 0x05 43 | "", // 0x06 44 | "", // 0x07 45 | " // ", // 0x08 46 | " * ", // 0x09 47 | "", // 0x0a 48 | "-", // 0x0b 49 | " / ", // 0x0c 50 | " / ", // 0x0d 51 | " // ", // 0x0e 52 | " -/ ", // 0x0f 53 | " +/ ", // 0x10 54 | " X/ ", // 0x11 55 | " /XX/ ", // 0x12 56 | " /X/ ", // 0x13 57 | ", ", // 0x14 58 | "", // 0x15 59 | "", // 0x16 60 | "", // 0x17 61 | "", // 0x18 62 | "", // 0x19 63 | "", // 0x1a 64 | "", // 0x1b 65 | "", // 0x1c 66 | "", // 0x1d 67 | "", // 0x1e 68 | "", // 0x1f 69 | "0", // 0x20 70 | "1", // 0x21 71 | "2", // 0x22 72 | "3", // 0x23 73 | "4", // 0x24 74 | "5", // 0x25 75 | "6", // 0x26 76 | "7", // 0x27 77 | "8", // 0x28 78 | "9", // 0x29 79 | ".5", // 0x2a 80 | "1.5", // 0x2b 81 | "2.5", // 0x2c 82 | "3.5", // 0x2d 83 | "4.5", // 0x2e 84 | "5.5", // 0x2f 85 | "6.5", // 0x30 86 | "7.5", // 0x31 87 | "8.5", // 0x32 88 | "-.5", // 0x33 89 | "+", // 0x34 90 | "*", // 0x35 91 | "^", // 0x36 92 | "_", // 0x37 93 | "", // 0x38 94 | "~", // 0x39 95 | "[?]", // 0x3a 96 | "]", // 0x3b 97 | "[[", // 0x3c 98 | "]]", // 0x3d 99 | "", // 0x3e 100 | "", // 0x3f 101 | "k", // 0x40 102 | "kh", // 0x41 103 | "g", // 0x42 104 | "gh", // 0x43 105 | "ng", // 0x44 106 | "c", // 0x45 107 | "ch", // 0x46 108 | "j", // 0x47 109 | "[?]", // 0x48 110 | "ny", // 0x49 111 | "tt", // 0x4a 112 | "tth", // 0x4b 113 | "dd", // 0x4c 114 | "ddh", // 0x4d 115 | "nn", // 0x4e 116 | "t", // 0x4f 117 | "th", // 0x50 118 | "d", // 0x51 119 | "dh", // 0x52 120 | "n", // 0x53 121 | "p", // 0x54 122 | "ph", // 0x55 123 | "b", // 0x56 124 | "bh", // 0x57 125 | "m", // 0x58 126 | "ts", // 0x59 127 | "tsh", // 0x5a 128 | "dz", // 0x5b 129 | "dzh", // 0x5c 130 | "w", // 0x5d 131 | "zh", // 0x5e 132 | "z", // 0x5f 133 | "\'", // 0x60 134 | "y", // 0x61 135 | "r", // 0x62 136 | "l", // 0x63 137 | "sh", // 0x64 138 | "ssh", // 0x65 139 | "s", // 0x66 140 | "h", // 0x67 141 | "a", // 0x68 142 | "kss", // 0x69 143 | "r", // 0x6a 144 | "[?]", // 0x6b 145 | "[?]", // 0x6c 146 | "[?]", // 0x6d 147 | "[?]", // 0x6e 148 | "[?]", // 0x6f 149 | "[?]", // 0x70 150 | "aa", // 0x71 151 | "i", // 0x72 152 | "ii", // 0x73 153 | "u", // 0x74 154 | "uu", // 0x75 155 | "R", // 0x76 156 | "RR", // 0x77 157 | "L", // 0x78 158 | "LL", // 0x79 159 | "e", // 0x7a 160 | "ee", // 0x7b 161 | "o", // 0x7c 162 | "oo", // 0x7d 163 | "M", // 0x7e 164 | "H", // 0x7f 165 | "i", // 0x80 166 | "ii", // 0x81 167 | "", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "", // 0x87 173 | "", // 0x88 174 | "", // 0x89 175 | "", // 0x8a 176 | "", // 0x8b 177 | "[?]", // 0x8c 178 | "[?]", // 0x8d 179 | "[?]", // 0x8e 180 | "[?]", // 0x8f 181 | "k", // 0x90 182 | "kh", // 0x91 183 | "g", // 0x92 184 | "gh", // 0x93 185 | "ng", // 0x94 186 | "c", // 0x95 187 | "ch", // 0x96 188 | "j", // 0x97 189 | "[?]", // 0x98 190 | "ny", // 0x99 191 | "tt", // 0x9a 192 | "tth", // 0x9b 193 | "dd", // 0x9c 194 | "ddh", // 0x9d 195 | "nn", // 0x9e 196 | "t", // 0x9f 197 | "th", // 0xa0 198 | "d", // 0xa1 199 | "dh", // 0xa2 200 | "n", // 0xa3 201 | "p", // 0xa4 202 | "ph", // 0xa5 203 | "b", // 0xa6 204 | "bh", // 0xa7 205 | "m", // 0xa8 206 | "ts", // 0xa9 207 | "tsh", // 0xaa 208 | "dz", // 0xab 209 | "dzh", // 0xac 210 | "w", // 0xad 211 | "zh", // 0xae 212 | "z", // 0xaf 213 | "\'", // 0xb0 214 | "y", // 0xb1 215 | "r", // 0xb2 216 | "l", // 0xb3 217 | "sh", // 0xb4 218 | "ss", // 0xb5 219 | "s", // 0xb6 220 | "h", // 0xb7 221 | "a", // 0xb8 222 | "kss", // 0xb9 223 | "w", // 0xba 224 | "y", // 0xbb 225 | "r", // 0xbc 226 | "[?]", // 0xbd 227 | "X", // 0xbe 228 | " :X: ", // 0xbf 229 | " /O/ ", // 0xc0 230 | " /o/ ", // 0xc1 231 | " \\o\\ ", // 0xc2 232 | " (O) ", // 0xc3 233 | "", // 0xc4 234 | "", // 0xc5 235 | "", // 0xc6 236 | "", // 0xc7 237 | "", // 0xc8 238 | "", // 0xc9 239 | "", // 0xca 240 | "", // 0xcb 241 | "", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "[?]", // 0xd6 252 | "[?]", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "[?]", // 0xdc 258 | "[?]", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "[?]", // 0xe0 262 | "[?]", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "[?]", // 0xe6 268 | "[?]", // 0xe7 269 | "[?]", // 0xe8 270 | "[?]", // 0xe9 271 | "[?]", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X04.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+04xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X04 { 35 | 36 | public static final String[] map = new String[]{ 37 | "Ie", // 0x00 38 | "Io", // 0x01 39 | "Dj", // 0x02 40 | "Gj", // 0x03 41 | "Ie", // 0x04 42 | "Dz", // 0x05 43 | "I", // 0x06 44 | "Yi", // 0x07 45 | "J", // 0x08 46 | "Lj", // 0x09 47 | "Nj", // 0x0a 48 | "Tsh", // 0x0b 49 | "Kj", // 0x0c 50 | "I", // 0x0d 51 | "U", // 0x0e 52 | "Dzh", // 0x0f 53 | "A", // 0x10 54 | "B", // 0x11 55 | "V", // 0x12 56 | "G", // 0x13 57 | "D", // 0x14 58 | "Ie", // 0x15 59 | "Zh", // 0x16 60 | "Z", // 0x17 61 | "I", // 0x18 62 | "I", // 0x19 63 | "K", // 0x1a 64 | "L", // 0x1b 65 | "M", // 0x1c 66 | "N", // 0x1d 67 | "O", // 0x1e 68 | "P", // 0x1f 69 | "R", // 0x20 70 | "S", // 0x21 71 | "T", // 0x22 72 | "U", // 0x23 73 | "F", // 0x24 74 | "Kh", // 0x25 75 | "Ts", // 0x26 76 | "Ch", // 0x27 77 | "Sh", // 0x28 78 | "Shch", // 0x29 79 | "", // 0x2a 80 | "Y", // 0x2b 81 | "\'", // 0x2c 82 | "E", // 0x2d 83 | "Iu", // 0x2e 84 | "Ia", // 0x2f 85 | "a", // 0x30 86 | "b", // 0x31 87 | "v", // 0x32 88 | "gh", // 0x33 89 | "d", // 0x34 90 | "ie", // 0x35 91 | "zh", // 0x36 92 | "z", // 0x37 93 | "i", // 0x38 94 | "i", // 0x39 95 | "k", // 0x3a 96 | "l", // 0x3b 97 | "m", // 0x3c 98 | "n", // 0x3d 99 | "o", // 0x3e 100 | "p", // 0x3f 101 | "r", // 0x40 102 | "s", // 0x41 103 | "t", // 0x42 104 | "u", // 0x43 105 | "f", // 0x44 106 | "kh", // 0x45 107 | "ts", // 0x46 108 | "ch", // 0x47 109 | "sh", // 0x48 110 | "shch", // 0x49 111 | "", // 0x4a 112 | "y", // 0x4b 113 | "\'", // 0x4c 114 | "e", // 0x4d 115 | "iu", // 0x4e 116 | "ia", // 0x4f 117 | "ie", // 0x50 118 | "io", // 0x51 119 | "dj", // 0x52 120 | "gj", // 0x53 121 | "ie", // 0x54 122 | "dz", // 0x55 123 | "i", // 0x56 124 | "yi", // 0x57 125 | "j", // 0x58 126 | "lj", // 0x59 127 | "nj", // 0x5a 128 | "tsh", // 0x5b 129 | "kj", // 0x5c 130 | "i", // 0x5d 131 | "u", // 0x5e 132 | "dzh", // 0x5f 133 | "O", // 0x60 134 | "o", // 0x61 135 | "E", // 0x62 136 | "e", // 0x63 137 | "Ie", // 0x64 138 | "ie", // 0x65 139 | "E", // 0x66 140 | "e", // 0x67 141 | "Ie", // 0x68 142 | "ie", // 0x69 143 | "O", // 0x6a 144 | "o", // 0x6b 145 | "Io", // 0x6c 146 | "io", // 0x6d 147 | "Ks", // 0x6e 148 | "ks", // 0x6f 149 | "Ps", // 0x70 150 | "ps", // 0x71 151 | "F", // 0x72 152 | "f", // 0x73 153 | "Y", // 0x74 154 | "y", // 0x75 155 | "Y", // 0x76 156 | "y", // 0x77 157 | "u", // 0x78 158 | "u", // 0x79 159 | "O", // 0x7a 160 | "o", // 0x7b 161 | "O", // 0x7c 162 | "o", // 0x7d 163 | "Ot", // 0x7e 164 | "ot", // 0x7f 165 | "Q", // 0x80 166 | "q", // 0x81 167 | "*1000*", // 0x82 168 | "", // 0x83 169 | "", // 0x84 170 | "", // 0x85 171 | "", // 0x86 172 | "[?]", // 0x87 173 | "*100.000*", // 0x88 174 | "*1.000.000*", // 0x89 175 | "[?]", // 0x8a 176 | "[?]", // 0x8b 177 | "\"", // 0x8c 178 | "\"", // 0x8d 179 | "R\'", // 0x8e 180 | "r\'", // 0x8f 181 | "G\'", // 0x90 182 | "g\'", // 0x91 183 | "G\'", // 0x92 184 | "g\'", // 0x93 185 | "G\'", // 0x94 186 | "g\'", // 0x95 187 | "Zh\'", // 0x96 188 | "zh\'", // 0x97 189 | "Z\'", // 0x98 190 | "z\'", // 0x99 191 | "K\'", // 0x9a 192 | "k\'", // 0x9b 193 | "K\'", // 0x9c 194 | "k\'", // 0x9d 195 | "K\'", // 0x9e 196 | "k\'", // 0x9f 197 | "K\'", // 0xa0 198 | "k\'", // 0xa1 199 | "N\'", // 0xa2 200 | "n\'", // 0xa3 201 | "Ng", // 0xa4 202 | "ng", // 0xa5 203 | "P\'", // 0xa6 204 | "p\'", // 0xa7 205 | "Kh", // 0xa8 206 | "kh", // 0xa9 207 | "S\'", // 0xaa 208 | "s\'", // 0xab 209 | "T\'", // 0xac 210 | "t\'", // 0xad 211 | "U", // 0xae 212 | "u", // 0xaf 213 | "U\'", // 0xb0 214 | "u\'", // 0xb1 215 | "Kh\'", // 0xb2 216 | "kh\'", // 0xb3 217 | "Tts", // 0xb4 218 | "tts", // 0xb5 219 | "Ch\'", // 0xb6 220 | "ch\'", // 0xb7 221 | "Ch\'", // 0xb8 222 | "ch\'", // 0xb9 223 | "H", // 0xba 224 | "h", // 0xbb 225 | "Ch", // 0xbc 226 | "ch", // 0xbd 227 | "Ch\'", // 0xbe 228 | "ch\'", // 0xbf 229 | "`", // 0xc0 230 | "Zh", // 0xc1 231 | "zh", // 0xc2 232 | "K\'", // 0xc3 233 | "k\'", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "N\'", // 0xc7 237 | "n\'", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "Ch", // 0xcb 241 | "ch", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "a", // 0xd0 246 | "a", // 0xd1 247 | "A", // 0xd2 248 | "a", // 0xd3 249 | "Ae", // 0xd4 250 | "ae", // 0xd5 251 | "Ie", // 0xd6 252 | "ie", // 0xd7 253 | "@", // 0xd8 254 | "@", // 0xd9 255 | "@", // 0xda 256 | "@", // 0xdb 257 | "Zh", // 0xdc 258 | "zh", // 0xdd 259 | "Z", // 0xde 260 | "z", // 0xdf 261 | "Dz", // 0xe0 262 | "dz", // 0xe1 263 | "I", // 0xe2 264 | "i", // 0xe3 265 | "I", // 0xe4 266 | "i", // 0xe5 267 | "O", // 0xe6 268 | "o", // 0xe7 269 | "O", // 0xe8 270 | "o", // 0xe9 271 | "O", // 0xea 272 | "o", // 0xeb 273 | "E", // 0xec 274 | "e", // 0xed 275 | "U", // 0xee 276 | "u", // 0xef 277 | "U", // 0xf0 278 | "u", // 0xf1 279 | "U", // 0xf2 280 | "u", // 0xf3 281 | "Ch", // 0xf4 282 | "ch", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "Y", // 0xf8 286 | "y", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X09.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+09xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X09 { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "N", // 0x01 39 | "N", // 0x02 40 | "H", // 0x03 41 | "[?]", // 0x04 42 | "a", // 0x05 43 | "aa", // 0x06 44 | "i", // 0x07 45 | "ii", // 0x08 46 | "u", // 0x09 47 | "uu", // 0x0a 48 | "R", // 0x0b 49 | "L", // 0x0c 50 | "eN", // 0x0d 51 | "e", // 0x0e 52 | "e", // 0x0f 53 | "ai", // 0x10 54 | "oN", // 0x11 55 | "o", // 0x12 56 | "o", // 0x13 57 | "au", // 0x14 58 | "k", // 0x15 59 | "kh", // 0x16 60 | "g", // 0x17 61 | "gh", // 0x18 62 | "ng", // 0x19 63 | "c", // 0x1a 64 | "ch", // 0x1b 65 | "j", // 0x1c 66 | "jh", // 0x1d 67 | "ny", // 0x1e 68 | "tt", // 0x1f 69 | "tth", // 0x20 70 | "dd", // 0x21 71 | "ddh", // 0x22 72 | "nn", // 0x23 73 | "t", // 0x24 74 | "th", // 0x25 75 | "d", // 0x26 76 | "dh", // 0x27 77 | "n", // 0x28 78 | "nnn", // 0x29 79 | "p", // 0x2a 80 | "ph", // 0x2b 81 | "b", // 0x2c 82 | "bh", // 0x2d 83 | "m", // 0x2e 84 | "y", // 0x2f 85 | "r", // 0x30 86 | "rr", // 0x31 87 | "l", // 0x32 88 | "l", // 0x33 89 | "lll", // 0x34 90 | "v", // 0x35 91 | "sh", // 0x36 92 | "ss", // 0x37 93 | "s", // 0x38 94 | "h", // 0x39 95 | "[?]", // 0x3a 96 | "[?]", // 0x3b 97 | "\'", // 0x3c 98 | "\'", // 0x3d 99 | "aa", // 0x3e 100 | "i", // 0x3f 101 | "ii", // 0x40 102 | "u", // 0x41 103 | "uu", // 0x42 104 | "R", // 0x43 105 | "RR", // 0x44 106 | "eN", // 0x45 107 | "e", // 0x46 108 | "e", // 0x47 109 | "ai", // 0x48 110 | "oN", // 0x49 111 | "o", // 0x4a 112 | "o", // 0x4b 113 | "au", // 0x4c 114 | "", // 0x4d 115 | "[?]", // 0x4e 116 | "[?]", // 0x4f 117 | "AUM", // 0x50 118 | "\'", // 0x51 119 | "\'", // 0x52 120 | "`", // 0x53 121 | "\'", // 0x54 122 | "[?]", // 0x55 123 | "[?]", // 0x56 124 | "[?]", // 0x57 125 | "q", // 0x58 126 | "khh", // 0x59 127 | "ghh", // 0x5a 128 | "z", // 0x5b 129 | "dddh", // 0x5c 130 | "rh", // 0x5d 131 | "f", // 0x5e 132 | "yy", // 0x5f 133 | "RR", // 0x60 134 | "LL", // 0x61 135 | "L", // 0x62 136 | "LL", // 0x63 137 | " / ", // 0x64 138 | " // ", // 0x65 139 | "0", // 0x66 140 | "1", // 0x67 141 | "2", // 0x68 142 | "3", // 0x69 143 | "4", // 0x6a 144 | "5", // 0x6b 145 | "6", // 0x6c 146 | "7", // 0x6d 147 | "8", // 0x6e 148 | "9", // 0x6f 149 | ".", // 0x70 150 | "[?]", // 0x71 151 | "[?]", // 0x72 152 | "[?]", // 0x73 153 | "[?]", // 0x74 154 | "[?]", // 0x75 155 | "[?]", // 0x76 156 | "[?]", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "[?]", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "N", // 0x81 167 | "N", // 0x82 168 | "H", // 0x83 169 | "[?]", // 0x84 170 | "a", // 0x85 171 | "aa", // 0x86 172 | "i", // 0x87 173 | "ii", // 0x88 174 | "u", // 0x89 175 | "uu", // 0x8a 176 | "R", // 0x8b 177 | "RR", // 0x8c 178 | "[?]", // 0x8d 179 | "[?]", // 0x8e 180 | "e", // 0x8f 181 | "ai", // 0x90 182 | "[?]", // 0x91 183 | "[?]", // 0x92 184 | "o", // 0x93 185 | "au", // 0x94 186 | "k", // 0x95 187 | "kh", // 0x96 188 | "g", // 0x97 189 | "gh", // 0x98 190 | "ng", // 0x99 191 | "c", // 0x9a 192 | "ch", // 0x9b 193 | "j", // 0x9c 194 | "jh", // 0x9d 195 | "ny", // 0x9e 196 | "tt", // 0x9f 197 | "tth", // 0xa0 198 | "dd", // 0xa1 199 | "ddh", // 0xa2 200 | "nn", // 0xa3 201 | "t", // 0xa4 202 | "th", // 0xa5 203 | "d", // 0xa6 204 | "dh", // 0xa7 205 | "n", // 0xa8 206 | "[?]", // 0xa9 207 | "p", // 0xaa 208 | "ph", // 0xab 209 | "b", // 0xac 210 | "bh", // 0xad 211 | "m", // 0xae 212 | "y", // 0xaf 213 | "r", // 0xb0 214 | "[?]", // 0xb1 215 | "l", // 0xb2 216 | "[?]", // 0xb3 217 | "[?]", // 0xb4 218 | "[?]", // 0xb5 219 | "sh", // 0xb6 220 | "ss", // 0xb7 221 | "s", // 0xb8 222 | "h", // 0xb9 223 | "[?]", // 0xba 224 | "[?]", // 0xbb 225 | "\'", // 0xbc 226 | "[?]", // 0xbd 227 | "aa", // 0xbe 228 | "i", // 0xbf 229 | "ii", // 0xc0 230 | "u", // 0xc1 231 | "uu", // 0xc2 232 | "R", // 0xc3 233 | "RR", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "e", // 0xc7 237 | "ai", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "o", // 0xcb 241 | "au", // 0xcc 242 | "", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "[?]", // 0xd6 252 | "+", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "rr", // 0xdc 258 | "rh", // 0xdd 259 | "[?]", // 0xde 260 | "yy", // 0xdf 261 | "RR", // 0xe0 262 | "LL", // 0xe1 263 | "L", // 0xe2 264 | "LL", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "0", // 0xe6 268 | "1", // 0xe7 269 | "2", // 0xe8 270 | "3", // 0xe9 271 | "4", // 0xea 272 | "5", // 0xeb 273 | "6", // 0xec 274 | "7", // 0xed 275 | "8", // 0xee 276 | "9", // 0xef 277 | "r\'", // 0xf0 278 | "r`", // 0xf1 279 | "Rs", // 0xf2 280 | "Rs", // 0xf3 281 | "1/", // 0xf4 282 | "2/", // 0xf5 283 | "3/", // 0xf6 284 | "4/", // 0xf7 285 | " 1 - 1/", // 0xf8 286 | "/16", // 0xf9 287 | "", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X0e.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+0Exx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X0e { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "k", // 0x01 39 | "kh", // 0x02 40 | "kh", // 0x03 41 | "kh", // 0x04 42 | "kh", // 0x05 43 | "kh", // 0x06 44 | "ng", // 0x07 45 | "cch", // 0x08 46 | "ch", // 0x09 47 | "ch", // 0x0a 48 | "ch", // 0x0b 49 | "ch", // 0x0c 50 | "y", // 0x0d 51 | "d", // 0x0e 52 | "t", // 0x0f 53 | "th", // 0x10 54 | "th", // 0x11 55 | "th", // 0x12 56 | "n", // 0x13 57 | "d", // 0x14 58 | "t", // 0x15 59 | "th", // 0x16 60 | "th", // 0x17 61 | "th", // 0x18 62 | "n", // 0x19 63 | "b", // 0x1a 64 | "p", // 0x1b 65 | "ph", // 0x1c 66 | "f", // 0x1d 67 | "ph", // 0x1e 68 | "f", // 0x1f 69 | "ph", // 0x20 70 | "m", // 0x21 71 | "y", // 0x22 72 | "r", // 0x23 73 | "R", // 0x24 74 | "l", // 0x25 75 | "L", // 0x26 76 | "w", // 0x27 77 | "s", // 0x28 78 | "s", // 0x29 79 | "s", // 0x2a 80 | "h", // 0x2b 81 | "l", // 0x2c 82 | "`", // 0x2d 83 | "h", // 0x2e 84 | "~", // 0x2f 85 | "a", // 0x30 86 | "a", // 0x31 87 | "aa", // 0x32 88 | "am", // 0x33 89 | "i", // 0x34 90 | "ii", // 0x35 91 | "ue", // 0x36 92 | "uue", // 0x37 93 | "u", // 0x38 94 | "uu", // 0x39 95 | "\'", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "[?]", // 0x3e 100 | "Bh.", // 0x3f 101 | "e", // 0x40 102 | "ae", // 0x41 103 | "o", // 0x42 104 | "ai", // 0x43 105 | "ai", // 0x44 106 | "ao", // 0x45 107 | "+", // 0x46 108 | "", // 0x47 109 | "", // 0x48 110 | "", // 0x49 111 | "", // 0x4a 112 | "", // 0x4b 113 | "", // 0x4c 114 | "M", // 0x4d 115 | "", // 0x4e 116 | " * ", // 0x4f 117 | "0", // 0x50 118 | "1", // 0x51 119 | "2", // 0x52 120 | "3", // 0x53 121 | "4", // 0x54 122 | "5", // 0x55 123 | "6", // 0x56 124 | "7", // 0x57 125 | "8", // 0x58 126 | "9", // 0x59 127 | " // ", // 0x5a 128 | " /// ", // 0x5b 129 | "[?]", // 0x5c 130 | "[?]", // 0x5d 131 | "[?]", // 0x5e 132 | "[?]", // 0x5f 133 | "[?]", // 0x60 134 | "[?]", // 0x61 135 | "[?]", // 0x62 136 | "[?]", // 0x63 137 | "[?]", // 0x64 138 | "[?]", // 0x65 139 | "[?]", // 0x66 140 | "[?]", // 0x67 141 | "[?]", // 0x68 142 | "[?]", // 0x69 143 | "[?]", // 0x6a 144 | "[?]", // 0x6b 145 | "[?]", // 0x6c 146 | "[?]", // 0x6d 147 | "[?]", // 0x6e 148 | "[?]", // 0x6f 149 | "[?]", // 0x70 150 | "[?]", // 0x71 151 | "[?]", // 0x72 152 | "[?]", // 0x73 153 | "[?]", // 0x74 154 | "[?]", // 0x75 155 | "[?]", // 0x76 156 | "[?]", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "[?]", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "k", // 0x81 167 | "kh", // 0x82 168 | "[?]", // 0x83 169 | "kh", // 0x84 170 | "[?]", // 0x85 171 | "[?]", // 0x86 172 | "ng", // 0x87 173 | "ch", // 0x88 174 | "[?]", // 0x89 175 | "s", // 0x8a 176 | "[?]", // 0x8b 177 | "[?]", // 0x8c 178 | "ny", // 0x8d 179 | "[?]", // 0x8e 180 | "[?]", // 0x8f 181 | "[?]", // 0x90 182 | "[?]", // 0x91 183 | "[?]", // 0x92 184 | "[?]", // 0x93 185 | "d", // 0x94 186 | "h", // 0x95 187 | "th", // 0x96 188 | "th", // 0x97 189 | "[?]", // 0x98 190 | "n", // 0x99 191 | "b", // 0x9a 192 | "p", // 0x9b 193 | "ph", // 0x9c 194 | "f", // 0x9d 195 | "ph", // 0x9e 196 | "f", // 0x9f 197 | "[?]", // 0xa0 198 | "m", // 0xa1 199 | "y", // 0xa2 200 | "r", // 0xa3 201 | "[?]", // 0xa4 202 | "l", // 0xa5 203 | "[?]", // 0xa6 204 | "w", // 0xa7 205 | "[?]", // 0xa8 206 | "[?]", // 0xa9 207 | "s", // 0xaa 208 | "h", // 0xab 209 | "[?]", // 0xac 210 | "`", // 0xad 211 | "", // 0xae 212 | "~", // 0xaf 213 | "a", // 0xb0 214 | "", // 0xb1 215 | "aa", // 0xb2 216 | "am", // 0xb3 217 | "i", // 0xb4 218 | "ii", // 0xb5 219 | "y", // 0xb6 220 | "yy", // 0xb7 221 | "u", // 0xb8 222 | "uu", // 0xb9 223 | "[?]", // 0xba 224 | "o", // 0xbb 225 | "l", // 0xbc 226 | "ny", // 0xbd 227 | "[?]", // 0xbe 228 | "[?]", // 0xbf 229 | "e", // 0xc0 230 | "ei", // 0xc1 231 | "o", // 0xc2 232 | "ay", // 0xc3 233 | "ai", // 0xc4 234 | "[?]", // 0xc5 235 | "+", // 0xc6 236 | "[?]", // 0xc7 237 | "", // 0xc8 238 | "", // 0xc9 239 | "", // 0xca 240 | "", // 0xcb 241 | "", // 0xcc 242 | "M", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "0", // 0xd0 246 | "1", // 0xd1 247 | "2", // 0xd2 248 | "3", // 0xd3 249 | "4", // 0xd4 250 | "5", // 0xd5 251 | "6", // 0xd6 252 | "7", // 0xd7 253 | "8", // 0xd8 254 | "9", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "hn", // 0xdc 258 | "hm", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "[?]", // 0xe0 262 | "[?]", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "[?]", // 0xe6 268 | "[?]", // 0xe7 269 | "[?]", // 0xe8 270 | "[?]", // 0xe9 271 | "[?]", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X0c.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+0Cxx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X0c { 35 | 36 | public static final String[] map = new String[]{ 37 | "[?]", // 0x00 38 | "N", // 0x01 39 | "N", // 0x02 40 | "H", // 0x03 41 | "[?]", // 0x04 42 | "a", // 0x05 43 | "aa", // 0x06 44 | "i", // 0x07 45 | "ii", // 0x08 46 | "u", // 0x09 47 | "uu", // 0x0a 48 | "R", // 0x0b 49 | "L", // 0x0c 50 | "[?]", // 0x0d 51 | "e", // 0x0e 52 | "ee", // 0x0f 53 | "ai", // 0x10 54 | "[?]", // 0x11 55 | "o", // 0x12 56 | "oo", // 0x13 57 | "au", // 0x14 58 | "k", // 0x15 59 | "kh", // 0x16 60 | "g", // 0x17 61 | "gh", // 0x18 62 | "ng", // 0x19 63 | "c", // 0x1a 64 | "ch", // 0x1b 65 | "j", // 0x1c 66 | "jh", // 0x1d 67 | "ny", // 0x1e 68 | "tt", // 0x1f 69 | "tth", // 0x20 70 | "dd", // 0x21 71 | "ddh", // 0x22 72 | "nn", // 0x23 73 | "t", // 0x24 74 | "th", // 0x25 75 | "d", // 0x26 76 | "dh", // 0x27 77 | "n", // 0x28 78 | "[?]", // 0x29 79 | "p", // 0x2a 80 | "ph", // 0x2b 81 | "b", // 0x2c 82 | "bh", // 0x2d 83 | "m", // 0x2e 84 | "y", // 0x2f 85 | "r", // 0x30 86 | "rr", // 0x31 87 | "l", // 0x32 88 | "ll", // 0x33 89 | "[?]", // 0x34 90 | "v", // 0x35 91 | "sh", // 0x36 92 | "ss", // 0x37 93 | "s", // 0x38 94 | "h", // 0x39 95 | "[?]", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "aa", // 0x3e 100 | "i", // 0x3f 101 | "ii", // 0x40 102 | "u", // 0x41 103 | "uu", // 0x42 104 | "R", // 0x43 105 | "RR", // 0x44 106 | "[?]", // 0x45 107 | "e", // 0x46 108 | "ee", // 0x47 109 | "ai", // 0x48 110 | "[?]", // 0x49 111 | "o", // 0x4a 112 | "oo", // 0x4b 113 | "au", // 0x4c 114 | "", // 0x4d 115 | "[?]", // 0x4e 116 | "[?]", // 0x4f 117 | "[?]", // 0x50 118 | "[?]", // 0x51 119 | "[?]", // 0x52 120 | "[?]", // 0x53 121 | "[?]", // 0x54 122 | "+", // 0x55 123 | "+", // 0x56 124 | "[?]", // 0x57 125 | "[?]", // 0x58 126 | "[?]", // 0x59 127 | "[?]", // 0x5a 128 | "[?]", // 0x5b 129 | "[?]", // 0x5c 130 | "[?]", // 0x5d 131 | "[?]", // 0x5e 132 | "[?]", // 0x5f 133 | "RR", // 0x60 134 | "LL", // 0x61 135 | "[?]", // 0x62 136 | "[?]", // 0x63 137 | "[?]", // 0x64 138 | "[?]", // 0x65 139 | "0", // 0x66 140 | "1", // 0x67 141 | "2", // 0x68 142 | "3", // 0x69 143 | "4", // 0x6a 144 | "5", // 0x6b 145 | "6", // 0x6c 146 | "7", // 0x6d 147 | "8", // 0x6e 148 | "9", // 0x6f 149 | "[?]", // 0x70 150 | "[?]", // 0x71 151 | "[?]", // 0x72 152 | "[?]", // 0x73 153 | "[?]", // 0x74 154 | "[?]", // 0x75 155 | "[?]", // 0x76 156 | "[?]", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "[?]", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "[?]", // 0x81 167 | "N", // 0x82 168 | "H", // 0x83 169 | "[?]", // 0x84 170 | "a", // 0x85 171 | "aa", // 0x86 172 | "i", // 0x87 173 | "ii", // 0x88 174 | "u", // 0x89 175 | "uu", // 0x8a 176 | "R", // 0x8b 177 | "L", // 0x8c 178 | "[?]", // 0x8d 179 | "e", // 0x8e 180 | "ee", // 0x8f 181 | "ai", // 0x90 182 | "[?]", // 0x91 183 | "o", // 0x92 184 | "oo", // 0x93 185 | "au", // 0x94 186 | "k", // 0x95 187 | "kh", // 0x96 188 | "g", // 0x97 189 | "gh", // 0x98 190 | "ng", // 0x99 191 | "c", // 0x9a 192 | "ch", // 0x9b 193 | "j", // 0x9c 194 | "jh", // 0x9d 195 | "ny", // 0x9e 196 | "tt", // 0x9f 197 | "tth", // 0xa0 198 | "dd", // 0xa1 199 | "ddh", // 0xa2 200 | "nn", // 0xa3 201 | "t", // 0xa4 202 | "th", // 0xa5 203 | "d", // 0xa6 204 | "dh", // 0xa7 205 | "n", // 0xa8 206 | "[?]", // 0xa9 207 | "p", // 0xaa 208 | "ph", // 0xab 209 | "b", // 0xac 210 | "bh", // 0xad 211 | "m", // 0xae 212 | "y", // 0xaf 213 | "r", // 0xb0 214 | "rr", // 0xb1 215 | "l", // 0xb2 216 | "ll", // 0xb3 217 | "[?]", // 0xb4 218 | "v", // 0xb5 219 | "sh", // 0xb6 220 | "ss", // 0xb7 221 | "s", // 0xb8 222 | "h", // 0xb9 223 | "[?]", // 0xba 224 | "[?]", // 0xbb 225 | "[?]", // 0xbc 226 | "[?]", // 0xbd 227 | "aa", // 0xbe 228 | "i", // 0xbf 229 | "ii", // 0xc0 230 | "u", // 0xc1 231 | "uu", // 0xc2 232 | "R", // 0xc3 233 | "RR", // 0xc4 234 | "[?]", // 0xc5 235 | "e", // 0xc6 236 | "ee", // 0xc7 237 | "ai", // 0xc8 238 | "[?]", // 0xc9 239 | "o", // 0xca 240 | "oo", // 0xcb 241 | "au", // 0xcc 242 | "", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "+", // 0xd5 251 | "+", // 0xd6 252 | "[?]", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "[?]", // 0xdc 258 | "[?]", // 0xdd 259 | "lll", // 0xde 260 | "[?]", // 0xdf 261 | "RR", // 0xe0 262 | "LL", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "0", // 0xe6 268 | "1", // 0xe7 269 | "2", // 0xe8 270 | "3", // 0xe9 271 | "4", // 0xea 272 | "5", // 0xeb 273 | "6", // 0xec 274 | "7", // 0xed 275 | "8", // 0xee 276 | "9", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X18.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+18xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X18 { 35 | 36 | public static final String[] map = new String[]{ 37 | " @ ", // 0x00 38 | " ... ", // 0x01 39 | ", ", // 0x02 40 | ". ", // 0x03 41 | ": ", // 0x04 42 | " // ", // 0x05 43 | "", // 0x06 44 | "-", // 0x07 45 | ", ", // 0x08 46 | ". ", // 0x09 47 | "", // 0x0a 48 | "", // 0x0b 49 | "", // 0x0c 50 | "", // 0x0d 51 | "", // 0x0e 52 | "[?]", // 0x0f 53 | "0", // 0x10 54 | "1", // 0x11 55 | "2", // 0x12 56 | "3", // 0x13 57 | "4", // 0x14 58 | "5", // 0x15 59 | "6", // 0x16 60 | "7", // 0x17 61 | "8", // 0x18 62 | "9", // 0x19 63 | "[?]", // 0x1a 64 | "[?]", // 0x1b 65 | "[?]", // 0x1c 66 | "[?]", // 0x1d 67 | "[?]", // 0x1e 68 | "[?]", // 0x1f 69 | "a", // 0x20 70 | "e", // 0x21 71 | "i", // 0x22 72 | "o", // 0x23 73 | "u", // 0x24 74 | "O", // 0x25 75 | "U", // 0x26 76 | "ee", // 0x27 77 | "n", // 0x28 78 | "ng", // 0x29 79 | "b", // 0x2a 80 | "p", // 0x2b 81 | "q", // 0x2c 82 | "g", // 0x2d 83 | "m", // 0x2e 84 | "l", // 0x2f 85 | "s", // 0x30 86 | "sh", // 0x31 87 | "t", // 0x32 88 | "d", // 0x33 89 | "ch", // 0x34 90 | "j", // 0x35 91 | "y", // 0x36 92 | "r", // 0x37 93 | "w", // 0x38 94 | "f", // 0x39 95 | "k", // 0x3a 96 | "kha", // 0x3b 97 | "ts", // 0x3c 98 | "z", // 0x3d 99 | "h", // 0x3e 100 | "zr", // 0x3f 101 | "lh", // 0x40 102 | "zh", // 0x41 103 | "ch", // 0x42 104 | "-", // 0x43 105 | "e", // 0x44 106 | "i", // 0x45 107 | "o", // 0x46 108 | "u", // 0x47 109 | "O", // 0x48 110 | "U", // 0x49 111 | "ng", // 0x4a 112 | "b", // 0x4b 113 | "p", // 0x4c 114 | "q", // 0x4d 115 | "g", // 0x4e 116 | "m", // 0x4f 117 | "t", // 0x50 118 | "d", // 0x51 119 | "ch", // 0x52 120 | "j", // 0x53 121 | "ts", // 0x54 122 | "y", // 0x55 123 | "w", // 0x56 124 | "k", // 0x57 125 | "g", // 0x58 126 | "h", // 0x59 127 | "jy", // 0x5a 128 | "ny", // 0x5b 129 | "dz", // 0x5c 130 | "e", // 0x5d 131 | "i", // 0x5e 132 | "iy", // 0x5f 133 | "U", // 0x60 134 | "u", // 0x61 135 | "ng", // 0x62 136 | "k", // 0x63 137 | "g", // 0x64 138 | "h", // 0x65 139 | "p", // 0x66 140 | "sh", // 0x67 141 | "t", // 0x68 142 | "d", // 0x69 143 | "j", // 0x6a 144 | "f", // 0x6b 145 | "g", // 0x6c 146 | "h", // 0x6d 147 | "ts", // 0x6e 148 | "z", // 0x6f 149 | "r", // 0x70 150 | "ch", // 0x71 151 | "zh", // 0x72 152 | "i", // 0x73 153 | "k", // 0x74 154 | "r", // 0x75 155 | "f", // 0x76 156 | "zh", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "[?]", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "H", // 0x81 167 | "X", // 0x82 168 | "W", // 0x83 169 | "M", // 0x84 170 | " 3 ", // 0x85 171 | " 333 ", // 0x86 172 | "a", // 0x87 173 | "i", // 0x88 174 | "k", // 0x89 175 | "ng", // 0x8a 176 | "c", // 0x8b 177 | "tt", // 0x8c 178 | "tth", // 0x8d 179 | "dd", // 0x8e 180 | "nn", // 0x8f 181 | "t", // 0x90 182 | "d", // 0x91 183 | "p", // 0x92 184 | "ph", // 0x93 185 | "ss", // 0x94 186 | "zh", // 0x95 187 | "z", // 0x96 188 | "a", // 0x97 189 | "t", // 0x98 190 | "zh", // 0x99 191 | "gh", // 0x9a 192 | "ng", // 0x9b 193 | "c", // 0x9c 194 | "jh", // 0x9d 195 | "tta", // 0x9e 196 | "ddh", // 0x9f 197 | "t", // 0xa0 198 | "dh", // 0xa1 199 | "ss", // 0xa2 200 | "cy", // 0xa3 201 | "zh", // 0xa4 202 | "z", // 0xa5 203 | "u", // 0xa6 204 | "y", // 0xa7 205 | "bh", // 0xa8 206 | "\'", // 0xa9 207 | "[?]", // 0xaa 208 | "[?]", // 0xab 209 | "[?]", // 0xac 210 | "[?]", // 0xad 211 | "[?]", // 0xae 212 | "[?]", // 0xaf 213 | "[?]", // 0xb0 214 | "[?]", // 0xb1 215 | "[?]", // 0xb2 216 | "[?]", // 0xb3 217 | "[?]", // 0xb4 218 | "[?]", // 0xb5 219 | "[?]", // 0xb6 220 | "[?]", // 0xb7 221 | "[?]", // 0xb8 222 | "[?]", // 0xb9 223 | "[?]", // 0xba 224 | "[?]", // 0xbb 225 | "[?]", // 0xbc 226 | "[?]", // 0xbd 227 | "[?]", // 0xbe 228 | "[?]", // 0xbf 229 | "[?]", // 0xc0 230 | "[?]", // 0xc1 231 | "[?]", // 0xc2 232 | "[?]", // 0xc3 233 | "[?]", // 0xc4 234 | "[?]", // 0xc5 235 | "[?]", // 0xc6 236 | "[?]", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "[?]", // 0xd0 246 | "[?]", // 0xd1 247 | "[?]", // 0xd2 248 | "[?]", // 0xd3 249 | "[?]", // 0xd4 250 | "[?]", // 0xd5 251 | "[?]", // 0xd6 252 | "[?]", // 0xd7 253 | "[?]", // 0xd8 254 | "[?]", // 0xd9 255 | "[?]", // 0xda 256 | "[?]", // 0xdb 257 | "[?]", // 0xdc 258 | "[?]", // 0xdd 259 | "[?]", // 0xde 260 | "[?]", // 0xdf 261 | "[?]", // 0xe0 262 | "[?]", // 0xe1 263 | "[?]", // 0xe2 264 | "[?]", // 0xe3 265 | "[?]", // 0xe4 266 | "[?]", // 0xe5 267 | "[?]", // 0xe6 268 | "[?]", // 0xe7 269 | "[?]", // 0xe8 270 | "[?]", // 0xe9 271 | "[?]", // 0xea 272 | "[?]", // 0xeb 273 | "[?]", // 0xec 274 | "[?]", // 0xed 275 | "[?]", // 0xee 276 | "[?]", // 0xef 277 | "[?]", // 0xf0 278 | "[?]", // 0xf1 279 | "[?]", // 0xf2 280 | "[?]", // 0xf3 281 | "[?]", // 0xf4 282 | "[?]", // 0xf5 283 | "[?]", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | "[?]", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | -------------------------------------------------------------------------------- /java/net/sf/junidecode/X10.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009, Giuseppe Cardone 3 | * All rights reserved. 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * * Redistributions of source code must retain the above copyright 7 | * notice, this list of conditions and the following disclaimer. 8 | * * Redistributions in binary form must reproduce the above copyright 9 | * notice, this list of conditions and the following disclaimer in the 10 | * documentation and/or other materials provided with the distribution. 11 | * * Neither the name of the author nor the names of the contributors may be 12 | * used to endorse or promote products derived from this software without 13 | * specific prior written permission. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY GIUSEPPE CARDONE ''AS IS'' AND ANY 16 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 | * DISCLAIMED. IN NO EVENT SHALL GIUSEPPE CARDONE BE LIABLE FOR ANY 19 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 | * 26 | */ 27 | package net.sf.junidecode; 28 | 29 | /** 30 | * Character map for Unicode characters with codepoint U+10xx. 31 | * @author Giuseppe Cardone 32 | * @version 0.1 33 | */ 34 | class X10 { 35 | 36 | public static final String[] map = new String[]{ 37 | "k", // 0x00 38 | "kh", // 0x01 39 | "g", // 0x02 40 | "gh", // 0x03 41 | "ng", // 0x04 42 | "c", // 0x05 43 | "ch", // 0x06 44 | "j", // 0x07 45 | "jh", // 0x08 46 | "ny", // 0x09 47 | "nny", // 0x0a 48 | "tt", // 0x0b 49 | "tth", // 0x0c 50 | "dd", // 0x0d 51 | "ddh", // 0x0e 52 | "nn", // 0x0f 53 | "tt", // 0x10 54 | "th", // 0x11 55 | "d", // 0x12 56 | "dh", // 0x13 57 | "n", // 0x14 58 | "p", // 0x15 59 | "ph", // 0x16 60 | "b", // 0x17 61 | "bh", // 0x18 62 | "m", // 0x19 63 | "y", // 0x1a 64 | "r", // 0x1b 65 | "l", // 0x1c 66 | "w", // 0x1d 67 | "s", // 0x1e 68 | "h", // 0x1f 69 | "ll", // 0x20 70 | "a", // 0x21 71 | "[?]", // 0x22 72 | "i", // 0x23 73 | "ii", // 0x24 74 | "u", // 0x25 75 | "uu", // 0x26 76 | "e", // 0x27 77 | "[?]", // 0x28 78 | "o", // 0x29 79 | "au", // 0x2a 80 | "[?]", // 0x2b 81 | "aa", // 0x2c 82 | "i", // 0x2d 83 | "ii", // 0x2e 84 | "u", // 0x2f 85 | "uu", // 0x30 86 | "e", // 0x31 87 | "ai", // 0x32 88 | "[?]", // 0x33 89 | "[?]", // 0x34 90 | "[?]", // 0x35 91 | "N", // 0x36 92 | "\'", // 0x37 93 | ":", // 0x38 94 | "", // 0x39 95 | "[?]", // 0x3a 96 | "[?]", // 0x3b 97 | "[?]", // 0x3c 98 | "[?]", // 0x3d 99 | "[?]", // 0x3e 100 | "[?]", // 0x3f 101 | "0", // 0x40 102 | "1", // 0x41 103 | "2", // 0x42 104 | "3", // 0x43 105 | "4", // 0x44 106 | "5", // 0x45 107 | "6", // 0x46 108 | "7", // 0x47 109 | "8", // 0x48 110 | "9", // 0x49 111 | " / ", // 0x4a 112 | " // ", // 0x4b 113 | "n*", // 0x4c 114 | "r*", // 0x4d 115 | "l*", // 0x4e 116 | "e*", // 0x4f 117 | "sh", // 0x50 118 | "ss", // 0x51 119 | "R", // 0x52 120 | "RR", // 0x53 121 | "L", // 0x54 122 | "LL", // 0x55 123 | "R", // 0x56 124 | "RR", // 0x57 125 | "L", // 0x58 126 | "LL", // 0x59 127 | "[?]", // 0x5a 128 | "[?]", // 0x5b 129 | "[?]", // 0x5c 130 | "[?]", // 0x5d 131 | "[?]", // 0x5e 132 | "[?]", // 0x5f 133 | "[?]", // 0x60 134 | "[?]", // 0x61 135 | "[?]", // 0x62 136 | "[?]", // 0x63 137 | "[?]", // 0x64 138 | "[?]", // 0x65 139 | "[?]", // 0x66 140 | "[?]", // 0x67 141 | "[?]", // 0x68 142 | "[?]", // 0x69 143 | "[?]", // 0x6a 144 | "[?]", // 0x6b 145 | "[?]", // 0x6c 146 | "[?]", // 0x6d 147 | "[?]", // 0x6e 148 | "[?]", // 0x6f 149 | "[?]", // 0x70 150 | "[?]", // 0x71 151 | "[?]", // 0x72 152 | "[?]", // 0x73 153 | "[?]", // 0x74 154 | "[?]", // 0x75 155 | "[?]", // 0x76 156 | "[?]", // 0x77 157 | "[?]", // 0x78 158 | "[?]", // 0x79 159 | "[?]", // 0x7a 160 | "[?]", // 0x7b 161 | "[?]", // 0x7c 162 | "[?]", // 0x7d 163 | "[?]", // 0x7e 164 | "[?]", // 0x7f 165 | "[?]", // 0x80 166 | "[?]", // 0x81 167 | "[?]", // 0x82 168 | "[?]", // 0x83 169 | "[?]", // 0x84 170 | "[?]", // 0x85 171 | "[?]", // 0x86 172 | "[?]", // 0x87 173 | "[?]", // 0x88 174 | "[?]", // 0x89 175 | "[?]", // 0x8a 176 | "[?]", // 0x8b 177 | "[?]", // 0x8c 178 | "[?]", // 0x8d 179 | "[?]", // 0x8e 180 | "[?]", // 0x8f 181 | "[?]", // 0x90 182 | "[?]", // 0x91 183 | "[?]", // 0x92 184 | "[?]", // 0x93 185 | "[?]", // 0x94 186 | "[?]", // 0x95 187 | "[?]", // 0x96 188 | "[?]", // 0x97 189 | "[?]", // 0x98 190 | "[?]", // 0x99 191 | "[?]", // 0x9a 192 | "[?]", // 0x9b 193 | "[?]", // 0x9c 194 | "[?]", // 0x9d 195 | "[?]", // 0x9e 196 | "[?]", // 0x9f 197 | "A", // 0xa0 198 | "B", // 0xa1 199 | "G", // 0xa2 200 | "D", // 0xa3 201 | "E", // 0xa4 202 | "V", // 0xa5 203 | "Z", // 0xa6 204 | "T`", // 0xa7 205 | "I", // 0xa8 206 | "K", // 0xa9 207 | "L", // 0xaa 208 | "M", // 0xab 209 | "N", // 0xac 210 | "O", // 0xad 211 | "P", // 0xae 212 | "Zh", // 0xaf 213 | "R", // 0xb0 214 | "S", // 0xb1 215 | "T", // 0xb2 216 | "U", // 0xb3 217 | "P`", // 0xb4 218 | "K`", // 0xb5 219 | "G\'", // 0xb6 220 | "Q", // 0xb7 221 | "Sh", // 0xb8 222 | "Ch`", // 0xb9 223 | "C`", // 0xba 224 | "Z\'", // 0xbb 225 | "C", // 0xbc 226 | "Ch", // 0xbd 227 | "X", // 0xbe 228 | "J", // 0xbf 229 | "H", // 0xc0 230 | "E", // 0xc1 231 | "Y", // 0xc2 232 | "W", // 0xc3 233 | "Xh", // 0xc4 234 | "OE", // 0xc5 235 | "[?]", // 0xc6 236 | "[?]", // 0xc7 237 | "[?]", // 0xc8 238 | "[?]", // 0xc9 239 | "[?]", // 0xca 240 | "[?]", // 0xcb 241 | "[?]", // 0xcc 242 | "[?]", // 0xcd 243 | "[?]", // 0xce 244 | "[?]", // 0xcf 245 | "a", // 0xd0 246 | "b", // 0xd1 247 | "g", // 0xd2 248 | "d", // 0xd3 249 | "e", // 0xd4 250 | "v", // 0xd5 251 | "z", // 0xd6 252 | "t`", // 0xd7 253 | "i", // 0xd8 254 | "k", // 0xd9 255 | "l", // 0xda 256 | "m", // 0xdb 257 | "n", // 0xdc 258 | "o", // 0xdd 259 | "p", // 0xde 260 | "zh", // 0xdf 261 | "r", // 0xe0 262 | "s", // 0xe1 263 | "t", // 0xe2 264 | "u", // 0xe3 265 | "p`", // 0xe4 266 | "k`", // 0xe5 267 | "g\'", // 0xe6 268 | "q", // 0xe7 269 | "sh", // 0xe8 270 | "ch`", // 0xe9 271 | "c`", // 0xea 272 | "z\'", // 0xeb 273 | "c", // 0xec 274 | "ch", // 0xed 275 | "x", // 0xee 276 | "j", // 0xef 277 | "h", // 0xf0 278 | "e", // 0xf1 279 | "y", // 0xf2 280 | "w", // 0xf3 281 | "xh", // 0xf4 282 | "oe", // 0xf5 283 | "f", // 0xf6 284 | "[?]", // 0xf7 285 | "[?]", // 0xf8 286 | "[?]", // 0xf9 287 | "[?]", // 0xfa 288 | " // ", // 0xfb 289 | "[?]", // 0xfc 290 | "[?]", // 0xfd 291 | "[?]" // 0xfe 292 | }; 293 | } 294 | --------------------------------------------------------------------------------