Skip to content

dumbledore/AlbiteDictionaryBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

java -jar AlbDict.jar dictionary.xml *[wordlist.txt]*
  • dictionary.xml is the dictionary itself
  • wordlist.txt is used if you'd like to include only some words

Note that both files must be in UTF-8.

One can test a builded dictionary for errors, too:

AlbDict.jar dictionary.ald

A built dictionary is distinguished by the app by its extension: .ald

The *.xml file, containing the word definitons

<dictionary title="Test" lang="en">
    <entry>
        <word>Wireworm</word>
        <definition>(n.) A galleyworm.</definition>
    </entry>
    <entry>
        <word>Wiriness</word>
        <definition>(n.) The quality of being wiry.</definition>
    </entry>
    <entry>
        <word>Wiry</word>
        <definition>(a.) Made of wire; like wire; drawn out like wire.</definition>
    </entry>
    <entry>
        <word>Wiry</word>
        <definition>(a.) Capable of endurance; tough; sinewy; as, a wiry frame or constitution.</definition>
    </entry>
    <entry>
        <word>Wis</word>
        <definition>(adv.) Certainly; really; indeed.</definition>
    </entry>
    <entry>
        <word>Wis</word>
        <definition>(v. t.) To think; to suppose; to imagine; – used chiefly in the first person sing. present tense, I wis.  See the Note under Ywis.</definition>
    </entry>
    <entry>
        <word>Wisard</word>
        <definition>(n.) See Wizard.</definition>
    </entry>
</dictionary>

Multiple entries of the same word are automatically mixed into one.

The *.txt wordlist file

It's just a plain text file, consisting of a list of words put on separate lines. If a word definition from the xml file is not contained in this list, it won't be added to the dictionary. So, it works like a filter.

The Binary Dictionary File (*.ald)

Main overview

Meaning Type Bytes
Magic number Integer 4
Dictionary title utf-8 varies
Dictionary language utf-8 varies
Position of word index Integer 4
Number of entries Integer 4
Entries' index blocks Block of utf-8 values and integers varies
Entries' defintions blocks Block of utf-8 values varies

Index block

Meaning Type Bytes
Word utf-8 varies
Definition position Integer 4

About

The official tool for building dictionaries for the AlbiteREADER.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages