fixed further bugs around compdic
cats file renamed and moved config files updated
This commit is contained in:
parent
b242df28e5
commit
abd28d16d6
@ -1,10 +1,10 @@
|
|||||||
include ../config.mak
|
include ../config.mak
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: compiledic.conf cor.conf dgc.conf dgp.conf gph.conf grp.conf gue.conf kor.conf lem.conf mar.conf ser.conf utt.conf
|
all: compdic.conf cor.conf dgc.conf dgp.conf gph.conf grp.conf gue.conf kor.conf lem.conf mar.conf ser.conf utt.conf
|
||||||
|
|
||||||
%.conf: %.conf.m4
|
%.conf: %.conf.m4
|
||||||
m4 --define=LANG_DIR=${LANG_DIR} --define=LIB_DIR=${LIB_DIR} $< > $@
|
m4 --define=LANG_DIR=${LANG_DIR} --define=LIB_DIR=${LIB_DIR} --define=LANGUAGE=${LANGUAGE} $< > $@
|
||||||
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
# All lines must looks like:
|
# All lines must looks like:
|
||||||
# parameter_name [=] value
|
# parameter_name [=] value
|
||||||
#
|
#
|
||||||
symbols = LANG_DIR/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym
|
symbols = LANG_DIR/LANGUAGE/LANGUAGE.sym
|
@ -10,6 +10,6 @@
|
|||||||
# All lines must looks like:
|
# All lines must looks like:
|
||||||
# parameter_name [=] value
|
# parameter_name [=] value
|
||||||
#
|
#
|
||||||
categories = LANG_DIR/cats.dgc
|
categories = LANG_DIR/LANGUAGE/lem.bin.cats
|
||||||
grammar = LANG_DIR/gram.dgc
|
grammar = LANG_DIR/gram.dgc
|
||||||
outputfile = LANG_DIR/gram.dgp
|
outputfile = LANG_DIR/gram.dgp
|
||||||
|
@ -10,5 +10,6 @@
|
|||||||
# All lines must looks like:
|
# All lines must looks like:
|
||||||
# parameter_name [=] value
|
# parameter_name [=] value
|
||||||
#
|
#
|
||||||
dictionary-home = LANG_DIR
|
dictionary = LANG_DIR/LANGUAGE/lem.bin
|
||||||
|
#dictionary-home = LANG_DIR
|
||||||
process = W
|
process = W
|
||||||
|
@ -11,4 +11,4 @@
|
|||||||
# parameter_name [=] value
|
# parameter_name [=] value
|
||||||
#
|
#
|
||||||
# user locale (dictionary)
|
# user locale (dictionary)
|
||||||
language = pl_PL.ISO-8859-2
|
language = LANGUAGE
|
||||||
|
23
configure
vendored
23
configure
vendored
@ -55,15 +55,17 @@ show_help(){
|
|||||||
echo " --langdir=LANGDIR install lang in LANGDIR [$langdir]"
|
echo " --langdir=LANGDIR install lang in LANGDIR [$langdir]"
|
||||||
echo " --libdir=LIBDIR install libraries in LIBDIR [$libdir]"
|
echo " --libdir=LIBDIR install libraries in LIBDIR [$libdir]"
|
||||||
echo
|
echo
|
||||||
echo " --enable-static build static versions [no]"
|
echo " --language=LANGUAGE select language"
|
||||||
|
echo
|
||||||
|
echo " --enable-static build static versions [no]"
|
||||||
echo " --enable-doc build documentation [yes]"
|
echo " --enable-doc build documentation [yes]"
|
||||||
echo " --enable-utf8 build UTF-8 versions of applications [no]"
|
echo " --enable-utf8 build UTF-8 versions of applications [no]"
|
||||||
echo
|
echo
|
||||||
echo " --cc=CC use C compiler CC [$cc_default]"
|
echo " --cc=CC use C compiler CC [$cc_default]"
|
||||||
echo " --cxx=CXX use C++ compiler CXX [$cxx_default]"
|
echo " --cxx=CXX use C++ compiler CXX [$cxx_default]"
|
||||||
echo " --gengetopt=GGO use gengetopt GGO [$gengetopt_default]"
|
echo " --gengetopt=GGO use gengetopt GGO [$gengetopt_default]"
|
||||||
echo " --flex=FLEX use flex FLEX [$flex_default]"
|
echo " --flex=FLEX use flex FLEX [$flex_default]"
|
||||||
echo " --makeinfo=MAKEINFO use makeinfo MAKEINFO [$makeinfo_default]"
|
echo " --makeinfo=MAKEINFO use makeinfo MAKEINFO [$makeinfo_default]"
|
||||||
echo " --texi2dvi=TEXI2DVI use texi2dvi TEXI2DVI [$texi2dvi_default]"
|
echo " --texi2dvi=TEXI2DVI use texi2dvi TEXI2DVI [$texi2dvi_default]"
|
||||||
echo " --texi2pdf=TEXI2PDF use texi2pdf TEXI2PDF [$texi2pdf_default]"
|
echo " --texi2pdf=TEXI2PDF use texi2pdf TEXI2PDF [$texi2pdf_default]"
|
||||||
echo " --dvips=DVIPS use dvips DVIPS [$dvips_default]"
|
echo " --dvips=DVIPS use dvips DVIPS [$dvips_default]"
|
||||||
@ -87,6 +89,8 @@ docdir="${PREFIX}/share/doc/utt"
|
|||||||
langdir="${PREFIX}/share/utt"
|
langdir="${PREFIX}/share/utt"
|
||||||
libdir="${PREFIX}/lib/utt"
|
libdir="${PREFIX}/lib/utt"
|
||||||
|
|
||||||
|
language="pl_PL.ISO-8859-2"
|
||||||
|
|
||||||
cc_default="gcc"
|
cc_default="gcc"
|
||||||
cxx_default="g++"
|
cxx_default="g++"
|
||||||
gengetopt_default="gengetopt"
|
gengetopt_default="gengetopt"
|
||||||
@ -147,6 +151,9 @@ for opt do
|
|||||||
--libdir=*)
|
--libdir=*)
|
||||||
libdir="$optval"
|
libdir="$optval"
|
||||||
;;
|
;;
|
||||||
|
--language=*)
|
||||||
|
language="$optval"
|
||||||
|
;;
|
||||||
--cc=*)
|
--cc=*)
|
||||||
cc="$optval"
|
cc="$optval"
|
||||||
;;
|
;;
|
||||||
@ -156,9 +163,9 @@ for opt do
|
|||||||
--gengetopt=*)
|
--gengetopt=*)
|
||||||
gengetopt="$optval"
|
gengetopt="$optval"
|
||||||
;;
|
;;
|
||||||
--flex=*)
|
--flex=*)
|
||||||
flex="$optval"
|
flex="$optval"
|
||||||
;;
|
;;
|
||||||
--makeinfo=*)
|
--makeinfo=*)
|
||||||
makeinfo="$optval"
|
makeinfo="$optval"
|
||||||
;;
|
;;
|
||||||
@ -235,6 +242,7 @@ echo "SHARE_DIR=$sharedir" >> config.mak
|
|||||||
echo "DOC_DIR=$docdir" >> config.mak
|
echo "DOC_DIR=$docdir" >> config.mak
|
||||||
echo "LANG_DIR=$langdir" >> config.mak
|
echo "LANG_DIR=$langdir" >> config.mak
|
||||||
echo "LIB_DIR=$libdir" >> config.mak
|
echo "LIB_DIR=$libdir" >> config.mak
|
||||||
|
echo "LANGUAGE=$language" >> config.mak
|
||||||
echo "CC=$cc" >> config.mak
|
echo "CC=$cc" >> config.mak
|
||||||
echo "CXX=$cxx" >> config.mak
|
echo "CXX=$cxx" >> config.mak
|
||||||
echo "GENGETOPT=$gengetopt" >> config.mak
|
echo "GENGETOPT=$gengetopt" >> config.mak
|
||||||
@ -275,6 +283,7 @@ echo "sharedir: $sharedir"
|
|||||||
echo "docdir: $docdir"
|
echo "docdir: $docdir"
|
||||||
echo "langdir: $langdir"
|
echo "langdir: $langdir"
|
||||||
echo "libdir: $libdir"
|
echo "libdir: $libdir"
|
||||||
|
echo "language: $language"
|
||||||
enabled doc && {
|
enabled doc && {
|
||||||
echo "makeinfo: $makeinfo"
|
echo "makeinfo: $makeinfo"
|
||||||
echo "texi2dvi: $texi2dvi"
|
echo "texi2dvi: $texi2dvi"
|
||||||
|
@ -8,9 +8,9 @@ ifdef LANG_DIR
|
|||||||
install -m 0644 pl_PL.ISO-8859-2/cor.bin $(LANG_DIR)/pl_PL.ISO-8859-2
|
install -m 0644 pl_PL.ISO-8859-2/cor.bin $(LANG_DIR)/pl_PL.ISO-8859-2
|
||||||
install -m 0644 pl_PL.ISO-8859-2/gue.bin $(LANG_DIR)/pl_PL.ISO-8859-2
|
install -m 0644 pl_PL.ISO-8859-2/gue.bin $(LANG_DIR)/pl_PL.ISO-8859-2
|
||||||
install -m 0644 pl_PL.ISO-8859-2/lem.bin $(LANG_DIR)/pl_PL.ISO-8859-2
|
install -m 0644 pl_PL.ISO-8859-2/lem.bin $(LANG_DIR)/pl_PL.ISO-8859-2
|
||||||
|
install -m 0644 pl_PL.ISO-8859-2/lem.bin.cats $(LANG_DIR)/pl_PL.ISO-8859-2
|
||||||
install -m 0644 pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym $(LANG_DIR)/pl_PL.ISO-8859-2
|
install -m 0644 pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym $(LANG_DIR)/pl_PL.ISO-8859-2
|
||||||
install -m 0644 pl_PL.UTF-8/lem.bin $(LANG_DIR)/pl_PL.UTF-8
|
install -m 0644 pl_PL.UTF-8/lem.bin $(LANG_DIR)/pl_PL.UTF-8
|
||||||
install -m 0644 cats.dgc $(LANG_DIR)
|
|
||||||
install -m 0644 gram.dgc $(LANG_DIR)
|
install -m 0644 gram.dgc $(LANG_DIR)
|
||||||
install -m 0644 weights.kor $(LANG_DIR)
|
install -m 0644 weights.kor $(LANG_DIR)
|
||||||
endif
|
endif
|
||||||
@ -20,9 +20,9 @@ uninstall:
|
|||||||
ifdef LANG_DIR
|
ifdef LANG_DIR
|
||||||
rm $(LANG_DIR)/weights.kor
|
rm $(LANG_DIR)/weights.kor
|
||||||
rm $(LANG_DIR)/gram.dgc
|
rm $(LANG_DIR)/gram.dgc
|
||||||
rm $(LANG_DIR)/cats.dgc
|
|
||||||
rm $(LANG_DIR)/pl_PL.UTF-8/lem.bin
|
rm $(LANG_DIR)/pl_PL.UTF-8/lem.bin
|
||||||
rm $(LANG_DIR)/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym
|
rm $(LANG_DIR)/pl_PL.ISO-8859-2/pl_PL.ISO-8859-2.sym
|
||||||
|
rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.bin.cats
|
||||||
rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.bin
|
rm $(LANG_DIR)/pl_PL.ISO-8859-2/lem.bin
|
||||||
rm $(LANG_DIR)/pl_PL.ISO-8859-2/gue.bin
|
rm $(LANG_DIR)/pl_PL.ISO-8859-2/gue.bin
|
||||||
rm $(LANG_DIR)/pl_PL.ISO-8859-2/cor.bin
|
rm $(LANG_DIR)/pl_PL.ISO-8859-2/cor.bin
|
||||||
|
Binary file not shown.
1015
share/pl_PL.ISO-8859-2/lem.bin.cats
Normal file
1015
share/pl_PL.ISO-8859-2/lem.bin.cats
Normal file
File diff suppressed because it is too large
Load Diff
@ -171,6 +171,11 @@ do
|
|||||||
fstminimize $temp3 $automaton
|
fstminimize $temp3 $automaton
|
||||||
done
|
done
|
||||||
|
|
||||||
cat $automaton | fsttopsort | fstprint --acceptor --isymbols=$alphabet > aaaa
|
echo generating binary automaton file ...
|
||||||
cat aaaa | fsm2aut | aut2fsa > $2
|
|
||||||
|
cat $automaton | fsttopsort | fstprint --acceptor --isymbols=$alphabet | fsm2aut | aut2fsa > $2
|
||||||
rm -r $tempdir
|
rm -r $tempdir
|
||||||
|
|
||||||
|
echo generating cats file ...
|
||||||
|
|
||||||
|
cat $1 | cut -d ',' -f 2 | sort -u $2.cats
|
||||||
|
Loading…
Reference in New Issue
Block a user