Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
97ebe59b
Commit
97ebe59b
authored
Jan 15, 2009
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the way expand_keyword works has changed, templates updated.
parameter un-bolding now works for vs templates
parent
b8c210bd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
13 deletions
+31
-13
data/magic.mse-game/script
data/magic.mse-game/script
+2
-2
data/vanguard.mse-game/game
data/vanguard.mse-game/game
+4
-2
data/vs-new.mse-style/style
data/vs-new.mse-style/style
+9
-2
data/vs-oversize.mse-style/style
data/vs-oversize.mse-style/style
+9
-2
data/vs.mse-game/script
data/vs.mse-game/script
+7
-5
No files found.
data/magic.mse-game/script
View file @
97ebe59b
...
...
@@ -388,8 +388,8 @@ text_filter :=
keyword := "<nospellcheck>{keyword}</nospellcheck>"
reminder := process_english_hints(reminder)
if mode == "pseudo" then "<i-auto>{keyword}</i-auto>"
else
"{keyword}<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>" }
) +
else
keyword + if expand then "<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>"
}
) +
# step 2b : move action keywords' reminder text to the end of the line
replace@(
match: "(<atom-reminder-action>(?:(?!<kw-).)*</atom-reminder-action></kw[^>]*>)(((?!<atom-reminder| ?<kw-)[^\n(])+)",
...
...
data/vanguard.mse-game/game
View file @
97ebe59b
...
...
@@ -126,9 +126,11 @@ init script:
default_expand: {
chosen(choice:if correct_case then mode else "lower case", set.automatic_reminder_text)
},
combine: {
combine: {
keyword := "<nospellcheck>{keyword}</nospellcheck>"
reminder := process_english_hints(reminder)
if mode == "pseudo" then "<i-auto>{keyword}</i-auto>"
else
"{keyword}<atom-reminder-{mode}> ({process_english_hints(reminder)
})</atom-reminder-{mode}>" }
else
keyword + if expand then "<atom-reminder-{mode}> ({reminder
})</atom-reminder-{mode}>" }
) +
# step 2b : move inline keywords' reminder text to the end of the line
replace@(
...
...
data/vs-new.mse-style/style
View file @
97ebe59b
...
...
@@ -51,8 +51,15 @@ init script:
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}>" }
) +
combine: {
# un-bold parameters
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>"
+ if expand then "<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>"
}) +
# step 3 : Expand shortcut words ~ and CARDNAME
replace_rule(
match: "~|~THIS~|CARDNAME",
...
...
data/vs-oversize.mse-style/style
View file @
97ebe59b
...
...
@@ -42,8 +42,15 @@ init script:
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}>" }
) +
combine: {
# un-bold parameters
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>"
+ if expand then "<atom-reminder-{mode}> ({reminder})</atom-reminder-{mode}>"
}) +
# step 3 : Expand shortcut words ~ and CARDNAME
replace_rule(
match: "~|~THIS~|CARDNAME",
...
...
data/vs.mse-game/script
View file @
97ebe59b
...
...
@@ -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",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment