View Single Post
Old 03-13-2011, 07:21 PM   #5
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
My script would be rather useless in your situation as majority of the script was generation of the inflections themselves (using various grammatical rules and lists of irregular forms - I assume that is what make-infl script from your link does too) and then modification the html's on the fly. Besides that, it was just a quick hack, so you would hardly be able to reuse the code.

In your situation, since you already have the inflections (infl.txt), all you need to do is to feed them to your html files. Your html files from point 3 already contain the following tag for each entry:
Code:
<idx:orth>word</idx:orth>
All you need is to modify it to this:
Code:
<idx:orth>word
  <idx:infl inflgrp="group1"> 
    <idx:iform name="infl1" value="wordform1" /> 
    <idx:iform name="infl2" value="wordform2" /> 
    ...
    <idx:iform name="infl3" value="wordformN" />
  </idx:infl>
</idx:orth>
(for each "word V/M: wordform1 | wordform2 | ... | wordformN" line from your infl.txt file)

Last edited by janvanmaar; 03-13-2011 at 07:32 PM. Reason: correction
janvanmaar is offline   Reply With Quote