Rather than referring to the external xorg.css stylesheet, embed the content
of the file in the html output produced. This is accomplished by using
version 1.10 of xorg-xhtml.xsl.
This makes the whole html docs tree much more relocatable.
In addition, it eliminates xorg.css as a runtime file which makes
xorg-sgml-doctools a build time only package.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Adding support in libX11 for html chunking caused a reorg of docbook.am
as well as the xorg-sgml-doctools masterdb for olinking.
The parameter img.src.path is added for pdf images.
A searchpath to the root builddir is added for local entities, if present.
The docbook.am makefile hides all the details and is identical for
all 22 modules having DocBook documentation. It is included by a thin
Makefile.am which requires no docbook knowledge.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Variable argument macros are not supported in C89, only C99 or a
compiler-specific extension like gcc's. Even just defining the
macro causes builds with C89 compilers to fail, as they can't
figure out how to handle #define _X_NONNULL(...), so only define
the fallback for C99 compilers.
Since this means C89 compilers will see _X_NONNULL unexpanded in
sources, add a comment to remind users that this should only be
used with #ifdef _X_NONNULL guards in public/exported API headers
we install for other software to compile against, so that we don't
break their builds.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
These keysyms are necessary for XIM to support single-keystroke
multiple-character keys on Breton C’HWERTY keyboards.
Addresses: https://bugs.freedesktop.org/show_bug.cgi?id=34453
Signed-off-by: James Cloos <cloos@jhcloos.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
These two keysyms provide exciting new possibilities of a close relationship
between our valued users and hard-working developers through innovative
logging solutions. Such keysyms truly pave new ground in the reponsiveness
to bug reports and and debug-ability of grabs.
For unprecedented uses of these keysyms, see the patches here:
http://patchwork.freedesktop.org/patch/5936/http://patchwork.freedesktop.org/patch/5935/
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
DocBook/XML input source is also a usefull output format that can be viewed
with an XML viewer or editor and by some O/S help system.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
This matches a change in xorg-sgml-docs whereby the masterdb will look for
the target dbs into the same location as the generated documents.
The target dbs are now installed alongside the generated documents.
Previously they are installed in $prefix/sgml/X11/dbs alongside masterdb which
has the potential of installing outside the package prefix and cause
distcheck to fail when user does not have write permission in this package.
Requires XORG_CHECK_SGML_DOCTOOLS(1.8) which was released 2011-06-11
Sort performed by calling “sort -k 3” on the part between #ifdef
XK_LATIN8 and #endif.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Cyril Brulebois <kibi@debian.org>
FOP gives 'Unresolved ID reference "events:FocusOut" found.' errors
when the id attribute is on the emphasis tag, so moved up to the
surrounding entry tag.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Use named id's instead of autogenerating idXXXXXX values that change
in different versions so that it's easier to have stable links.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
The overall chaos misled implementors into writing interval checks to
determine the case, but that doesn't work too well when lines aren't
sorted.
Sort performed by calling “sort -k 3” on the part between #ifdef
XK_LATIN8 and #endif.
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Saves time trawling git logs to determine what to put in the call to
PKG_CHECK_MODULES in configure.ac when you start using one of these.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Acked-by: Cyril Brulebois <kibi@debian.org>
This will allow with compiler optimization and better static analysis.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
the existing test:
defined(__STDC__) && (__STDC_VERSION__ - 0 >= 199901L) causes an
warning when building X stuff with gcc -Wundef. Other tests for
__STDC_VERSION__ in the X sources all use
defined(__STDC_VERSION__) && (__STDC_VERSION__ -0 >= 199901L)
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
When writing technical documentation, it is often necessary to cross
reference to other information. When that other information is not in the
current document, additional support is needed, namely <olink>.
A new feature with version 1.7 of xorg-sgml-doctools adds references to
other documents within or outside this package.
This patch adds technical support for this feature but does not change
the content of the documentation as seen by the end user.
Each book or article must generate a database containing the href
of sections that can be referred to from another document. This database
is installed in DATAROOTDIR/sgml/X11/dbs. There is a requirement that
the value of DATAROOTDIR for xorg-sgml-doctools and for the package
documentation is the same. This forms a virtual document tree.
This database is consulted by other documents while they are being generated
in order to fulfill the missing information for linking.
Refer to the xorg-sgml-doctools for further technical information.
Co-authored-by: Matt Dew <marcoz@osource.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Add #defines for Unicode Sinhala so that they can be used in the lk XKB
keyboard layout.
Signed-off-by: Harshula Jayasuriya <harshula@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Enabled on 2.3 and up, since that's where it's available according to
http://www.ohse.de/uwe/articles/gcc-attributes.html#func-format
Tested with gcc 3.4.3 on Solaris.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Started by taking list of event names and generating a list of perl
commands such as:
s{^\<emphasis role='bold'\>KeyPress\</emphasis\>}{<link linkend="events:KeyPress"><emphasis role='bold'>KeyPress</emphasis></link>}g;
and running that with perl -i -p /tmp/e.pl *.xml
Many of those changes were then manually reverted to avoid having
the same link appear multiple times in a paragraph or to avoid having
the definition sections link to themselves.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Started with a similar replace-regexp as the Requests chapter, but
with a lot more manual editing due to the sections with multiple
events grouped into a set.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Bulk of change performed with emacs replace-regexp:
<para id="requests:[^"]+">
<emphasis role='bold'>\([^<]+\)</emphasis>
<indexterm significance="preferred"><primary>[^<]+</primary></indexterm>
</para>
with:
</section>
<section id="requests:\1">
<title>\1</title>
<indexterm significance="preferred"><primary>\1</primary></indexterm>
Plus manual editing of the first & last section, and manual
conversion of GrabButton & GrabServer due to extra indexterm lines.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Cleans up the opening { of enum lists that the closing was handled
by commit 68bf1a7a0c
perl -i -p -e 's{^<emphasis([^>]*)>(\W+?\s+)}{$2<emphasis$1>}g' *.xml
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>