Great! Thanks!
I will look at that instantly.
Jan
Am 24.09.2017 um 12:14 schrieb BJ:
I have added the ablility to use single newlines for paragraphs to the
flexibility plugin
On Saturday, September 23, 2017 at 11:44:50 AM UTC+2, Jan wrote:
Hi BJ,
looking at the code for your headline-parser I already supposed
the double lines where in a preceding level.
I have to admit that my knowledge about TW's parsing and .js is to
basic to fully understand the rest of your email.
I think I understood we could write an extra-parser which give
Flexitype the ability to parse blocks. This of course would be great.
My solution at the moment is to insert the missing double lines
via Skeeves replacePragma
(http://tiddlystuff.tiddlyspot.com/#ReplacePragma
<http://tiddlystuff.tiddlyspot.com/#ReplacePragma>)which also
seems to preceed the regular parsing.
\replace /\n!/\n\n!/
\replace /\n:/\n\n:/
\replace /\n{{/\n\n:{{/
\replace /}}/}} /
The disadvantage of this is that this has to be inserted into each
Tiddler which has to be modified that way proposition would be
much better.
Yours Jan
Am 22.09.2017 um 22:56 schrieb BJ:
Hi Jan,
with the tw5 parser double lines are used to break the text into
blocks BEFORE any rules are applied, it is not possible to modify
the rules for this.
The parser can be given an extra regex, the regex is defined in
$:/core/modules/parsers/wikiparser/wikiparser.js as
new RegExp("(" + terminatorRegExpString + "|\\r?\\n\\r?\\n)","mg")
Where terminatorRegExpString can be given as a parameter to the
parseBlock() function.
The flexitype plugin could be modified to set the
'terminatorRegExpString'' as a parameter to parserBlock(), see
$:/core/modules/parsers/wikiparser/abstractwikiparser.js.
But it could be a challenge to design this regex.
cheers
BJ
On Friday, September 22, 2017 at 9:20:58 PM UTC+2, Jan wrote:
Hi BJ, Hi Josiah,
thanks for answering BJ and thanks for keeping on track Josiah...
My attempt to format dialogues in the the
screenwriting-plugin is "hijacking" TW's syntax for lists
and headlines because I want a syntax that does not need
closing tags.
In principle this works, my problem is, that it needs a blank
line ( two \n characters) two trigger these elements.
Because this produces the risk that the formatting is broken
by forgetting the blank line, I would like to have a modified
parser that triggers the elements without a preceding blank line.
I already looked at the modifications for headings and lists
but I could not find how to modifiy them to work that way...
It would be great if you could help.
Yours Jan.
Am 22.09.2017 um 19:25 schrieb @TiddlyTweeter:
Ciao again BJ
A second part of this is strongly related to THIS thread:
https://groups.google.com/forum/#!topic/tiddlywiki/9Lf0YHfMUZk
<https://groups.google.com/forum/#%21topic/tiddlywiki/9Lf0YHfMUZk>
concerning specific markup for "Fountain" screenplay
styling, which I think you know about?
This is currently more an open question than a clear
request. I'm not expecting a clear answer. Just maybe a few
clues :-).
I was kinda wondering if one could use Fountain format
regular expressions in ONE go, in one javascript component
rather having to make loads of formatting rules by using
your plugin?
Mark S. did a bunch of work around the Fountain format it
but I think, rightly, is sky of the somewhat esoteric
complexity of the central TW parsers. Screenplays are pretty
simple layout though.
I had wondered if your Flexitype could be used to help on
that? On this I'm unclear what to do or how. Any thoughts
might help.
Best wishes
Josiah
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at
https://groups.google.com/group/tiddlywiki
<https://groups.google.com/group/tiddlywiki>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/75aa0bf1-0bfd-4e5c-9f62-25d5543ae220%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/75aa0bf1-0bfd-4e5c-9f62-25d5543ae220%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
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+...@googlegroups.com <javascript:>.
To post to this group, send email to tiddl...@googlegroups.com
<javascript:>.
Visit this group at https://groups.google.com/group/tiddlywiki
<https://groups.google.com/group/tiddlywiki>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e7b189ac-70dd-4faf-a1cf-9bca93b093d4%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/e7b189ac-70dd-4faf-a1cf-9bca93b093d4%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
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
<mailto:tiddlywiki+unsubscr...@googlegroups.com>.
To post to this group, send email to tiddlywiki@googlegroups.com
<mailto: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/f49135ea-d723-4e10-aa8d-ac3932d2432c%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/f49135ea-d723-4e10-aa8d-ac3932d2432c%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/59C789D8.8050703%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.