Newbie question...

175 views
Skip to first unread message

Joseph Elacqua

unread,
May 2, 2015, 3:30:33 PM5/2/15
to tiddl...@googlegroups.com
Hello all.  I just started using TiddlyWiki last week and think it's amazing.

I'm sorry if this has been asked before, but I am trying to see if I can get TiddlyWiki to do something in particular that is hard for me to describe.  Let's say that I have a page of text from a book.  I would like to put that data into a TiddlyWiki only once, but be able to access it in two forms:  both the full page, and sentence-by-sentence (i.e. each sentence as a separate Tiddler).

Basically, I'm looking for a means by which I can "call" certain specific text from one Tiddler to another (so if I change the source, it will also alter the output), or alternately, call text from a set of text files into two places in my TiddlyWiki (once in that "full page" tiddler, and once in a "sentence-by-sentence" tiddler).

If it makes it any easier to visualize, imagine a book of the Bible done this way, where you can click on a tiddler for an entire chapter, or alternately go verse-by-verse.  (The verse-by-verse pages would also be supplemented with commentary, other translations, etc.)


Thanks so much for your help!  Once again, my apologies if this has been answered before.


-- Joe


P.S. -- As an absolute novice with TiddlyWiki, I have no knowledge of using macros, etc.  I'm game to learn, but still a newbie at present.

David Gifford

unread,
May 2, 2015, 6:14:34 PM5/2/15
to tiddl...@googlegroups.com
Hi Joe

Yes, you can do this. To use your Bible example, you could do tiddlers "Matthew 1:1" "Matthew 1:2" etc, then have a "Matthew 1" chapter tiddler where you insert

{{Matthew 1:1}}
{{Matthew 1:2}} etc.

You could also have the commentary and notes for Matthew 1:1 in a tiddler tagged "Matthew 1:1", and set your tiddlers up with a viewtemplate so that those appear below the text, but not in the chapter tiddler.

Dave

Joseph Elacqua

unread,
May 2, 2015, 6:17:37 PM5/2/15
to tiddl...@googlegroups.com
David,

That's really all it is?  Wow.  I thought I'd have to learn macros and stuff.  Or at least that it'd be much more complicated than that.  I'm on my way out the door now, but I'll certainly try it tonight.  I'll let you know if it works to my needs or not.  Either way, thanks a bunch!

-- Joe

Joseph Elacqua

unread,
May 2, 2015, 10:19:24 PM5/2/15
to tiddl...@googlegroups.com
And it totally works!  Thanks so much, David!

-- Joe

Miguel Bartelsman

unread,
May 3, 2015, 11:46:30 AM5/3/15
to tiddl...@googlegroups.com
To expand on David's answer, you can use filters to do that automatically

<$list filter="[prefix[Matthew 1:]sort[title]]">
{{<
<currentTiddler>>}}
</$list>

That should transclude all tiddlers from Matthew 1 in a list ordered by name. This has one problem which is the way that tiddlywiki handles alphabetical order, it will order it like this: 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 3, 4, 5. So you'd need to add zeroes before single digit numbers (01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11...)

Joseph Elacqua

unread,
May 4, 2015, 10:41:11 AM5/4/15
to tiddl...@googlegroups.com
Thanks, Miguel!  That will make my project a LOT easier.

One further question just came to me though.  We talked about putting each "verse" (e.g. Matthew 1:1, 1:2, 1:3, etc.) as its own tiddler and calling them all into a single ordered tiddler.  Is there some way to create the same end result, except having each "verse" be called from a separate local text file, rather than a unique tiddler?  That would also make my project a lot easier as there are going to be a LOT of individual "verse" tiddlers and I would like to keep the filesize of my tiddlywiki as minimal as possible.

I read that I could call data from one tiddlywiki to another (didn't look too in-depth to see how difficult it was), so I suppose I could always create one tw for "verses" and one for "chapters," but that could be a lot more complicated than simply having one "source folder" where all the text remains constant, and simply have tw manage and manipulate that text in the way the reader wishes.

Thanks so much for all your help.  I'm SO glad I chose TiddlyWiki for this project.  It seems to have every option available that I require.


-- Joe

David Gifford

unread,
May 4, 2015, 10:44:09 AM5/4/15
to tiddl...@googlegroups.com
Another option would be to add links to the verses in Bible Gateway https://www.biblegateway.com/passage/?search=matthew+1.1&version=NIV

Dave

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/yAIWvaJqokI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/839d4c2a-4ef7-4dd3-b52b-c27bbaa7498e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joseph Elacqua

unread,
May 4, 2015, 10:49:25 AM5/4/15
to tiddl...@googlegroups.com
Dave,

Thanks for the link.  I do plan to use TiddlyWiki to basically create something that operates very similarly to BibleGateway, but with a large number of texts that aren't represented there.  The vast majority of them are going to have to be inputted by hand, which will be massively terrible, but useful—I hope—to others.

-- Joe

David Gifford

unread,
May 4, 2015, 11:02:43 AM5/4/15
to tiddl...@googlegroups.com
Well, my personal advice would be that since there are already so many sites with the actual Bible text (biblia.com is another link), don't reinvent the wheel. Use your time and effort to help the world understand and apply the text.

Dave

Joseph Elacqua

unread,
May 4, 2015, 12:50:39 PM5/4/15
to tiddl...@googlegroups.com
Dave,

Definitely not going to reinvent the wheel—only to repurpose it.  There's nothing out there (that I'm aware of) that seeks to do what I plan to do.  Biblical texts in this thread served merely as examples, nothing more.

-- Joe

David Gifford

unread,
May 4, 2015, 12:58:21 PM5/4/15
to tiddl...@googlegroups.com
ah ok. Hope you share your creation with us, to see what you end up doing!

Dave

Miguel Bartelsman

unread,
May 4, 2015, 6:44:49 PM5/4/15
to tiddl...@googlegroups.com
Unfortunately, I don't know how to call information from an external file, it probably needs some sort of plugin or javascript magic.

Jed Carty

unread,
May 5, 2015, 3:42:20 PM5/5/15
to tiddl...@googlegroups.com
If you have the text that you want to split into tiddlers it will be much easier to either use some advanced text editor (like sublime text) or a spread sheet or perl to divide it up and generate the tiddlers rather than entering them into tiddlywiki by hand. Since the bible seems to be the example of choice for this, you could use the plain text bible text from project gutenberg and with a few lines of perl code pull it apart into separate properly formatted .tid files with the correct titles and fields.

If you are going to be writing all of the text it may still be better in terms of time spent to put it all into a text file and then use something else to split it up into .tid files that you then import into a wiki.
Reply all
Reply to author
Forward
0 new messages