Get rid of unwanted whitespace before punctuation by moving them to the
lines with the tags, instead of before & after.
perl -i -0 -p -e 's{\>\s*\n([\.,;:])}{>\1\n}g' *xml
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Get rid of unwanted whitespace inside parens by moving them to the
lines with the tags, instead of before & after.
perl -i -0 -p \
-e 's{(?<!--) \(\s*\n\<}{\n(<}g;' \
-e 's{\>\s*\n\)([\.,;]?)(?! [^\n]*--)}{>)\1\n}g' *xml
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Most were caught by applying libX11 lists, but BadKeyboard & XKB*_Bad*
are XKB-specific. (Plus some were badly split across tag boundaries.)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
All the places marked by these have been turned into the appropriate
link, xref, or olink tags now.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
- Stop placing <emphasis> on empty space, commas, and periods.
- Move periods & commas after closing </emphasis> tag
- move <emphasis> open & close tags to same line, instead of mirroring
nroff layout.
Simplifies automating further transformations of these tags.
Performed via:
perl -i -0 -p \
-e 's{<emphasis>(\s*)</emphasis>}{}msg;' \
-e 's{<emphasis>([\s\.,]*)</emphasis>\s*}{\1}msg;' \
-e 's{\n([\.,])\s*}{\1\n}msg;' \
-e 's{([^\.])([\.,])\s*</emphasis>}{\1</emphasis>\2}msg;' \
-e 's{\s*<emphasis>\n\s*}{\n<emphasis>}msg;' *xml
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
On certain tables, add top and bottom borders to table header
and a bottom border to the table. This matches what those
tables in the old pdfs looked like.
the <?dbfo keep-together='always'> prevents tables from
splitting across pages. Useful for tiny tables.
Converting the colwidth to a floating point, IE, 1* -> 1.0*
cleans up these build errors:
WARNING: table-layout="fixed" and column-width unspecified =>
falling back to proportional-column-width(1)
Signed-off-by: Matt Dew <marcoz@osource.org>
1 - fix the capitalization of the ID attributes to match either the
<title> or <funcdef> string it goes with.
2 - fix any <linkend>'s that were affected by 1.
3 - any <function> in the docs that has an actual funcdef,
will become an olink.
Signed-off-by: Matt Dew <marcoz@osource.org>