![]() | Chapter 22: Publishing | ![]() ![]() |
22.17. Releasing the source text |
Most authors will not want to publish the source text alongside the work itself, because this gives away all of its secrets. Inform provides the option mainly for the sake of the examples published on its own website, where making the source available is the whole point. But anyone is welcome to use the option, of course:
Release along with the source text.
If Inform is not also generating a website, this produces a plain text file called "source.txt" in the project's "Materials" folder, and there is nothing more to be said.
However, if a website is being released, the source is converted to web pages which are linked to and from the home page. (Each heading with substantive content is placed on its own web page, with the opening page containing a contents list.)
Comments in the source are rendered in grey. As a special feature, any comment which begins with an asterisk is considered a footnote and is printed below the source text, with a link. Thus comments thus:
Hercules is a demigod.[* We're using Greek spellings so he ought to be Heracles, but players are so much more familiar with Hercules.]
will be printed more like so:
Hercules is a demigod.[1]
...
Note
[1]. We're using Greek spellings so he ought to be Heracles, but players are so much more familiar with Hercules.
Footnotes are automatically numbered from 1 on each source page.
Once again, the HTML pages made can be customised by supplying a different template: if the website template is called "Frog", then the source is made using a template file called "Frog-Source.html". The following extra variables are then expanded:
[SOURCE] becomes the source text for this page
[SOURCELINKS] becomes the list of links to navigate the source site
[SOURCENOTES] becomes the list of footnote texts (empty if there are none)
Previous | Contents | Next |