Added ChangeKeywordModeAction;

Hopefully fixed the 'Invalid multibyte character' build error on linux (I was using left/right-angle-brackets in string constants);
Fixed 'cost' keywords;


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@263 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-18 18:02:09 +00:00
parent 37fe4c84ae
commit c8fc427da3
12 changed files with 116 additions and 32 deletions
+3 -12
View File
@@ -153,16 +153,9 @@ init script:
# step 1 : remove all automatic tags
tag_remove_rule(tag: "<sym-auto>") +
tag_remove_rule(tag: "<i-auto>") +
# # step 2 : reminder text for keywords
# keyword_rule(
# expand_reminder_game: { set.automatic_reminder_text == "yes" },
# expand_reminder_set: { set.automatic_reminder_text != "no" },
# before: " (",
# after: ")",
# fix_english: true
# ) +
# step 2 : reminder text for keywords
expand_keywords_rule(
default_expand: { set.automatic_reminder_text == "yes" },
default_expand: { contains(match:mode, set.automatic_reminder_text, match:mode) },
combine: { "{keyword}<atom-reminder><i> ({reminder})</i></atom-reminder>" }
) +
# step 3a : expand shortcut words ~ and CARDNAME
@@ -899,8 +892,6 @@ keyword mode:
name: custom
description: Custom keywords
keyword parameter type:
name: no parameter
keyword parameter type:
name: mana
match: [XYZ0-9WUBRGS/]+
@@ -909,7 +900,7 @@ keyword parameter type:
name: cost
#insert as: word
match: [XYZ0-9WUBRGS/]+|[^(.,\n]|([XYZ0-9WUBRGS/]+,)?[^(.,\n]*
script: "<sym-auto>{mana_sort()}</sym-auto>" # TODO : DEBUG
#script: "<sym-auto>{mana_sort()}</sym-auto>" # TODO : DEBUG
keyword parameter type:
name: number
match: [XYZ0-9]+