Ciao Jan *Is your screenwriting plugin somewhere I can take a look so I can better understand your approach?*
Regarding parsers for what we need. The more I think about it the clearer it gets to me that what is needed is *a "Generic" parser *that you can quickly add codes to. For instance, in what I am currently working on the markup codes are something like this ... :s:7 INT. - PARK HUT - NIGHT :a Baxter enters carrying Perry Mason. :c BAXTER :p (coughs) :d Paul, are you there? Perry had an accident. To get those lines converted to HTML is quite easy using regular expressions. But I DON'T think the specific regexes should be individually "HARD CODED" into Javascript. Rather, we should devise a* Markup that is extensible* so you could apply the same method for potentially laying out many types of document. In short, we need *a method by which a user could easily add new codes*. I'm also thinking there could easily be LONG-FORM codes that a user could use till they learned the SHORT-FORM (above) ... For example ... :scene:7 INT. - PARK HUT - NIGHT :action Baxter enters carrying Perry Mason. :character BAXTER :parenthetical (coughs) :dialogue Paul, are you there? Perry had an accident. In addition, add-hoc markup could allow CONVERSION markup to be built -- Like being able to convert back & forth with Fountain markup. And also to be able to at least part convert plain text screenplays to a TW format. I'm working on a demo using Skeeve to illustrate those issues. It will take me a few more days to finish it. I'm hoping, after that, we'll be able to say *more precisely* what we asking of the JavaScript department. Just today's thoughts. Best wishes Josiah On Tuesday, 12 September 2017 09:40:29 UTC+2, Jan wrote: > > Hi Josiah, > Thanks for keeping this problem in mind, in the moment it is the biggest > issue that I have to solve befor issuing a new version of the > screenwriting-plugin. > Skeeve himself says that his pragma could be a deadly sword, but I think > the danger can be handled if it is prevented from beeing applied to > systemTiddlers: after adjusting all problems will disappear. > > So let me repeapt task for js-coders that would have to be solved to bring > forward special formats like screenplay and other documents: > It is to find a way to apply replacements with the replacePragma ( > http://tiddlystuff.tiddlyspot.com/#ReplacePragma) to Tiddlers based on a > TW-Filter. > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/de337d8d-f1c5-4142-b21a-8293b40322ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.