Discussion:
[tw] BJ's Flexitype Plugin -- Can it help me be clean & lean?
@TiddlyTweeter
2017-09-22 12:38:50 UTC
Permalink
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?

That plugin basically clears down the \rules pragmas and lets you define
new Content Types from ground zero.

I'm thinking of using it to ease AD HOC quick development of Content Types
for specific purposes--Like iterative extraction of the best lines from
Perry Mason TV scripts.

My questions ...

1 - *Is it fully compatible with the latest TW*? The version on his site is
in TW 5.1.11.

2 - Any feedback from BJ, or anyone, who has used it on how well it works.

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 ***@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/d72764e4-7605-4a99-bbf6-e3f2345953d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-22 16:16:29 UTC
Permalink
Hi Josiah,
I have tried the demo with 5.1.14 and that works ok. You can define
numerous different types with this plugin to support different formating to
that provided in the core.

This is a general tool that can be configured in many ways, if you have a
example of what you want to support I can tell you the best way to do it.

All the best

BJ
Post by @TiddlyTweeter
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and lets you define
new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development of Content Types
for specific purposes--Like iterative extraction of the best lines from
Perry Mason TV scripts.
My questions ...
1 - *Is it fully compatible with the latest TW*? The version on his site
is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on how well it works.
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 ***@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/48d7a32d-4a5a-4248-8c9d-08b7e2aeba83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-22 17:00:10 UTC
Permalink
Ciao BJ

In my mind is the idea of a "*Regex Workshop*" of sorts. It seems to me
that TW could be superb for that. I'm still hazy on the details. But
different ways of rendering tiddlers seems central to that.

By which I mean a pragmatic tool that helps (1) develop new layouts and (2)
help extractions from the Tiddler text field. But TW native isn't good for
that because you can't SEE what is going on easily and what the Regex is
actually doing.

But even in a standard Tiddler the largely undocumented ...

\rules except html

... shows HTML as plain text. That is very helpful when you need to know
what is going on when you do extra Regexes into that "empty space".

I'm looking, initially to use *your plugin* to support that kind of viewing
of results, by defining a few different content types to switch between to
check .

*I'm assuming the plugin wipes down ALL pragma rules so you can then add
back as you want or not? Right? And that the JSON configuration file
defines what is added back?*

I can probably work it out because your documentation seems pretty clear to
me.

Let me play with it a bit, now I know for sure its 5.1.14 compliant--and if
I hit a problem I'll let you know.

It looks really useful!

Best wishes & thanks
Josiah
Post by BJ
I have tried the demo with 5.1.14 and that works ok. You can define
numerous different types with this plugin to support different formating to
that provided in the core.
This is a general tool that can be configured in many ways, if you have a
example of what you want to support I can tell you the best way to do it.
--
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 ***@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/20a42986-500b-4cee-a016-c415b9de3f43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-22 17:25:02 UTC
Permalink
Ciao again BJ

A second part of this is strongly related to THIS thread:
https://groups.google.com/forum/#!topic/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 ***@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/75aa0bf1-0bfd-4e5c-9f62-25d5543ae220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-22 19:20:45 UTC
Permalink
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.
Post by @TiddlyTweeter
Ciao again BJ
https://groups.google.com/forum/#!topic/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
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/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.
--
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 ***@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/59C5628D.4010501%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-22 20:56:21 UTC
Permalink
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
Post by Jan
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.
Ciao again BJ
https://groups.google.com/forum/#!topic/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
<javascript:>.
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/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.
--
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 ***@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/e7b189ac-70dd-4faf-a1cf-9bca93b093d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-23 09:44:39 UTC
Permalink
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)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
Post by 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
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.
Post by @TiddlyTweeter
Ciao again BJ
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,
<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/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
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/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.
--
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 ***@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/59C62D07.5070409%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-24 10:14:00 UTC
Permalink
I have added the ablility to use single newlines for paragraphs to the
flexibility plugin
Post by Jan
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)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
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
Post by Jan
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.
Ciao again BJ
https://groups.google.com/forum/#!topic/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
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/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.
--
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
<javascript:>.
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/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.
--
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 ***@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.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-24 10:32:56 UTC
Permalink
Great! Thanks!
I will look at that instantly.

Jan
Post by BJ
I have added the ablility to use single newlines for paragraphs to the
flexibility plugin
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
Post by 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
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.
Post by @TiddlyTweeter
Ciao again BJ
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
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,
<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
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+***@googlegroups.com.
To post to this group, send email to ***@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.
BJ
2017-09-24 10:11:46 UTC
Permalink
I've added a regex parser:

http://flexibility.tiddlyspot.com/

all the best
BJ
Post by @TiddlyTweeter
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and lets you define
new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development of Content Types
for specific purposes--Like iterative extraction of the best lines from
Perry Mason TV scripts.
My questions ...
1 - *Is it fully compatible with the latest TW*? The version on his site
is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on how well it works.
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 ***@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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-24 11:04:38 UTC
Permalink
Ciao BJ

Brilliant! Thankyou!

I had a quick look and see that you can add the flag "g".

Will it take the other JavaScript flags like "m" and "i"? Or they are just
implicitly enabled already?

Best wishes
Josiah
Post by BJ
http://flexibility.tiddlyspot.com/
--
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 ***@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/e9f9c301-c7d8-4005-b093-8e217aea4ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-24 11:50:34 UTC
Permalink
Hi BJ!

Thanks for the plugin, it seems to be the solution.
At a first step I tried out Flexitype Regex Demo
<http://flexibility.tiddlyspot.com/#Flexitype%20Regex%20Demo> because it
seems to be fully compatible with my replacePragma workarround which
also solves other issues.

I imported $:/plugins/bj/flexitypeand RegxParseParam
<http://flexibility.tiddlyspot.com/#RegxParseParam>, inserted my
ReplacePragma-rules into testregexdefs

|/\n!/\n\n!/
/\n:/\n\n:/
/\n{{/\n\n:{{/
/}}/}} /

