txt2tags plugin for tiddlywiki.

27 views
Skip to first unread message

David Young

unread,
Jul 5, 2011, 2:28:56 PM7/5/11
to txt2tags mailing list, tiddly...@googlegroups.com, tiddl...@googlegroups.com
Hi all,

After dusting off some older projects, I've made something decent for
using txt2tags (http://txt2tags.org) syntax in a tiddlywiki
(http://tiddlywiki.com). It supports almost all txt2tags syntax
(except tables and definition lists) and borrows some wiki-specific
syntax from tiddlywiki.

Please have a look here:
http://wiki.txt2tags.org/index.php/Main/TiddlywikiPlugin

That page has a chunk of text suitable to copy-paste into a new
"tiddler" and get you started.

The code "lives" in txt2tag's 'extras' directory in subversion if you
want to edit it yourself.

If you have any questions,comments, or suggested fixes for problems,
you can send them to me.

--
David Young

Russ Thomas

unread,
Jul 5, 2011, 8:02:52 PM7/5/11
to tiddly...@googlegroups.com, TiddlyWiki
Hi David

I'm using TW 2.6.1 and t2t makes quite a mess of my TW. It seems to be
layout related... As a test I downloaded a fresh empty.html from
tiddlywiki.com and t2t works fine with that - I guess it's one of my
plugins and or my stylesheets?

Anyone else?

Russ

> --
> You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
> To post to this group, send email to tiddly...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywikide...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
>
>

HansBKK

unread,
Jul 6, 2011, 12:05:45 AM7/6/11
to tiddl...@googlegroups.com, txt2tags mailing list, tiddly...@googlegroups.com
On Wednesday, July 6, 2011 1:28:56 AM UTC+7, dave wrote:

using txt2tags (http://txt2tags.org) syntax in a tiddlywiki

I'd be very interested in conjunction with Eric's
   http://www.TiddlyTools.com/#ImportTiddlersPlugin
 
So that tiddler data could round-trip between outside location and TW without having to worry about inline formatting syntax differences.

txt2tags looks like a good "lingua franca", and if a plugin could support the conversion in and out, that would be IMO most excellent.

Of course being able to actually use txt2tags syntax within TW is also a good thing, but IMO if the above were handled cleanly would be less important.

Or is there already a solution for this - converting TW's wiki syntax for inline formatting to something more "generic" for re-use outside TW?

Maybe the two-way idea's just pie in the sky, but hey I can dream. . .

David Young

unread,
Jul 6, 2011, 4:58:00 AM7/6/11
to tiddl...@googlegroups.com, tiddly...@googlegroups.com
Admittedly, my testing has been to run in an empty.html from the
start, but the intention was for this new formatter to allow for
tiddlers to be either TW or t2t. If one were to take any tiddler
existing in tw syntax and add the 't2t' tag to the tiddler, then that
would definitely make a mess. T2T shouldn't be messing up the whole
tiddlywiki, though some macros like transclusion would 'blow up' from
mixing the syntax if you were to include a t2t within a tw-formatted
tiddler.

Does adding the t2t plugin to an otherwise unchanged tw lead to problems?

> You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
> To post to this group, send email to tiddl...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
>
>

--
David Young

Russ Thomas

unread,
Jul 6, 2011, 10:13:25 AM7/6/11
to tiddl...@googlegroups.com, tiddly...@googlegroups.com
Hi David

I could have been more clear - I did not add the tag to anything or
try to use the plugin... I just added to my TW and the layout went
crazy. Disabled the systemConfig tag, reloaded, TW back to normal.
Re-enabled again, broken again.

I tried disabling a few other plugins (while enabling t2t) but no joy.
And since it appears to be a layout problem, probably not the right
place to be looking, anyway.

"baffled"

Russ

David Young

unread,
Jul 6, 2011, 1:51:22 PM7/6/11
to tiddl...@googlegroups.com, tiddly...@googlegroups.com
Problem solved off-channel; I copied the formatter from some source
that rewrote "wikify" function into one that inserted <p> tags around
tiddly content. Since wikify is used on almost every element, it
makes a page layout look quite messed up with excess whitespace.

Solution applied to the wiki page: comment out the replace wikify
function. It wasn't necessary for the plugin to function in the first
place.

Reply all
Reply to author
Forward
0 new messages