Commit graph

89 commits

Author SHA1 Message Date
Hiroki Sato
c94bdf1708 Add separator support to <copyright><holder> rendering when there are multiple
copyright holders.

Spotted by:	yar
2006-02-21 19:23:30 +00:00
Pav Lucistnik
8ecae3308c - Switch manpage vendor "ports" to point to "FreeBSD 5.4-RELEASE and Ports"
collection in cgi; the existing link lacks the manpages

Fixes:		docs/89081
2006-01-05 08:48:41 +00:00
Murray Stokely
59141428ec Use widely supported smartquote entities rather than double ``ticks''.
Works well with mozilla, opera, lynx, and links, but the entities are
not supported by w3m.
2005-05-05 17:14:17 +00:00
Hiroki Sato
6178a7ad5d Remove unnecessary quotation marks from <meta> element.
Spotted by:	Byung-Hee HWANG (bh at izb dot knu dot ac dot kr)
2004-12-31 22:34:52 +00:00
Hiroki Sato
c949c5a344 Fix <email> rendering when the length of the address is shorter
than 12 characters.
2004-12-29 17:24:58 +00:00
Marc Fonvieille
e189cd5d77 Enhance email element: do not render with "mailto:" when nolink role
attribute is used or when the email address matches
@example.{com|net|org}

Discussed with:	murray, nik and hrs
2004-12-17 09:46:08 +00:00
Hiroki Sato
c24e829215 Add a <meta> tag into %html-header-tags% to explicitly declare
the charset of HTML files generated from an DocBook/SGML file.

Note to translators:

  While some of the translations already use this tweak
  in their localized freebsd.dsl, it is no longer needed so
  removed and the necessary changes have been added instead.
  After this commit, please make sure to define
  &doc.html.charset; in <langcode>/share/sgml/l10n.ent.
  If not defined, iso-8859-1 is used by default and it can
  break the translation.

