Debian Codegraph @

README

raw
1 RUSSIAN PRONUNCIATION DICTIONARY
2
3 If you prefer reading this info in Russian, you will find it in the
4 separate file README.ru.
5
6 Russian pronunciation dictionary RuLex is aimed primarily for use
7 together with the Russian TTS engine Ru_tts. When it is installed you
8 can instruct Ru_tts to use the dictionary by the command line switch
9 "-s /usr/local/share/freespeech/rulex.db".
10
11
12 The lexical database consists of two dictionaries and four sets of
13 rules. Subdirectory data contains source files of all these datasets
14 along with the test dictionary in source format. Dictionary source
15 format is as follows:
16
17 The dictionary source must be represented by a text file in koi8-r.
18 Each entry occupies exactly one line consisting of two fields
19 separated by space. The first field contains word itself and is used
20 as a key. The second field tells how this word should be
21 uttered. Stresses are denoted by the "+" sign following the stressed
22 letter. In such a manner you can use the "=" sign as well to denote
23 so-called weak stresses where it is appropriate, for instance, in some
24 complex words. In the key field only lowercase Russian letters are
25 allowed. In the utterance field additional characters "+", "=" and "-"
26 may be used as well. The "-" sign can serve as a separator in some
27 complex words.
28
29 For Ru_tts synthesizer could use the lexical database it must be
30 compiled. Since this project uses GNU Autoconf tools, it mustbe
31 configured at first by commands:
32
33 autoreconf -ifs
34 ./configure
35
36 Then the dictionary creation is as simple as
37
38 make db
39
40 The file lexicon containing the lexical database will be created in
41 the data subdirectory as a result of these manipulations.
42
43 To install lexical database issue the command:
44
45 make install-db
46
47 Of course, this command should be performed with the superuser
48 privileges.
49
50 To recompile the lexholder utility issue the command:
51
52 make lexholder
53
54 To compile and install all stuff issue command:
55
56 make install
57
58 Of course, this command requires superuser privileges.
59
60 Along with the lexical database itself the package includes some
61 supporting tools, such as utility lexholder-ru, which allows updating
62 and extending the lexical database as well as extracting the database
63 content in textual form. This utility can be used either from command
64 line or from a shell-script. For information about it's using try
65
66 lexholder-ru -h
67
68 Or consult README.ru for the detailed description in Russian. Anyway, I
69 think, it would unlikely be useful for those who do not speak Russian.
70
71 Note 1. If you wish Ru_tts to make use of the lexical database created
72 by the lexholder-ru utility, they both must use the same database
73 support library. The version also makes sense. Usually it is expected
74 that the new version library routines can read the files created by
75 the ones of older versions, but it is not necessarily true. Detailed
76 information about used libraries for dynamically linked binaries can
77 be obtained by the "ldd" command.
78
79 Note 2. The lexical data storage format was changed in RuLex version
80 2.0. The new format can not be used by Ru_tts older than 2.0.
81
82 Note 3. The lexholder-ru utility does not free disk space when
83 database records are modified or deleted. Moreover, the database
84 size can grow dramatically during multiple updates. More compact
85 representation in this case can be achieved by the following steps:
86
87 1) Clean the database.
88
89 2) Extract all the datasets.
90
91 3) Recreate the database.
92
93
94 A little history
95
96 This dictionary was initially created as an attempt to provide some
97 stressing capability to the Ru_tts speech engine. My search through
98 the internet for some Russian stress dictionary had no practical
99 result. But then I've remembered that one of freely distributed
100 versions of Mueller's English-Russian dictionary actually contains the
101 desired information. I've extracted this stuff and got stress
102 dictionary about 60000 entries. It was not so much, but, anyway, I
103 already could see how the idea works. It became clear soon that there
104 are many special cases: some words should not be stressed at all and
105 the dictionary should contain not only stressing information. So, now
106 it is positioned as a pronunciation dictionary (not only stressing)
107 and it had grown dramatically since that time.
108
109 At some point I decided to extend the plain dictionary by some rules
110 allowing to guess pronunciation for some implicit word forms as well
111 as for the words where it can be done by formal criterions. As a
112 result, overall database size was greatly reduced, but the database
113 itself became more informative. And the old pronunciation dictionary
114 now serves for the database testing.
115
116
117 Now I'd like to thank all who helped me in this work:
118
119 The authors and publishers of the electronic version of Mueller's
120 dictionary with stress information, from which I obtained the initial
121 portion of stressed words;
122
123 Ivanov Guennady and my sister Tatyana, who had accomplished a lot of
124 hard work fixing and extending the dictionary at the beginning time;
125
126 Serge Fleytin, who provided me a bunch of new entries;
127
128 Dmitry Paduchih, who not only provided me new entries for the
129 dictionary, but had also developed the Emacs extension helping to
130 generate ones. This extension is included into the package and
131 Dmitry's comments about it are at the end of this file (in the Russian
132 section).
133
134 Igor B. Poretsky <[email protected]>