Hi Kirk, Kirk Hilliard a écrit :
> OK, here is some stuff that should get it working. For production, we > will have to decide if you want to regenerate the indices fully, using > the upstream files and process (which upstream might want to adopt > themselves) or to make a more automated version of the process I show > below. > > The idea is to append, to the end of the database file, a new > 00-database-short entry for each index file (each language). This > way, the index for previous entries are not affected -- you need only > change the one 00-database-short index entry in each index file. Thanks for all your explanations. It was now clearer, and I could give a try to it, but still doesn't work. My work is available at http://thomas.enix.org/pub/revo/, or in a Subversion repository at https://ssl.bulix.org/svn/thomas/debian/dict-revo/trunk/. What I do in the debian/rules is the following: 1) Copy the database to the correct destination 2) Uncompress it using dictunzip 3) For each index file, do a) Copy the index file to the correct location b) Find the description of the language corresponding to the current index file. This is done by the wrongly-named fixup-database.sh script, which looks inside the dictd.conf provided by the upstream tarball of dict-revo. This script simply returns a string like "Reta Vortaro, germana indekso", that's it. c) Create a new file new-entries.tmp with the following contents: 00-database-short THE-STRING-RETURNED-BY-THE-fixup-database.sh-SCRIPT d) Call an adapted version of index-supplemental (called index-simple), which only allows to add *one* entry to the database, and returns only *one* sed expression. e) Cat the new-entries.tmp at the end of the database file f) Apply the sed regular expression on the index file. 4) Recompress the database using dictzip. This all works well: indexes are updated, database file is updated, etc. Indexes seems to be good (at least they match the one generated by a run of your index-supplemental script). However: $ dict -D Databases available: fd-eng-fra English-French Freedict dictionary revo.cs revo.cs revo.de revo.de revo.en revo.en revo.eo revo.eo revo.es revo.es revo.fr revo.fr revo.la revo.la revo.ru revo.ru revo.tr revo.tr Conclusion: it still doesn't find the complete names for each index ;-( Do you have an idea ? Thanks for all your help, Sincerly, Thomas -- PETAZZONI Thomas - [EMAIL PROTECTED] http://thomas.enix.org - Jabber: [EMAIL PROTECTED] KOS: http://kos.enix.org/ - SOS: http://sos.enix.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7
signature.asc
Description: OpenPGP digital signature