How do I insert a new line charakter (/n) with a macro.

118 views
Skip to first unread message

Jan

unread,
Apr 8, 2017, 4:47:11 PM4/8/17
to TiddlyWiki
Hello;
I want to Insert an /n or return with an EditToolBar Button.
start:" (/n){{"
end:"}}"
How do I do that?

Thanks
Jan

Ton Gerner

unread,
Apr 11, 2017, 2:59:24 AM4/11/17
to TiddlyWiki
Hi Jan,

May be



(I did not test it)

Cheers,

Ton

Jan

unread,
Apr 11, 2017, 8:29:43 AM4/11/17
to tiddl...@googlegroups.com
Hi Tom,
I think the UTF-8 idea is good, but what is the magic spell to transform it?
{
      "pattern": "bb",
      "filter": "[tag[role]]",
      "start": "

{{",
      "end": "}}"
      }

This pattern (used in Alain Dutechs Comptext <http://snowgoon88.github.io/TW5-extendedit/) gives out the UTF-code not the return...
And also I would like a double return to trigger the pattern (instead of "bb").

Greetings Jan





--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0f6c52a2-63d9-4178-94a0-f41d8ff1f386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ton Gerner

unread,
Apr 11, 2017, 9:13:21 AM4/11/17
to TiddlyWiki
Hi Jan,

And what about just using <br>?

Cheers,

Ton

Jan Johannpeter

unread,
Apr 11, 2017, 3:21:08 PM4/11/17
to TiddlyWiki
Hi Ton,
I want to use this to make a screenwriting tool, and so want to avoid all intimidating html-tags i can and prefer invisible Marks wherever it is possible...

Best wishes Jan


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

@TiddlyTweeter

unread,
Apr 11, 2017, 3:36:04 PM4/11/17
to TiddlyWiki
Ciao Jan

For Screenplays I think you are absolutely right to eskew any kind of visible markup in the Editor if at all possible. The conventions of Screenplay writing are totally at odds with most anything else around. Rightly, because we need the monospacing to reflect shot timing.

Its a very interesting issue of how to be able to do that AND enforce the needed layout.

FWIW I had a closer look at the Fountain Markdown derivative. I concluded it would add complexity that is NOT needed for TW solutions.

RATHER, what is needed is, maybe, some type of "Layout Checker" to ensure that each script fragment follows Screenwriting Rules.

In my own thinking the way the script is "chunked" (or not) into Tiddlers seems important. Quite what is a good way forward I am still unclear about.

I find what you struggling with informative and very much to the point. I'm sorry I can't yet offer positive solutions.

Best wishes
Josiah

Mat

unread,
Apr 11, 2017, 5:09:00 PM4/11/17
to TiddlyWiki
Untried:
 
start:"

 
{{"
end:"}}"


I.e literally insert the linebreak. It looks corny but I think I had to use this for something, sometime ago... possibly a similar thing... can't remember.

<:-)

Jan

unread,
Apr 11, 2017, 5:56:30 PM4/11/17
to tiddl...@googlegroups.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 tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

For more options, visit https://groups.google.com/d/optout.

Hi Mat,
 I already had been corny enough to try this...unfortunately it crashes the mechanism (sayin' the value is undefined in the red screen of death). Afterwards the pattern does not work any more...

But thanks for your effort
Jan




Jan

unread,
Apr 11, 2017, 6:22:29 PM4/11/17
to tiddl...@googlegroups.com
Ciao Josiah,
My soulution would be transcluding the charaters and comments...together with the formatting and the formatting for the following text as "general sibling".

The Text in the editor should look like
{{action}} action......

{{shot}} camera-movement

{{romeo}} My bounty is as boundless as the sea

{{juliet}} /sigh/ My love as deep, the more I give to the

{{transition}} ...

I want to get Alain Dutechs comptext editor to insert the transclusions. (That is the reason for the question that initiatied this thread)
If anyone gets the fontain-Parser to work in TW I guess we could do the same for that formatting so that it would not be too complex.
And of course we could design a special toolbar for dialogues which would insert the formating with button.

But firs we got to get the basics to work

1. Implement a Fountain-parser (if anyone wants to make an effort)
2. Get Alain's great comptext plugin to work together with an EditorToolbar
3. and perhaps this damned return-button into the pattern ;-)

yours Jan
Reply all
Reply to author
Forward
0 new messages