Version bumping from past edits.

Updating vs-standard-new to match vs-standard-official and vs-standard-arrow.
Changed insert symbol menus to use "•" instead of "<>", so they actually work.
New plan for preventing symbolization of affiliations on old style cards.  May need further tweaking.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1220 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
pichoro
2008-10-07 03:12:03 +00:00
parent 6e18877f61
commit b28e87e5fe
11 changed files with 145 additions and 30 deletions
+55 -1
View File
@@ -6,7 +6,7 @@ installer group: VS System/Oversize Avatar
icon: card-sample.png
position hint: 007
version: 2008-09-26
version: 2008-10-06
depends on:
package: vs.mse-game
version: 2008-09-26
@@ -28,6 +28,60 @@ card dpi: 75
############################################################## Extra scripts
init script:
card_shape := { if styling.style_sorting then "avatar" else "new" }
text_filter :=
# step 1 : Remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") +
tag_remove_rule(tag: "<i-auto>") +
tag_remove_rule(tag: "<b-auto>") +
# step 2 : Reminder text for keywords
expand_keywords@(
condition: {
correct_case
}
default_expand: {
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
},
combine: { "<b-auto>{keyword}</b-auto><atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
) +
# step 3 : Expand shortcut words ~ and CARDNAME
replace_rule(
match: "~|~THIS~|CARDNAME",
in_context: "(^|[[:space:]])<match>",
replace: "<atom-cardname>&</atom-cardname>"
) +
# step 4 : Fill in atom fields
tag_contents_rule(
tag: "<atom-cardname>",
contents: { if card.name=="" then "CARDNAME" else card.name }
) +
# step 5a: add arrow/diamond/dot symbols
replace_rule(
match: "->|>>>|@|<>",
replace: "<sym-auto>&</sym-auto>") +
# step 5b: Majority of affiliation symbols
replace_rule(
match: "Activate|Avengers|B.P.R.D.|Brotherhood|Crime Lords|Defenders|Doom|Fantastic Four|Gotham Knights|Green Lantern|Hellfire Club|Heralds of Galactus|Horsemen of Apocalypse|Invaders|JLA|JSA|Kree|Marvel Knights|Masters of Evil|Negative Zone|Planet|Shadowpact|Shi'ar|Sinister Syndicate|Skrull|Speed Force|Spider-Friends|Team Superman|Thule Society|Thunderbolts|Teen Titans|Underworld|Warbound|X-Men",
replace: "<sym-auto>&</sym-auto>") +
# step 5c: SHIELD Variations
replace_rule(
match: "S.H.I.E.L.D.|SHIELD|Shield",
replace: "<sym-auto>Shield</sym-auto>") +
#X#if contains(card.shape, match:"old") then symbol_filter else new_symbols
# step 7a : Bold keywords without reminder text
replace_rule(
match: "<kw[^>]*>[^<]+</kw-a>",
replace: "<b-auto>&</b-auto>") +
# step 7b : Bold keywords with reminder text
replace_rule(
match: "<kw[^>]*>[^<]+</kw-A>",
replace: "<b-auto>&</b-auto>") +
# step 8 : Italic reminder text
replace_rule(
match: "[(][^)\n]*[)]?",
in_context: "(^|[[:space:]])<match>|<atom-keyword><match>",
replace: "<i-auto>&</i-auto>")
############################################################## Set info fields
############################################################## Extra style
styling field: