Script to Convert rms-essays to Plucker Format

| 1 Comment
#!/bin/bash

# Copyright 2009 Rob Myers <rob@robmyers.org>
# Licenced under the GPL 3 or, at your option, any later version.

# Produce a Plucker version of Free Software, Free Society
# Some texinfo errors not fixed

# Convert eps images to GIFs

convert images/clib.eps images/clib.gif
convert images/code.eps images/code.gif
convert images/flex.eps images/flex.gif
convert images/free_software_song.eps images/free_software_song.gif
convert images/headMain.eps images/headMain.gif
convert images/party.eps images/party.gif
convert images/richard.eps images/richard.gif
convert images/philosophical-gnu.eps images/philosophical-gnu.gif

# Fix texinfo problems

perl -pe 's/@heading\{(.*)\}/@heading $1/' -i fs_for_freedom.texi

perl -pe 's/^\\input texinfo_times.tex//' \
-i rms-essays.texi

echo "\
@ifnottex
@alias unnumberedfootnote = footnote
@end ifnottex

@ifnottex
@macro sp1
@sp 1
@end macro
@end ifnottex

@include rms-essays.texi
" > rms-essays-html.texi

# Convert to plucker

makeinfo --html --no-headers --no-split --force -o rms-essays.html \
rms-essays-html.texi

perl -pe 's/^(<a href="#.+)$/$1<br \/>/' \
-i rms-essays.html

plucker-build --zlib-compression --stayonhost --bpp=1 --maxwidth=320 -p . \
-f rms-essays -N "Free Software,Free Society" file://`pwd`/rms-essays.html

Comment on this post at Reddit.



Or you can comment here:

1 Comment

Hi, thanks for the script!

I used it to create an EPUB version of this book, which you can download here:

http://people.igalia.com/berto/files/Richard%20Stallman%20-%20Free%20Software,%20Free%20Society.epub

Leave a comment

About this Entry

This page contains a single entry by Rob Myers published on February 15, 2009 1:41 PM.

A UK Blogger's Guide was the previous entry in this blog.

clipfix is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives

Pages

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.33-en