summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Rough pdfmark support. Links are implemented, but not outlines.Ben Harris2006-12-02
| | | | [originally from svn r6949]
* Add a procedure to our prologue to draw filled rectangles, and use it.Ben Harris2006-12-01
| | | | [originally from svn r6938]
* Factor out printing a destination (in either an annotation or an outline)Ben Harris2006-12-01
| | | | | | into its own function. [originally from svn r6937]
* Increase page-tree branching factor from two to eight, since two was obviouslyBen Harris2006-12-01
| | | | | | silly, and eight isn't. [originally from svn r6936]
* Add support for compressed PDF streams, using Simon's new deflate library.Ben Harris2006-11-30
| | | | [originally from svn r6931]
* Small tweak: add a /ProcSet array to the top-level /Resources dictionary,Ben Harris2006-11-26
| | | | | | as recommended by the PDF spec. [originally from svn r6923]
* Explicitly explain the meaning of each HTML variant.Ben Harris2006-11-18
| | | | [originally from svn r6913]
* Emit a PageLabels dictionary to make it clear what page numbering schemeBen Harris2006-11-18
| | | | | | Halibut uses. [originally from svn r6912]
* `man', at least on Debian 3.1, will treat a paragraph beginning withSimon Tatham2006-10-11
| | | | | | | | | | | | a period specially _even_ if there's an \fB or similar escape sequence before the period. Therefore, man_rdaddctrl() now doesn't clear the QUOTE_INITCTRL flag just because it generated some text; instead, its call sites clear the flag when the _type_ of generated text is appropriate for this. This should remove an error from the `lns' man page (utils/lns/lns.but), which was where I noticed the problem. [originally from svn r6871]
* I've apparently had this lying around for months but forgotten toSimon Tatham2006-06-13
| | | | | | | | | commit it. Add `-i' option to cstable, which causes charset names to be output as CS_* constants where meaningful. (Doesn't apply to MBCS base charsets, because CS_* constants identify _encodings_.) [originally from svn r6728] [this svn revision also touched charset,filter,timber]
* Introduce global (cross-backend) \cfg{contents} and \cfg{index}Simon Tatham2006-06-02
| | | | | | | commands, allowing the fixed words "Contents" and "Index" generated in various output formats to be reconfigured into other languages. [originally from svn r6724]
* About time I fixed this: allow for some people's md5sum utilitiesSimon Tatham2006-05-19
| | | | | | producing output on stdout even in -c mode. [originally from svn r6707]
* Remove an outright lie I've just noticed in the comment at the topSimon Tatham2006-05-18
| | | | | | | of this file! [originally from svn r6705] [this svn revision also touched charset,filter,timber]
* Missing error handling: the HTML and WinHelp back ends would bothSimon Tatham2006-05-18
| | | | | | segfault if they were unable to open their output files. [originally from svn r6704]
* On Level 2 implementations, use setpagedevice to select the correct page size.Ben Harris2006-05-16
| | | | [originally from svn r6689]
* Tighten formatting of PDF annotations, making them direct rather than indirectBen Harris2006-05-14
| | | | | | | objects and removing some surplus whitespace. This saves 40K in the Halibut manual. [originally from svn r6688]
* Generate rather more compact /Differences tables for font encodings, mostlyBen Harris2006-05-14
| | | | | | | so I don't have to press SPACE so much to get to the interesting part of the file. [originally from svn r6687]
* There's no need to reset the font every line if it hasn't changed. This savesBen Harris2006-05-14
| | | | | | a few K and a lot of calls to scalefont and setfont, which is probably good. [originally from svn r6686]
* Fairly ropey font-embedding support. In particular, the PDF output isBen Harris2006-05-14
| | | | | | | | technically incorrect, though it works perfectly well with xpdf. To do it properly requires actually parsing the unencrypted part of a Type 1 font, which will be a bit tedious in C. [originally from svn r6685]
* Generate a more-or-less valid /FontDescriptor dictionary for non-standardBen Harris2006-05-13
| | | | | | fonts in PDF output. [originally from svn r6684]
* Now that we've got definitive metrics for the standard fonts, there's no needBen Harris2006-05-13
| | | | | | to embed /FirstChar, /LastChar, /Widths or (soon) /FontDescriptor for them. [originally from svn r6683]
* Add Adobe copyright notice and licence text here too.Ben Harris2006-05-13
| | | | [originally from svn r6682]
* Initial support for adding fonts at run-time. Currently we only supportBen Harris2006-05-13
| | | | | | | | loading AFM files, we recognise them by name, and we can't embed fonts in the output (which is also invalid, though accepted by xpdf, in the PDF case). Oh, and there's no documentation. Still, it's a start. [originally from svn r6681]
* Make /Widths arrays for fonts more compact by using FirstChar and LastCharBen Harris2006-05-10
| | | | | | to skip unused code points. [originally from svn r6673]
* Add a /Info dictionary to PDF output, containing the title and producerBen Harris2006-05-10
| | | | | | of the document. This means that (e.g.) gv displays the title correctly. [originally from svn r6672]
* A page's MediaBox, like its Resources, is inheritable, so rather thanBen Harris2006-05-10
| | | | | | | putting one in each page, put a single one in the top-level page tree node. This saves us all a few kilobytes in the Halibut manual. [originally from svn r6671]
* 297mm is closer to 842pt than to 841pt, and the former seems to be theBen Harris2006-05-09
| | | | | | | accepted length of A4 paper in the PostScript/PDF world, so use it as our default. [originally from svn r6669]
* When setting up a font, if we've done that font already, return theBen Harris2006-05-09
| | | | | | existing instance. This saves outputting each font several times. [originally from svn r6668]
* Add font-selection mechanism to the paper backend. Since we have no way toBen Harris2006-05-08
| | | | | | | | | | | | load font metrics dynamically, we're restricted to the fonts whose metrics are compiled into Halibut. Font structures aren't reused when the same font is specified twice, nor are unused fonts removed from the output. Finally, the default configuration overflows lines in the manual, but this would need a change to Halibut's grammar to fix. Still, what's there works. [originally from svn r6667]
* Now that I've found the core AFMs, I notice that they have a perfectlyBen Harris2006-05-08
| | | | | | | good free licence. Abide by its terms even though I'm not sure Halibut is a derived work in law. [originally from svn r6666]
* Update URLs for PostScript data files.Ben Harris2006-05-08
| | | | [originally from svn r6665]
* It's conventional to use a minus sign rather than a hyphen to separateBen Harris2006-05-08
| | | | | | | the description from the name in the NAME section of a manpage. Halibut can do that now, so make use of that ability. [originally from svn r6664]
* New configuration directives need new aliases in the index too.Ben Harris2006-05-07
| | | | [originally from svn r6663]
* Factor out another routine from man_rdaddwc(), this one to add a controlBen Harris2006-05-07
| | | | | | | string to the output. This incidentally fixes a bug whereby font changes at the start of a line weren't resetting QUOTE_INITCTRL. [originally from svn r6660]
* Pull the code to reset the output charset state out of man_rdaddwc() intoBen Harris2006-05-07
| | | | | | | its own function, since it's called so many times. Also call it in two places I'd missed. [originally from svn r6659]
* When we want a printed backslash, use \e rather than \\, since the formerBen Harris2006-05-07
| | | | | | works correctly inside macro arguments. [originally from svn r6658]
* Add support for nonbreaking hyphens to the "man" backend. man_rdaddwc() is ↵Ben Harris2006-05-06
| | | | | | | | beginning to get ugly. [originally from svn r6654]
* Display the "breaks" flag when generating a debugging dump.Ben Harris2006-05-06
| | | | [originally from svn r6653]
* Support for non-breaking spaces in the "man" backend. This has the odd ↵Ben Harris2006-05-06
| | | | | | | | | side-effect that breaking spaces are now forces to be ASCII spaces in output, whatever output charset is in force. I doubt this will inconvenience anyone. [originally from svn r6652]
* Improve rule generation in the "man" backend so that if the outputBen Harris2006-05-06
| | | | | | | is processed by nroff, the rule is made up of \cfg{man-rule} characters (same defaults as \cfg{text-rule}). [originally from svn r6651]
* Support for TROFF named characters, so we can have proper bullets in our lists,Ben Harris2006-05-06
| | | | | | | and incidentally proper (single) quotation marks too. This reworks a lot of man_convert, but I think the result is correct. [originally from svn r6650]
* Add tests of ` and ' characters, since they need special handling in the man ↵Ben Harris2006-05-06
| | | | | | backend. [originally from svn r6649]
* better para_Rule implementation for "man" backend, using TROFF's built-inBen Harris2006-05-06
| | | | | | line-drawing function. [originally from svn r6648]
* sbcsgen.pl was giving different results on different machines in the caseJacob Nevins2006-04-26
| | | | | | | | | | | where two SBCS code points mapped to a single Unicode point. Changed so that by default it favours the lower SBCS code point. On ixion, this highlighted ambiguities in CS_MAC_THAI, CS_MAC_SYMBOL, and CS_VISCII. Guessed at a preference for the first two and added "sortpriority" directives. (No idea about VISCII.) [originally from svn r6641] [this svn revision also touched charset,filter,putty,timber]
* It's a new year.Jacob Nevins2006-01-08
| | | | | [originally from svn r6513] [this svn revision also touched putty,putty-website,puzzles]
* CP866 is popular and small. Add it to both the general and PuTTYJacob Nevins2005-12-18
| | | | | | | | implementations of libcharset, since we've had at least one request for it in PuTTY. [originally from svn r6499] [this svn revision also touched charset,filter,putty,timber]
* Reinstate the DEPLANARISE macros, this time in what I believe is aSimon Tatham2005-11-15
| | | | | | | | | genuinely portable form. (Thanks to IWJ for ideas.) While I'm here, add a couple of explicit `unsigned' casts and U suffixes to prevent more pedantic compilers from warning. [originally from svn r6463] [this svn revision also touched charset,filter,timber]
* Just to be on the safe side about avoiding other portability hazardsSimon Tatham2005-11-13
| | | | | | | | | | | | in future, add `-ansi -pedantic' to the Halibut default compile options and fix the few resulting warnings (mostly signed/unsigned char mismatches and commas at the ends of enums). The one remaining warning I'm still seeing is `missing initializer' for the big table in charset/iso2022.c, but I think the code genuinely is more readable this way, and I haven't found a gcc option to disable that specific warning. [originally from svn r6458]
* `version' needs to be declared `extern'.Simon Tatham2005-11-13
| | | | [originally from svn r6457]
* Revert to "C" locale for LC_NUMERIC, so that PDFs won't be corruptedSimon Tatham2005-11-13
| | | | | | by the use of a comma as a decimal separator. [originally from svn r6456]