Module: JDict::JMDictConstants::Elements

Defined in:
lib/ruby-jdict/constants.rb

Overview

TODO: change these strings to symbols ? XML elements of the JMDict file

Constant Summary collapse

ENTRY =

Entries consist of kanji elements, kana elements, general information and sense elements. Each entry must have at least one kana element and one sense element. Others are optional.

'entry'
SEQUENCE =
'ent_seq'
KANJI =

This element will contain a word or short phrase in Japanese which is written using at least one kanji. The valid characters are kanji, kana, related characters such as chouon and kurikaeshi, and in exceptional cases, letters from other alphabets.

'keb'
KANA =

This element content is restricted to kana and related characters such as chouon and kurikaeshi. Kana usage will be consistent between the keb and reb elements; e.g. if the keb contains katakana, so too will the reb.

'reb'
SENSE =

The sense element will record the translational equivalent of the Japanese word, plus other related information. Where there are several distinctly different meanings of the word, multiple sense elements will be employed.

'sense'
PART_OF_SPEECH =

Part-of-speech information about the entry/sense. Should use appropriate entity codes.

'pos'
GLOSS =

Within each sense will be one or more “glosses”, i.e. target-language words or phrases which are equivalents to the Japanese word. This element would normally be present, however it may be omitted in entries which are purely for a cross-reference.

'gloss'
CROSSREFERENCE =
'xref'