Commit c14216d7 authored by twanvl's avatar twanvl

Tweaked the inline keyword regex a bit; "\"0:" now becomes a mana symbol if the " is a curly quote.

parent 79b10780
...@@ -206,7 +206,7 @@ init script: ...@@ -206,7 +206,7 @@ init script:
# context in which mana symbols are found # context in which mana symbols are found
mana_context := mana_context :=
"(?ix) # case insensitive, ignore whitespace "(?ix) # case insensitive, ignore whitespace
(^|[[:space:]\"(]) # start of a word (^|[[:space:]\"(“']) # start of a word
( <match>: # G: something ( <match>: # G: something
| <match>, # G, tap: something | <match>, # G, tap: something
| <match>[ ]can[ ]be[ ]pay | <match>[ ]can[ ]be[ ]pay
...@@ -241,7 +241,12 @@ init script: ...@@ -241,7 +241,12 @@ init script:
) + ) +
# 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_rule( replace_rule(
match: "(<atom-reminder-action>.*</atom-reminder-action></kw[^>]*>)([^\n(]+)", match: "(<atom-reminder-action>(?:(?!<kw-).)*</atom-reminder-action></kw[^>]*>)(((?!<atom-reminder| ?<kw-)[^\n(])+)",
replace: "\\2\\1"
) +
# step 2c : remove duplicate reminder text
replace_rule(
match: "(<atom-reminder-[^>]*>[^)]+[)]</atom-reminder-[^>]*>)([^\n]+)\\1"
replace: "\\2\\1" replace: "\\2\\1"
) + ) +
# step 3a : expand shortcut words ~ and CARDNAME # step 3a : expand shortcut words ~ and CARDNAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment