From 09a4399aaa8913a672facfcf2e783b614ee36c7d Mon Sep 17 00:00:00 2001 From: Flammie A Pirinen Date: Mon, 12 Feb 2024 19:51:03 +0100 Subject: [PATCH] urj-cyrl-kpv-conversion like smi in sms --- .../morphology/Makefile.modifications-local.am | 15 ++++++++++++--- src/scripts/urj-Cyrl-kpv-conversion.pl | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/fst/morphology/Makefile.modifications-local.am b/src/fst/morphology/Makefile.modifications-local.am index 2d4c17c5b..b1e8cdf2b 100644 --- a/src/fst/morphology/Makefile.modifications-local.am +++ b/src/fst/morphology/Makefile.modifications-local.am @@ -18,10 +18,19 @@ # Add local build rules and shared here... if HAVE_SHARED_URJ_CYRL -generated_files/urj-Cyrl-$(GLANG)-propernouns.lexc: \ - $(gt_SHARED_urj_Cyrl)/src/fst/stems/urj-Cyrl-propernouns.lexc +generated_files/urj-Cyrl-propernouns.lexc: \ + $(gt_SHARED_urj_Cyrl)/src/fst/stems/urj-Cyrl-propernouns.lexc $(AM_V_at)$(MKDIR_P) generated_files - $(AM_V_CP)cp -f $< $@ + $(AM_V_GEN)cp -f $< $@ + +generated_files/urj-Cyrl-$(GTLANG)-propernouns.lexc: \ + generated_files/urj-Cyrl-propernouns.lexc \ + $(top_srcdir)/src/scripts/urj-Cyrl-$(GTLANG)-conversion.pl + $(AM_V_GEN)rm -f $@ && \ + echo "" >> $@ && \ + echo "! <--- Dump from URJ-CYRL -->" >> $@ && \ + echo "" >> $@ && \ + $(top_srcdir)/src/scripts/urj-Cyrl-$(GTLANG)-conversion.pl $< >> $@ else generated_files/urj-Cyrl-$(GLANG)-%.lexc: $(AM_V_at)$(MKDIR_P) generated_files diff --git a/src/scripts/urj-Cyrl-kpv-conversion.pl b/src/scripts/urj-Cyrl-kpv-conversion.pl index 24fb11466..399b12ad4 100755 --- a/src/scripts/urj-Cyrl-kpv-conversion.pl +++ b/src/scripts/urj-Cyrl-kpv-conversion.pl @@ -56,7 +56,7 @@ BEGIN # # j->i || Vow i .* : .* Vow _ ; Heaika:Heajka -> Heaika:Heaika. But Majken # s/([ÁAEIOUaáeiou])i(.*):(.*)([ÁAEIOUaáeiou])j/$1i$2:$3$4i/g ; # -# my $line = $_; + my $line = $_; # # # Special treatment of æ in SMJ: # if ($line =~ /æ/) {