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
4a8792da
Commit
4a8792da
authored
Jan 15, 2009
by
pichoro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving tilde to auto_replace, now that automatic text replacements are fixed.
Trying to make VS parameters de-bold. Not working out.
parent
41f5fcf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
data/magic.mse-game/auto_replace
data/magic.mse-game/auto_replace
+3
-0
data/magic.mse-game/script
data/magic.mse-game/script
+1
-1
data/vs.mse-game/script
data/vs.mse-game/script
+12
-7
No files found.
data/magic.mse-game/auto_replace
View file @
4a8792da
...
...
@@ -34,3 +34,6 @@ auto replace:
auto replace:
match: @
replace: LEGENDNAME
auto replace:
match: ~
replace: CARDNAME
\ No newline at end of file
data/magic.mse-game/script
View file @
4a8792da
...
...
@@ -402,7 +402,7 @@ text_filter :=
) +
# step 3a : expand shortcut word CARDNAME
replace@(
match: "
~|
CARDNAME",
match: "CARDNAME",
in_context: "(^|[[:space:]]|\\()<match>", # TODO: Allow any punctuation before
replace: "<atom-cardname></atom-cardname>"
) +
...
...
data/vs.mse-game/script
View file @
4a8792da
...
...
@@ -45,7 +45,12 @@
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>"})
# the combined result
"<b-auto>{keyword}</b-auto><atom-reminder-{mode}> ({process_english_hints(reminder)})</atom-reminder-{mode}>" }
) +
# step 3 : Expand shortcut words ~ and CARDNAME
replace_rule(
...
...
@@ -64,13 +69,13 @@
replace: "<sym-auto>&</sym-auto>") +
# step 7: keyword parameters should not be bolded
# step 7a: put </b> before each <param>
replace@(
match: "<param[^>]*>",
replace: "</b-auto>&") +
#
replace@(
#
match: "<param[^>]*>",
#
replace: "</b-auto>&") +
# step 7b: put <b> after each </param>
replace@(
match: "</param[^>]*>",
replace: "&<b-auto>") +
#
replace@(
#
match: "</param[^>]*>",
#
replace: "&<b-auto>") +
# step 8 : Italic reminder text
replace_rule(
match: "[(][^)\n]*[)]?",
...
...
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