path: root/doc/genps.pl
Commit message (Collapse)AuthorAgeFilesLines
* doc: swap 'hyphen' and 'minus' in PostScript definitionH. Peter Anvin (Intel)2020-07-021-2/+2
| | | | | | | | | | | | It appears that at least with the Adobe Source fonts: 'hyphen' -> U+002D (ASCII) 'minus' -> U+2212 This is ugly for cut & paste purposes. Reported-by: C. Masloch <pushbx@ulukai.org> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: actually *use* the smaller code font size...H. Peter Anvin (Intel)2020-06-271-2/+2
| | | | | | Helps to actually use what is intended. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* doc: we really need a Fontmap filenasm-2.15rc0-20191005H. Peter Anvin2019-10-041-20/+35
| | | | | | | | | | | | | | | | | It turns out that we need a Fontmap file after all, *and* -I. to make gs find it. Inconsistent results came from stray Fontmap files from previous debug attempts. Now generate both fontpath and Fontmap, and hopefully at least one of them should work. We might, in fact, need both, one for gs to know where the files are and one for gs to know it is allowed to read them. The core problem seems to be that gs will find OTF fonts by its normal discovery mechanisms, but for some reason don't seem to use them unless it can find them in a Fontmap, Font directory, of CIDFont directory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: fix yet another set of Ghostscript font problemsH. Peter Anvin2019-06-061-1/+23
| | | | | | | | Seems like Ghostscript has managed to break fontconfig support again, at least in Fedora 30. Help Ghostscript along by giving it an explicit font path. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* nasmdoc.pdf: always begin a chapter on an odd pagenasm-2.13rc20-20170418H. Peter Anvin2017-04-171-2/+4
| | | | | | | If we want to print the document, we really want each chapter to start on an odd (right-facing) page; otherwise it gets rather strange. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* doc/genps: make sure we pick up nasmlogo.eps when building cross-dirH. Peter Anvin2017-04-171-4/+10
| | | | | | | When building in a different directory, we still want to make sure we pick up nasmlogo.eps. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* doc: add indented paragraphs, valid XHTML, CSS style sheetH. Peter Anvin2017-04-131-4/+8
| | | | | | | | | | | | | 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>
* doc/genps.pl: move all formatting options to the frontH. Peter Anvin2017-04-131-47/+50
| | | | | | Move all the formatting options to the beginning of the file. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* doc: fix fonts where the scale (unitsPerEm) is not 1000H. Peter Anvin2017-04-101-5/+5
| | | | | | | | | | 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>
* doc: improve the look of the documentation with better fontsH. Peter Anvin2017-04-101-18/+57
| | | | | | | | | | | | 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>
* perl: change to the new, safer 3-operand form of open()H. Peter Anvin2017-04-021-5/+4
| | | | | | | | | | | 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>
* Fix building in a separate directory from the source codeH. Peter Anvin2016-05-161-5/+8
| | | | | | | | 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>
* psfonts.ph: increase leading to font size+20%H. Peter Anvin2012-02-251-1/+1
| | | | | | | 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>
* doc: Allow repositioning the EPS logoH. Peter Anvin2012-02-251-0/+7
| | | | | | | | | | | | | 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>
* Add copyright verbiage to Perl scripts; update LICENSEH. Peter Anvin2009-06-281-0/+33
| | | | | | | | 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>
* doc: slightly tidy the copyright page of the manual.nasm-2.06rc10-20090419H. Peter Anvin2009-04-191-6/+12
* Formatting: kill off "stealth whitespace"H. Peter Anvin2007-10-191-1/+1
| | | | | "Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
* Fix documentation building for non-srcdir builds. Still bugs in .ps ↵Eric Christopher2006-02-041-16/+19
| | | | | | implementation. Add Mach-O documentation.
* Fix em dashes which were broken by charset cleanup changeH. Peter Anvin2002-05-211-2/+2
* Clean up the character set handling somewhat.H. Peter Anvin2002-05-201-67/+59
* Add version number to the cover page, generated from the version file.H. Peter Anvin2002-05-181-4/+13
* Include the NASM logo from the specified EPS file rather than hard-coding it.H. Peter Anvin2002-05-161-33/+66
* Minor formatting tweaks.H. Peter Anvin2002-05-161-10/+16
* Changing "hanging comma" index entries to omit the comma, and toH. Peter Anvin2002-05-161-2/+15
| | | | unify with a previous baseword entry if one is present.
* Generate "hanging comma" clauses in the indexH. Peter Anvin2002-05-161-6/+34
* Use a fontset for the title. Change fonts to use Times throughout.H. Peter Anvin2002-05-161-8/+8
* Fix a typo which caused the index to be generated incorrectly.H. Peter Anvin2002-05-151-1/+1
* Strip the anchor tags from the table of contentsH. Peter Anvin2002-05-151-2/+18
* Use a custom font encoding vector; generate copyright (inner cover) pageH. Peter Anvin2002-05-151-24/+150
* Make the new PS/PDF backend somewhat configurableH. Peter Anvin2002-05-151-6/+52
* New PS/PDF backend: first attempt at generating the indexH. Peter Anvin2002-05-151-149/+293
* Work in progress: new PostScript/PDF generator back endH. Peter Anvin2002-05-141-0/+776