special_text, fr fixes

fix Enchant : creature being autocapitalized
move card.special_text definition to the end so it can properly access all card fields
This commit is contained in:
cajun
2025-07-03 23:04:41 -05:00
parent 764560a3a9
commit add2e3b979
2 changed files with 26 additions and 25 deletions

View File

@@ -1518,7 +1518,7 @@ auto_correct :=
+ "([A-Z])" #### match this
replace: { _1 + _2 + to_lower(_3)})
+replace@(
match: "([ ]*: |—| — )" #### preceded by this
match: "([^ ]: |—| — )" #### preceded by this
+ "([[:lower:]])" #### match this
+ "(?![)])", #### not followed by this
replace: { _1 + to_upper(_2) })
@@ -1819,7 +1819,7 @@ text_filter :=
} +
#### step 8 : automatic capitalization, but not after "("
#replace@(
# match: "([ ]*: |—| — )" #### preceded by this
# match: "([^ ]: |—| — )" #### preceded by this
# + "([[:lower:]])" #### match this
# + "(?![)])", #### not followed by this
# replace: { _1 + to_upper(_2) }) +