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

@@ -139,10 +139,22 @@ init script:
replace:"-")+ replace:"-")+
#curly_quotes + #curly_quotes +
# step 9 : spellcheck # 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( check_spelling(
language: language().spellcheck_code, language: language().spellcheck_code,
extra_dictionary: "/magic.mse-game/magic-words", extra_dictionary: "/magic.mse-game/dictionary/magic-words",
extra_match: additional_text_words extra_match: additional_text_words
) )
else input else input

View File

@@ -29,7 +29,7 @@ card dpi: 150
# Template by Art_Freak # Template by Art_Freak
############################################################## Extra scripts ############################################################## Extra scripts
init script: init script:
include file: /magic-modules.mse-include/corners/card_fields
# We have no land templates # We have no land templates
land_template := { "c{type}.jpg" } land_template := { "c{type}.jpg" }

View File

@@ -405,10 +405,22 @@
replace: { _1 + to_upper(_2) }) + replace: { _1 + to_upper(_2) }) +
#curly_quotes + #curly_quotes +
# step 9 : spellcheck # 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( check_spelling(
language: language().spellcheck_code, language: language().spellcheck_code,
extra_dictionary: "/magic.mse-game/magic-words", extra_dictionary: "/magic.mse-game/dictionary/magic-words",
extra_match: additional_text_words extra_match: additional_text_words
) )
else input else input

View File

@@ -38,7 +38,7 @@ init script:
else "2" # textbox else "2" # textbox
} }
template_prefix := template_prefix := [
card: "" card: ""
card2: "" card2: ""
card3: "" card3: ""

View File

@@ -197,10 +197,22 @@ init script:
replace: { _1 + to_upper(_2) }) + replace: { _1 + to_upper(_2) }) +
curly_quotes + curly_quotes +
# step 9 : spellcheck # 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( check_spelling(
language: language().spellcheck_code, language: language().spellcheck_code,
extra_dictionary: "/magic.mse-game/magic-words", extra_dictionary: "/magic.mse-game/dictionary/magic-words",
extra_match: additional_text_words extra_match: additional_text_words
) )
else input else input

View File

@@ -1494,10 +1494,22 @@ init script:
replace: { _1 + to_upper(_2) }) + replace: { _1 + to_upper(_2) }) +
#curly_quotes + #curly_quotes +
# step 9 : spellcheck # 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( check_spelling(
language: language().spellcheck_code, language: language().spellcheck_code,
extra_dictionary: "/magic.mse-game/magic-words", extra_dictionary: "/magic.mse-game/dictionary/magic-words",
extra_match: additional_text_words extra_match: additional_text_words
) )
else input else input

View File

@@ -153,10 +153,22 @@ init script:
replace: { _1 + to_upper(_2) }) + replace: { _1 + to_upper(_2) }) +
#curly_quotes + #curly_quotes +
# step 9 : spellcheck # 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( check_spelling(
language: language().spellcheck_code, language: language().spellcheck_code,
extra_dictionary: "/magic.mse-game/magic-words", extra_dictionary: "/magic.mse-game/dictionary/magic-words",
extra_match: additional_text_words extra_match: additional_text_words
) )
else input else input

View File

@@ -327,7 +327,7 @@ card style:
z index: 1 z index: 1
render style: image render style: image
alignment: middle center alignment: middle center
include file: /magic-watermarks.mse-include/watermarks-old image: { watermark_image_1() }
############################# PT ############################# PT
pt: pt:
z index: 2 z index: 2