Fixed some smaller template bugs that escaped your keen eyes. (#100)
This commit is contained in:
committed by
GitHub
parent
8b91073e40
commit
888208663e
@@ -139,13 +139,25 @@ init script:
|
||||
replace:"-")+
|
||||
#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
|
||||
}
|
||||
watermark_include := "/magic-modules.mse-include/watermarks"
|
||||
############################################################## Set info fields
|
||||
|
||||
@@ -29,7 +29,7 @@ card dpi: 150
|
||||
# Template by Art_Freak
|
||||
############################################################## Extra scripts
|
||||
init script:
|
||||
include file: /magic-modules.mse-include/corners/card_fields
|
||||
|
||||
# We have no land templates
|
||||
land_template := { "c{type}.jpg" }
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -38,7 +38,7 @@ init script:
|
||||
else "2" # textbox
|
||||
}
|
||||
|
||||
template_prefix :=
|
||||
template_prefix := [
|
||||
card: ""
|
||||
card2: ""
|
||||
card3: ""
|
||||
|
||||
@@ -197,13 +197,25 @@ init script:
|
||||
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
|
||||
}
|
||||
|
||||
card_shape := {"flip"}
|
||||
|
||||
@@ -1494,13 +1494,25 @@ init script:
|
||||
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
|
||||
}
|
||||
|
||||
############################################################## Other boxes
|
||||
|
||||
@@ -153,13 +153,25 @@ init script:
|
||||
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
|
||||
}
|
||||
watermark_include := "/magic-modules.mse-include/watermarks"
|
||||
############################################################## Set info fields
|
||||
|
||||
@@ -327,7 +327,7 @@ card style:
|
||||
z index: 1
|
||||
render style: image
|
||||
alignment: middle center
|
||||
include file: /magic-watermarks.mse-include/watermarks-old
|
||||
image: { watermark_image_1() }
|
||||
############################# PT
|
||||
pt:
|
||||
z index: 2
|
||||
|
||||
Reference in New Issue
Block a user