and set the type of the tiddler to modify to text/vnd.tiddlywiki;flexibility=replace

Should this already work or did I forget something.

Yours Jan
|
Post by BJ
http://flexibility.tiddlyspot.com/
all the best
BJ
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and lets you
define new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development of
Content Types for specific purposes--Like iterative extraction of
the best lines from Perry Mason TV scripts.
My questions ...
1 - _Is it fully compatible with the latest TW_? The version on
his site is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on how well it works.
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
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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/ff49e61e-1db9-43b0-928b-9d2b784424a8%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C79C0A.4020203%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-24 13:04:53 UTC
Permalink
you also need the tiddler called 'replace'
Post by Jan
Hi BJ!
Thanks for the plugin, it seems to be the solution.
At a first step I tried out Flexitype Regex Demo
<http://flexibility.tiddlyspot.com/#Flexitype%20Regex%20Demo> because it
seems to be fully compatible with my replacePragma workarround which also
solves other issues.
I imported $:/plugins/bj/flexitype and RegxParseParam
<http://flexibility.tiddlyspot.com/#RegxParseParam>, inserted my
ReplacePragma-rules into testregexdefs
/\n!/\n\n!/
/\n:/\n\n:/
/\n{{/\n\n:{{/
/}}/}} /
and set the type of the tiddler to modify to text/vnd.tiddlywiki;flexibility=replace
Should this already work or did I forget something.
Yours Jan
http://flexibility.tiddlyspot.com/
all the best
BJ
Post by @TiddlyTweeter
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and lets you define
new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development of Content
Types for specific purposes--Like iterative extraction of the best lines
from Perry Mason TV scripts.
My questions ...
1 - *Is it fully compatible with the latest TW*? The version on his site
is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on how well it works.
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
<javascript:>.
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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/ff49e61e-1db9-43b0-928b-9d2b784424a8%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+***@googlegroups.com.
To post to this group, send email to ***@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/6250b326-14a5-4f18-b310-54b4888bfc7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-24 13:07:57 UTC
Permalink
also be aware that you have to manually refresh a target tiddler (the one
which you want the changes to act on) if you change the regex rules, or the
other tiddlers define the flexibility behaviour.
Post by BJ
you also need the tiddler called 'replace'
Post by Jan
Hi BJ!
Thanks for the plugin, it seems to be the solution.
At a first step I tried out Flexitype Regex Demo
<http://flexibility.tiddlyspot.com/#Flexitype%20Regex%20Demo> because it
seems to be fully compatible with my replacePragma workarround which also
solves other issues.
I imported $:/plugins/bj/flexitype and RegxParseParam
<http://flexibility.tiddlyspot.com/#RegxParseParam>, inserted my
ReplacePragma-rules into testregexdefs
/\n!/\n\n!/
/\n:/\n\n:/
/\n{{/\n\n:{{/
/}}/}} /
and set the type of the tiddler to modify to text/vnd.tiddlywiki;flexibility=replace
Should this already work or did I forget something.
Yours Jan
http://flexibility.tiddlyspot.com/
all the best
BJ
Post by @TiddlyTweeter
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and lets you define
new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development of Content
Types for specific purposes--Like iterative extraction of the best lines
from Perry Mason TV scripts.
My questions ...
1 - *Is it fully compatible with the latest TW*? The version on his
site is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on how well it works.
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
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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/ff49e61e-1db9-43b0-928b-9d2b784424a8%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+***@googlegroups.com.
To post to this group, send email to ***@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/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-24 13:51:21 UTC
Permalink
Hello BJ
Thanks again. Importing "replace" did change the rendering.
But at the moment the plugin (or my implementation) seem to have
difficulties with the |\n.
||The replaced \n\n: and ||\n\n!||appear in the rendered Tiddler.

Yours Jan
Post by BJ
also be aware that you have to manually refresh a target tiddler (the
one which you want the changes to act on) if you change the regex
rules, or the other tiddlers define the flexibility behaviour.
you also need the tiddler called 'replace'
Hi BJ!
Thanks for the plugin, it seems to be the solution.
At a first step I tried out Flexitype Regex Demo
<http://flexibility.tiddlyspot.com/#Flexitype%20Regex%20Demo>
because it seems to be fully compatible with my replacePragma
workarround which also solves other issues.
I imported $:/plugins/bj/flexitypeand RegxParseParam
<http://flexibility.tiddlyspot.com/#RegxParseParam>, inserted
my ReplacePragma-rules into testregexdefs
|/\n!/\n\n!/
/\n:/\n\n:/
/\n{{/\n\n:{{/
/}}/}} /
and set the type of the tiddler to modify to text/vnd.tiddlywiki;flexibility=replace
Should this already work or did I forget something.
Yours Jan
|
Post by BJ
http://flexibility.tiddlyspot.com/
<http://flexibility.tiddlyspot.com/>
all the best
BJ
On Friday, September 22, 2017 at 2:38:50 PM UTC+2,
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and
lets you define new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development
of Content Types for specific purposes--Like iterative
extraction of the best lines from Perry Mason TV scripts.
My questions ...
1 - _Is it fully compatible with the latest TW_? The
version on his site is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on
how well it works.
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
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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/ff49e61e-1db9-43b0-928b-9d2b784424a8%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
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/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C7B859.3020601%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-24 14:25:03 UTC
Permalink
yes I need to unescape the '\' - I will probably make do the update tonight.
Post by Jan
Hello BJ
Thanks again. Importing "replace" did change the rendering.
But at the moment the plugin (or my implementation) seem to have
difficulties with the \n.
The replaced \n\n: and \n\n! appear in the rendered Tiddler.
Yours Jan
also be aware that you have to manually refresh a target tiddler (the one
which you want the changes to act on) if you change the regex rules, or the
other tiddlers define the flexibility behaviour.
Post by BJ
you also need the tiddler called 'replace'
Post by Jan
Hi BJ!
Thanks for the plugin, it seems to be the solution.
At a first step I tried out Flexitype Regex Demo
<http://flexibility.tiddlyspot.com/#Flexitype%20Regex%20Demo> because
it seems to be fully compatible with my replacePragma workarround which
also solves other issues.
I imported $:/plugins/bj/flexitype and RegxParseParam
<http://flexibility.tiddlyspot.com/#RegxParseParam>, inserted my
ReplacePragma-rules into testregexdefs
/\n!/\n\n!/
/\n:/\n\n:/
/\n{{/\n\n:{{/
/}}/}} /
and set the type of the tiddler to modify to text/vnd.tiddlywiki;flexibility=replace
Should this already work or did I forget something.
Yours Jan
http://flexibility.tiddlyspot.com/
all the best
BJ
Post by @TiddlyTweeter
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas and lets you
define new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick development of Content
Types for specific purposes--Like iterative extraction of the best lines
from Perry Mason TV scripts.
My questions ...
1 - *Is it fully compatible with the latest TW*? The version on his
site is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it on how well it works.
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
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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/ff49e61e-1db9-43b0-928b-9d2b784424a8%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
<javascript:>.
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/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%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+***@googlegroups.com.
To post to this group, send email to ***@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/07444197-d2cb-4884-afc0-0786f8dd30c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-24 14:55:57 UTC
Permalink
Ciao BJ (& Jan)

