Fixed some smaller template bugs that escaped your keen eyes. (#100)

This commit is contained in:
Mihaly-André Hadnagy
2025-01-11 23:33:27 +00:00
committed by GitHub
parent 8b91073e40
commit 888208663e
8 changed files with 78 additions and 18 deletions

View File

@@ -405,13 +405,25 @@
replace: { _1 + to_upper(_2) }) +
#curly_quotes +
# step 9 : spellcheck
{ if set.mark_errors then
{
if set.auto_correct then
auto_correct(input)
else input
} +
{
if set.auto_errata then
auto_errata(input)
else input
} +
{
if language().code == "ja" or language().code == "zht" or language().code == "zhs" then input
else if set.mark_errors then
check_spelling(
language: language().spellcheck_code,
extra_dictionary: "/magic.mse-game/magic-words",
extra_dictionary: "/magic.mse-game/dictionary/magic-words",
extra_match: additional_text_words
)
else input
else input
}
############################################################## Statistics utilities