Lower case keywords are now recognized, but only if all parameters are given.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1078 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-07 01:01:51 +00:00
parent 1d38312d05
commit 2c6c6645f7
5 changed files with 100 additions and 40 deletions
+7 -4
View File
@@ -311,9 +311,7 @@ mana_context :=
| <param-cost><match>, # keyword argument that is declared as cost
";
# truncates the name of legends
legend_filter := replace@(match:", [A-Z,a-z,Æ,0-9,' ]*", replace: "" )+
replace@(match:" of [A-Z,a-z,Æ,0-9,' ]*", replace: "" )+
replace@(match:" the [A-Z,a-z,Æ,0-9,' ]*", replace: "" )
legend_filter := replace@(match:"(, | of | the ).*", replace: "" )
# the rule text filter
# - adds mana symbols
# - makes text in parentheses italic
@@ -323,7 +321,12 @@ text_filter :=
remove_tag@(tag: "<i-auto>") +
# step 2 : reminder text for keywords
expand_keywords@(
default_expand: { chosen(choice:mode, set.automatic_reminder_text) },
condition: {
correct_case or (mode != "pseudo" and not used_placeholders)
}
default_expand: {
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
},
combine: {
if mode == "pseudo" then "<i-auto>{keyword}</i-auto>"
else "{keyword}<atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
+1
View File
@@ -50,6 +50,7 @@ set field:
choice: pseudo
choice: action
choice: custom
choice: lower case
initial: old, core, expert, pseudo, action, custom
# Convert from older mse versions
script: