e90ea9345bedf700d090ac1767bc232fa7507c1c
[ibg.git] / README.md
1 Inform Beginner's Guide
2 =======================
3
4 Introduction
5 ------------
6
7 This repository contains the sources for the
8 [Inform Beginner's Guide](http://www.firthworks.com/roger/IBG.html),
9 henceforth known as the IBG.  This version is in a new source format that's
10 more contributor-friendly (see below).  It's a work-in-progress; see the
11 [issue tracker](https://github.com/i6/ibg/issues) for how it's going.
12
13 Initially it will be a straight conversion of the 3rd edition.  After that,
14 the 4th edition will be prepared.  The rationale for a 4th edition is:
15
16 * There have been quite a few updates to Inform and its support libraries
17   in the time since 2004, when the 3rd edition was published.
18
19 * The nitty-gritty information about how to install and run programs goes
20   stale pretty fast.
21
22 * Some old web links have gone away, to be replaced by new and better
23   ones.
24
25 Building from source
26 --------------------
27
28 The new source format is [Sphinx](http://sphinx-doc.org), a documentation
29 build tool written in [Python](http://python.org), which you will need to
30 install if you want to build the document.  You can find the complete
31 installation instructions
32 [here](http://www.sphinx-doc.org/en/stable/install.html).
33
34 After you have Sphinx installed, you can build the HTML version of the
35 guide from a command prompt, like this:
36
37         make html
38
39 For building the PDF version, you need a reasonably recent installation of
40 TeX Live.  Release 2014 will do.  You will also need the Emerald font
41 package from https://www.ctan.org/tex-archive/fonts/emerald/.  This cannot
42 be installed with `tlmgr`, nor does it seem to be packaged by the usual
43 Linux or BSD distributions.  Scripts for installing and uninstalling
44 Emerald are provided in the `tools` directory.  When you're ready, type
45 this:
46
47         make latexpdf
48
49 Other formats are available; just type `make` for more details.
50
51 Conversion strategy
52 -------------------
53
54 The first three editions of the IBG were created with
55 [Adobe FrameMaker](http://www.adobe.com/products/framemaker.html).  And the
56 FrameMaker source files have kindly been supplied by Roger Firth to make
57 this update, which opened up the possibility of creating an auto-converter.
58
59 But unfortunately, what with FrameMaker being proprietary, there isn't much
60 out there apart from FrameMaker itself that can read them.  I was hoping
61 that conversion using [Mif2Go](http://mif2go.com) might be a possibility,
62 but it turns out that that's just a plugin for FrameMaker.  I guess I could
63 get a trial FrameMaker license, try to set up the plugin and get it to
64 autoconvert to some usable format, but it all looks far too messy.  But on
65 the plus side, the supplied GIF images are totally usable.
66
67 So, it's back to my original plan: use the PDF file.  Here's the first
68 (major) part of the work:
69
70 * Dump the text out of the PDF file
71 * Convert all the 3rd edition text to Sphinx format
72 * Get the online version to look good
73
74 After that comes the 4th edition changes, hopefully in collaboration with
75 others.  Also, in parallel with that, other niceties:
76
77 * Add a glossary
78 * Add an index
79 * Prepare a new PDF version, via the Sphinx LaTeX converter