You need to sign in or sign up before continuing.
Commit bb034bbe authored by pichoro's avatar pichoro

Regular apostrophes become fancy apostrophes in Magic and Vanguard.

Moved tilde name replacement to automatic text replacements in Vanguard.
parent 2c4b2483
...@@ -36,4 +36,7 @@ auto replace: ...@@ -36,4 +36,7 @@ auto replace:
replace: LEGENDNAME replace: LEGENDNAME
auto replace: auto replace:
match: ~ match: ~
replace: CARDNAME replace: CARDNAME
\ No newline at end of file auto replace:
match: '
replace: ’
\ No newline at end of file
...@@ -196,7 +196,7 @@ sort_name := ...@@ -196,7 +196,7 @@ sort_name :=
# Remove "The", "A", and "And" at the beginning # Remove "The", "A", and "And" at the beginning
replace@(match: "^(The|An?) ", replace: "") + replace@(match: "^(The|An?) ", replace: "") +
# Remove commas and apostrophes # Remove commas and apostrophes
replace@(match: "(,|')", replace: "") + replace@(match: "(,|'|’)", replace: "") +
# Remove bold and italic tags # Remove bold and italic tags
replace@(match: "(<b>|<i>|</b>|</i>)", replace: "") + replace@(match: "(<b>|<i>|</b>|</i>)", replace: "") +
# Make lowercase # Make lowercase
......
...@@ -146,7 +146,7 @@ init script: ...@@ -146,7 +146,7 @@ init script:
) + ) +
# step 3 : expand shortcut words ~ and CARDNAME # step 3 : expand shortcut words ~ and CARDNAME
replace@( replace@(
match: "~|CARDNAME", match: "CARDNAME",
in_context: "(^|[[:space:]]|\\()<match>", in_context: "(^|[[:space:]]|\\()<match>",
replace: "<atom-cardname></atom-cardname>" replace: "<atom-cardname></atom-cardname>"
) + ) +
...@@ -196,7 +196,7 @@ init script: ...@@ -196,7 +196,7 @@ init script:
# Remove "The", "A", and "And" at the beginning # Remove "The", "A", and "And" at the beginning
replace@(match: "^(The|An?) ", replace: "") + replace@(match: "^(The|An?) ", replace: "") +
# Remove commas and apostrophes # Remove commas and apostrophes
replace@(match: "(,|')", replace: "") + replace@(match: "(,|'|’)", replace: "") +
# Remove bold and italic tags # Remove bold and italic tags
replace@(match: "(<b>|<i>|</b>|</i>)", replace: "") + replace@(match: "(<b>|<i>|</b>|</i>)", replace: "") +
# Make lowercase # Make lowercase
...@@ -447,6 +447,12 @@ auto replace: ...@@ -447,6 +447,12 @@ auto replace:
auto replace: auto replace:
match: AAA match: AAA
replace: as an additional cost to cast replace: as an additional cost to cast
auto replace:
match: ~
replace: CARDNAME
auto replace:
match: '
replace: ’
############################################################## Card pack items ############################################################## Card pack items
pack type: pack type:
name: card name: card
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment