Skip to content

Commit

Permalink
Update gramcheck build to follow the other Sámi languages
Browse files Browse the repository at this point in the history
Yaml files still need to be updated
  • Loading branch information
snomos committed Aug 18, 2023
1 parent bef16e9 commit f3103e7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
11 changes: 11 additions & 0 deletions tools/grammarcheckers/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions tools/grammarcheckers/pipespec.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
hfst-ospell >= 0.5.0
divvun-gramcheck >= 0.2.0">

<!-- This is the pipeline for the planned release aug. 2019: -->
<!-- This is the pipeline for automatic release: -->
<pipeline name="@GLANG@gramrelease"
language="@GLANG2@"
type="Spelling and grammar error">
Expand Down Expand Up @@ -37,8 +37,8 @@
</suggest>
</pipeline>

<!-- And this is the dev/Linda version of the pipeline for the planned release aug. 2019: -->
<pipeline name="@GLANG@gramrelease-dev"
<!-- And this is the dev/Linda version of the pipeline for automated releases: -->
<pipeline name="@GLANG@gram-dev"
language="@GLANG2@"
type="Grammar error, dev version">
<tokenize><tokenizer n="tokeniser-gramcheck-gt-desc.pmhfst"/></tokenize>
Expand All @@ -58,7 +58,7 @@
<cg><grammar n="@builddir@/valency-postspell.cg3"/></cg>
<cg><grammar n="@srcdir@/grc-disambiguator.cg3"/></cg>
<cg><grammar n="@srcdir@/spellchecker.cg3"/></cg>
<cg><grammar n="@srcdir@/grammarchecker-release.cg3"/></cg>
<cg><grammar n="@srcdir@/grammarchecker.cg3"/></cg>
<suggest>
<generator n="generator-gramcheck-gt-norm.hfstol"/>
<messages n="errors.xml"/>
Expand Down Expand Up @@ -95,7 +95,7 @@
</suggest>
</pipeline>

<pipeline name="@GLANG@gram-dev"
<pipeline name="@GLANG@gramresource-dev"
language="@GLANG2@"
type="Grammar error, dev version">
<tokenize><tokenizer n="tokeniser-gramcheck-gt-desc.pmhfst"/></tokenize>
Expand All @@ -115,7 +115,7 @@
<cg><grammar n="@srcdir@/grc-disambiguator.cg3"/></cg>
<cg><grammar n="@srcdir@/spellchecker.cg3"/></cg>
<cg><grammar n="@srcdir@/after-speller-disambiguator.cg3"/></cg>
<cg><grammar n="@srcdir@/grammarchecker.cg3"/></cg>
<cg><grammar n="@srcdir@/grammarchecker-resource.cg3"/></cg>
<suggest>
<generator n="generator-gramcheck-gt-norm.hfstol"/>
<messages n="errors.xml"/>
Expand Down

0 comments on commit f3103e7

Please sign in to comment.