Specification of XDXF Layer 1, Draft 006 The purpose of the layer 1 is to specify a format into which can be converted all the dictionaries we currently have. XDXF Layer 1 specifies the base format for all XDXF dictionaries. Later, more layers will be defined to extend the functionality, but all subsequent layers will comply with all the previous layers specifications. That is all rules of a certain layer are valid for that layer and all the layers above it. Each dictionary is located in its own folder, which has the same name as the dictionary. So, if the dictionary name is "Webster1913" then the folder name and the base name of dictionary files will also be "Webster1913". Each dictionary shall have an icon in PNG format with size of 16x16 pixels. For example: ./xdxf_dictionaries/Webster1913/Webster1913.xdxf ./xdxf_dictionaries/Webster1913/Webster1913.png Note that the names are case sensitive and the extensions are always lower case. All XDXF dictionary text files (those with .xdxf extension) are in XML format with UTF-8 encoding. ------------------------------------------------------------------------------------ XDXF Tags: ------------------------------------------------------------------------------------ The root element. Information about the dictionary. ISO 639 three letter code of the language of the key-phrases. ISO 639 three letter code of the language of the meanings. Type can be: translation, explanatory, encyclopedia, spelling, audio. Description of the dictionary in free words. It is recommended to include the following: Copyright, License, From where this file can be downloaded, From where can be downloaded the unformatted file, i.e. the original dictionary file before the conversion into XDXF format, From where the original unformatted dictionary file was downloaded, Link to the script which was used to convert the original unformatted dictionary file into XDXF format. List of abbreviations used in the dictionary. Definition of an abbreviation. The abbreviated text. The full text.
This tag groups together all the stuff related to one key-phrase.
The key-phrase. In general, there would be one tag per , but for some DSL dictionaries with nested structure it is necessary to have several keys per article.
This tag marks definition or a group of definitions which fall into a certain category. For English language those categories are parts of speech: noun, verb, adverb, etc.
The optional attribute "lang" specifies the language of translation in ISO 639 three letter code if it is different from the tag. This is useful only for special dictionaries that provide translation into several languages at once.
Tag "pos" specifies the Part Of Speech like: noun, verb, adverb, etc.
Marks the text of an example.
Marks reference to another key-phrase in the same dictionary.
Marks reference to a resource of the dictionary which is located in the same folder.
Optional attributes are necessary for audio and video files, when the reference points to a certain part of a large file.
Marks an abbreviation that is listed in section.
Marks transcription
... Marks the text with a given color.
Editorial comment. ------------------------------------------------------------------------------------ Non-XDXF Tags: ------------------------------------------------------------------------------------ All tags from XHTML Strict are allowed, but for visual marking only. The programs shell not process those tags but for formatting the text appearance. ------------------------------------------------------------------------------------ Example: ------------------------------------------------------------------------------------ meaning ENG ENG Webster's Unabridged Dictionary published 1913 by the C. G. Merriam Co... n. noun v. verb Av.Ave. Avenue
record n. [re'kord] Anything written down and preserved. v. [reko'rd] To write down for future use.
home [ho:um] n. One's own dwelling place; the house in which one lives. One's native land; the place or country in which one dwells. The abiding place of the affections. For without hearts there is no home. See also: home-made
indices index Plural form of word "index"
disc disk n. disc = disk A flat, circular plate; as, a disk of metal or paper.
------------------------------------------------------------------------------------ Each XDXF dictionary is stored in a ZIP file at http://xdxf.sourceforge.net/TBD. This will allow programs to download and install dictionaries on the fly.