From 888208663ec0b592c6313e0208a8ac45afb1408b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mihaly-Andr=C3=A9=20Hadnagy?= Date: Sat, 11 Jan 2025 23:33:27 +0000 Subject: [PATCH] Fixed some smaller template bugs that escaped your keen eyes. (#100) --- data/magic-comic.mse-style/style | 18 +++++++++++++++--- .../style | 2 +- .../game_scripts | 18 +++++++++++++++--- data/magic-m15-token.mse-style/style | 2 +- data/magic-new-curse.mse-style/style | 18 +++++++++++++++--- data/magic-new-extra.mse-style/style | 18 +++++++++++++++--- data/magic-new-maro.mse-style/style | 18 +++++++++++++++--- data/magic-old-artbg.mse-style/style | 2 +- 8 files changed, 78 insertions(+), 18 deletions(-) diff --git a/data/magic-comic.mse-style/style b/data/magic-comic.mse-style/style index 54cdf98c5..2f4385bac 100644 --- a/data/magic-comic.mse-style/style +++ b/data/magic-comic.mse-style/style @@ -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 diff --git a/data/magic-firepenguinmaster-flip.mse-style/style b/data/magic-firepenguinmaster-flip.mse-style/style index b5b9e20d0..56d8279e6 100644 --- a/data/magic-firepenguinmaster-flip.mse-style/style +++ b/data/magic-firepenguinmaster-flip.mse-style/style @@ -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" } diff --git a/data/magic-m15-planeswalker-extra-purple.mse-style/game_scripts b/data/magic-m15-planeswalker-extra-purple.mse-style/game_scripts index 879e0d201..80213d90c 100644 --- a/data/magic-m15-planeswalker-extra-purple.mse-style/game_scripts +++ b/data/magic-m15-planeswalker-extra-purple.mse-style/game_scripts @@ -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 diff --git a/data/magic-m15-token.mse-style/style b/data/magic-m15-token.mse-style/style index bd56828ec..39c4dd9c9 100644 --- a/data/magic-m15-token.mse-style/style +++ b/data/magic-m15-token.mse-style/style @@ -38,7 +38,7 @@ init script: else "2" # textbox } - template_prefix := + template_prefix := [ card: "" card2: "" card3: "" diff --git a/data/magic-new-curse.mse-style/style b/data/magic-new-curse.mse-style/style index 0813f44ca..03c5f5588 100644 --- a/data/magic-new-curse.mse-style/style +++ b/data/magic-new-curse.mse-style/style @@ -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"} diff --git a/data/magic-new-extra.mse-style/style b/data/magic-new-extra.mse-style/style index 2119dbbb2..f69f1c088 100644 --- a/data/magic-new-extra.mse-style/style +++ b/data/magic-new-extra.mse-style/style @@ -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 diff --git a/data/magic-new-maro.mse-style/style b/data/magic-new-maro.mse-style/style index 19cf6c705..de6047029 100644 --- a/data/magic-new-maro.mse-style/style +++ b/data/magic-new-maro.mse-style/style @@ -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 diff --git a/data/magic-old-artbg.mse-style/style b/data/magic-old-artbg.mse-style/style index cb0b07fc9..d115cdbaa 100644 --- a/data/magic-old-artbg.mse-style/style +++ b/data/magic-old-artbg.mse-style/style @@ -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