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:
@@ -41,29 +41,6 @@ card field:
|
|||||||
### rulestip
|
### rulestip
|
||||||
### checklist
|
### checklist
|
||||||
|
|
||||||
############################################################## Special text
|
|
||||||
### This is given to exporters to handle complicated rules text
|
|
||||||
### In particular, things like Sagas that using styling data to determine their rules text
|
|
||||||
### That exporters can't access
|
|
||||||
card field:
|
|
||||||
type: text
|
|
||||||
name: special text
|
|
||||||
description: The full text for exporting.
|
|
||||||
show statistics: false
|
|
||||||
card list name: Special Text
|
|
||||||
card list column: 0780
|
|
||||||
card list width: 150
|
|
||||||
script: special_text()
|
|
||||||
card field:
|
|
||||||
type: text
|
|
||||||
name: special text 2
|
|
||||||
description: The second full text for exporting.
|
|
||||||
show statistics: false
|
|
||||||
card list name: Special Text 2
|
|
||||||
card list column: 0781
|
|
||||||
card list width: 150
|
|
||||||
script: special_text2()
|
|
||||||
|
|
||||||
############################################################## Card border
|
############################################################## Card border
|
||||||
card field:
|
card field:
|
||||||
type: color
|
type: color
|
||||||
@@ -3219,3 +3196,27 @@ card field:
|
|||||||
card list alignment: right
|
card list alignment: right
|
||||||
card list width: 50
|
card list width: 50
|
||||||
script: custom_index()
|
script: custom_index()
|
||||||
|
|
||||||
|
############################################################## Special text
|
||||||
|
### This is given to exporters to handle complicated rules text
|
||||||
|
### In particular, things like Sagas that using styling data to determine their rules text
|
||||||
|
### That exporters can't access
|
||||||
|
### This needs to be at the end so it can properly access other fields
|
||||||
|
card field:
|
||||||
|
type: text
|
||||||
|
name: special text
|
||||||
|
description: The full text for exporting.
|
||||||
|
show statistics: false
|
||||||
|
card list name: Special Text
|
||||||
|
card list column: 0780
|
||||||
|
card list width: 150
|
||||||
|
script: special_text()
|
||||||
|
card field:
|
||||||
|
type: text
|
||||||
|
name: special text 2
|
||||||
|
description: The second full text for exporting.
|
||||||
|
show statistics: false
|
||||||
|
card list name: Special Text 2
|
||||||
|
card list column: 0781
|
||||||
|
card list width: 150
|
||||||
|
script: special_text2()
|
||||||
|
|||||||
@@ -1518,7 +1518,7 @@ auto_correct :=
|
|||||||
+ "([A-Z])" #### match this
|
+ "([A-Z])" #### match this
|
||||||
replace: { _1 + _2 + to_lower(_3)})
|
replace: { _1 + _2 + to_lower(_3)})
|
||||||
+replace@(
|
+replace@(
|
||||||
match: "([ ]*: |—| — )" #### preceded by this
|
match: "([^ ]: |—| — )" #### preceded by this
|
||||||
+ "([[:lower:]])" #### match this
|
+ "([[:lower:]])" #### match this
|
||||||
+ "(?![)])", #### not followed by this
|
+ "(?![)])", #### not followed by this
|
||||||
replace: { _1 + to_upper(_2) })
|
replace: { _1 + to_upper(_2) })
|
||||||
@@ -1819,7 +1819,7 @@ text_filter :=
|
|||||||
} +
|
} +
|
||||||
#### step 8 : automatic capitalization, but not after "("
|
#### step 8 : automatic capitalization, but not after "("
|
||||||
#replace@(
|
#replace@(
|
||||||
# match: "([ ]*: |—| — )" #### preceded by this
|
# match: "([^ ]: |—| — )" #### preceded by this
|
||||||
# + "([[:lower:]])" #### match this
|
# + "([[:lower:]])" #### match this
|
||||||
# + "(?![)])", #### not followed by this
|
# + "(?![)])", #### not followed by this
|
||||||
# replace: { _1 + to_upper(_2) }) +
|
# replace: { _1 + to_upper(_2) }) +
|
||||||
|
|||||||
Reference in New Issue
Block a user