@TiddlyTweeter wrote:My FIRST question is this: Is it possible to make a new parser for mark-up without having to use JavaScript?
NO. ... There's way to much logic involved. The tiddlywiki syntax parser consists of 46 different js modules, which converts text into an internal structure, that is used to render the html output.
Ok, maybe I don't get it but I expect the same could be said for theatrical script writing as well unless it is critical to import a different markup in which case you could work on the import and export process instead.
Food for thought?
Otherwise clueless
Tony
:x
Would I have to study the JavaScript code to understand what those parsers do?
I'm very hazy about what the final HTML is.
SECOND QUESTION: Are parsers bound (tied) to content types? Meaning, if we created a new parser would it need a new "content type"?
Just a question. Why build a parser when there are ways to parse the content in a tiddlywiki already.
Looking at Fountain, that thread deals with its markup system for screenplays--I think it could be simplified for TW a lot.
The UNDERLYING ISSUE is whether a "deep level" Javascript parser (and likely a new "content type")
PMario opined it wasn't possible without JavaScript coding.
The magic, that's really needed, is a "sketchbook", where you write down your ideas about scenes, characters, .... and then combine the stuff to a story. ... The text parsers are just a means to an end.
--
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/ef1cccc8-f284-468a-ba13-f1cec9ec60b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Page breaks are controllable in theory using CSS: https://www.w3schools.com/cssref/pr_print_pageba.asp – hope this helps for your tests Josiah!
Yes, but how would you use this in practice? You'd have to do a preview print. Then, based on the print, insert MANUALLY any pagebreaks. Then repeat to make sure things still paginate. Then repeat again. Imagine doing that with a 50 page document, and then having to repeat every time there was a change to the script.
My FIRST question is this: Is it possible to make a new parser for mark-up without having to use JavaScript? Just a macro using Regular Expressions?
Instead, I’ve wondered whether we might be able to make (some of) the existing parser rules much more configurable. For example, right now there are 6 separate parser modules for each of bold, italic, strikethrough, subscript, superscript and underscore:But, if you look at the individual JavaScript files, you’ll see that they only vary through a few parameters: the name of the rule, the regular expression to match at the start, and the regular expression to match at the end, and the tag of the HTML element to create.
So, one could imagine refactoring things so that there was a single JS parse rule, and that it was instantiated multiple times with different parameters.
That's right, but we can't sacrifice the existing flexibility. ....
--
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/B06A10D8-58C6-4CE0-A133-7B5A0F1BE10C%40gmail.com.
Jeremy ... I’ve wondered whether we might be able to make (some of) the existing parser rules much more configurable.
Jan: I would love to have that feature, this would give us a lot more flexibility.
etc ...
Best wishes
Josiah
On the topic of parse rules, Skeeve created the ReplacePragma which is very interesting but, if I understand the discussion it spurred, not unproblematic.
<:-)
--
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/c3774dc5-4824-4e8e-a13c-0b93048652dc%40googlegroups.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/63a7f76a-0b8f-4419-8055-3da60275634b%40googlegroups.com.
:s:7 INT. PARK HUT - NIGHT
:a Baxter enters carrying Perry Mason.
:c BAXTER
:p (coughs)
:d Paul, are you there? Perry had an accident.
:scene:7 INT. PARK HUT - NIGHT
:action Baxter enters carrying Perry Mason.
:character BAXTER
:parenthetical (coughs)
:dialogue Paul, are you there? Perry had an accident.
<dd>-Elements
which should give a--
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/28cfb2f3-483f-446e-acbb-3a3b86dfbd7e%40googlegroups.com.
Thanks Jan.
It would be better if you present this DEVOID of JARGON. I don't know (nor do I want to learn) screenwriting. Take what you've written here, and present it like this:
I want to write something like this in the TW editor:
INPUT TEXT HERE
I want it to render (wikify) to something like this:
OUTPUT TEXT HERE
That way I can see what you are trying to achieve without getting bogged down in a bunch of terminology which, frankly, might be irrelevant.
Hope that makes sense.
It's possible my idea may work for you guys. It's also possible it won't. But I need something representative to test. Okay?
On Tuesday, September 12, 2017 at 9:01:17 AM UTC-5, Jan wrote:
Hi Coda.
My concept for formating is quite simple
I built a tool which is transclusions for the rolenames, which are automatically inserted by Alain Dutech Comptext-Plugin.
For simplicity I would use headings for the action, and the Tiddler-Ttitle (or an Alias inserted by the Alias-Plugin) for the scene-title.
Thus:
Peter and Bob are doing some Action
PETER
Now I say something.
BOB
And here I answer.
Would look like that in Editmode:
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d0e976f6-d5e9-4a08-a4fa-d2563cc02396%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/cc91dc72-fb34-4bd4-8737-83e9a87b9b29%40googlegroups.com.
Hi Coda,
I would like to avoid expressions looking to technical in the inputText.
In my concept the macro is transcluded by the rolename:
{{Peter}} like all roles leads to a tiddler which a only macro called <<role>> as text. The macro is defined:
\define role()
<div class=role><$list filter="[{!!title}tag[emphasis]]"><hr></$list><$list filter="[{!!title}has[name]]"emptyMessage={{!!title}}>{{!!name}}</$list></div>
\end
\define break() <p><br><hr style="text-align:center;width:100px;"/><br></p>
:*:brk:: <<break>>
;Pretty quotes
^':: SendInput “
^+':: SendInput ”
TonyM & Coda
Let me expose my age as its likely near yours. And since you broke this thread.
Back in the days of Dos only, what you had was "programs" (extremely boring things that only worked one way) and "TSRs" (extremely interesting gizmos that let you rule programs).
AutoHotKey(AHK) is a great evolution of the TSRs that survived. Most of them died on PCs with Windows. At one time TSRs were considered as important as applications--and often they were better than them. Windows killed most of them.
Enough nostalgia.
To the nub.
WHAT has AHK got to do with TiddlyWiki? I think VERY LITTLE.
Talk-back ...
...
Just think for yourself how often you find yourself doing some repetitive tasks on a computer, and if they include a Ctrl-alt-key combination or two you need finger gymnastics along with deep focus to do something really trivial..
...
Tony
--
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/0956c8d1-f866-49a7-af0c-52f1c5b25125%40googlegroups.com.
Is there anyone working on or willing to work on adjustible parsers?
--
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/744d7001-c127-4830-9a4a-7bda014c5e92%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fbe06126-de10-4472-a52e-b3484316bb93%40googlegroups.com.
I had to reread this whole thread again to try and clarify your requirements. Perhaps not this time, but it may help in the future you may consider the following;
I do not in anyway want to sound paternalistic, I do not have the information to know your experience, so I will just spell it out.
Such a document will clarify your own requirements, set you up to succeed, as well as make the cost of participation by volunteers much lower. Such a document should work for any platform not just tiddlywiki and stands to document what was done in the end.
Just imagine if someone in your audience had all the answers they could simply read your requirements on one screen and pound out the answer on another screen and you would be able to see how they have addressed every part of your requirements.
I would also like to add that engineers, coders and many others have the instinct that drives them into solution mode way too soon. I know because I have had to battle this myself in my career. The solution I have found to do as I have suggested above otherwise the conversation wanders all over the place, but not in the direction you want, as is clear in the threads.
We can solve your problem and / or meet your requirements
Tony