title: How to parse freedict files (*.dict and *.index)
body: <p>I was searching for free translation dictionaries. Freedict (<a href="http://freedict.org" rel="noreferrer">freedict.org</a>) provides the ones I need but I don't know, how to parse the *.index and *.dict files. I also don't really know, what to google, to find useful information about these formats.</p>
  
  <p>The *.index files look following:</p>
  
  <pre><code>00databasealphabet  QdGI    l
  00databasedictfmt1121   B   b
  00databaseinfo  c   5o
  00databaseshort 6E  u
  00databaseurl   6y  c
  00databaseutf8  A   B
  a   BHO M
  a bad risc  BHa u
  a bag of nerves BII 2
  [...]
  </code></pre>
  
  <p>and the *.dict files:</p>
  
  <pre><code>[Lot of info stuff]
  German-English FreeDict Dictionary ver. 0.3.4
  Pipi machen /piːpiːmaxən/
   to pee; to piss
  (Aktien) zusammenlegen /aktsiːəntsuːzamənleːgən/
   to merge (with)
  [...]
  </code></pre>
  
  <p>I would be glad to see some example projects (preferably in python, but java, c, c++ are also ok) to understand how to handle these files.</p>