intsubset2.xml 11 KB

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