In Refnotes, I have to extract all macro parameters from tiddler text! This is done using find macro! and it is fast and efficient! However an issue is reported recently!
- Example: abbr macro
The abbr is a macro with two parameters:<<abbr term:"" dict:"">>
Users are allowed to call macro in any way they like, for example:
# has space + single quote <<abbr 'single qoute'>>
# has space + double quote <<abbr "double quote">>
# has space + double bracket <<abbr [[double quote w brackets]]>>
# with term: <<abbr term:"myterm1">>
# with term+dict+single quote: <<abbr term:'myterm-s' dict:'Glossary1'>>
# with term+dict+double quote: <<abbr term:"myterm-d" dict:"Glossary2">>
# with term+dict no quote: <<abbr term:myterm_noq dict:Glossary>>
# with term+dict reverse: <<abbr dict:"Glossary" term:"myterm_reverse">>
Refnotes handles all of them! However consider below cases where Refnotes fails
# pass names w space in term: <<abbr term:'myterm s' dict:'Glossary_1'>>
# pass names w space in dict: <<abbr term:'myterm_d' dict:'Glossary 2'>>
Both cases above have space in one the parameter! So, the question is
How extract macro parameters contains spaces?
See my suggestion below and let me know your solution!