Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/giellalt/lang-crk into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
aarppe committed Dec 3, 2020
2 parents 718b94f + cc5a3b1 commit 58a5b3b
Show file tree
Hide file tree
Showing 55 changed files with 48 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spellers-selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# manifest.toml needs to contain the manifest for the spellers
# The Divvun CI encryption key 'DIVVUN_KEY' needs to be added as a secret

name: "Build Speller Archives and Bundles"
name: "Speller CI+CD"
on: push

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .gut/delta.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
template = "https://github.com/giellalt/template-lang-und"
rev_id = 33
template_sha = "aaac0e4299c8605a7b8d5446751bc79e9cf46be6"
rev_id = 36
template_sha = "56da3d5ff7bd29d8ffcc73b853ff7ccc8ef3d406"

[replacements]
__UND2C__ = "crk"
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Licence: GPL v3+

ACLOCAL_AMFLAGS = -I m4
SUBDIRS = . src tools doc test
SUBDIRS = . src tools docs test

EXTRA_DIST = und.timestamp

Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ AC_SUBST([DEFAULT_XFST], [no])
AC_SUBST([DEFAULT_HYPERMIN], [no])
AC_SUBST([DEFAULT_REVERCI], [yes])
AC_SUBST([DEFAULT_HFST_BACKEND], [foma])
AC_SUBST([DEFAULT_SPELLER_MINIMISATION], [no])

# Tests and sets up giella-core directories and scripts
gt_PROG_SCRIPTS_PATHS
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion m4/giella-config-files.m4
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AC_CONFIG_FILES([Makefile \
src/cg3/Makefile \
src/tagsets/Makefile \
src/transcriptions/Makefile \
doc/Makefile \
docs/Makefile \
test/Makefile \
test/tools/Makefile \
test/tools/hyphenators/Makefile \
Expand Down
29 changes: 23 additions & 6 deletions m4/giella-macros.m4
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,23 @@ AS_IF([test "x$GAWK" != x], [
AC_MSG_RESULT([$giellalt_forrest_validation])
AM_CONDITIONAL([CAN_FORREST_VALIDATE], [test "x$giellalt_forrest_validation" != xno])
# Check for npm etc. stuff for divvunspell stats
AC_ARG_WITH([npm],
[AS_HELP_STRING([--with-npm=DIRECTORY],
[search npm in DIRECTORY @<:@default=PATH@:>@])],
[with_npm=$withval],
[with_npm=no])
AC_PATH_PROG([NPM], [npm], [], [$PATH$PATH_SEPARATOR$with_npm])
AC_PATH_PROG([R], [R], [], [$PATH$PATH_SEPARATOR$with_R])
AC_ARG_WITH([divvunspell],
[AS_HELP_STRING([--with-divvunspell=DIRECTORY],
[search divvunspell in DIRECTORY @<:@default=PATH@:>@])],
[with_divvunspell=$withval],
[with_divvunspell=no])
AC_PATH_PROG([DIVVUN_ACCURACY], [accuracy], [], [$PATH$PATH_SEPARATOR$with_divvunspell])
################ can rsync oxt template? ################
AC_PATH_PROG([RSYNC], [rsync], [no], [$PATH$PATH_SEPARATOR$with_rsync])
AC_PATH_PROG([WGET], [wget], [no], [$PATH$PATH_SEPARATOR$with_wget])
Expand Down Expand Up @@ -772,14 +789,14 @@ AM_CONDITIONAL([WANT_HFST_DESKTOP_SPELLER], [test "x$enable_desktop_hfstspellers
# Enable minimised fst-spellers by default:
AC_ARG_ENABLE([minimised-spellers],
[AS_HELP_STRING([--enable-minimised-spellers],
[minimise hfst spellers @<:@default=yes@:>@])],
[minimise hfst spellers @<:@default=$DEFAULT_SPELLER_MINIMISATION@:>@])],
[enable_minimised_spellers=$enableval],
[enable_minimised_spellers=yes])
[enable_minimised_spellers=$DEFAULT_SPELLER_MINIMISATION])
AS_IF([test "x$enable_minimised_spellers" != "xyes"],
[AC_SUBST([HFST_MINIMIZE_SPELLER], ["$ac_cv_path_HFST_REMOVE_EPSILONS \$(HFST_FLAGS) "])],
[AC_SUBST([HFST_MINIMIZE_SPELLER], ["$ac_cv_path_HFST_REMOVE_EPSILONS \$(HFST_FLAGS) \
| $ac_cv_path_HFST_DETERMINIZE --encode-weights \$(HFST_FLAGS) \
| $ac_cv_path_HFST_MINIMIZE --encode-weights \$(HFST_FLAGS) "])])
[AC_SUBST([HFST_MINIMIZE_SPELLER], ["$ac_cv_path_HFST_REMOVE_EPSILONS \$(HFST_FLAGS) \$(MORE_VERBOSITY) "])],
[AC_SUBST([HFST_MINIMIZE_SPELLER], ["$ac_cv_path_HFST_REMOVE_EPSILONS \$(HFST_FLAGS) \$(MORE_VERBOSITY) \
| $ac_cv_path_HFST_DETERMINIZE --encode-weights \$(HFST_FLAGS) \$(MORE_VERBOSITY) \
| $ac_cv_path_HFST_MINIMIZE --encode-weights \$(HFST_FLAGS) \$(MORE_VERBOSITY) "])])
# Enable Foma-based spellers, requires gzip - default is no
AC_ARG_ENABLE([fomaspeller],
Expand Down
16 changes: 16 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
How to use the alternative Makefile
===================================

make -j -f quick.mk

This will create:

- `crk-strict-analyzer.hfstol` -- reads Plains Cree wordforms and
outputs analyses. Wordforms must be written in _perfect_ SRO.
- `crk-descriptive-analyzer.hfstol` -- reads Plains Cree wordforms, and
outputs possible analyses. Wordforms can be written with known
spelling variations, including long vowel relaxation.
- `crk-normative-generator.hfstol` -- given a morphological analyses,
produces Plains Cree wordforms in SRO.
- `crk-normative-generator-with-morpheme-boundaries.hfstol` -- same as
above, but includes `<` and `>` to indicate morpheme boundaries
3 changes: 2 additions & 1 deletion src/fst/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ generated_files/eng-$(GTLANG)-propernouns.lexc: \
# easily get updates from the template dir through svn merge.
clean-local:
-rm -f *.all.* *fst *.foma *.script generated_files/*.lexc lexicon.*
-rm -f url.lexc *.tmp.*
-rm -f url.lexc *.tmp*
-rm -f *.relabel lexicon-tags.* lexicon-sigma.*

include $(srcdir)/Makefile.modifications-phon.am
include $(top_srcdir)/../giella-core/am-shared/src-morphology-dir-include.am
Expand Down
2 changes: 1 addition & 1 deletion src/fst/stems/noun_vocatives.lexc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nikâwiy+N+A+D+Voc+Sg:nêkâ # ; ! "mother!"
nicâhkos+N+A+D+Voc+Sg:nicâhkosê # ; ! "female cross-cousin!; sister-in-law! [used by female speaker only]"
niciwâm+N+A+D+Voc+Sg:niciwâ # ; ! "brother!; male parallel cousin!; friend!; rival!"
nikâwiy+N+A+D+Voc+Sg:nikâ # ; ! "mother!"
nikosisx+N+A+D+Voc+Sg:nikosê # ; ! "son!"
nikosis+N+A+D+Voc+Sg:nikosê # ; ! "son!"
nikwêmês+N+A+D+Voc+Sg:nikwêmê # ; ! "namesake! [kinship term: addressing one whom you are named after, one who is named after you, or simply one who shares the same name]"
nimâmâw+N+A+D+Voc+Sg:nimâmâ # ; ! "my mom, my mother"
nimis+N+A+D+Voc+Sg:nimisê # ; ! "older sister!"
Expand Down

0 comments on commit 58a5b3b

Please sign in to comment.