mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 13:37:00 -04:00
remove automatic <nospellcheck> tags, made the keyword reminder text code a bit easier to read.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1310 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -369,7 +369,9 @@ text_filter :=
|
|||||||
# step 1 : remove all automatic tags
|
# step 1 : remove all automatic tags
|
||||||
remove_tag@(tag: "<sym-auto>") +
|
remove_tag@(tag: "<sym-auto>") +
|
||||||
remove_tag@(tag: "<i-auto>") +
|
remove_tag@(tag: "<i-auto>") +
|
||||||
|
remove_tag@(tag: "<b-auto>") +
|
||||||
remove_tag@(tag: "<error-spelling") +
|
remove_tag@(tag: "<error-spelling") +
|
||||||
|
remove_tag@(tag: "<nospellcheck") +
|
||||||
# step 2 : reminder text for keywords
|
# step 2 : reminder text for keywords
|
||||||
expand_keywords@(
|
expand_keywords@(
|
||||||
condition: {
|
condition: {
|
||||||
@@ -378,9 +380,11 @@ text_filter :=
|
|||||||
default_expand: {
|
default_expand: {
|
||||||
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
|
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
|
||||||
},
|
},
|
||||||
combine: {
|
combine: {
|
||||||
if mode == "pseudo" then "<i-auto><nospellcheck>{keyword}</nospellcheck></i-auto>"
|
keyword := "<nospellcheck>{keyword}</nospellcheck>"
|
||||||
else "<nospellcheck>{keyword}</nospellcheck><atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
|
reminder := process_english_hints(reminder)
|
||||||
|
if mode == "pseudo" then "<i-auto>{keyword}</i-auto>"
|
||||||
|
else "{keyword}<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>" }
|
||||||
) +
|
) +
|
||||||
# step 2b : move action keywords' reminder text to the end of the line
|
# step 2b : move action keywords' reminder text to the end of the line
|
||||||
replace@(
|
replace@(
|
||||||
|
|||||||
Reference in New Issue
Block a user