Couple of teething issues ...

1 - When I edit "testregexdefs" and save it my wiki does an auto refesh and
all tiddlers except "testregexdefs" get closed. Is that the expected
behaviour?

2 - A sequence of regex stalls at this one ...

/\(.+?\)//

... is this related to the "escape" problem? If I take that definition out
then the sequence completes.

Anyway its looking very hopeful. So thanks!

Best wishes
Josiah
Post by BJ
yes I need to unescape the '\' - I will probably make do the update tonight.
--
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 ***@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/fcfcbb07-f43a-4c76-ac03-8d353e5ab68f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-24 15:08:57 UTC
Permalink
Ciao BJ

Quick update on point (2) -- if I use a single space in the replace it
works. It doesn't with a nul string.

/\(.+?\)/ /g

J.


2 - A sequence of regex stalls at this one ...
/\(.+?\)//g
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 ***@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/f042d279-38a2-4d6b-b0dd-220c1f66a268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-24 21:05:00 UTC
Permalink
I cannot reproduce your first issue, can you give details of you setup?
(browser, tw plugin etc)

I have put up a new version which fixes issue 2

cheers
BJ
Post by @TiddlyTweeter
Ciao BJ (& Jan)
Couple of teething issues ...
1 - When I edit "testregexdefs" and save it my wiki does an auto refesh
and all tiddlers except "testregexdefs" get closed. Is that the expected
behaviour?
2 - A sequence of regex stalls at this one ...
/\(.+?\)//g
... is this related to the "escape" problem? If I take that definition out
then the sequence completes.
Anyway its looking very hopeful. So thanks!
Best wishes
Josiah
Post by BJ
yes I need to unescape the '\' - I will probably make do the update tonight.
--
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 ***@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/01058a69-8f49-422b-ab0c-f9450903dc5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-24 22:01:56 UTC
Permalink
Hi BJ,
Works like *magic*, thanks a lot.
What's the meaning of the little modal which appears... (shirt <okay>?)
Is it a little hidden Zappaesque message or a testmode-remainder?
_
...and another more important issue:_
At the moment saving a Tiddler with the
vnd.tiddlywiki;flexibility=replace type but without text in the
textfield produces the red screen of death.

Yours Jan
Post by BJ
I cannot reproduce your first issue, can you give details of you
setup? (browser, tw plugin etc)
I have put up a new version which fixes issue 2
cheers
BJ
Ciao BJ (& Jan)
Couple of teething issues ...
1 - When I edit "testregexdefs" and save it my wiki does an auto
refesh and all tiddlers except "testregexdefs" get closed. Is that
the expected behaviour?
2 - A sequence of regex stalls at this one ...
|
/\(.+?\)//g
|
... is this related to the "escape" problem? If I take that
definition out then the sequence completes.
Anyway its looking very hopeful. So thanks!
Best wishes
Josiah
yes I need to unescape the '\' - I will probably make do the
update tonight.
--
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
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/01058a69-8f49-422b-ab0c-f9450903dc5d%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/01058a69-8f49-422b-ab0c-f9450903dc5d%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C82B54.5090606%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 05:45:05 UTC
Permalink
I am not seeing this with the latest verision?
can you post the red message here?
Post by Jan
Hi BJ,
Works like *magic*, thanks a lot.
What's the meaning of the little modal which appears... (shirt <okay>?)
Is it a little hidden Zappaesque message or a testmode-remainder?
* ...and another more important issue:*
At the moment saving a Tiddler with the vnd.tiddlywiki;flexibility=replace
type but without text in the textfield produces the red screen of death.
Yours Jan
I cannot reproduce your first issue, can you give details of you setup?
(browser, tw plugin etc)
I have put up a new version which fixes issue 2
cheers
BJ
Post by @TiddlyTweeter
Ciao BJ (& Jan)
Couple of teething issues ...
1 - When I edit "testregexdefs" and save it my wiki does an auto refesh
and all tiddlers except "testregexdefs" get closed. Is that the expected
behaviour?
2 - A sequence of regex stalls at this one ...
/\(.+?\)//g
... is this related to the "escape" problem? If I take that definition
out then the sequence completes.
Anyway its looking very hopeful. So thanks!
Best wishes
Josiah
Post by BJ
yes I need to unescape the '\' - I will probably make do the update tonight.
--
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
<javascript:>.
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/01058a69-8f49-422b-ab0c-f9450903dc5d%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/01058a69-8f49-422b-ab0c-f9450903dc5d%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+***@googlegroups.com.
To post to this group, send email to ***@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/0d7eda36-2cad-4598-a708-c725d0aca6f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-25 08:39:25 UTC
Permalink
Hej BJ
In the actual version this only happens if the tiddler really does not
have a text-field at all. Unfortunately my New-Scene-Button does
produce tiddlers without text-field. I will change that but I guess its
safer to elimanate that behaviour. Because if it is there this
particular red screen is more stubborn than usual.

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart
TiddlyWiki by refreshing your browser
TypeError: text is undefined

