Atom plugin for txt2tags

If you use Atom as your text editor, now you can see your beloved txt2tags files in all their colorful glory:

There is also lots of snippets to make your editing easier. Just press b<tab> for bold, link<tab> to insert a link or even table<tab> to insert a table skeleton.

After installing the plugin, go to its Settings screen to get a list of all the available snippets. As an alternative, press Option-Shift-S (or Alt-Shift-S in Windows) while editing a .t2t file to get the same listing.

To install the plugin (aka package, in Atom terms), use the default Atom installer under Settings > Install and search for txt2tags. You can get more information about the plugin at https://atom.io/packages/language-txt2tags.

Use txt2tags markup in Jekyll

Jekyll is a simple, blog-aware, static site generator that uses Markdown as its default markup for posts and pages.

How about using txt2tags as an alternative markup in Jekyll? Now it’s possible with the Jekyll txt2tags plugin.

Go wild and use %%TOC, preproc, postproc and other txt2tags goodies on your Jekyll website!

Use txt2tags markup in TiddlyWiki

Ever wanted to use our beloved txt2tags markup inside your TiddlyWiki reusable non-linear personal web notebook?

Wait no more! David Young has made a nice txt2tags plugin for TiddlyWiki.

I wrote a plugin for TiddlyWiki that allows you to use most txt2tags syntax in a TiddlyWiki. It is implemented as a new wiki formatter – it exists along side TiddlyWiki’s formatter. Read more…

Thanks David!

New translation: Program interface in Malay

Muhammad Fariz translated the program interface (i18n) to Malay!

It’s out first contribution using Transifex.

Check it out: http://www.transifex.net/projects/p/txt2tags/resource/potfile/

txt2tags now using Transifex for translations (i18n)

Hi there,

Just a quick note to tell you that we’re now using the excellent Transifex to manage the program translation (potfile, PO files, i18n).

Transifex makes it easy to contribute improving a translation or adding a new one. You can do it all in their website, no need to download or install anything. Their online editor is integrated to Google Translate, making it even easier to translate the sentences.

This is a live image showing the current status of the program translation:

txt2tags translation

Your language is listed there? How about to bring it to 100%? It’s quick! Just a few sentences.

Not listed? How about to add your language to txt2tags? It’s a matter of minutes.

Either way, go to the txt2tags translation central:
http://www.transifex.net/projects/p/txt2tags/resource/potfile/

New translation: User Guide in Ukrainian

Bunyk Taras (Тарас Буник) translated the User Guide to Ukrainian and published it as a wiki book:

http://uk.wikibooks.org/wiki/Txt2tags

New translation: Markup Demo in Russian

Kato Kontenta has translated the Markup Demo to Russian!

Check it out: http://txt2tags.org/ru/markup-ru.html

New translation: Sample file in Italian

Ruggero Furlanetto has translated the Sample file to Italian!

Check it out: http://txt2tags.org/it/sample-it.html

New translation: Japanese

Hello Japan!

Your friend Mage Whopper has translated to Japanese the Sample file and the Markup Demo.

The work is already online on the documentation page.

txt2tags 2.6

And when you thought txt2tags was hibernating inside a cold dark cave, guess what? We have a new release! :)

I’m very happy to announce the release of txt2tags 2.6, coming out after more than two years of development effort in the txt2tags SVN.

Thanks to the active and ever growing team, this is the most feature rich release to date: five new targets, five new command line options, a new mark for tagged text, a new command to include CSV files, updated documentation, more translations and tons of bug fixes and improvements.

New targets:

Now counting a total of 18 supported targets, txt2tags is one of the most versatile text conversion tool out there. To help you remember all of them, now we have the --targets option.

$ txt2tags --targets
adoc    AsciiDoc document
art     ASCII Art text
creole  Creole 1.0 document
dbk     DocBook document
doku    DokuWiki page
gwiki   Google Wiki page
html    HTML page
lout    Lout document
man     UNIX Manual page
mgp     MagicPoint presentation
moin    MoinMoin page
pm6     PageMaker document
pmw     PmWiki page
sgml    SGML document
tex     LaTeX document
txt     Plain Text
wiki    Wikipedia page
xhtml   XHTML page
$

The new %!csv command will read a CSV file and convert it to a nice table. This is a quick way to include a large table in your document if you already have the data in a CSV file. The usage is simple:

%!csv: monthly-report.csv

The new ''tagged'' mark is perfect to satisfy some popular user requests:

  • How can I insert HTML code in my document?
  • How can I insert LaTeX formulas?

Just put a pair of apostrophes around some text, ''like this'', and txt2tags will not touch it. You can insert arbitrary target code, such as ''<span id=a123>''marking some text''</span>'' with HTML tags inside a paragraph. If you want to add a whole block of code, use the three apostrophes block:

'''
<div id="mynicediv">
  <p style="color:red;">My text.</p>
</div>
'''

It’s very handy for things like Google Analytics code or YouTube embedded code in HTML pages. Or formulas in LaTeX. Or advanced wiki markup. Or… You name it.

How about to show a slide presentation just using your regular terminal? Now it’s possible with the new --slides option, used by the ASCII Art target. It breaks your text into pages, repeating the top title if necessary. You inform the size (lines and columns) with the new --height and --width options. You can even change the decoration characters with the new --art-chars option.

txt2tags -t art --slides --width 80 --height 25 -o - sample.t2t | more

Check out the ChangeLog for a complete list of all the changes and download your shiny new txt2tags!

Oh, this new version requires Python 2.2 or newer. But not Python 3, because we’re not that cool :)