Index of /~atehwa/Stx

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[   ]stx2any.12014-07-22 14:52 13K 
[   ]stx-mode.el2014-07-22 14:52 5.9K 
[   ]strip_stx.12014-07-22 14:52 2.3K 
[DIR]scripts/2014-07-22 14:52 -  
[DIR]regression/2014-07-22 14:52 -  
[DIR]man/2014-07-22 14:52 -  
[DIR]latex/2014-07-22 14:52 -  
[   ]html2stx.12014-07-22 14:52 1.4K 
[DIR]html/2014-07-22 14:52 -  
[   ]gather_stx_titles.12014-07-22 14:52 2.9K 
[   ]extract_usage_from_stx.12014-07-22 14:52 1.6K 
[DIR]examples/2014-07-22 14:52 -  
[DIR]docbook-xml/2014-07-22 14:52 -  
[DIR]debian/2014-07-22 14:52 -  
[DIR]common/2014-07-22 14:52 -  
[DIR]_darcs/2011-02-15 11:26 -  
[   ]TODO2014-07-22 14:52 1.5K 
[TXT]README.html2014-07-22 14:52 4.2K 
[   ]README2014-07-22 14:52 2.5K 
[   ]Makefile2014-07-22 14:52 4.1K 
[   ]LICENSE2014-07-22 14:52 618  

Stx document tools distribution

Stx document tools distribution

What is this?

This software distribution is a bunch of tools to deal with structured text (Stx). Stx is a kind of plain text format with semantic markup. Stx is documented in:

Of some interest may be also Accreditions of ideas behind structured text.

There are a homepage (currently in the author's wiki), and a distribution page at http://sange.fi/~atehwa/ for this project. You can contact the author at mailto:atehwa@sange.fi.

Included tools

The following tools are included:

stx2any
This is the main tool, an utility to convert Stx into other formats.
strip_stx
A simple literal programming tool for document-programs written in Stx.
gather_stx_titles
A utility for generating cross references between documents written in Stx.
extract_usage_from_stx
A utility for producing Usage: messages and manual pages from the same source.
html2stx
Conversion tool from HTML to Stx. This makes it easy to import documents written in other formats into Stx. Besides, you can tidy an HTML document by converting it first into Stx, then back into (X)HTML.
stx-mode.el
An emacs mode for writing Stx documents. Provides syntax highlighting, paragraph filling, and simple interfaces to stx2any for those who cannot use the command line.

Installation

A traditional make && make install will do. You can override the make variable PREFIX to install somewhere else than /usr. Other variables you might want to override include EMACSDIR and MANDIR. Take a look at the ./Makefile.

The installation process of stx2any normally uses w3m to produce usage messages from Stx. If you don't want to install w3m, you can give make the option BUILD_USAGE_WITH=plain to avoid using w3m. The only consequence is that usage messages (the output of stx2any --help, for instance) will look cruder.

If you have a debian box, you can build a debian package directly by saying fakeroot debian/rules binary and installing the resulting package with dpkg -i.

Implementation documentation

Parsing phase:

Output format independent m4 definitions:

Output format specific m4 definitions: