summaryrefslogtreecommitdiff
path: root/input.c (follow)
Commit message (Collapse)AuthorAge
* Forgot to set a file position on characters being returned fromSimon Tatham2004-08-20
| | | | | | macro expansions. [originally from svn r4489]
* Right; I'm finally sick of typing \q{\cw{foo}}, so I've invented aSimon Tatham2004-07-16
| | | | | | shorthand command \cq{foo}. [originally from svn r4327]
* Sort out error handling everywhere a charset name is converted intoSimon Tatham2004-06-27
| | | | | | an integer charset ID. [originally from svn r4317]
* Enforce that \q may not be used anywhere within \c. It shouldn't beSimon Tatham2004-06-12
| | | | | | | | | | | | | necessary since the whole point of \c should be that the user wants to exercise exact control over the glyphs used, and forbidding it has the useful effect of relieving some backends of having to make difficult decisions: it means the text backend doesn't have to nest two pairs of identical quotes, and the paper backends don't have to downgrade their quote characters if (as is perfectly plausible) the fixed-pitch font doesn't support the same range as the body text fonts. [originally from svn r4277]
* Switch the memory allocation macros from the Halibut onesSimon Tatham2004-06-12
| | | | | | | | | | | | | (mknew/mknewa/resize) to the PuTTY ones (snew/snewn/sresize). snewn and mknewa have their arguments opposite ways round; this may make the change initially painful but in the long term will free me of a nasty context switch every time I move between codebases. Also sresize takes an explicit type operand which is used to cast the return value from realloc, thus enforcing that it must be correct, and arranging that if anyone tries to compile Halibut with a C++ compiler there should be a lot less pain. [originally from svn r4276]
* Enhance the text backend to support configurable quote characters,Simon Tatham2004-04-23
| | | | | | | | | | | configurable emphasis characters, various other configurable bits which have been marked FIXME in the code for a while, and also to warn when a code paragraph line is too long (because that was the only other thing labelled FIXME). Fallback options are implemented, and defaults set accordingly. A UTF-8 text output file now looks like proper UTF-8. [originally from svn r4128]
* 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]
* Support the \W{...}\i\c{...} combination used in the NASM manual.Simon Tatham2004-04-15
| | | | | | | | Halibut is now capable of reading the old NASM manual with only minor modifications, and probably doing a much better job of formatting it than rdsrc.pl ever did. (Certainly much _faster_!) [originally from svn r4081]
* 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]
* \lcont and \quote were being confused by whitespace (in particular,Simon Tatham2004-03-30
| | | | | | | | | a single newline) immediately after their opening brace; this was causing a normal paragraph to be started, thus making it fiddly and annoying to arrange the first paragraph of a \lcont to be a code para or anything else special. Now fixed. [originally from svn r4005]
* Make \ii work!Simon Tatham2004-03-30
| | | | [originally from svn r4003]
* Introduce \. as a NOP command. The purpose of this is to act as aSimon Tatham2004-03-25
| | | | | | | | | zero-width delimiter between a macro invocation and text beyond it, so that you can define (say) a macro which expands to a Euro sign and then write `\eur\.2500' to avoid having space between the Euro sign and the number. [originally from svn r3982]
* Obsoleted the `\preamble' command. Preamble text is now taken to beSimon Tatham2004-03-25
| | | | | | | | | | any ordinary displayable paragraph(s) appearing before the first chapter heading, meaning in particular that you can put lists, code paragraphs etc in preambles. Of course, `\preamble' is still supported for backwards compatibility, but it's now a zero-effect paragraph marker. [originally from svn r3981]
* Add a \quote{...} directive, working like <blockquote> in HTML.Simon Tatham2004-03-25
| | | | [originally from svn r3978]
* Cleanups to complete the man page backend. Also, an additional newSimon Tatham2004-03-24
| | | | | | | | | | | | | markup feature: a \c line in a code paragraph can now be followed by an optional \e line indicating emphasised bits of its preceding \c. This allows discretionary bolding and (italic/underline) emphasis within code paragraphs, but without introducing an escape character or breaking any existing input files. Users are warned that not all backends are required to actually render these hints, and so they should avoid depending on them 100% to convey semantic information unless they know they're writing for a restricted range of backends. [originally from svn r3965]
* 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]
* Just had a play with this newfangled `valgrind' memory debuggerSimon Tatham2002-08-23
| | | | | | | thingy, which seems moderately cool and has reported a few very small memory leaks. Now apparently fixed. [originally from svn r1863]
* Arrange for multiple \cfg, \IM and \BR paragraphs to not requireSimon Tatham2002-08-12
| | | | | | | blank-line separators (config directives visually _want_ to be in a single chunk). [originally from svn r1837]
* Rename Buttress to Halibut. I _think_ I've caught everything in this pass.Simon Tatham2002-08-05
| | | | [originally from svn r1800]
* Buttress was dealing poorly with \r in input files (though not _too_Simon Tatham2001-12-14
| | | | | | | | poorly; mostly it just treated \r as whitespace, and the only time it actually suffered was at the end of a line in a code paragraph). Should now be fixed. [originally from svn r1492]
* 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]
* Replace Buttress's old tree23 routines with my shiny new countedSimon Tatham2001-12-04
| | | | | | tree234 routines; they will be useful in the WinHelp stuff at least. [originally from svn r1444]
* Fix segfault on \W{URL}\cw{link text} construction.Simon Tatham2001-10-25
| | | | [originally from svn r1321]
* Add nonbreaking space as \_Simon Tatham2000-11-22
| | | | [originally from svn r810]
* Daft error in input.c was causing messy aux fields and misgenerated emphasisSimon Tatham1999-11-12
| | | | | | in text output. Now all aux fields are carefully zeroed when not used [originally from svn r307]
* First stab at text backend configurabilitySimon Tatham1999-11-07
| | | | [originally from svn r276]
* Configurability backbone, and first use of itSimon Tatham1999-11-07
| | | | [originally from svn r275]
* Added \q{...} for quoted textSimon Tatham1999-11-07
| | | | [originally from svn r274]
* Macros; \- for nonbreaking hyphenSimon Tatham1999-10-24
| | | | [originally from svn r252]
* Fix a couple of segfaults in error handling codeSimon Tatham1999-10-22
| | | | [originally from svn r250]
* Added \rule for a horizontal ruleSimon Tatham1999-10-22
| | | | [originally from svn r248]
* Now get start-of-paragraph diagnoses _right_... *sigh*Simon Tatham1999-10-22
| | | | [originally from svn r246]
* Introduce word types for attributed spaces, so backends can distinguishSimon Tatham1999-10-22
| | | | | | between emphasis _like_ _this_ and _like this_ [originally from svn r245]
* We were failing to diagnose bad command at paragraph startSimon Tatham1999-10-21
| | | | [originally from svn r242]
* Now handle \\, \{ and \} in paragraph keywordsSimon Tatham1999-10-21
| | | | [originally from svn r241]
* 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]
* More development...Simon Tatham1999-09-12
| | | | [originally from svn r220]
* 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]
* Wrote some of the lexer. Nothing works yet.Simon Tatham1999-02-05
| | | | [originally from svn r24]
* Fixed silly mistake in the read-character routineSimon Tatham1999-01-30
| | | | [originally from svn r23]
* Initial checkin of skeleton application. About to start reading filesSimon Tatham1999-01-30
[originally from svn r22]