fix capitalization issues on This type
This commit is contained in:
@@ -1692,6 +1692,19 @@ text_filter :=
|
|||||||
tag: "<atom-cardname>",
|
tag: "<atom-cardname>",
|
||||||
contents: { "<nospellcheck>" + (if card_name=="" then "CARDNAME" else strip_card_codes(card_name, atom:true)) + "</nospellcheck>" }
|
contents: { "<nospellcheck>" + (if card_name=="" then "CARDNAME" else strip_card_codes(card_name, atom:true)) + "</nospellcheck>" }
|
||||||
) +
|
) +
|
||||||
|
#### capitalize This type when appropriate
|
||||||
|
replace@(
|
||||||
|
match:"([•.]) <atom-cardname><nospellcheck>this",
|
||||||
|
replace:"\\1 <atom-cardname><nospellcheck>This"
|
||||||
|
) +
|
||||||
|
replace@(
|
||||||
|
match:"([\"“'])<atom-cardname><nospellcheck>this",
|
||||||
|
replace:"\\1<atom-cardname><nospellcheck>This"
|
||||||
|
) +
|
||||||
|
replace@(
|
||||||
|
match:"^<atom-cardname><nospellcheck>this",
|
||||||
|
replace:"<atom-cardname><nospellcheck>This"
|
||||||
|
) +
|
||||||
tag_contents@(
|
tag_contents@(
|
||||||
tag: "<atom-legname>",
|
tag: "<atom-legname>",
|
||||||
contents: { "<nospellcheck>" + (if card_name=="" then "LEGENDNAME" else legend_filter(strip_card_codes(card_name, atom:true))) + "</nospellcheck>" }
|
contents: { "<nospellcheck>" + (if card_name=="" then "LEGENDNAME" else legend_filter(strip_card_codes(card_name, atom:true))) + "</nospellcheck>" }
|
||||||
@@ -3010,8 +3023,8 @@ card_name_for_level := {
|
|||||||
if set.CARDNAME_replacement == "card's type"
|
if set.CARDNAME_replacement == "card's type"
|
||||||
then (
|
then (
|
||||||
ty := to_lower(cardname_type(card["type"+tag]))
|
ty := to_lower(cardname_type(card["type"+tag]))
|
||||||
if ty == "" then "this"
|
if ty == "" then "This"
|
||||||
else "this " + ty
|
else "This " + ty
|
||||||
)
|
)
|
||||||
else if set.CARDNAME_replacement == "card's alias" and card["alias"+tag] != ""
|
else if set.CARDNAME_replacement == "card's alias" and card["alias"+tag] != ""
|
||||||
then card["alias"+tag]
|
then card["alias"+tag]
|
||||||
|
|||||||
Reference in New Issue
Block a user