New translation: Sample file in Italian

Ruggero Furlanetto has translated the Sample file to Italian!

Check it out:

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>

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 :)

Write txt2tags text in jQuery markup editor markitUp!

Have you ever dreamed of editing txt2tags markup in a smart editor, with buttons for bold, italic, lists, links, etc.? Dream no more!

Florent Gallaire has added txt2tags support for markitUp!, the jQuery universal markup editor. Now you can add to any website a real nice text editor that understands txt2tags code. With the correct setup, you can also install txt2tags on it and your text can be converted online. Super!

Florent even set up a demo site, where you can test his creation online:

Use txt2tags markup in PmWiki

Eric Forgeot never stops. Now he wrote a plugin/recipe for PmWiki, so you, dear txt2tags user, now can use our beloved markup in one more tool! From the plugin page:

This recipe adds txt2tags formatting to the pmWiki markup. Most txt2tags tags are translated to their pmWiki equivalent and then passed through the standard PmWiki engine.

Using txt2tags to generate a Lulu-ready PDF book

Marco Fioretti wrote a detailed article explaining how he used txt2tags, pdflatex and a home-made shell script to create a full PDF book. He took screenshots, showed live examples and even provided the code for his custom script. Nice work Marco!

Read the article at:

Use txt2tags markup in Plone

Ales Zabala Alava (Shagi) has made a nice add-on (transform) to Plone, to integrate txt2tags into it. Here’s the README file description:

This package gives Plone users the ability to use txt2tags syntax in their Plone site. Currently Plone 3.3 and 4.1 are supported.

In this transform the first three lines of txt2tags files are ignored letting Plone setting the title, author, etc.

Shagi also adds that:

The product is uploaded to plone collective, so anyone can fix or enhance. There is also a BTS.

Well, you heard him, now click!