Aldonis rus_eng_full.
authorviric@llimona
Sun, 02 Sep 2007 00:02:48 +0200
changeset 23 97feccfc5215
parent 22 0b923f95df16
child 24 026a2ba0ce16
Aldonis rus_eng_full.
make-signifoj.sh
prepare_meanings.c
--- a/make-signifoj.sh	Sat Sep 01 23:52:38 2007 +0200
+++ b/make-signifoj.sh	Sun Sep 02 00:02:48 2007 +0200
@@ -1,3 +1,8 @@
 #!/bin/sh
 
+cat bokarjovrueo.index  slovnyk_ru-en.index zaliznjak.index \
+    rus_eng_full.index | cut -f 1 | sort | uniq > words.txt
+
+./prepare_meanings > signifoj.txt
+
 dictfmt -s "Diversaj vortaroj" -j --locale ca_ES.UTF-8 --without-headword signifoj < signifoj.txt
--- a/prepare_meanings.c	Sat Sep 01 23:52:38 2007 +0200
+++ b/prepare_meanings.c	Sun Sep 02 00:02:48 2007 +0200
@@ -5,7 +5,8 @@
 #define NELEM(x) (sizeof(x)/sizeof(x[0]))
 
 
-const char *dictionarynames[] = { "bokarjovrueo", "slovnyk_ru-en" };
+const char *dictionarynames[] = { "bokarjovrueo", "slovnyk_ru-en",
+    "rus_eng_full" };
 static struct Dict dictionaries[5/*MAX DICT*/];
 static int ndictionaries;
 
@@ -13,14 +14,19 @@
 {
     ndictionaries = 0;
 
-    init_dictionary(&dictionaries[0], "bokarjovrueo");
+    init_dictionary(&dictionaries[0], dictionarynames[0]);
     dictionaries[0].trim_last_newlines = 1;
     ndictionaries++;
 
-    init_dictionary(&dictionaries[1], "slovnyk_ru-en");
+    init_dictionary(&dictionaries[1], dictionarynames[1]);
     dictionaries[1].trim_first_line = 1;
     dictionaries[1].trim_last_newlines = 1;
     ndictionaries++;
+
+    init_dictionary(&dictionaries[2], dictionarynames[2]);
+    dictionaries[2].trim_first_line = 1;
+    dictionaries[2].trim_last_newlines = 1;
+    ndictionaries++;
 }
 
 static void close_dictionaries()