From f3103e74d273ed2ba1b14bb9789ef912a59148ca Mon Sep 17 00:00:00 2001 From: Sjur N Moshagen Date: Fri, 18 Aug 2023 11:15:49 +0300 Subject: [PATCH] =?UTF-8?q?Update=20gramcheck=20build=20to=20follow=20the?= =?UTF-8?q?=20other=20S=C3=A1mi=20languages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Yaml files still need to be updated --- tools/grammarcheckers/Makefile.am | 11 +++++++++++ ...grammarchecker-release.cg3 => grammarchecker.cg3} | 0 tools/grammarcheckers/pipespec.xml.in | 12 ++++++------ 3 files changed, 17 insertions(+), 6 deletions(-) rename tools/grammarcheckers/{grammarchecker-release.cg3 => grammarchecker.cg3} (100%) diff --git a/tools/grammarcheckers/Makefile.am b/tools/grammarcheckers/Makefile.am index 1f96a3dc49..7d22892d97 100644 --- a/tools/grammarcheckers/Makefile.am +++ b/tools/grammarcheckers/Makefile.am @@ -28,6 +28,17 @@ LOCAL_GC_ZIP_FILES=after-speller-disambiguator.bin \ #### BEGIN: Local build targets: #### +if HAVE_VISLCG_FILTER +grammarchecker-release.bin: grammarchecker.cg3 + $(AM_V_CGCOMP)"$(VISLCG3)" --grammar $< --grammar-bin $@ --grammar-only --nrules-v "^x" +else +grammarchecker-release.cg3: $(srcdir)/grammarchecker.cg3 \ + $(GIELLA_CORE)/scripts/gc-release.awk + $(AM_V_GEN)$(GAWK) -f $(GIELLA_CORE)/scripts/gc-release.awk $< > $@ + +CLEANFILES=grammarchecker-release.cg3 +endif + # Copy the standard disambiguator file as the grc version, but without # protecting the speller suggestions. This one is applied after the regular # disambiguation, and will disambiguate the suggestions _after_ the rest of diff --git a/tools/grammarcheckers/grammarchecker-release.cg3 b/tools/grammarcheckers/grammarchecker.cg3 similarity index 100% rename from tools/grammarcheckers/grammarchecker-release.cg3 rename to tools/grammarcheckers/grammarchecker.cg3 diff --git a/tools/grammarcheckers/pipespec.xml.in b/tools/grammarcheckers/pipespec.xml.in index 4e299e57fa..46f0f5d190 100644 --- a/tools/grammarcheckers/pipespec.xml.in +++ b/tools/grammarcheckers/pipespec.xml.in @@ -9,7 +9,7 @@ hfst-ospell >= 0.5.0 divvun-gramcheck >= 0.2.0"> - + @@ -37,8 +37,8 @@ - - + @@ -58,7 +58,7 @@ - + @@ -95,7 +95,7 @@ - @@ -115,7 +115,7 @@ - +