• How to post content to a Wordpress blog from the command line

    Wordpress is a great publishing system, but managing it manually can be a very time consuming process. This is especially true when you want to upload lots of posts, or if you would like to write content in your preferred, full-blown text editor and then have it “magically” appear online. Wordpress takes care of these needsallowing remote posting via email or the WordPress XML-RPC interface (if you enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC checkbox in goinig to Settings > Writing > Remote Publishing).
  • How to transform (almost) plain ASCII text to Lulu-ready PDF files, part 2

    This page gives a general overview of a flow for transforming ASCII files in print-ready PDF books. The reasons for setting up such a flow in this way are explained in the first part of this tutorial. Basic workflow The basic usage of txt2tags is really simple. Once you’ve written something that you need to convert to PDF, text or HTML you can launch the graphic interface with the -gui option or run a command like this at the prompt:
  • How to transform (almost) plain ASCII text to Lulu-ready PDF files, part 3

    This is the core script I used to transform a set of plain ASCII files with the Txt2tags markup in one print-ready PDF file. Part 1 of this tutorial explain why I chose txt2tags as source format and Part 2 describes the complete flow.Book creation workflow Listing 1: make_book.sh 1 #! /bin/bash 2 3 CONFIG_DIR='/home/marco/.ebook_config' 4 PREPROC="%!Includeconf: $CONFIG_DIR/txt2tags_preproc" 5 6 CURDIR=`date +%Y%m%d_%H%M_book` 7 echo "Generating book in $CURDIR" 8 rm -rf $CURDIR 9 mkdir $CURDIR 10 cp $1 $CURDIR/chapter_list 11 cd $CURDIR 12 13 FILELIST=`cat chapter_list | tr "�12" " " | perl -n -e "s/.
  • How to transform (almost) plain ASCII text to Lulu-ready PDF files, part 1

    Many people write far more now that they are constantly online than in the pre-Internet age. Most of this activity is limited to Web or office-style publishing. People either write something that will only appear inside some Web browser or a traditional “document”, that is a single file, more or less nicely formatted for printing. Very often, however, they don’t do it in the most efficient way. The most common solution for the first scenario still is to write HTML or Wiki-formatted content in a text editor or, through a browser, directly in the authoring interface of CMS systems like Drupal or Wordpress.