Commit Graph

26 Commits

Author SHA1 Message Date
H. Peter Anvin
5194f77bfd doc: add indented paragraphs, valid XHTML, CSS style sheet
Add indented paragraphs, which can be used to continue an item in a
bulleted list.

Produce valid strict XHTML, and include a style sheet with a navbar
and other fancy things.

Remove archaic output formats.  Now only text, XHTML, and PDF are
supported.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2017-04-13 22:12:05 -07:00
H. Peter Anvin
b1778ef7dd doc/genps.pl: move all formatting options to the front
Move all the formatting options to the beginning of the file.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2017-04-13 17:14:09 -07:00
H. Peter Anvin
ceabd83dcf doc: fix fonts where the scale (unitsPerEm) is not 1000
AFM metrics always have 1000 font units to a scaled PostScript point,
but TTF/OTF doesn't have to.  The easiest way (and the one which
best avoids unnecessary rounding) is to store the scale in the
metrics, and change pswidth.ph to return the width in PostScript
points instead of font units.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-10 15:21:04 -07:00
H. Peter Anvin
70b070f952 doc: improve the look of the documentation with better fonts
Use the Adobe Source Sans/Code Pro fonts by default.  They are Open
Source fonts by Adobe.  However, since these fonts are quite large,
let them be an external dependency and do our best to try to find them
with whatever mechanism is available on the system for finding
standard fonts.

Also have a list of substitution fonts if necessary.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-10 06:35:29 -07:00
H. Peter Anvin
841d904f88 perl: change to the new, safer 3-operand form of open()
The 2-operand form was inherently unsafe.  Use the 3-operand form
instead, which guarantees that arbitrary filenames are supported.

This also means we can remove a few instances of sysopen() which was
used for exactly this reason, however, at least in theory sysopen()
isn't portable.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-02 19:36:41 -07:00
H. Peter Anvin
407166001c Fix building in a separate directory from the source code
The code to handle building in a separate directory had seriously
bitrotted.  This contains a number of fixes to make it possible,
including bits like the documentation which never worked in the past.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2016-05-16 20:30:09 -07:00
H. Peter Anvin
c65035ecdb psfonts.ph: increase leading to font size+20%
Increase the leading from +10% to +20%, (12 pt leading for the 10 pt
bulk text.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 15:46:38 -08:00
H. Peter Anvin
13ac842709 doc: Allow repositioning the EPS logo
Allow specifying an offset from the computed position of the EPS logo:

\M{logoxadj}{adjustment}
\M{logoyadj}{adjustment}

The adjustment is given in Postscript points (1/72" = 0.352778 mm) and
using the Postscript coordinate system, with the origin in the lower
left.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-25 14:51:01 -08:00
H. Peter Anvin
e6ee1a859b Add copyright verbiage to Perl scripts; update LICENSE
This adds copyright verbiage to the Perl scripts.  Scripts that are
known to be clean w.r.t. the 2-clause BSD license are given that
license; unclear ones are given the "LGPL for now".

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2009-06-28 16:54:44 -07:00
H. Peter Anvin
6ca419e7c5 doc: slightly tidy the copyright page of the manual. 2009-04-19 17:26:09 -07:00
H. Peter Anvin
7065309739 Formatting: kill off "stealth whitespace"
"Stealth whitespace" makes it harder to read diffs, and just generally
cause unwanted weirdness.  Do a source-wide pass to get rid of it.
2007-10-19 14:42:29 -07:00
Eric Christopher
1e0de6e913 Fix documentation building for non-srcdir builds. Still bugs in .ps implementation.
Add Mach-O documentation.
2006-02-04 00:23:30 +00:00
H. Peter Anvin
4c8aaa01b5 Fix em dashes which were broken by charset cleanup change 2002-05-21 06:07:36 +00:00
H. Peter Anvin
1aa9a42c5d Clean up the character set handling somewhat. 2002-05-20 19:50:34 +00:00
H. Peter Anvin
e0372c8c05 Add version number to the cover page, generated from the version file. 2002-05-18 20:36:25 +00:00
H. Peter Anvin
365dc47adb Include the NASM logo from the specified EPS file rather than hard-coding it. 2002-05-16 19:33:27 +00:00
H. Peter Anvin
7557a10045 Minor formatting tweaks. 2002-05-16 18:34:57 +00:00
H. Peter Anvin
5cea9565e0 Changing "hanging comma" index entries to omit the comma, and to
unify with a previous baseword entry if one is present.
2002-05-16 18:08:15 +00:00
H. Peter Anvin
23ae7026a8 Generate "hanging comma" clauses in the index 2002-05-16 06:40:56 +00:00
H. Peter Anvin
bede787f76 Use a fontset for the title. Change fonts to use Times throughout. 2002-05-16 02:11:21 +00:00
H. Peter Anvin
7c96f11285 Fix a typo which caused the index to be generated incorrectly. 2002-05-15 21:32:56 +00:00
H. Peter Anvin
cae60c4344 Strip the anchor tags from the table of contents 2002-05-15 21:13:59 +00:00
H. Peter Anvin
13a9b0351e Use a custom font encoding vector; generate copyright (inner cover) page 2002-05-15 21:00:30 +00:00
H. Peter Anvin
1aef73430e Make the new PS/PDF backend somewhat configurable 2002-05-15 19:02:52 +00:00
H. Peter Anvin
916c52e376 New PS/PDF backend: first attempt at generating the index 2002-05-15 07:11:21 +00:00
H. Peter Anvin
4ca9e3c0e4 Work in progress: new PostScript/PDF generator back end 2002-05-14 21:59:59 +00:00