Discussed on:	-doc
2004-11-07 16:26:09 +00:00
Ceri Davies
631dc54dfb Correct approximately 85% of validation warnings.
Reviewed by:	trhodes
2004-10-29 15:36:27 +00:00
Marc Fonvieille
419fb1d8a4 Add manpath for Xorg and update various other manpaths (6-CURRENT,
XFree86 4.4 and OpenBSD 3.4)
2004-08-30 09:19:35 +00:00
Marc Fonvieille
4e43c19774 Add output.rtf.images entry. This will be used with the rtf backend to
specify the image extension (png) and force callouts text markers.
The callout markers from 1 to 9 are not correctly rendered under
OpenOffice (I don't know about other rtf viewers).  I don't have a
solution for this problem for the moment.
2004-08-12 15:00:11 +00:00
Murray Stokely
524c6a7c57 Override the default $acronym-seq$ formatting to look for a role
attribute in acronym DocBook tags and use this for the title attribute
in acronym HTML4 tags, which will then give a mouseover definition of
the acronym.
2004-07-15 08:26:33 +00:00
Murray Stokely
c62dacb9c5 Since the print output is passed through TeX anyway, we might as well
format it properly with the \TeX command.  Likewise for instances of
LaTeX in our documentation.

There should be no change for the HTML output, where they will still
be rendered in bold characters like all other text wrapped in <application>.
2004-07-14 09:44:30 +00:00
Marc Fonvieille
e8ae652251 Update manpath to 5.2-current 2004-01-16 16:02:01 +00:00
Simon L. B. Nielsen
735adb61ad Fix display of trademarks in print output by moving the default value
of %show-all-trademark-symbols% from the HTML only section to the
general section.

Reported by:	Jon Allen <jonallen@paunix.org>, bmah
Pointy hat to:	simon
2003-11-14 21:17:46 +00:00
Simon L. B. Nielsen
16d9a01672 Add support for optionally showing all trademark symbols, not just the
required symbols, by setting the make variable
WITH_ALL_TRADEMARK_SYMBOLS, to any non empty value.

This feature is mainly useful for document writers, to make sure all
trademarks are marked up correctly.
2003-09-14 13:11:43 +00:00
Simon L. B. Nielsen
fbc02a2044 Add special handling of the DocBook trademark tag.
Each trademark will only have a trademark symbol appended the first
time in a document for print / html, and the first time on each HTML
page for html-split.

It is possible to always append the trademark symbol for a trademark,
by setting the role attribute to "force" in the trademark tag.

The code differentiates between trademarks in normal text and titles,
so if there is a trademark in a title, the symbol will be displayed
the first time in the title, and the first time in the normal text.

Basically this means that all trademarks can / should be marked up in
the documents, and the stylesheet will do "the right thing".

Looked at by:	murray
Approved by:	mwlucas (temp mentor)
2003-08-20 15:40:46 +00:00
Marc Fonvieille
91685a2c0e Add manpath for OpenBSD manual pages, with this change manual page
entities for OpenSSH (ssh(1), etc.) will work.  A vendor attribute
'openbsd' was added for this purpose.
2003-08-14 12:41:40 +00:00
Marc Fonvieille
49baa82f31 Update the manpath for -CURRENT manual pages. 2003-07-16 15:35:12 +00:00
Murray Stokely
28adb85d88 Override the normal legalnotice processing to always render this
element if role="trademarks".  Otherwise, fall back to the default
processing (which doesn't always get displayed, depending on some
variables).
2003-06-17 20:22:51 +00:00
Hiroki Sato
ecd26f86b1 Move ($create-refentry-xref-link$) to share/sgml/freebsd.dsl
and the localized sysids to <langcode>/share/sgml/catalog.

Since <langcode>/share/sgml/freebsd.dsl still include some
language-neutral parameters and procedures for printable formats,
I will work on assorting them similarly.  I am sorry that
this (and probably the next) commit may break the translation
team's usual update procedure, but you can merge the language-specific
freebsd.dsl from the English version as before.

Discussed on:	-doc
2003-05-22 15:03:50 +00:00
Hiroki Sato
4f8b26641c - Add WITH_DOCFORMAT_NAVI_LINK to mk/doc.docbook.mk and
enable it in en_US.ISO8859-1/ and ja_JP.eucJP/.

- Add PUBLIC "-//FreeBSD//ENTITIES DocBook Language Specific Entities//EN"
  and l10n.ent for entity localization.

- Use share/misc/docbook.css for indentiation of <programlisting>
  and <screen>.

- Add some missing $FreeBSD$.
2003-04-19 11:39:30 +00:00
Hiroki Sato
dec7f3cd8e Add the following knobs for the DocBook DSSSL stylesheets:
- WITH_INLINE_LEGALNOTICE (for HTML only):
     do not render <legalnotice> as a separate file if defined.

 - WITH_ARTICLE_TOC:
     generate TOC for documents whose root element is <article> if defined.

 - WITH_BIBLIOXREF_TITLE:
     for cross references to bibliography entries, use the title of
     the entry as the cross reference text, if defined.
2003-02-16 14:59:30 +00:00
Ceri Davies
ac307bceb7 s/seperate/separate/ 2002-11-20 19:41:10 +00:00
Nik Clayton
66e8205da4 Fix a long-standing bug in the way (the lack of) images is handled in the
'text-only' case.

Do this by explicitly setting preferred-mediaobject-notations to the
empty list.

This has only worked for so long because the source format for images in
all the documents with plain text equivalents for images has been EPS,
which isn't used in the HTML output format.  If PNG images were used
then the <textobject> element wasn't chosen.
2002-10-28 19:35:31 +00:00
Marc Fonvieille
ea1af70d8c Fix <citerefentry> definition to support 'vendor' attribute to select
which of the CGI manual page collections to use.
Some changes have to be done in local freebsd.dsl, look at
http://www.freebsd.org/cgi/cvsweb.cgi/doc/en_US.ISO8859-1/share/sgml/freebsd.dsl.diff?r1=1.14&r2=1.15
for more details.

Reviewed by:	nik
2002-08-27 14:03:38 +00:00
Dima Dorfman
9d1a5ade02 Replace the <port> tag with a construct in terms of <filename>:
<filename role="package">.  The <port> tag as it was had two major
defects: (a) the name is ambiguous (does "port" mean "architecture"?
how about "TCP/UDP port"?), and (b) it introduces a non-standard (to
DocBook) tag, which is generally assumed to be evil.

Moral support by:	bmah, keramida, mwlucas, roam
2002-02-27 04:56:44 +00:00
Bruce A. Mah
1f72c2c952 Override the count-footnotes? function of the DSSSL print stylesheet
to fix a bug that would cause footnote numbering to be messed up if
using %footnote-ulinks% and we had any empty <ulink></ulink> elements
in a document.  (This happens a lot in the release documentation.)

This change has been submitted to the DocBook bug database on
SourceForge as bug #502066.  When it gets included into the
DocBook DSSSL distribution and the corrected version gets incorporated
into the FreeBSD Ports Collection, I'll back out the change in our
(FreeBSD's) stylesheet.
2002-01-10 22:09:44 +00:00
Bruce A. Mah
aa2feecbf6 Apply a needed invocation of our fix-url procedure when trying to do
URLs as footnotes.

"Cargo cult" programming at its best.
2002-01-08 03:49:50 +00:00
Bruce A. Mah
a2d357c3a4 Fix a bug in the FreeBSD print stylesheet that resulted in the
combination of %footnote-ulink% and bop-footnotes not generating any
URL footnotes (although other footnotes in documents were
correct).  freebsd.dsl contains a modified definition of the
ulink element as defined in dblink.dsl from the DSSSL print stylesheet;
unfortunately it was missing some lines of code, which we restore.

As of this commit, no document in the FDP uses %footnote-ulink%,
although the release documentation will enable it shortly.
2002-01-07 03:46:24 +00:00
Murray Stokely
c0e16ca1e7 Back out r1.59 until I have time to fix this properly
Requested by: bmah
2001-12-20 13:52:16 +00:00
Murray Stokely
0b61dde25e Correctly use the \url{} macro for ulinks without any content.
So <ulink url="bla"></ulink> will be displayed properly.
2001-10-13 01:07:24 +00:00
Murray Stokely
24818905cc Silence a warning for HTML output, and add some more special handling
for the justified print output case.
2001-09-13 07:34:57 +00:00
Murray Stokely
f0a4faa9b7 Whitespace change only. 2001-09-11 08:56:52 +00:00
Murray Stokely
2f6155eed2 Use a formatting-instruction to work around the problem where Jade
thinks that it must never output something like "_" to the TeX
backend, and should instead use \char{95}.  The package we are using
to hyphenate URLs, url.sty, is designed to allow URLs without worrying
about such things, and will literally display the \char{95} without
this patch.
2001-09-11 08:47:53 +00:00
Murray Stokely
621456e13d Add a new parameter entity output.print.twoside, which redefines some
of the functions to get correct page numbering for two sided output.
This code will also have to insert some blank pages to make sure part
and chapter headers always start on a verso page.  This is an
improvement, but it is also a work in progress that should be in the
tree so others can experiment with it.

The most visible impact is that the Chapter 1 now starts on page 2
instead of page 1.  Part I now starts on page 1 instead of xviii.
When this is done properly, Chapter 1 will start on page 3.
2001-09-11 02:31:50 +00:00
Murray Stokely
45c7fe1389 Wrap <filename> in \url{...} if justification is turned on. This
prevents the majority of the remaining margin overflows.  However,
this solution isn't very elegant in that it completely ignores
<replaceable>s inside of a <filename> element.  The normal TeX that
gets output inside of \url{..} confuses TeX, so we must simply process
the children of replaceable without doing any additional formatting
inside of the \url{..} (such as putting the text into italics).

More work needs to be done on this.
2001-09-11 02:06:03 +00:00
Murray Stokely
872e454400 Add a formatting instruction to wrap URLs in \url{} for the print
backend.  This allows JUSTIFY=1 to look much nicer.  Filenames still
aren't handled, but there is another TeX package for that that I will
use shortly.
2001-09-08 02:21:19 +00:00
Murray Stokely
eca1d05330 Add a new option 'JUSTIFY' which can be used to tell the TeX backend
to make the paragraphs right justified using TeX's default hyphenation
rules.  We still must add some hooks to certain elements (URLs) to
deal with special cases that TeX can't hyphenate well.
2001-09-08 01:59:22 +00:00
Murray Stokely
7f68ef77e2 We don't want to label the preface sections, if present. 2001-09-07 22:26:45 +00:00
Bruce A. Mah
cd4ba70ca7 Back out 1.43->1.44 delta, which turned on hyphenation and justification
by default for printed output.  It turns out that this combination results
in URLs running of the right margin of the printed page.

This back-out is a temporary work-around to fix the PS/PDF
documentation for the impending 4.4-RELEASE.

Approved by:	murray
2001-08-27 04:01:40 +00:00
Dima Dorfman
4cc873c196 Match beginning and ending tag names.
PR:		29655
Submitted by:	Peter Johnson <freebsd@bilogic.org>
2001-08-14 05:22:57 +00:00
Dima Dorfman
5b273a9676 Move the sgmltag comment to where it belongs (i.e., above the sgmltag
code, not in the middle of no man's land).

PR:		29655
Submitted by:	Peter Johnson <freebsd@bilogic.org>
2001-08-14 05:18:06 +00:00
Murray Stokely
2f6147a6ac Another update to the <authorgroup> / <*info> handling. See the
comment for details.

Hashed out with: chern
2001-08-09 23:18:34 +00:00
Murray Stokely
0128e1ed79 Make author attributions show up in italics at the front of each
chapter/section to match our old way of doing things.  Each <author> in
an <authorgroup> will be attributed with :

   "<contrib> by <author>.  "
2001-08-09 00:28:10 +00:00
Chern Lee
1121738517 port tag links:
http://www.FreeBSD.org/cgi/url.cgi?ports/category/port changed to:
http://www.FreeBSD.org/cgi/url.cgi?ports/category/port/pkg-descr

The CGI returns "port does not exist" for the old instance.

Reviewed by:	murray
2001-08-09 00:14:42 +00:00
Murray Stokely
d79e4c4fad Turn on justification and hyphenation by default for print output. 2001-08-02 03:24:04 +00:00
Murray Stokely
a7fe7f4563 Use DSSSL's (next-match) function to fall through to next most
specific construction rule instead of duplicating code when we want to
conditionally alter the stylsheets.

Suggested by: Norman Walsh
Referenced in: ISO/IEC 10179:1996(E) p180-181
2001-07-27 21:16:55 +00:00
Chern Lee
2da5194780 Make <envar> show up as monospaced font in printed version.
Reviewed by:	murray
2001-07-24 23:09:25 +00:00
Dima Dorfman
59292e255d Introduce a <port> element that answers the question of how to mark up
a port name.  Right now, it renders as monospace, and with a hyperlink
to the port's pkg-descr file if possible.
2001-07-24 11:07:59 +00:00
Murray Stokely
bd3a3ce150 Last commit prevented <ulinks> in the index from showing up properly for
printed output.  This fixes indexterms so that page numbers are
displayed following the indexed word/phrase.
2001-07-21 09:09:59 +00:00