Skip to content

Commit

Permalink
fixed "one", "five"; added >100 & >1000 numbers; created transliterat…
Browse files Browse the repository at this point in the history
…ions; updated Makefile
  • Loading branch information
iphilatov committed Jan 28, 2022
1 parent b206c3b commit 2a91ac7
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 6 deletions.
22 changes: 21 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
.DEFAULT_GOAL := btlx.num.analyzer.hfst

# generate analyzer and generator
btlx.num.analyzer.hfst: btlx.num.generator.hfst
hfst-invert btlx.num.generator.hfst -o btlx.num.analyzer.hfst

btlx.num.generator.hfst: btlx.num.lexd
lexd btlx.num.lexd | hfst-txt2fst -o btlx.num.generator.hfst

# generate transliteraters
cy2la.transliterater.hfst: la2cy.transliterater.hfst
hfst-invert la2cy.transliterater.hfst -o cy2la.transliterater.hfst
la2cy.transliterater.hfst: correspondence.hfst
hfst-repeat -f 1 correspondence.hfst -o la2cy.transliterater.hfst
correspondence.hfst: correspondence
hfst-strings2fst -j correspondence -o correspondence.hfst

# generate analyzer and generator for transcription
btlx.num.analyzer.tr.hfst: btlx.num.generator.tr.hfst
hfst-invert $< -o $@
btlx.num.generator.tr.hfst: btlx.num.generator.hfst cy2la.transliterater.hfst
hfst-compose $^ -o $@

# remove all hfst files
clean:
rm *.hfst
13 changes: 8 additions & 5 deletions btlx.num.lexd
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
PATTERNS
(TeenRoot | (NumRoot TyInfl)) TeenInfl < One
(TeenRoot | (NumRoot TyInfl)) TeenInfl < One ClM
TeenRoot (TeenInfl NumRoot)? CardInfl
NumRoot (TyInfl > (TeenInfl NumRoot1))? CardInfl
GrandRoot CardInfl
NumRoot? GrandRoot CardInfl # требуется уточнение по формам >2000

LEXICON One
<one>:цеб # один
<one>:це # один

LEXICON ClM
<inanimate>:б # показатель класса

LEXICON NumRoot
<two>:кӀе # два
<three>:гьабу # три
<four>:бугъу # четыре
<five>:ищту # пять
<six>:интлӀи # шесть
<five>:ишту # пять
<six>:интлӀи # шесть
<seven>:гьакьу # семь
<eight>:бикьи # восемь
<nine>:гьачӀа # девять
Expand Down
47 changes: 47 additions & 0 deletions correspondence
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
a:а
b:б
w:в
g:г
ʁ:гъ
h:гь
ʕ:гI
d:д
e:е
ɵ:ё
ʒ:ж
z:З
i:и
j:й
k:к
q’:къ
ƛ':кь
k':кӀ
l:л
ɬ:лъ
ƛ:лӀ
m:м
n:н
o:о
p:п
r:р
s:с
t:т
t':тӀ
u:у
f:ф
χ:х
qχ:хъ
х:хь
ћ:хӀ
c:ц
c':цӀ
č:ч
č':чӀ
š:ш
šː:щ
ʔ:ъ
ɨ:ы
ʼ:ь
ɛ:э
ju:ю
ja:я

0 comments on commit 2a91ac7

Please sign in to comment.