## Process this file with automake to produce Makefile.in ## Copyright (C) 2011 Samediggi ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## You should have received a copy of the GNU General Public License ## along with this program. If not, see . ######################################## ########## Twolc build rules. ########## ######################################## ####### HFST build rules: ######## # hfst-twolc should resolve by default (just like the Xerox tool): HFSTTWOLFLAGS=--resolve .twolc.hfst: $(AM_V_HTWOLC)$(HFST_TWOLC) $(MORE_VERBOSITY) \ $(HFSTFLAGS) $(HFSTTWOLCFLAGS) $(HFST_FORMAT) -i $< -o $@ ####### Xerox build rules: ####### .twolc.xfst: $(AM_V_TWOLC)$(PRINTF) "read-grammar $<\ncompile\nsave-binary $@\nquit\n" \ | $(TWOLC) $(VERBOSITY) ####### Foma build rules (based on Hfst): ####### %-phon.foma: %-phon.hfst $(AM_V_HSPLIT)$(HFST_SPLIT) -p RULE_PARTS $< $(AM_V_at)cp RULE_PARTS1.hfst $@.hfst $(AM_V_INTRSCT)for f in $$(ls RULE_PARTS*); do \ $(HFST_INTERSECT) -1 $$f -2 $@.hfst \ | $(HFST_MINIMIZE) > $@.tmp.hfst && cp $@.tmp.hfst $@.hfst; done $(AM_V_FST2TXT)$(HFST_FST2TXT) --do-not-print-weights -i $@.hfst > $@.att $(AM_V_FOMA)$(PRINTF) "\ read att $@.att\n\ save stack $@\n\ quit\n" \ | $(FOMA) $(VERBOSITY) $(AM_V_at)rm -f RULE_PARTS*.hfst $@.tmp.hfst $@.att # vim: set ft=automake: