Commit graph

173 commits

Author SHA1 Message Date
Denis Peplin
ee53d80ba8 Set SP_ENCODING from SP_ENCODING_LIST
Add KOI8-R to this list
Other encodings can be added after some testing

Note: KOI8-R supported by jade-1.2.1_8 and above

Reviewed by:		Dmitry Morozovsky <marck@rinet.ru>, ru
With cleanups from:	ru
No objections from:	freebsd-doc
2004-08-06 05:22:17 +00:00
Hiroki Sato
ca944c36ab Remove trailing whitespaces. 2004-07-23 18:58:56 +00:00
Hiroki Sato
c8277d756c Fix a build problem when print/ghostscript-afpl is used:
- epsgeom+gs now converts EPS files.  graphics/peps is no longer used.
 - Add $PERL, $REALPATH, and $SETENV into doc.project.mk.

Tested by:	simon
2004-07-23 18:53:34 +00:00
Murray Stokely
551eaf5b40 Add a DSSSL stylsheet to enable more efficient spellchecking. This
stylesheet omits the contents of <filename>, <devicename>,
<programlisting>, and other tags that are likely to not contain real
English words.  The output of this stylesheet can then be checked with
'make spellcheck' with far fewer false positives.
2004-07-14 05:28:11 +00:00
Hiroki Sato
eb69b4c15d Fix the lint target to use ${NSGMLSFLAGS}. 2004-07-07 13:30:49 +00:00
Hiroki Sato
a13b50e98b Unbreak the build.
Pointy hat to:	hrs
2004-07-07 11:23:16 +00:00
Hiroki Sato
84f8ee0a15 Use relative URLs when URL_RELPREFIX is defined and URLS_ABSOLUTE
is not defined.

- URL_RELPREFIX must always point the top page's URL
  (http://www.FreeBSD.org) in relative form, defined in Makefile.

- &url.base; can be used in doc/<langcode>/*.  It will be
  replaced with the real URL which points the top page.

For translators: Please make sure to define URL_RELPREFIX to
point the top page.  The localized docs have different directory
hierarchy in its URL from the English version.

Tested by:	den
2004-07-06 15:09:55 +00:00
Hiroki Sato
afc3a245b3 Use URLS_ABSOLUTE=yes for non-html formats and during
"make package".

Suggested by:	den
2004-05-12 12:58:12 +00:00
Hiroki Sato
413af34cb6 Reimplement absolute/relative URL knob. Urls.ent now statically
includes the both of relative and absolute URLs, and when
the URLS_ABSOLUTE make variable is defined, absolute URLs in
share/sgml/urls.ent are used.
2004-05-11 10:59:48 +00:00
Hiroki Sato
5350ccb9b2 Unbreak the build. The current URLS_ENT cannot support .OBJDIR
when .CURDIR is not under DOC_PREFIX.  This is a band-aid measure
but I will fix this soon.

Pointy hat to:	hrs
2004-05-11 10:35:19 +00:00
Denis Peplin
d25767864b Move
SRCS+= ${URLS_ENT}
from English Handbook Makefile to doc.common.mk

Reviewed by:	hrs
2004-05-11 05:52:39 +00:00
Denis Peplin
2b0f6c0e65 Use &url.main; entity in place of ../../../..
Replace &url.main; -> http://www.FreeBSD.org
when URLS_ABSOLUTE is set (for release building),
and -> ../../../.. by default (for mirror sites).

Patch was slightly modified by:	hrs
Discussed with:	des, ceri, hrs, trhodes, simon
2004-05-05 12:52:48 +00:00
Simon L. B. Nielsen
c0dc63ac06 Really unbreak creation of PDF documents which use "shared" PNG images:
The previous fix only worked in some cases, so back it out and add a
more clean fix.  This fix also makes "make clean" work as expected again
for the shared PNG images.

The real problem is the assumption in doc.images.mk that the
${IMAGES_PDF} variable only need to contain images converted to PDF
format and not images which are already in PNG format.  We need to list
the PNG images in ${IMAGES_PDF} since they might be in a shared image
directory, and if we don't list them in ${IMAGES_PDF} they will not be
copied to the working directory and will therefor not be found during
build.

Prompted by:	phantom
2004-04-05 22:53:43 +00:00
Simon L. B. Nielsen
c187df3fbf Unbreak creation of PDF documents which use PNG images (e.g.
articles/console-server), by also copying PNG images to the working
directory during PDF build.
2004-03-24 22:57:56 +00:00
Alexey Zelkin
a4ef4bf328 We never used .docb suffix in the project tree, so do not mention it
in comments.
2004-03-24 09:52:57 +00:00
Alexey Zelkin
713a6ebd26 Introduce BZIP2_PACKAGE user defined variable which used to control
output format of 'make package'.  If BZIP2_PACKAGE is set, then .tbz
archive will be generated instead of .tgz.
2004-03-24 09:50:03 +00:00
Alexey Zelkin
7f574a3bf2 Fix 'make package' to generate valid packages
After introduction of shared images concept it was not possible to realize
how images should be put into packages, so built images references were
used.  It result up tgz file with lots filename which contained of '..'.

In order to workaround this issue I used temporary directory to install
complete packaging document, then generate PLIST based on content of
temporary directory and create actual package then.

Prodded by:	The FreeBSD Russian Documentation Project
2004-03-24 09:45:31 +00:00
Alexey Zelkin
79d9b31fc9 Unconditionally set 'NO_SUBDIR' define.
doc.docbook.mk includes bsd.subdir.mk via bsd.obj.mk which is responsible
for processing of 'SUBDIR' make variable.  But since we are handling
'SUBDIR' here explicitly, doing same thing (second time!) via
bsd.subdir.mk's rules makes no sense and only adds disk IO overhead.

It reduces install recursive calls by factor 4.
2004-03-23 23:53:27 +00:00
Hiroki Sato
ed2b02d9be Use FOO_CMD instead of FOO to avoid a conflict with a variable used
in the docproj port.  TEX, LATEX, PDFTEX, JADETEX, and PDFJADETEX
has been renamed to TEX_CMD, LATEX_CMD, PDFTEX_CMD, JADETEX_CMD, and
PDFJADETEX_CMD for consistency.  And TEXCMDS has been renamed
TEX_CMDSEQ because TEXCMDS and TEX_CMD are misleading names.

Discussed on:	-doc
2004-02-16 14:13:24 +00:00
Hiroki Sato
6b2564e38e Install TRADEMARKS.html and LEGALNOTICE.html missing in HTML.manifest. 2004-02-08 12:34:16 +00:00
Hiroki Sato
1afd84c68b Add $JADETEX and $JADEPDFTEX. 2004-02-04 16:47:22 +00:00
Hiroki Sato
2e2010fbb7 Improve transtable.{xml,xsl}, including:
- The structure of transtable.xml is revised.  <word> should be
   bracketed with <group>.

 - A sorting order of the FreeBSD mirror sites rendered using
   mirrors.xml has been determined by sort(1).

 - A template "transtable-lookup" has been added for localization on
   word-by-word basis.

 - Replace English month names in news.xml, press.xml, and
   advisories.xml with numbers that correspond to the names.
   The number->name translation is performed on the fly.

 - Since information in mirrors.xml is used in www/ tree, it depends on
   doc/ tree now.  When WITHOUT_DOC is defined it can be built without
   doc/ tree, but some information becomes unavailable.  For example,
   a list of the mirror sites generated in index.html becomes a dummy
   one, and calling "transtable-lookup" with a word returns the word
   itself.

Neither www/ nor doc/ build should be broken due to this commit, but
until the necessary changes are applied in the localized directories,
the transtable does not work; it simply generates non-localized contents
even if transtable.xsl is used.
2004-01-12 21:27:01 +00:00
Hiroki Sato
2194b439bc Disable a guess of ${LANGCODE} from ${.CURDIR} when it is already defined.
Pointed out by:	ue
2004-01-06 23:57:46 +00:00
Hiroki Sato
354d1cc7e5 Fix problems when ghostscript with A4=yes is used. 2003-12-30 21:41:17 +00:00
Murray Stokely
1d5eac4d80 Add a 'GREYSCALE_IMAGES' option to the print infrastructure to convert
screenshots to greyscale before embedding them in the PostScript
output.

Sponsored by:	FreeBSD Mall, Inc.
2003-12-08 02:37:02 +00:00
Hiroki Sato
944a63f930 - Fix ${LANGCODE} problem when the working directory's absolute pathname
includes "doc" and "www" simultaneously.

Spotted by:	ceri

- Use www/share/sgml/advisories.xml instead of
  www/en/security/advisories.xml.
2003-11-26 01:47:00 +00:00
Hiroki Sato
05c16e954c Trim useless commands. 2003-11-24 19:59:11 +00:00
Hiroki Sato
252ac09ed2 Add a workaround to unbreak the build when ghostscript built
with A4=yes is used.

Discussed on:	-doc
2003-11-24 18:34:01 +00:00
Hiroki Sato
20bedcfcf2 Add refinements on mirrors.xml:
- add doc.common.mk, which defines variables, targets, and
   dependencies commonly used in www/ and doc/.

 - move www/<lang>/includes.xsl to the language independent
   directory and split into several files.

 - add transtable*.xsl and transtable.xml to support localized
   mirror names.

 - make doc/{en_US.ISO8859-1,ja_JP.eucJP}/books/handbook/ use
   mirrors.xml (mirrors and eresources).

 - make www/{en,ja}/index.xsl use mirrors.xml.

For details, please see doc/share/sgml/README.mirrors for the moment.

Reviewed by:	simon and Alex Dupre <sysadmin@alexdupre.com>
2003-11-24 18:26:35 +00:00
Hiroki Sato
8aeea9b2b6 Move lists of FreeBSD mirror sites to doc/share/sgml/mirrors.xml
(currently en_US.ISO8859-1/books/handbook/mirrors and
www/en/index.xsl use it).

Reviewed by:	simon
Discussed on:	-doc
2003-11-16 18:56:24 +00:00
Ceri Davies
636e72e5a6 Add LEGALNOTICE.html and TRADEMARKS.html to CLEANFILES when appropriate. 2003-10-02 19:46:49 +00:00
Simon L. B. Nielsen
4c6ebf3b41 Change the default Tidy options so it doesn't indent, and so it wraps
the lines at column 90, instead of the default 68.  This makes the
resulting HTML considerably smaller.

The change also band-aid a problem where Tidy wrap lines which shouldn't
have been wrapped.  This can cause extra spaces in the resulting HTML,
e.g. resulting in "( audio/lame)" instead of "(audio/lame)".

Discussed on:	-doc
2003-09-18 21:39:37 +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
Marc Fonvieille
21aca1de1c Add more warnings to make lint. It should be possible now to find
empty and unclosed tags.  I used the word "should" because sometimes it
does not work, however most of malformed tags are found now.
That idea came after a talk with Denis Peplin.
2003-08-27 07:10:36 +00:00
Marc Fonvieille
f8cfbd21b0 Remove -p option from ${MKDIR} definition to avoid redundancy (options
should be specified out from the variable definition).

PR:		docs/54422
Submitted by:	Lukas Ertl <l.ertl@univie.ac.at>
2003-08-01 20:28:55 +00:00
Marc Fonvieille
efd8e60b6d Quick fix to produce correct html.tar and html.split.tar tarballs
PR:	docs/52419
2003-07-05 10:09:50 +00:00
Hiroki Sato
7ed83a52a2 Add ${PREFIX}/share/sgml/catalog.ports into ${CATALOGS} explicitly. 2003-07-03 13:02:31 +00:00
Jun Kuriyama
514993ec31 Collect catalogs only if avaiable.
In xmlcatmgr world, only ${PREFIX}/share/{sgml,xml}/catalog is
required from under ${PREFIX}.
2003-07-03 03:49:48 +00:00
Tom Rhodes
3d8fe4fa43 Quiet a few make warnings by adding a few .if statements.
bsd.obj.mk already includes bsd.subdir.mk so there is no need
to include it twice.

PR:		52540
Submitted by:	"Simon L.Nielsen" <simon@nitro.dk>
Tested with:	cd doc/ && make
2003-05-21 21:16:10 +00:00
Ceri Davies
a8bb589a42 Slightly beef up the spellcheck target so that it works for the html-split
and txt formats as well as the html format.

Reviewed by:	murray
2003-05-21 11:23:45 +00:00
Murray Stokely
a3f6280993 www/links1 is sufficient to dump HTML to text for all cases, so we
don't need to use w3m here.  Move HTML2TXT definition from doc.html.mk
to the global doc.project.mk.
2003-05-04 11:13:57 +00:00
Murray Stokely
8a01141e46 Add a simple script to locate areas of a DocBook file where
<indexterms> are sparse.  Also add makefile glue so that this may be
invoked on the Handbook or any other document in the FDP tree by
typing "make indexcheck".

Sponsored by:	FreeBSD Mall, Inc.
2003-05-04 04:59:43 +00:00
Murray Stokely
34ccdb09ce Add an ispell-based "spellcheck" target to the doc build
infrastructure.

Sponsored by:	FreeBSD Mall, Inc.
2003-05-04 04:51:09 +00:00
Hiroki Sato
f6cd99b654 Back out WITH_DOCFORMAT_NAVI_LINK?=YES in Makefile. The navi-link
is generated when ${WITH_DOCFORMAT_NAVI_LINK} is defined or
${FORMATS} includes "html" and "html-split."
2003-04-22 18:35:44 +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
Marc Fonvieille
47f6d4e260 Commit images separation from en_US.ISO8859-1/ directory to
share/images.  To link "generic" images (share/images ones) from
Makefiles use IMAGES_EN and to link localized images use IMAGES.
For an example look at en_US.ISO8859-1/books/handbook/Makefile
2003-04-11 09:21:15 +00:00
Ceri Davies
9486dcc1b3 Now that the docproj port is updated accordingly, use version 4.2 of the
docbook-xml DTD when building with the xsl stylesheet.
2003-04-09 22:46:30 +00:00
Ceri Davies
86d10cdda4 Clean up properly when STYLESHEET_TYPE is set to "xsl".
Reviewed by:	trhodes
2003-04-08 22:00:23 +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
Marc Fonvieille
53756ddd2e Add ${DOC}.ps in pdf target CLEANFILES, this is needed to correctly clean
the Handbook build in pdf format.
2003-02-01 15:14:40 +00:00