summaryrefslogtreecommitdiff
path: root/doc/dict-format.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/dict-format.txt')
-rw-r--r--doc/dict-format.txt147
1 files changed, 147 insertions, 0 deletions
diff --git a/doc/dict-format.txt b/doc/dict-format.txt
new file mode 100644
index 0000000..946622f
--- /dev/null
+++ b/doc/dict-format.txt
@@ -0,0 +1,147 @@
+Dictionary file example:
+(*.fmd)
+===============================================================
+
+Version 1.4
+
+* Added pack attribute "exact-ans":
+===============================================================
+ <pack exact-ans="true">
+ <qst>Russian</qst>
+ <ans>Finnish</ans>
+ <ans>Example</ans>
+ </pack>
+===============================================================
+
+
+
+Version 1.0
+
+* The default field ids for cards are taken from fields::field tags.
+* The question and answer field indices are defined as parameters of fileds::field tags.
+
+===============================================================
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE freshmemory-dict>
+<dict version="1.0">
+ <fields>
+ <field > Finnish </field>
+ <field > Russian </field>
+ <field style="Example"> Example </field>
+ <field > English </field>
+ <field style="Transcription"> Transcription </field>
+ </fields>
+ <packs>
+ <pack>
+ <qst>Finnish</qst>
+ <ans>Russian</ans>
+ <ans>Example</ans>
+ </pack>
+ <pack>
+ <qst>Russian</qst>
+ <ans>Finnish</ans>
+ <ans>Example</ans>
+ </pack>
+ </packs>
+ <entries>
+ <e tags="first, vaikeat sanat">
+ <f> perehtyä </f>
+ <f> ознакомиться </f>
+ </e>
+ <e tags="first">
+ <f> uhkaus </f>
+ <f> угроза </f>
+ <f> suuri uhkaus </f>
+ </e>
+ <e>
+ <f> усваивать </f>
+ </e>
+ <e>
+ <f> harrastaa </f>
+ <f> заниматься </f>
+ </e>
+ <e tags="vaikeat sanat">
+ <f> alkuperäinen </f>
+ <f> начальный, первоначальный </f>
+ <f> luen [alkuperäisen] kirjan </f>
+ </e>
+ <e>
+ <f> lunastaa </field>
+ <f> выкупать </field>
+ </e>
+ </entries>
+</dict>
+
+
+Version 0.4
+===============================================================
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE freshmemory-dict>
+<dict version="0.4" id="{550e8400-e29b-41d4-a716-446655440000}">
+ <fields>
+ <field id="{550e8400-e29b-41d4-a716-446655440001}" question="yes"> Finnish </field>
+ <field id="{550e8400-e29b-41d4-a716-446655440002}" answer="0"> Russian </field>
+ <field id="{550e8400-e29b-41d4-a716-446655440003}" answer="1" style="example"> Example </field>
+ <field id="{550e8400-e29b-41d4-a716-446655440004}"> English </field>
+ </fields>
+ <cards>
+ <c id="{770e8400-e29b-41d4-a716-446655440001}">
+ <f> perehtyä </f>
+ <f> ознакомиться </f>
+ </c>
+ <c id="{770e8400-e29b-41d4-a716-446655440002}">
+ <f> uhkaus </f>
+ <f> угроза </f>
+ <f id="{550e8400-e29b-41d4-a716-446655440003}"> suuri uhkaus </f>
+ </c>
+ <c id="{770e8400-e29b-41d4-a716-446655440003}">
+ <f> усваивать </f>
+ </c>
+ <c id="{770e8400-e29b-41d4-a716-446655440004}" comment="yes">
+ <f> harrastaa </f>
+ <f> заниматься </f>
+ </c>
+ <c id="{770e8400-e29b-41d4-a716-446655440005}">
+ <f> alkuperäinen </f>
+ <f> начальный, первоначальный </f>
+ <f> luen [alkuperäisen] kirjan </f>
+ </c>
+ <c id="{340e8422-e29b-41d4-a716-446655440123}" orig-dic="{d4fe8439-e20b-41d4-a716-2816655440173}">
+ <f orig-id="{220e8422-e29b-41d4-a716-446655440001}> lunastaa </field>
+ <f orig-id="{220e8422-e29b-41d4-a716-446655440002}"> выкупать </field>
+ </c>
+ </cards>
+</dict>
+===============================================================
+
+Version 0.3
+===============================================================
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE freshmemory-dict>
+<dict id="dic-suomi-20071108@20071112030550" version="0.3">
+ <card>
+ <qst> perehtyä </qst>
+ <ans> ознакомиться </ans>
+ </card>
+ <card>
+ <qst> uhkaus </qst>
+ <ans> угроза </ans>
+ <xmp> suuri uhkaus </xmp>
+ </card>
+ <card>
+ <ans> усваивать </ans>
+ </card>
+ <card>
+ <qst> #harrastaa </qst>
+ <ans> заниматься </ans>
+ </card>
+ <card>
+ <qst> alkuperäinen </qst>
+ <ans> начальный, первоначальный </ans>
+ <xmp> luen %alkuperäisen kirjan </xmp>
+ </card>
+ <card>
+ <qst> lunastaa </qst>
+ <ans> выкупать </ans>
+ </card>
+</dict>