summaryrefslogtreecommitdiff
path: root/main.c (follow)
Commit message (Collapse)AuthorAge
* Support the locale-supplied character set where appropriate. It'sSimon Tatham2004-04-22
| | | | | | | | | | used for converting command-line -C directives into Unicode; it's used for outputting Unicode strings to stderr in error messages; and it's used as the default character set for input files (although I'd be inclined to recommend everyone use \cfg{input-charset} in all their source files to ensure their portability). [originally from svn r4114]
* Ahem. Fix stupid string handling error in new command-line configSimon Tatham2004-04-20
| | | | | | mechanism. [originally from svn r4103]
* Infrastructure changes for character set support. ustrtoa,Simon Tatham2004-04-20
| | | | | | | | | | | ustrfroma, utoa_dup and ufroma_dup now take a charset parameter, and also have a variety of subtly distinct forms. Also, when a \cfg directive is seen in the input file, the precise octet strings for each parameter are kept in their original form as well as being translated into Unicode, so that when they represent filenames they can be used verbatim. [originally from svn r4097]
* Support for \cfg{input-charset}. Input files can now be in ASCII,Simon Tatham2004-04-19
| | | | | | | 8859-*, UTF-8, or a variety of more fun encodings including various multibyte ones. [originally from svn r4095]
* Initial work on PS and PDF output. Because these two backends shareSimon Tatham2004-04-13
| | | | | | | | | | | | | | | | | | | an enormous amount of preprocessing and differ only in their final output form, I've introduced a new type of layer called a `pre-backend' (bk_paper.c is one). This takes all the information passed to a normal backend and returns an arbitrary void *, which is cached by the front end and passed on to any backend(s) which state a desire for the output of that particular pre-backend. Thus, all the page layout is done only once, and the PS and PDF backends process the same data structures into two output files. Note that these backends are _very_ unfinished; all sorts of vital things such as section numbers, list markers, and title formatting are missing, the paragraph justification doesn't quite work, and advanced stuff like indexes and PDF interactive features haven't even been started. But this basic framework generates valid output files and is a good starting point, so I'm checking it in. [originally from svn r4058]
* Info backend now takes care to avoid magic characters in node namesSimon Tatham2004-04-10
| | | | | | | | | | and index terms (the Info format doesn't like them). In the course of this I've had to introduce some infrastructure for carrying a filepos forward from the definition of every RHS index term so that a particular backend can provide a usefully localised report of which index term had a problem. [originally from svn r4051]
* Added an info(1) backend, which constructs .info files directlySimon Tatham2004-04-09
| | | | | | | without going through the .texi source stage. A few things left to do, notably documentation, but the basics all seem to be there. [originally from svn r4047]
* Arrange a mechanism whereby each backend can be passed a filenameSimon Tatham2004-04-01
| | | | | | | | | from its command-line option (`--text=foo.txt') and automatically convert it into one or more notional \cfg directives. In the HTML case this mechanism enables single-file mode as well as setting the filename. [originally from svn r4018]
* Add the -C command-line option, which allows arbitrary \cfgSimon Tatham2004-03-31
| | | | | | directives to be supplied on the Halibut command line. [originally from svn r4013]
* Make a start on command-line options. Here I introduce --text,Simon Tatham2004-03-31
| | | | | | | --html, --winhelp and --man (plus spelling variations :-), which allow you to choose to run only a subset of backends. [originally from svn r4012]
* Man-page back end for Halibut. Also, a couple of additional markupSimon Tatham2004-03-23
| | | | | | | | | features commonly used in man pages: (a) the ability to nest paragraph breaks, code paragraphs and other lists inside list items, and (b) description lists as normally used in man pages to describe command-line options. [originally from svn r3954]
* Rename Buttress to Halibut. I _think_ I've caught everything in this pass.Simon Tatham2002-08-05
| | | | [originally from svn r1800]
* Keywords are now collected using a B-tree rather than an array withSimon Tatham2001-12-14
| | | | | | | | heapsort. This makes the code much simpler for a start, but the main reason is so that we can spot duplicate keywords as we go along rather than having to wait until the end of input processing. [originally from svn r1489]
* This update should bring the Windows Help back end up toSimon Tatham2001-12-04
| | | | | | | near-complete functionality. All that's missing now is indexing and horizontal rules. [originally from svn r1449]
* Most of a Windows Help back end now appears to work. Missing areSimon Tatham2001-12-04
| | | | | | | | | | hierarchical topic navigation (menus at the bottom of non-leaf topics, and the Up button) and index support; also I want to give users the ability to specify context IDs for particular topics. Oh, and I haven't found a plausible way to express a horizontal rule in either .RTF or .HLP format. But everything else appears to be there. [originally from svn r1447]
* Enforce proper ordering of heading levels: specifically, ensure theSimon Tatham2001-10-25
| | | | | | | | | | user doesn't skip a heading level (\H before any \C or \A, or \S straight after \C with no intervening \H). The precise criterion is that when creating section a.b.c.d, sections a.b.c, a.b and a should already exist. This ensures the section tree really is a properly formed tree with no missing nodes. [originally from svn r1329]
* Initial checkin of xhtml backend.James Aylett2000-12-21
| | | | [originally from svn r828]
* Macros; \- for nonbreaking hyphenSimon Tatham1999-10-24
| | | | [originally from svn r252]
* Introduce word types for attributed spaces, so backends can distinguishSimon Tatham1999-10-22
| | | | | | between emphasis _like_ _this_ and _like this_ [originally from svn r245]
* First backend! Text output now pretty much works.Simon Tatham1999-10-20
| | | | [originally from svn r240]
* Further development; mid-end index handling pretty much there!Simon Tatham1999-10-18
| | | | [originally from svn r238]
* Further development: index work, phase ISimon Tatham1999-10-16
| | | | [originally from svn r237]
* Redo memory allocation to use mknew macroSimon Tatham1999-09-02
| | | | [originally from svn r214]
* Further development; bibliographies seem to workSimon Tatham1999-08-15
| | | | [originally from svn r200]
* More development; not nearly finished yetSimon Tatham1999-08-09
| | | | [originally from svn r193]
* Further development work. Parser nearly finishedSimon Tatham1999-07-31
| | | | [originally from svn r187]
* Initial checkin of skeleton application. About to start reading filesSimon Tatham1999-01-30
[originally from svn r22]