diff --git a/data/magic.mse-game/auto_replace b/data/magic.mse-game/auto_replace index 32a14220..153b4489 100644 --- a/data/magic.mse-game/auto_replace +++ b/data/magic.mse-game/auto_replace @@ -36,4 +36,7 @@ auto replace: replace: LEGENDNAME auto replace: match: ~ - replace: CARDNAME \ No newline at end of file + replace: CARDNAME +auto replace: + match: ' + replace: ’ \ No newline at end of file diff --git a/data/magic.mse-game/script b/data/magic.mse-game/script index 026d4f76..be955afe 100644 --- a/data/magic.mse-game/script +++ b/data/magic.mse-game/script @@ -196,7 +196,7 @@ sort_name := # Remove "The", "A", and "And" at the beginning replace@(match: "^(The|An?) ", replace: "") + # Remove commas and apostrophes - replace@(match: "(,|')", replace: "") + + replace@(match: "(,|'|’)", replace: "") + # Remove bold and italic tags replace@(match: "(|||)", replace: "") + # Make lowercase diff --git a/data/vanguard.mse-game/game b/data/vanguard.mse-game/game index 9868e340..13066edc 100644 --- a/data/vanguard.mse-game/game +++ b/data/vanguard.mse-game/game @@ -146,7 +146,7 @@ init script: ) + # step 3 : expand shortcut words ~ and CARDNAME replace@( - match: "~|CARDNAME", + match: "CARDNAME", in_context: "(^|[[:space:]]|\\()", replace: "" ) + @@ -196,7 +196,7 @@ init script: # Remove "The", "A", and "And" at the beginning replace@(match: "^(The|An?) ", replace: "") + # Remove commas and apostrophes - replace@(match: "(,|')", replace: "") + + replace@(match: "(,|'|’)", replace: "") + # Remove bold and italic tags replace@(match: "(|||)", replace: "") + # Make lowercase @@ -447,6 +447,12 @@ auto replace: auto replace: match: AAA replace: as an additional cost to cast +auto replace: + match: ~ + replace: CARDNAME +auto replace: + match: ' + replace: ’ ############################################################## Card pack items pack type: name: card