annotate DOCS/xml/README @ 10796:266bf4b596a3

Support for grayscale paletted files. Patch by Dima K <dimakar@yahoo.com>
author mosu
date Tue, 02 Sep 2003 14:48:49 +0000
parents 970a95a4d856
children 74fde9d0cab6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 Tools required for building the documentation
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
3
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 * DocBook 4.1.2 or later
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 * The DocBook XML DTD (also known as DocBk XML)
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 * DocBook XSL stylesheets -- version 1.50.0 or later is recommended.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
7
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 I am not quite sure which tools work, but I used the following
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 ones successfully, so they are required:
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
10
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 * xmllint (part of libxml2) is used for validation.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 * xsltproc (part of libxslt1) is used for transforming XML files into HTML
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 files. Version 1.0.18 or later is recommended.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
14
10025
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
15 Also it's possible to use the Saxon XSLT Processor. Russian translator
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
16 used it (version 6.4.4) for a while. To enable it change USE_SAXON to 1 in
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
17 the Makefile.
970a95a4d856 Add support for the Saxon XSLT Processor.
lumag
parents: 9953
diff changeset
18
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
19
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 Building the documentation
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 ~~~~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
22
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 1) Before trying to build the documentation, run
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
24
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 make test
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
26
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 to see if everything is set up properly. If something goes wrong,
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 check the Configuration section of the toplevel Makefile and adjust
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 the variables.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
30
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
31
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 2) Now simply run
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
33
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 make all
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
35
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 to build the documentation.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
37
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
38
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
39 A few words about SGML catalog files
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
41
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
42 As far as I know, the document type declaration in XML files requires
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 both a public and a system identifier. For example:
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
44
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd">
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
47
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 where
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
49
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
50 "-//OASIS//DTD DocBook XML V4.1.2//EN"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
51
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 is the public, and
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
53
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd"
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
55
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 is the system identifier.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
57
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 The problem is that the system identifier is most probably system-dependent.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 To avoid the need to manually fix the system identifiers before building the
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 documentation, I've decided to use SGML catalogs. If you have your catalogs
9953
diego
parents: 9674
diff changeset
61 set up correctly, xmllint and xsltproc will use them to find the DTDs
9674
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 based on the public identifiers.
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
63
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 Note that this works only if public identifiers override system identifiers
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 (i.e. the catalog file must contain 'OVERRIDE YES'). (I had no problem with
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 these on my system, since the Debian people took care of everything. ;-))
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
67
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
68
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 --
461f71ba8af4 XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 Andras Mohari