View Single Post
Old 06-19-2007, 01:11 PM   #1
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,434
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
txt2lrf - New and Improved

txt2lrf now supports a lightweight markup language. It has two main design goals:
  1. To allow you to create good looking TXT files that can be read directly as TXT files on a computer screen.
  2. Enable the easy conversion of TXT into nicely formatted LRF

These design goals make it a particularly useful tool for those of you that find creating HTML files by hand too tedious.
Some of the features that the markup supports:
  • Lists
  • Tables
  • Images
  • Automatic TOC creation

Automatic TOC creation makes this an excellent replacement for BookDesigner for those of us who don't use Windows, especially since it supports inline images and tables.

Look at the attached demo for to understand the basic syntax. For full details see: http://daringfireball.net/projects/markdown/syntax

The improved txt2lrf is part of libprs500 v0.3.53 and higher. It can be run from the commandline as
Code:
txt2lrf myfile.txt
Attached Files
File Type: txt demo.txt (1.7 KB, 1057 views)
File Type: lrf txt2lrf.lrf (15.4 KB, 1276 views)

Last edited by kovidgoyal; 06-19-2007 at 01:19 PM.
kovidgoyal is offline   Reply With Quote