XDXF

From MobileRead
Jump to: navigation, search

This page covers the format called Dictionary exchange format. It is designed to consolidate all of the various free formats so that dictionaries can be shared. However, this does not address the dictionaries that have DRM.

Contents

Advertisement

[edit] The standard

Available at: http://xdxf.revdanica.com/drafts/visual/latest/

[edit] File organization

Each dictionary is located in its own folder, the name of the folder is used as an ID, The folder name must contain only Latin characters and must not contain spaces or other special characters. So, if the dictionary name is "Webster's Unabridged Dictionary published in 1913" then the folder name should be something like "Webster1913". The dictionary file itself is always "dict.xdxf". It is recommended for each dictionary to have a set of icons for toolbars and a large icon for the front page. The sizes should be: 16x16, 32x32, 512x512. And the filenames would be icon16.png icon32.png and icon512.png respectively. Note that all file names are case sensitive.

All XDXF dictionary text files (those with .xdxf extension) are in XML format with UTF-8 encoding.

[edit] Example

<xdxf lang_from="ENG" lang_to="ENG" format="visual">
<full_name>Webster's Unabridged Dictionary</full_name>
<description>Webster's Unabridged Dictionary published 1913 by the... </description>  

<abbreviations>
 <abr_def><k>n.</k> <v>noun</v></abr_def>
 <abr_def><k>v.</k> <v>verb</v></abr_def>
 <abr_def><k>Av.</k><k>Ave.</k><v>Avenue</v> </abr_def>
</abbreviations>

<ar><k><opt>The </opt>United States<opt> of America</opt></k></ar>

<ar><k>record</k>
<pos><abr>n.</abr></pos>
[<tr>re'kord</tr>] Anything written down and preserved.
<pos><abr>v.</abr></pos>
[<tr>reko'rd</tr>]
To write down for future use.</ar>

<ar><k>home</k>
[<tr>ho:um</tr>]
<pos><abr>n.</abr></pos>
<rref start="16384" size="512"> sounds_of_words.ogg </rref>
1) One's own dwelling place; the house in which one lives.
2) One's native land; the place or country in which one dwells.
3) The abiding place of the affections. <ex>For without hearts there is no home.</ex>
4) <dtrn>дом</dtrn> at home -  make yourself at home -
<ex>XDXF Home page: <iref> http://xdxf.sourceforge.net </iref></ex>
See also: <kref> home-made </kref></ar>

<ar f="l"><k>home</k><tr>ho:um</tr><pos><abr>n.</abr></pos><rref start="16384" size="512">
sounds_of_words.ogg </rref><def>One's own dwelling place; the house in which one lives.</def>
<def>One's native land; the place or country in which one dwells.</def><def>The abiding place
of the affections. <ex>For without hearts there is no home.</ex></def><def><dtrn></dtrn>  
at home - make yourself at home - </def> 
<ex>XDXF Home page:
<iref> http://xdxf.sourceforge.net </iref></ex>See also: <kref> home-made </kref></ar>

<ar><k>indices</k>
Plural form of word <kref>index</kref></ar>

<ar><k>disc</k>
<k>disk</k>
<pos><abr>n.</abr></pos>
A flat, circular plate; as, a disk of metal or paper.</ar>

<ar><k>CO<nu></nu>2<nu></nu></k>
Carbon dioxide (CO2) - a heavy odorless gas formed during respiration.</ar>

</xdxf>

[edit] Tags

Note that there may be more than one <k> per <abr_def> to specify synonyms like "Ave." and "Av.", but <v> tag can be only one.

[edit] Non XDXF tags

For visually formatted articles in addition to XDXF tags, the following XHTML tags are allowed:

 <sup>, <sub>, <i>, <b>, <tt>, <big>, <small>,  <blockquote>

Their syntax and semantics is the same an in XHTML.

[edit] For more information

Personal tools
Namespaces
Variants
Actions
Navigation
MobileRead Networks
Toolbox