mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -04:00
the way expand_keyword works has changed, templates updated.
parameter un-bolding now works for vs templates git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1359 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -45,13 +45,15 @@
|
||||
default_expand: {
|
||||
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
|
||||
},
|
||||
combine: {
|
||||
combine: {
|
||||
# un-bold parameters
|
||||
keyword := tag_contents@(keyword, tag:"<param",
|
||||
contents: {"</b-auto>{input}<b-auto>"})
|
||||
keyword := tag_contents(keyword, tag:"<param",
|
||||
contents: {"</b-auto>{input}<b-auto>"})
|
||||
reminder := process_english_hints(reminder)
|
||||
# the combined result
|
||||
"<b-auto>{keyword}</b-auto><atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
|
||||
) +
|
||||
"<b-auto>{keyword}</b-auto>"
|
||||
+ if expand then "<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>"
|
||||
}) +
|
||||
# step 3 : Expand shortcut words ~ and CARDNAME
|
||||
replace_rule(
|
||||
match: "~|~THIS~|CARDNAME",
|
||||
|
||||
Reference in New Issue
Block a user