repository overview

about

information about this package can be found in the README. here is a html-version of the README:

status

starting to become useful.  the library interface will probably
change.

intro

the library textmangle parses readable utf-8 ascii text and distills
block-level layout information from it.  it can then convert it to
either text, html (with or without keeping original formatting),
latex or troff (ms).  there is no code yet for parsing inline layout
information, it may be added in the future.
the syntax is inspired by markdown, restructured text, etc.
the following layout information can be found in a document:
headers
starting with a ``#'', multiple such hashes can be specified,
causing deeper levels of headings.
quoted text
just indented text.  handled the same as normal text, except
that headers are treated as normal text.
list
a listing.  items start with either ``- '', ``* '' or ``• ''.
multi-line text can be created by starting second and later
lines with two spaces.  complexer structures can be created
by indenting text after the first (single- or multiline)
element.
description
lists one-line titles, and then their descriptions.  the
title can only be one line long.  the description follows
immediately, as indented text.  just like with lists, complex
constructures can be create.
paragraph
just a paragraph of text
sequence
sequence of constructs, with each construct being one of
the above.
this file is valid textmangle-syntax.

download

get the latest version at:
http://www.ueber.net/code/r/textmangle

install

make sure you have $ROOT set, now "mk install" to compile and install
the files.
when building from within inferno, insert SYSHOST=Inferno and ROOT=
in the mk invocations to override the values in the mkconfig.

run

the program "mangletext" uses the library to parse text and output
in one of the formats.  see the program's usage for help.  the
program is a simple example of how to use the library.  the library
has output generating functions (they are small).

licence & author

this code is in the public domain.  the code is written by mechiel
lukkien, reachable at mechiel@xs4all.nl or mechiel@ueber.net.

todo

clone

to clone & pull:

hg clone http://www.ueber.net/hgsrv/textmangle/
or
hg clone static-http://www.ueber.net/who/mjl/hg/textmangle/

tgz

download a snapshot of the latest version: textmangle-4.tgz.

contents

the files in the latest revision can be found at /hg/textmangle/files/tip/. a specific revision can be access by replacing "tip" with the revision number, (partial) nodeid or tag name. a few direct links to useful files in the latest revision:

limbo module files:

limbo source files:

changes

rev nodeid when diff why
4 34814b88d8cc 6 weeks diff add mkconfig, document it in README, style nit.
3 665ddc2ed872 12 months diff some leftovers after merge...
2 8975a79effa1 12 months diff make xhtml more compliant.
1 0d5d4c14cc50 17 months diff fix url of homepage, and add a bunch of todo's.
0 5b313cf9efb7 18 months - initial version of textmangle. a library + example tool to parse ...