summaryrefslogtreecommitdiff
path: root/leim
diff options
context:
space:
mode:
authorTaiju HIGASHI <higashi@taiju.info>2022-06-07 21:46:14 +0900
committerEli Zaretskii <eliz@gnu.org>2022-06-10 15:46:32 +0300
commitafbe7585c448c79f0320839d272742968ee88a55 (patch)
treeec03210e56a19d34c0afa3789d1ff32cf1a57296 /leim
parentdc09759c1d1e7d7c6118fd8e582aaa57454cf001 (diff)
downloademacs-afbe7585c448c79f0320839d272742968ee88a55.tar.gz
Don't reduce vocabulary in ja-dic.el by default
* configure.ac: Add the "--with-small-ja-dic" configure option. * leim/Makefile.in (${leimdir}/ja-dic/ja-dic.el): Change the build method depending on whether or not the --with-small-ja-dic option is specified. * lisp/international/ja-dic-cnv.el (skkdic-convert-okuri-nasi): Add the "no-reduction" optional argument. When it is specified, then generate a Japanese dictionary without reduced vocabulary. (skkdic-convert): Add the "no-reduction" optional argument. (batch-skkdic-convert): Add the "--no-reduction" command line argument.
Diffstat (limited to 'leim')
-rw-r--r--leim/Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/leim/Makefile.in b/leim/Makefile.in
index 3b4216c0b82..29b9f3b2f86 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -32,6 +32,12 @@ leimdir = ${srcdir}/../lisp/leim
EXEEXT = @EXEEXT@
+SMALL_JA_DIC = @SMALL_JA_DIC@
+JA_DIC_NO_REDUCTION_OPTION = --no-reduction
+ifeq ($(SMALL_JA_DIC), yes)
+ JA_DIC_NO_REDUCTION_OPTION =
+endif
+
-include ${top_builddir}/src/verbose.mk
# Prevent any settings in the user environment causing problems.
@@ -134,7 +140,7 @@ generate-ja-dic: ${leimdir}/ja-dic/ja-dic.el
${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
$(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
--eval "(setq max-specpdl-size 5000)" \
- -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" "$<"
+ -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" $(JA_DIC_NO_REDUCTION_OPTION) "$<"
${srcdir}/../lisp/language/pinyin.el: ${srcdir}/MISC-DIC/pinyin.map
$(AM_V_GEN)${RUN_EMACS} -l titdic-cnv -f pinyin-convert $< $@