1<?xml version="1.0"?> 2<!-- 3Copyright (C) Electronic Dictionary Research and Development Group 4Released under Creative Commons Attribution-ShareAlike Licence (V4.0) 5 6This file only contains the kanjidic2 DTD without the actual database. 7 8http://nihongo.monash.edu/kanjidic2/index.html 9http://www.edrdg.org/edrdg/licence.html 10--> 11<!DOCTYPE kanjidic2 [ 12<!-- Version 1.3 13 This is the DTD of the XML-format kanji file combining information from 14 the KANJIDIC and KANJD212 files. It is intended to be largely self- 15 documenting, with each field being accompanied by an explanatory 16 comment. 17 18 The file covers the following kanji: 19 (a) the 6,355 kanji from JIS X 0208; 20 (b) the 5,801 kanji from JIS X 0212; 21 (c) the 3,625 kanji from JIS X 0213 as follows: 22 (i) the 2,741 kanji which are also in JIS X 0212 have 23 JIS X 0213 code-points (kuten) added to the existing entry; 24 (ii) the 884 "new" kanji have new entries. 25 26 At the end of the explanation for a number of fields there is a tag 27 with the format [N]. This indicates the leading letter(s) of the 28 equivalent field in the KANJIDIC and KANJD212 files. 29 30 The KANJIDIC documentation should also be read for additional 31 information about the information in the file. 32 --><!ELEMENT kanjidic2 (header , character*)> 33<!ELEMENT header (file_version , database_version , date_of_creation)> 34<!-- 35 The single header element will contain identification information 36 about the version of the file 37 --><!ELEMENT file_version (#PCDATA)> 38<!-- 39 This field denotes the version of kanjidic2 structure, as more 40 than one version may exist. 41 --><!ELEMENT database_version (#PCDATA)> 42<!-- 43 The version of the file, in the format YYYY-NN, where NN will be 44 a number starting with 01 for the first version released in a 45 calendar year, then increasing for each version in that year. 46 --><!ELEMENT date_of_creation (#PCDATA)> 47<!-- 48 The date the file was created in international format (YYYY-MM-DD). 49 --><!ELEMENT character (literal , codepoint , radical , misc , dic_number? , query_code? , reading_meaning? , nanori?)*> 50<!ELEMENT literal (#PCDATA)> 51<!-- 52 The character itself in UTF8 coding. 53 --><!ELEMENT codepoint (cp_value)+> 54<!-- 55 The codepoint element states the code of the character in the various 56 character set standards. 57 --><!ELEMENT cp_value (#PCDATA)> 58<!-- 59 The cp_value contains the codepoint of the character in a particular 60 standard. The standard will be identified in the cp_type attribute. 61 --><!ATTLIST cp_value cp_type CDATA #REQUIRED> 62<!-- 63 The cp_type attribute states the coding standard applying to the 64 element. The values assigned so far are: 65 jis208 - JIS X 0208-1997 - kuten coding (nn-nn) 66 jis212 - JIS X 0212-1990 - kuten coding (nn-nn) 67 jis213 - JIS X 0213-2000 - kuten coding (p-nn-nn) 68 ucs - Unicode 4.0 - hex coding (4 or 5 hexadecimal digits) 69 --><!ELEMENT radical (rad_value)+> 70<!ELEMENT rad_value (#PCDATA)> 71<!-- 72 The radical number, in the range 1 to 214. The particular 73 classification type is stated in the rad_type attribute. 74 --><!ATTLIST rad_value rad_type CDATA #REQUIRED> 75<!-- 76 The rad_type attribute states the type of radical classification. 77 classical - as recorded in the KangXi Zidian. 78 nelson - as used in the Nelson "Modern Japanese-English 79 Character Dictionary" (i.e. the Classic, not the New Nelson). 80 This will only be used where Nelson reclassified the kanji. 81 --><!ELEMENT misc (grade? , stroke_count+ , variant* , freq* , rad_name*)> 82<!ELEMENT grade (#PCDATA)> 83<!-- 84 The Jouyou Kanji grade level. 1 through 6 indicate the grade in which 85 the kanji is taught in Japanese schools. 8 indicates it is one of the 86 remaining Jouyou Kanji to be learned in junior high school, and 9 87 indicates it is a Jinmeiyou (for use in names) kanji. [G] 88 --><!ELEMENT stroke_count (#PCDATA)> 89<!-- 90 The stroke count of the kanji, including the radical. If more than 91 one, the first is considered the accepted count, while subsequent ones 92 are common miscounts. (See Appendix E. of the KANJIDIC documentation 93 for some of the rules applied when counting strokes in some of the 94 radicals.) [S] 95 --><!ELEMENT variant (#PCDATA)> 96<!-- 97 A cross-reference code to another kanji, usually regarded as a variant. 98 The type of cross-reference is given in the var_type attribute. 99 --><!ATTLIST variant var_type CDATA #REQUIRED> 100<!-- 101 The var_type attribute indicates the type of variant code. The current 102 values are: 103 jis208 - in JIS X 0208 - kuten coding 104 jis212 - in JIS X 0212 - kuten coding 105 jis213 - in JIS X 0213 - kuten coding 106 deroo - De Roo number - numeric 107 njecd - Halpern NJECD index number - numeric 108 s_h - The Kanji Dictionary (Spahn & Hadamitzky) - descriptor 109 nelson - "Classic" Nelson - numeric 110 oneill - Japanese Names (O'Neill) - numeric 111 --><!ELEMENT freq (#PCDATA)> 112<!-- 113 A frequency-of-use ranking. The 2,500 most-used characters have a 114 ranking; those characters that lack this field are not ranked. The 115 frequency is a number from 1 to 2,500 that expresses the relative 116 frequency of occurrence of a character in modern Japanese. This is 117 based on a survey in newspapers, so it is biassed towards kanji 118 used in newspaper articles. The discrimination between the less 119 frequently used kanji is not strong. 120 --><!ELEMENT rad_name (#PCDATA)> 121<!-- 122 When the kanji is itself a radical and has a name, this element 123 contains the name (in hiragana.) [T2] 124 --><!ELEMENT dic_number (dic_ref)+> 125<!-- 126 This element contains the index numbers and similar unstructured 127 information such as page numbers in a number of published dictionaries, 128 and instructional books on kanji. 129 --><!ELEMENT dic_ref (#PCDATA)> 130<!-- 131 Each dic_ref contains an index number. The particular dictionary, 132 etc. is defined by the dr_type attribute. 133 --><!ATTLIST dic_ref dr_type CDATA #REQUIRED> 134<!-- 135 The dr_type defines the dictionary or reference book, etc. to which 136 dic_ref element applies. The initial allocation is: 137 nelson_c - "Modern Reader's Japanese-English Character Dictionary", 138 edited by Andrew Nelson (now published as the "Classic" 139 Nelson). 140 nelson_n - "The New Nelson Japanese-English Character Dictionary", 141 edited by John Haig. 142 halpern_njecd - "New Japanese-English Character Dictionary", 143 edited by Jack Halpern. 144 halpern_kkld - "Kanji Learners Dictionary" (Kodansha) edited by 145 Jack Halpern. 146 heisig - "Remembering The Kanji" by James Heisig. 147 gakken - "A New Dictionary of Kanji Usage" (Gakken) 148 oneill_names - "Japanese Names", by P.G. O'Neill. 149 oneill_kk - "Essential Kanji" by P.G. O'Neill. 150 moro - "Daikanwajiten" compiled by Morohashi. For some kanji two 151 additional attributes are used: m_vol: the volume of the 152 dictionary in which the kanji is found, and m_page: the page 153 number in the volume. 154 henshall - "A Guide To Remembering Japanese Characters" by 155 Kenneth G. Henshall. 156 sh_kk - "Kanji and Kana" by Spahn and Hadamitzky. 157 sakade - "A Guide To Reading and Writing Japanese" edited by 158 Florence Sakade. 159 henshall3 - "A Guide To Reading and Writing Japanese" 3rd 160 edition, edited by Henshall, Seeley and De Groot. 161 tutt_cards - Tuttle Kanji Cards, compiled by Alexander Kask. 162 crowley - "The Kanji Way to Japanese Language Power" by 163 Dale Crowley. 164 kanji_in_context - "Kanji in Context" by Nishiguchi and Kono. 165 busy_people - "Japanese For Busy People" vols I-III, published 166 by the AJLT. The codes are the volume.chapter. 167 kodansha_compact - the "Kodansha Compact Kanji Guide". 168 --><!ATTLIST dic_ref m_vol CDATA #IMPLIED> 169<!-- 170 See above under "moro". 171 --><!ATTLIST dic_ref m_page CDATA #IMPLIED> 172<!-- 173 See above under "moro". 174 --><!ELEMENT query_code (q_code)+> 175<!-- 176 These codes contain information relating to the glyph, and can be used 177 for finding a required kanji. The type of code is defined by the 178 qc_type attribute. 179 --><!ELEMENT q_code (#PCDATA)> 180<!-- 181 The q_code contains the actual query-code value, according to the 182 qc_type attribute. 183 --><!ATTLIST q_code qc_type CDATA #REQUIRED> 184<!-- 185 The q_code attribute defines the type of query code. The current values 186 are: 187 skip - Halpern's SKIP (System of Kanji Indexing by Patterns) 188 code. The format is n-nn-nn. See the KANJIDIC documentation 189 for a description of the code and restrictions on the 190 commercial use of this data. [P] 191 192 sh_desc - the descriptor codes for The Kanji Dictionary (Tuttle 193 1996) by Spahn and Hadamitzky. They are in the form nxnn.n, 194 e.g. 3k11.2, where the kanji has 3 strokes in the 195 identifying radical, it is radical "k" in the SH 196 classification system, there are 11 other strokes, and it is 197 the 2nd kanji in the 3k11 sequence. (I am very grateful to 198 Mark Spahn for providing the list of these descriptor codes 199 for the kanji in this file.) [I] 200 four_corner - the "Four Corner" code for the kanji. This is a code 201 invented by Wang Chen in 1928. See the KANJIDIC documentation 202 for an overview of the Four Corner System. [Q] 203 204 deroo - the codes developed by the late Father Joseph De Roo, and 205 published in his book "2001 Kanji" (Bojinsha). Fr De Roo 206 gave his permission for these codes to be included. [DR] 207 misclass - a possible misclassification of the kanji according 208 to one of the code types. (See the "Z" codes in the KANJIDIC 209 documentation for more details.) 210 211 --><!ELEMENT reading_meaning (rmgroup* , nanori*)> 212<!-- 213 The readings for the kanji in several languages, and the meanings, also 214 in several languages. The readings and meanings are grouped to enable 215 the handling of the situation where the meaning is differentiated by 216 reading. [T1] 217 --><!ELEMENT nanori (#PCDATA)> 218<!-- 219 Japanese readings that are now only associated with names. 220 --><!ELEMENT rmgroup (reading* , meaning*)> 221<!ELEMENT reading (#PCDATA)> 222<!-- 223 The reading element contains the reading or pronunciation 224 of the kanji. 225 --><!ATTLIST reading r_type CDATA #REQUIRED> 226<!-- 227 The r_type attribute defines the type of reading in the reading 228 element. The current values are: 229 pinyin - the modern PinYin romanization of the Chinese reading 230 of the kanji. The tones are represented by a concluding 231 digit. [Y] 232 korean_r - the romanized form of the Korean reading(s) of the 233 kanji. The readings are in the (Republic of Korea) Ministry 234 of Education style of romanization. [W] 235 korean_h - the Korean reading(s) of the kanji in hangul. 236 ja_on - the "on" Japanese reading of the kanji, in katakana. A 237 second attribute r_status, if present, will indicate with 238 a value of "jy" whether the reading is approved for a 239 "Jouyou kanji". 240 ja_kun - the "kun" Japanese reading of the kanji, in hiragana. 241 Where relevant the okurigana is also included separated by a 242 ".". Readings associated with prefixes and suffixes are 243 marked with a "-". A second attribute r_status, if present, 244 will indicate with a value of "jy" whether the reading is 245 approved for a "Jouyou kanji". 246 --><!ATTLIST reading r_status CDATA #IMPLIED> 247<!-- 248 See under ja_on and ja_kun above. 249 --><!ELEMENT meaning (#PCDATA)> 250<!-- 251 The meaning associated with the kanji. 252 --><!ATTLIST meaning m_lang CDATA #IMPLIED> 253<!-- 254 The m_lang attribute defines the target language of the meaning. It 255 will be coded using the two-letter language code from the ISO 639 256 standard. When absent, the value "en" (i.e. English) is implied. [{}] 257 -->]> 258<kanjidic2> 259</kanjidic2> 260