The shirt-modal is still there...

Yours Jan
Post by BJ
I am not seeing this with the latest verision?
can you post the red message here?
Hi BJ,
Works like *magic*, thanks a lot.
What's the meaning of the little modal which appears... (shirt <okay>?)
Is it a little hidden Zappaesque message or a testmode-remainder?
_
...and another more important issue:_
At the moment saving a Tiddler with the
vnd.tiddlywiki;flexibility=replace type but without text in the
textfield produces the red screen of death.
Yours Jan
Post by BJ
I cannot reproduce your first issue, can you give details of you
setup? (browser, tw plugin etc)
I have put up a new version which fixes issue 2
cheers
BJ
Ciao BJ (& Jan)
Couple of teething issues ...
1 - When I edit "testregexdefs" and save it my wiki does an
auto refesh and all tiddlers except "testregexdefs" get
closed. Is that the expected behaviour?
2 - A sequence of regex stalls at this one ...
|
/\(.+?\)//g
|
... is this related to the "escape" problem? If I take that
definition out then the sequence completes.
Anyway its looking very hopeful. So thanks!
Best wishes
Josiah
yes I need to unescape the '\' - I will probably make do
the update tonight.
--
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,
<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/01058a69-8f49-422b-ab0c-f9450903dc5d%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/01058a69-8f49-422b-ab0c-f9450903dc5d%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
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/0d7eda36-2cad-4598-a708-c725d0aca6f2%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/0d7eda36-2cad-4598-a708-c725d0aca6f2%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C8C0BD.7050202%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-25 10:08:17 UTC
Permalink
Hello BJ,
I have yet another issue which is related to the setting of the
screenplayeditor I am building.
The type vnd.tiddlywiki;flexibility=replace does not work for choosing
an EditorTypeMapping like $:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
For me this would be a little sad because my work on the
screenplayeditor (http://storywriting.tiddlyspot.com/) started with
applying a textcompletition...
Could you give your type a shorter name? (And could you change the names
of replace, RegxParseParam an|d ||testregexdefs to systemtiddlers.)

So thanks for all your work
yours Jan
|


-------- Weitergeleitete Nachricht --------
Betreff: Re: [tw] Re: BJ's Flexitype Plugin -- Can it help me be clean
& lean?
Datum: Mon, 25 Sep 2017 10:39:25 +0200
Von: Jan <***@googlemail.com>
An: ***@googlegroups.com



Hej BJ
In the actual version this only happens if the tiddler really does not
have a text-field at all. Unfortunately my New-Scene-Button does
produce tiddlers without text-field. I will change that but I guess its
safer to elimanate that behaviour. Because if it is there this
particular red screen is more stubborn than usual.

Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart
TiddlyWiki by refreshing your browser
TypeError: text is undefined

The shirt-modal is still there...

Yours Jan
Post by BJ
I am not seeing this with the latest verision?
can you post the red message here?
Hi BJ,
Works like *magic*, thanks a lot.
What's the meaning of the little modal which appears... (shirt <okay>?)
Is it a little hidden Zappaesque message or a testmode-remainder?
_
...and another more important issue:_
At the moment saving a Tiddler with the
vnd.tiddlywiki;flexibility=replace type but without text in the
textfield produces the red screen of death.
Yours Jan
Post by BJ
I cannot reproduce your first issue, can you give details of you
setup? (browser, tw plugin etc)
I have put up a new version which fixes issue 2
cheers
BJ
Ciao BJ (& Jan)
Couple of teething issues ...
1 - When I edit "testregexdefs" and save it my wiki does an
auto refesh and all tiddlers except "testregexdefs" get
closed. Is that the expected behaviour?
2 - A sequence of regex stalls at this one ...
|
/\(.+?\)//g
|
... is this related to the "escape" problem? If I take that
definition out then the sequence completes.
Anyway its looking very hopeful. So thanks!
Best wishes
Josiah
yes I need to unescape the '\' - I will probably make do
the update tonight.
--
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,
<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/01058a69-8f49-422b-ab0c-f9450903dc5d%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/01058a69-8f49-422b-ab0c-f9450903dc5d%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
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/0d7eda36-2cad-4598-a708-c725d0aca6f2%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/0d7eda36-2cad-4598-a708-c725d0aca6f2%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C8D591.7070905%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 10:19:53 UTC
Permalink
Ciao Jan & BJ

Jan I believe you can create your own by cloning them with any names you
want so long as they reference each other??

Josiah
Post by Jan
Could you give your type a shorter name? (And could you change the names
of replace, RegxParseParam and testregexdefs ...
--
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 ***@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/467fded0-2c24-4b89-a32c-1f332e7e8591%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 12:44:59 UTC
Permalink
Ciao BJ & Jan

I agree with Jan if those changes are possible.

I also think it would be fine in the editor to not have "flexibility" as
the type *but just "fl" or "flex*. The reason I ask is the Content Type in
the editor is so narrow so you can't see what type it is. ... i.e.

But, maybe the Type box in the editor should actually be widened via CSS?
That's something I'll take up on GitHub.

Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing an
EditorTypeMapping like $:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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 ***@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/b2b14da8-c302-477f-9957-aaf1caf452bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 14:36:58 UTC
Permalink
as text/vnd.tiddlywiki is the default you do not need to put it in the type
def- i.e. just put ;flexibility=replace
Post by @TiddlyTweeter
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have "flexibility" as
the type *but just "fl" or "flex*. The reason I ask is the Content Type
in the editor is so narrow so you can't see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be widened via CSS?
That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing an
EditorTypeMapping like $:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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 ***@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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-25 19:49:41 UTC
Permalink
Hi BJ,
Thanks; this is indeed much shorter...but it still not compatible with
the EditorTypeMapping.
$:/config/EditorTypeMappings/text/;flexibility=replace
<cid:***@googlemail.com> will not work.
The textcompletition cannot help with this name...

Jan
Post by BJ
as text/vnd.tiddlywiki is the default you do not need to put it in the
type def- i.e. just put ;flexibility=replace
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have
"flexibility" as the type _but just "fl" or "flex_. The reason I
ask is the Content Type in the editor is so narrow so you can't
see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be widened
via CSS? That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing
an EditorTypeMapping like
$:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C95DD5.8050809%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 22:07:53 UTC
Permalink
The correct tiddler for editor type mapping is
$:/config/EditorTypeMappings/text/vnd.tiddlywiki;flexibility=replace,
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
but the buttons are controlled in a different manner eg see

$:/core/ui/EditorToolbar/bold

and look at field 'condition' - this determines if the button is show
Post by Jan
Hi BJ,
Thanks; this is indeed much shorter...but it still not compatible with the
EditorTypeMapping. $:/config/EditorTypeMappings/text/;flexibility=replace
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
will not work.
The textcompletition cannot help with this name...
Jan
as text/vnd.tiddlywiki is the default you do not need to put it in the
type def- i.e. just put ;flexibility=replace
Post by @TiddlyTweeter
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have "flexibility" as
the type *but just "fl" or "flex*. The reason I ask is the Content Type
in the editor is so narrow so you can't see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be widened via CSS?
That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing an
EditorTypeMapping like $:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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
<javascript:>.
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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+***@googlegroups.com.
To post to this group, send email to ***@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/0efe4954-bd25-4bf9-b0bc-b3abff10bec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 22:27:41 UTC
Permalink
one possibility is to change the condition:

[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]

to

[<targetTiddler>!has[type]]
[<targetTiddler>regexp:type[text/vnd.tiddlywiki]]
Post by BJ
The correct tiddler for editor type mapping is
$:/config/EditorTypeMappings/text/vnd.tiddlywiki;flexibility=replace,
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
but the buttons are controlled in a different manner eg see
$:/core/ui/EditorToolbar/bold
and look at field 'condition' - this determines if the button is show
Post by Jan
Hi BJ,
Thanks; this is indeed much shorter...but it still not compatible with
the EditorTypeMapping.
$:/config/EditorTypeMappings/text/;flexibility=replace
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
will not work.
The textcompletition cannot help with this name...
Jan
as text/vnd.tiddlywiki is the default you do not need to put it in the
type def- i.e. just put ;flexibility=replace
Post by @TiddlyTweeter
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have "flexibility" as
the type *but just "fl" or "flex*. The reason I ask is the Content Type
in the editor is so narrow so you can't see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be widened via
CSS? That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing an
EditorTypeMapping like $:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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+***@googlegroups.com.
To post to this group, send email to ***@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/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-25 23:08:52 UTC
Permalink
Hi BJ,
thanks for your tipps about the EditorButtons...yet it is something else
I want:
If you look at http://storywriting.tiddlyspot.com/ you find the
work-in-progress Screenwriting tool I am building.
If you type vvLa in the open Draft it is automatically completed to
{{Laurel}} (vv is the trigger because it does not appear in the language
and la are the first two letters of a tiddler tagged role).
This is Alain Dutechs comptext code which I truned int a plugin for
screenwriting... and it needs a Tiddler mapping the editor to comptext.
I hope you see that that you see that at the moment the two things I
need the most are not working together.

Yours Jan
Post by BJ
[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
to
[<targetTiddler>!has[type]]
[<targetTiddler>regexp:type[text/vnd.tiddlywiki]]
The correct tiddler for editor type mapping is
$:/config/EditorTypeMappings/text/vnd.tiddlywiki;flexibility=replace,
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
but the buttons are controlled in a different manner eg see
$:/core/ui/EditorToolbar/bold
and look at field 'condition' - this determines if the button is show
Hi BJ,
Thanks; this is indeed much shorter...but it still not
compatible with the EditorTypeMapping.
$:/config/EditorTypeMappings/text/;flexibility=replace
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
will not work.
The textcompletition cannot help with this name...
Jan
Post by BJ
as text/vnd.tiddlywiki is the default you do not need to put
it in the type def- i.e. just put ;flexibility=replace
On Monday, September 25, 2017 at 2:44:59 PM UTC+2,
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have
"flexibility" as the type _but just "fl" or "flex_. The
reason I ask is the Content Type in the editor is so
narrow so you can't see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be
widened via CSS? That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for
choosing an EditorTypeMapping like
$:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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
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/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C98C84.4090307%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-26 06:34:56 UTC
Permalink
it works when I try it, or I should say in exactly the same way as with
'text/vnd.tiddlywiki'

I see in the type dropdown an incorrect type of
"vnd.tiddlywiki;flexibility=replace"
Post by Jan
Hi BJ,
thanks for your tipps about the EditorButtons...yet it is something else I
If you look at http://storywriting.tiddlyspot.com/ you find the
work-in-progress Screenwriting tool I am building.
If you type vvLa in the open Draft it is automatically completed to
{{Laurel}} (vv is the trigger because it does not appear in the language
and la are the first two letters of a tiddler tagged role).
This is Alain Dutechs comptext code which I truned int a plugin for
screenwriting... and it needs a Tiddler mapping the editor to comptext. I
hope you see that that you see that at the moment the two things I need the
most are not working together.
Yours Jan
[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
to
[<targetTiddler>!has[type]]
[<targetTiddler>regexp:type[text/vnd.tiddlywiki]]
Post by BJ
The correct tiddler for editor type mapping is
$:/config/EditorTypeMappings/text/vnd.tiddlywiki;flexibility=replace,
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
but the buttons are controlled in a different manner eg see
$:/core/ui/EditorToolbar/bold
and look at field 'condition' - this determines if the button is show
Post by Jan
Hi BJ,
Thanks; this is indeed much shorter...but it still not compatible with
the EditorTypeMapping.
$:/config/EditorTypeMappings/text/;flexibility=replace
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
will not work.
The textcompletition cannot help with this name...
Jan
as text/vnd.tiddlywiki is the default you do not need to put it in the
type def- i.e. just put ;flexibility=replace
Post by @TiddlyTweeter
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have "flexibility"
as the type *but just "fl" or "flex*. The reason I ask is the Content
Type in the editor is so narrow so you can't see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be widened via
CSS? That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing an
EditorTypeMapping like $:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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
<javascript:>.
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/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%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+***@googlegroups.com.
To post to this group, send email to ***@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/d7e0bd30-23d0-4fb7-a832-28744fb261ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-26 08:08:24 UTC
Permalink
Heureka! It works!
Thanks for bugtracking BJ
Jan
Post by BJ
it works when I try it, or I should say in exactly the same way as
with 'text/vnd.tiddlywiki'
I see in the type dropdown an incorrect type of
"vnd.tiddlywiki;flexibility=replace"
Hi BJ,
thanks for your tipps about the EditorButtons...yet it is
If you look at http://storywriting.tiddlyspot.com/
<http://storywriting.tiddlyspot.com/> you find the
work-in-progress Screenwriting tool I am building.
If you type vvLa in the open Draft it is automatically completed
to {{Laurel}} (vv is the trigger because it does not appear in the
language and la are the first two letters of a tiddler tagged role).
This is Alain Dutechs comptext code which I truned int a plugin
for screenwriting... and it needs a Tiddler mapping the editor to
comptext. I hope you see that that you see that at the moment the
two things I need the most are not working together.
Yours Jan
Post by BJ
[<targetTiddler>!has[type]]
[<targetTiddler>type[text/vnd.tiddlywiki]]
to
[<targetTiddler>!has[type]]
[<targetTiddler>regexp:type[text/vnd.tiddlywiki]]
The correct tiddler for editor type mapping is
$:/config/EditorTypeMappings/text/vnd.tiddlywiki;flexibility=replace,
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
but the buttons are controlled in a different manner eg see
$:/core/ui/EditorToolbar/bold
and look at field 'condition' - this determines if the button is show
Hi BJ,
Thanks; this is indeed much shorter...but it still not
compatible with the EditorTypeMapping.
$:/config/EditorTypeMappings/text/;flexibility=replace
<https://groups.google.com/group/tiddlywiki/attach/7f230d0c91351/Rechtgeschieht.html?part=0.1.1&authuser=0>
will not work.
The textcompletition cannot help with this name...
Jan
Post by BJ
as text/vnd.tiddlywiki is the default you do not need to
put it in the type def- i.e. just put ;flexibility=replace
On Monday, September 25, 2017 at 2:44:59 PM UTC+2,
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not
have "flexibility" as the type _but just "fl" or
"flex_. The reason I ask is the Content Type in the
editor is so narrow so you can't see what type it
is. ... i.e.
But, maybe the Type box in the editor should
actually be widened via CSS? That's something I'll
take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not
work for choosing an EditorTypeMapping like
$:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
You received this message because you are subscribed to
the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails
To post to this group, send email to
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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,
<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/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/c2947fb5-0cc0-4e5f-9efb-ba6baa7c49e1%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
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/d7e0bd30-23d0-4fb7-a832-28744fb261ee%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/d7e0bd30-23d0-4fb7-a832-28744fb261ee%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+***@googlegroups.com.
To post to this group, send email to ***@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/59CA0AF8.6030106%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-25 19:50:10 UTC
Permalink
Hi BJ,
Thanks; this is indeed much shorter...but it still not compatible with
the EditorTypeMapping.
$:/config/EditorTypeMappings/text/;flexibility=replace
<cid:***@googlemail.com> will not work.
The textcompletition cannot help with this name...

Jan
Post by BJ
as text/vnd.tiddlywiki is the default you do not need to put it in the
type def- i.e. just put ;flexibility=replace
Ciao BJ & Jan
I agree with Jan if those changes are possible.
I also think it would be fine in the editor to not have
"flexibility" as the type _but just "fl" or "flex_. The reason I
ask is the Content Type in the editor is so narrow so you can't
see what type it is. ... i.e.
But, maybe the Type box in the editor should actually be widened
via CSS? That's something I'll take up on GitHub.
Best wishes
Josiah
vnd.tiddlywiki;flexibility=replace does not work for choosing
an EditorTypeMapping like
$:/config/EditorTypeMappings/text/vnd.tiddlywiki .
I guess either the ; or the = cause problems here.
--
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
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/8083f454-bd3a-4a34-866c-6469fde6f82f%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/8083f454-bd3a-4a34-866c-6469fde6f82f%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C95DF2.5080507%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 09:39:26 UTC
Permalink
Ciao BJ

On issue 1. Its probably my bad & nothing to do with you. I did a fresh
install in a clean TW & now do not have the issue. It may be an interaction
with a plugin. I will add them back one by one & if the issue reoccurs I'll
alert you.
Post by BJ
I cannot reproduce your first issue, can you give details of you setup?
(browser, tw plugin etc)
1 - When I edit "testregexdefs" and save it my wiki does an auto refesh and
Post by BJ
Post by @TiddlyTweeter
all tiddlers except "testregexdefs" get closed. Is that the expected
behaviour?
I have put up a new version which fixes issue 2
Thankyou!

J.
--
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 ***@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/c1595d8f-419f-4f2f-9d5a-84113a1980f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 10:53:30 UTC
Permalink
Ciao BJ

Great gadget! I'm hitting teething issues that I think are to do with me
better understanding what is on & what if off.

I have a text I'm processing using the text/plain;flexibility=replace .
The input text looks like this ...

:s A RIVER.

:a We’re underwater, watching a fat catfish swim along.

:a This is The Beast.

The regex are ...

1 -- /The Beast/The Monster/g
2 -- /_u:(.+):u_/<span class="mss-in-u">$1<\/span>/g
3 -- /^:([a-z]+):?(\d*)\s+(.+)\s*$/<p class="mss-s1-$1">$3<\/p>/


Lines 1 & 2 work. Line 3 fails. In looking at the output HTML I see ..

<dl><dd>s A RIVER.</dd><dd>a We’re underwater, watching a fat catfish swim
along. </dd><dd>a This is The Monster.</dd></dl>

I had thought your regex "replace" parser ran BEFORE the standard ones??

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 ***@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/8fc5c547-51ea-4734-8d28-e9601081417b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 12:09:26 UTC
Permalink
Ciao BJ

in my last post I meant this ...

*I have a text I'm processing using the
text/vnd.tiddlywiki;flexibility=replace . The input text looks like this
... etc*

Apologies for any confusion.
J.
--
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 ***@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/b3916b37-98c2-47f6-9521-bf0468b5efe2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 14:34:54 UTC
Permalink
the special chars ^$ refer to the beginning and end of the tiddler
Post by @TiddlyTweeter
Ciao BJ
Great gadget! I'm hitting teething issues that I think are to do with me
better understanding what is on & what if off.
I have a text I'm processing using the
text/vnd.tiddlywiki;flexibility=replace . The input text looks like this
...
:s A RIVER.
:a We’re underwater, watching a fat catfish swim along.
:a This is The Beast.
The regex are ...
1 -- /The Beast/The Monster/g
2 -- /_u:(.+):u_/<span class="mss-in-u">$1<\/span>/g
3 -- /^:([a-z]+):?(\d*)\s+(.+)\s*$/<p class="mss-s1-$1">$3<\/p>/
Lines 1 & 2 work. Line 3 fails. In looking at the output HTML I see ..
<dl><dd>s A RIVER.</dd><dd>a We’re underwater, watching a fat catfish
swim along. </dd><dd>a This is The Monster.</dd></dl>
I had thought your regex "replace" parser ran BEFORE the standard ones??
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 ***@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/e447059f-d8de-4931-97b7-4586703a2c81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 15:07:14 UTC
Permalink
Ciao BJ

Normally in Regex ^ & $ refer to the beginning and end of a string the
regex engine flags the scope of, *and that is normally a line*. Skeeves
ReplacePragma goes that route. That regex works using that syntax, so I was
surprised it didn't work here since its the same underlying system? Is it
something to do with the status of the "m" flag the difference from Skeeve?

It complicates it a bit to think in terms of of ^ $ not being line start
and ends--but rather being Tiddler starts & ends. But I see if I can work
with it.

Best wishes
Josiah
Post by BJ
the special chars ^$ refer to the beginning and end of the tiddler
Post by @TiddlyTweeter
3 -- /^:([a-z]+):?(\d*)\s+(.+)\s*$/<p class="mss-s1-$1">$3<\/p>/
Line 3 fails.
--
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 ***@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/f3c2fdcc-703f-4987-96d1-233498df3444%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 16:50:29 UTC
Permalink
with javascript regexs you need to use the 'm' flag to have ^$ match the
begin and end of lines.
Post by @TiddlyTweeter
Ciao BJ
Normally in Regex ^ & $ refer to the beginning and end of a string the
regex engine flags the scope of, *and that is normally a line*. Skeeves
ReplacePragma goes that route. That regex works using that syntax, so I was
surprised it didn't work here since its the same underlying system? Is it
something to do with the status of the "m" flag the difference from Skeeve?
It complicates it a bit to think in terms of ^ $ not being line start and
ends--but rather being Tiddler starts & ends. But I see if I can work with
it.
Best wishes
Josiah
Post by BJ
the special chars ^$ refer to the beginning and end of the tiddler
Post by @TiddlyTweeter
3 -- /^:([a-z]+):?(\d*)\s+(.+)\s*$/<p class="mss-s1-$1">$3<\/p>/
Line 3 fails.
--
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 ***@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/c6fbe300-032e-48ef-a43e-92a3cdc655a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 17:22:18 UTC
Permalink
Ciao BJ

Does your implementation in Flexi Reg support the "m" flag?

One of the advantages of "^" "$" is they are null strings indicating place,
not content. So you don't have to explicitly restore them when using
replace, unlike explicit actual matches you might have to. So for many
situations they are easier to use.

Especially for documents with markup that usually is the first thing on the
line,

Best wishes
Josiah
Post by BJ
with javascript regexs you need to use the 'm' flag to have ^$ match the
begin and end of lines.
--
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 ***@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/0733edf2-7d0e-4bc9-8503-15cb04f9b26f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-25 17:27:32 UTC
Permalink
yes just add the m flag to your regex
Post by @TiddlyTweeter
Ciao BJ
Does your implementation in Flexi Reg support the "m" flag?
One of the advantages of "^" "$" is they are null strings indicating
place, not content. So you don't have to explicitly restore them when using
replace, unlike explicit actual matches you might have to. So for many
situations they are easier to use.
Especially for documents with markup that usually is the first thing on
the line,
Best wishes
Josiah
Post by BJ
with javascript regexs you need to use the 'm' flag to have ^$ match the
begin and end of lines.
--
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 ***@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/da3265f6-c804-4748-9426-2311f61466e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 17:32:44 UTC
Permalink
Great BJ

Thanks. Great to know your gizmo supports it.

J.
Post by BJ
yes just add the m flag to your regex
--
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 ***@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/2e7ba3ad-0045-4992-ad53-ada3110d87ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-25 19:13:55 UTC
Permalink
Ciao BJ

I just did a long series of test replaces with the "m" flag on for regexes
under text/vnd.tiddlywiki;flexibility=replace & its working well.

FYI, I figured out how to make clones of "replace" which will allow me the
freedom to develop and play with texts using RegEx at will, creating new
regexsets easily. Its a real time-saver.

*I truly hope other folk realise how excellent your "Flexible Types" is. I
am only just beginning to touch into what you can do with it--which is
vast.*

Very best wishes
Josiah
Post by @TiddlyTweeter
Thanks. Great to know your gizmo supports it.
Post by BJ
yes just add the m flag to your regex
--
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 ***@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/1291e0c7-514c-4f1e-a5e9-346c368cf4e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-26 11:47:26 UTC
Permalink
Ciao BJ

One thing I'm wondering is whether its possible to support COMMENTS in the
regexs component? For instance ...

/* Fountain replace to standard */
/^(\>)\s*?/:t /m
/^(\!)\s*?/:a /m
... etc
/* Standard replace to out */
/stuff/other-stuff/m
... etc
/* Global div wrap */
/^/<div class="ms-s1">/g
/$/<\/div>/g

The point being with long sequences commenting would be useful for: (a)
documentation of steps; (b) selectively disabling regex during testing.

Just thoughts
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 ***@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/bd593a97-5b9f-4dc7-88f4-cf26a91af34b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-09-27 10:30:15 UTC
Permalink
I've put up a new version that allows comments:

http://flexibility.tiddlyspot.com/
Post by @TiddlyTweeter
Ciao BJ
One thing I'm wondering is whether its possible to support COMMENTS in the
regexs component? For instance ...
/* Fountain replace to standard */
/^(\>)\s*?/:t /m
/^(\!)\s*?/:a /m
... etc
/* Standard replace to out */
/stuff/other-stuff/m
... etc
/* Global div wrap */
/^/<div class="ms-s1">/g
/$/<\/div>/g
The point being with long sequences commenting would be useful for: (a)
documentation of steps; (b) selectively disabling regex during testing.
Just thoughts
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 ***@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/96562a28-0634-4863-b864-58aeeaa3e25a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-27 16:29:43 UTC
Permalink
Thanks BJ!

I appreciate what you have done very much.

I been using it with comments successfully the last few hours. Its a
godsend.
Post by BJ
http://flexibility.tiddlyspot.com/
--
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 ***@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/a6112bb5-c9fc-4e25-9bac-63e58b3471cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-10-02 13:49:18 UTC
Permalink
Hey BJ!
I wanted to thank you once again for building this plugin. I really
needed it and it came just ath the right time. I have updated the
screenwriting-edition I had done before.
There still is some work to do but i think I will be able to solve all
problems now.

So thanks a again!
Jan

PS.
A small desire: Tiddlers without textfield sill cause a red screen with
the flexitype-plugin. Though this is seldom I would be happy if the
plugin could escape this....
Post by @TiddlyTweeter
Thanks BJ!
I appreciate what you have done very much.
I been using it with comments successfully the last few hours. Its a
godsend.
http://flexibility.tiddlyspot.com/
<http://flexibility.tiddlyspot.com/>
--
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
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/a6112bb5-c9fc-4e25-9bac-63e58b3471cd%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/a6112bb5-c9fc-4e25-9bac-63e58b3471cd%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+***@googlegroups.com.
To post to this group, send email to ***@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/59D243DE.10505%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2017-09-26 11:21:04 UTC
Permalink
Ciao BJ

Just wondering if your implementation supports all the JavaScript Regex
flags ...

g - global
m - multiline
i - ignore case
y - sticky
u - Unicode code points
Source
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp>

Not that I'd ever use "u". But just interested in understanding what's
possible.

Best wishes
Josiah
Post by BJ
with javascript regexs you need to use the 'm' flag to have ^$ match the
begin and end of lines.
--
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 ***@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/6cd32644-06cf-4922-a63e-971e1785d7c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-09-24 21:04:58 UTC
Permalink
Hi BJ,
Great thanks for your effort, I think you are doing something that helps
us all a lot.
For me it is somomething I've been looking for for weeks...

Jan
Post by BJ
yes I need to unescape the '\' - I will probably make do the update tonight.
Hello BJ
Thanks again. Importing "replace" did change the rendering.
But at the moment the plugin (or my implementation) seem to have
difficulties with the |\n.
||The replaced \n\n: and ||\n\n!||appear in the rendered Tiddler.
Yours Jan
Post by BJ
also be aware that you have to manually refresh a target tiddler
(the one which you want the changes to act on) if you change the
regex rules, or the other tiddlers define the flexibility behaviour.
you also need the tiddler called 'replace'
Hi BJ!
Thanks for the plugin, it seems to be the solution.
At a first step I tried out Flexitype Regex Demo
<http://flexibility.tiddlyspot.com/#Flexitype%20Regex%20Demo>
because it seems to be fully compatible with my
replacePragma workarround which also solves other issues.
I imported $:/plugins/bj/flexitypeand RegxParseParam
<http://flexibility.tiddlyspot.com/#RegxParseParam>,
inserted my ReplacePragma-rules into testregexdefs
|/\n!/\n\n!/
/\n:/\n\n:/
/\n{{/\n\n:{{/
/}}/}} /
and set the type of the tiddler to modify to text/vnd.tiddlywiki;flexibility=replace
Should this already work or did I forget something.
Yours Jan
|
Post by BJ
http://flexibility.tiddlyspot.com/
<http://flexibility.tiddlyspot.com/>
all the best
BJ
On Friday, September 22, 2017 at 2:38:50 PM UTC+2,
Has anyone used BJ's useful looking FLEXITYPE PLUGIN
<http://bjtools.tiddlyspot.com/#Flexitype%20Demos>?
That plugin basically clears down the \rules pragmas
and lets you define new Content Types from ground zero.
I'm thinking of using it to ease AD HOC quick
development of Content Types for specific
purposes--Like iterative extraction of the best
lines from Perry Mason TV scripts.
My questions ...
1 - _Is it fully compatible with the latest TW_? The
version on his site is in TW 5.1.11.
2 - Any feedback from BJ, or anyone, who has used it
on how well it works.
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
To post to this group, send email to
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/ff49e61e-1db9-43b0-928b-9d2b784424a8%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/ff49e61e-1db9-43b0-928b-9d2b784424a8%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,
<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/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/5bddb7fd-a56e-4d58-8102-8a5fbe5e03b3%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
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/07444197-d2cb-4884-afc0-0786f8dd30c1%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/07444197-d2cb-4884-afc0-0786f8dd30c1%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+***@googlegroups.com.
To post to this group, send email to ***@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/59C81DFA.1010901%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...