intsubset2.xml 11 KB

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