Hi Bruce,

My Markdown editor, KeenWrite, integrates my curler, KeenQuotes. The code:

https://repo.autonoma.ca/?action=repo&repo=keenquotes.git&view=tree&ref=HEAD&path=src%2Fmain%2Fjava%2Fcom%2Fwhitemagicsoftware%2Fkeenquotes

Runnable online: https://whitemagicsoftware.com/keenquotes/

A number of edge cases cannot be curled correctly by regex-based curlers
(and some cases are completely ambiguous). Many scenarios are captured in
the following plain text and XML files:

https://repo.autonoma.ca/?action=repo&repo=keenquotes.git&view=tree&ref=HEAD&path=src%2Ftest%2Fresources%2Fcom%2Fwhitemagicsoftware%2Fkeenquotes%2Ftexts
I documented the algorithm on StackOverflow:

https://stackoverflow.com/a/73466438/59087

Should anyone be courageous enough to translate this into Lua, let me
know, as there are a few cases that can be curled correctly but are
currently treated as ambiguous.

Cheers!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to