pombreda / txt2tags

Automatically exported from code.google.com/p/txt2tags
GNU General Public License v2.0
0 stars 0 forks source link

wiki-like support for local links #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to use a simplified link in [wiki] format for a cleaner .t2t file

What is the expected output? What do you see instead?

I would like to have the link to have it implicitly expanded tp [wiki 
wiki.html]. Instead, I see [wiki] in plain text. 

What version of the product are you using? On what operating system?
 Txt2tags 2.6 on ubuntu linux

Please provide any additional information below.
I realize this is not a bug, but rather a suggestion for an enhancement.

I solved this issue for myself using the preprocessors:
%!preproc: '\[(\w+)\]' '[\1 \1.html]'
but obviously it's quite hardcoded and will not work for t2t to html 
conversions.

I like keeping a local wiki for my knowledgebase and recently remembered 
txt2tags awesomeness so I wanted to port my wiki to t2t format. I believe more 
people will have the same issue and could enjoy this feature, so I'd like to 
suggest official support to it (so it would work for all applicabple targets)

At least I would like to post this on the tips session so other people can 
benefit from it :-)

Keep up the awesome work!

Regards,
--Francisco Beschoren da Costa

Original issue reported on code.google.com by fbco...@gmail.com on 8 Dec 2012 at 2:16

GoogleCodeExporter commented 9 years ago
Hello,

I don't understand your sentence: "will not work for t2t to html conversions."

Your preproc seems to work well in the case of an html conversion. What is more 
a problem is the fact such a wiki syntax can only work for html related 
exports, and it can't be used with most other conversions (even with 
lightweight markup langage such as markdown or rst). 

So I don't really know how txt2tags could officially add this new markup, 
especially when there are some workarounds with proc or preproc.

You probably already know it's possible to use a configuration or an include 
file for adding your preproc settings only once for all :
- http://www.txt2tags.org/userguide/UserConfigurationFileRCFile.html#5_7
- http://www.txt2tags.org/userguide/includeconfcommand.html#5_10

What wiki system are you using? Are you aware of Rednotebook which is a local 
wiki using txt2tags http://rednotebook.sourceforge.net/ but I don't know if 
it's possible to add internal wiki links as you intend.

There are also those other tools you might want to check:
- For offline use:
 - wixi: http://sourceforge.net/apps/mediawiki/wixi/index.php?title=Main_Page
 - tiddlywiki: http://wiki.txt2tags.org/index.php/Main/TiddlywikiPlugin

- For online use:
 - http://wiki.txt2tags.org/index.php/Main/Txt2tagsAndPmWiki  (but you can also use it on a local server, you just need apache/php, no sql). This one fully works with wiki links (it's using the [[InternalLink]] markup), and you can even automatically export the whole wiki to a complete LaTeX or html document at the end.

http://wiki.txt2tags.org/index.php/Main/Tips

Original comment by eforg...@gmail.com on 8 Dec 2012 at 8:30

GoogleCodeExporter commented 9 years ago
I forgot to comment the last link, you can use 
http://wiki.txt2tags.org/index.php/Main/Tips for adding tips. The password for 
this wiki is "t2t"

Original comment by eforg...@gmail.com on 8 Dec 2012 at 8:34

GoogleCodeExporter commented 9 years ago
Oops, sorry, I meant "will ONLY work for t2t to html conversions" I'm glad you 
got my point anyway. I suppose that a word to the wise is sufficient :-)

I was suspecting there was a way to get those preprocs for all documents. 
Thanks for pointing that out!

I was using instiki, But I'm looking into rednotebook right now, and it seems 
cool! I just hope it's not too feature bloated for me though.

Thanks for All the pointers, I'll take a look into those as well.

And I'm going to add this tip; maybe someone likes it :)

Original comment by fbco...@gmail.com on 8 Dec 2012 at 2:27