Anonymous avatar Anonymous committed ab8faf3

r5037@telaviv1: shlomi | 2008-05-12 15:33:01 +0300
DocBook CSS Enabling.

1. Added the DocBook CSS stylesheets and installed them in all the places
under dest/t2-homepage.

2. Enabled the <?xsl-stylesheet?> directive in the XML sources.

3. Fixed the building of the db2rtf in the docbook-render.mak, after it
was broken by adding the -l /usr/share/sgml/xml.dcl flag.

Comments (0)

Files changed (25)

 DOCBOOK_INSTALLED_XMLS = $(foreach doc,$(DOCBOOK_DOCS),$(T2_DEST)/$(call get,DOCBOOK_DIRS_MAP,$(doc))/$(doc).xml)
 DOCBOOK_INSTALLED_RTFS = $(foreach doc,$(DOCBOOK_DOCS),$(T2_DEST)/$(call get,DOCBOOK_DIRS_MAP,$(doc))/$(doc).rtf)
 DOCBOOK_INSTALLED_INDIVIDUAL_XHTMLS = $(foreach doc,$(DOCBOOK_DOCS),$(T2_DEST)/$(call get,DOCBOOK_DIRS_MAP,$(doc))/$(doc))
+DOCBOOK_INSTALLED_CSS_DIRS = $(foreach doc,$(DOCBOOK_DOCS),$(T2_DEST)/$(call get,DOCBOOK_DIRS_MAP,$(doc))/docbook-css)
 
 # DOCBOOK_DOCS = \
 # 	case-for-drug-legalisation \
 
 SCREENPLAY_SOURCES_ON_DEST = $(T2_DEST)/humour/TOWTF/TOW_Fountainhead_1.txt $(T2_DEST)/humour/TOWTF/TOW_Fountainhead_2.txt $(T2_DEST)/humour/humanity/Humanity-Movie.txt $(T2_DEST)/humour/Star-Trek/We-the-Living-Dead/star-trek--we-the-living-dead.txt
 
-docbook_targets: $(DOCBOOK_TARGETS) $(ST_WTLD_TEXT_IN_TREE) $(SCREENPLAY_RENDERED_HTMLS) $(SCREENPLAY_SOURCES_ON_DEST) $(DOCBOOK_FOS) $(DOCBOOK_PDFS) install_docbook_pdfs install_docbook_xmls install_docbook_rtfs install_docbook_individual_xhtmls
+docbook_targets: $(DOCBOOK_TARGETS) $(ST_WTLD_TEXT_IN_TREE) $(SCREENPLAY_RENDERED_HTMLS) $(SCREENPLAY_SOURCES_ON_DEST) $(DOCBOOK_FOS) $(DOCBOOK_PDFS) install_docbook_pdfs install_docbook_xmls install_docbook_rtfs install_docbook_individual_xhtmls install_docbook_css_dirs
 
 lib/docbook/rendered/%.html: lib/docbook/essays/%/all-in-one.html
 	./bin/clean-up-docbook-xsl-xhtml.pl -o $@ $<
 	fop -fo $< -pdf $@
 
 $(DOCBOOK_RTF_DIR)/%.rtf: $(DOCBOOK_XML_DIR)/%.xml $(MAIN_SOURCES)
-	db2rtf $(DB2_PRINT_FLAGS) -o $(DOCBOOK_RTF_DIR) $<
+	db2rtf $(DB2_PRINT_FLAGS) -o $(DOCBOOK_RTF_DIR)  $<
 
 $(DOCBOOK_INDIVIDUAL_XHTML_DIR)/%: $(DOCBOOK_XML_DIR)/%.xml $(XSL_SOURCES)
 	$(XMLTO_WITH_PARAMS) --stringparam "docmake.output.format=xhtml" -m $(XHTML_XSLT_SS) -o $@ xhtml $<
 tidy: all
 	perl bin/run-tidy.pl
 
-.PHONY: install_docbook_pdfs install_docbook_xmls install_docbook_rtfs install_docbook_individual_xhtmls
+.PHONY: install_docbook_pdfs install_docbook_xmls install_docbook_rtfs install_docbook_individual_xhtmls install_docbook_css_dirs
 
 install_docbook_pdfs: make-dirs $(DOCBOOK_INSTALLED_PDFS)
 
 install_docbook_rtfs: make-dirs  $(DOCBOOK_INSTALLED_RTFS)
 
 install_docbook_individual_xhtmls: make-dirs $(DOCBOOK_INSTALLED_INDIVIDUAL_XHTMLS)
-	
+
+install_docbook_css_dirs: make-dirs $(DOCBOOK_INSTALLED_CSS_DIRS)
+
 # This copies all the .pdf's at once - not ideal, but still
 # working.
 $(DOCBOOK_INSTALLED_PDFS) : $(DOCBOOK_PDFS)
 
 $(DOCBOOK_INSTALLED_INDIVIDUAL_XHTMLS) : $(DOCBOOK_INDIVIDUAL_XHTMLS)
 	rsync -r -v $(DOCBOOK_INDIVIDUAL_XHTML_DIR)/$(notdir $@) $(dir $@)
+
+$(DOCBOOK_INSTALLED_CSS_DIRS) : lib/sgml/docbook-css/docbook-css-0.4/
+	rsync -r -v $< $@

lib/docbook/xml/case-for-drug-legalisation.xml

-<?xml version='1.0' ?>
+<?xml version='1.0' encoding="utf-8"?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/case-for-file-swapping-rev3.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/end-of-it-slavery.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/foss-and-other-beasts.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/introductory-language.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/isr-pales-conflict-solution.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/objectivism-and-open-source.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/the-eternal-jew.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/docbook/xml/what-makes-software-high-quality.xml

 <?xml version='1.0' ?>
+<?xml-stylesheet href="docbook-css/driver.css" type="text/css"?>
 
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
 "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"[

lib/make/docbook/docbook-render.mak

 
 DB2_DSSSL_SS = $(DOCMAKE_DSSSL_PATH)/shlomif-essays.dsl
 
-DB2_COMMON_FLAGS = -c /etc/sgml/catalog
+DB2_COMMON_FLAGS = -c /etc/sgml/catalog -l /usr/share/sgml/xml.dcl
 DB2_PRINT_FLAGS = $(DB2_COMMON_FLAGS) -d '$(DB2_DSSSL_SS)\#print'
 DB2_HTML_FLAGS = $(DB2_COMMON_FLAGS) -d '$(DB2_DSSSL_SS)\#html'
 

lib/sgml/docbook-css/docbook-css-0.4/COPYING

+Copyright (c) 2004 David Holroyd, and contributors.
+
+Permission to use, copy, modify and distribute this software and its
+documentation for any purpose and without fee is hereby granted in
+perpetuity, provided that the above copyright notice appear in all
+copies, and that both the copyright notice and this permission notice
+appear in supporting documentation. The contributors make no
+representations about the suitability of this software for any
+purpose. It is provided "as is" without express or implied warranty.
+
+THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

lib/sgml/docbook-css/docbook-css-0.4/CREDITS

+This stylesheet was writen by David Holroyd, with patches, suggestions,
+translations, and other help from these people:
+
+  David Leppik
+  Martin Gautier
+  Asia Magiera
+  Federico Koessler
+  Katie McSweenie
+
+Many thanks to all of them!

lib/sgml/docbook-css/docbook-css-0.4/core.css

+/*
+ * core.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ */
+
+/* Generated 2002-12-12 */
+abbrev, accel, acronym, action, application, artpagenums, authorinitials, 
+bibliocoverage, biblioid, bibliomisc, bibliorelation, bibliosource, citation, 
+citebiblioid, citerefentry, citetitle, city, classname, co, command, 
+computeroutput, constant, coref, country, database, date, email, emphasis, 
+envar, errorcode, errorname, errortext, errortype, exceptionname, fax, 
+filename, firstname, firstterm, funcdef, funcparams, function, group, 
+guibutton, guiicon, guilabel, guimenu, guimenuitem, guisubmenu, hardware, 
+honorific, initializer, inlineequation, inlinegraphic, inlinemediaobject, 
+interface, interfacename, invpartnumber, isbn, issn, keycap, keycode, 
+keycombo, keysym, lineage, lineannotation, link, literal, markup, medialabel, 
+member, menuchoice, methodname, methodparam, modifier, mousebutton, olink, 
+ooclass, ooexception, oointerface, option, optional, orgdiv, orgname, 
+otheraddr, othername, pagenums, paramdef, parameter, phone, phrase, pob, 
+postcode, productname, productnumber, prompt, property, pubdate, pubsnumber, 
+quote, refpurpose, replaceable, returnvalue, revnumber, seriesvolnums, 
+sgmltag, shortcut, state, street, structfield, structname, subscript, 
+superscript, surname, symbol, systemitem, token, trademark, type, ulink, 
+userinput, varname, volumenum, wordasword, year {
+	display:inline;
+}
+
+abstract, ackno, address, answer, appendix, article, attribution, authorblurb, 
+bibliodiv, biblioentry, bibliography, bibliomixed, bibliomset, biblioset, 
+blockquote, book, callout, calloutlist, caption, caution, chapter, 
+cmdsynopsis, colophon, constraintdef, dedication, epigraph, equation, example, 
+figure, formalpara, glossary, glossdef, glossdiv, glossentry, glosslist, 
+graphic, graphicco, highlights, imagedata, imageobjectco, important, index,
+indexdiv,  indexentry, informalequation, informalexample, informalfigure,
+informaltable, itemizedlist, legalnotice, listitem, lot, lotentry,
+mediaobject, mediaobjectco, msg, msgentry, msgexplan, msgmain, msgset, note,
+orderedlist, para, part, partintro, personblurb, preface, primaryie,
+printhistory, procedure, productionset, programlistingco, qandadiv, qandaentry,
+qandaset, question, refentry, refentrytitle, reference, refnamediv, refsect1,
+refsect2, refsect3, refsection, refsynopsisdiv, revhistory, screenco,
+screenshot, secondaryie, sect2, sect3, sect4, sect5, section, seealsoie, seeie,
+set, setindex, sidebar, simpara, simplemsgentry, simplesect, step, substeps, 
+subtitle, synopfragment, synopfragmentref, table, term, tertiaryie, tip, 
+title, toc, tocback, tocchap, tocentry, tocfront, toclevel1, toclevel2, 
+toclevel3, toclevel4, toclevel5, tocpart, variablelist, varlistentry, warning, 
+sect1 {
+	display:block;
+}
+
+appendixinfo, area, areaset, areaspec, articleinfo, bibliographyinfo, 
+blockinfo, bookinfo, chapterinfo, colspec, glossaryinfo, indexinfo, indexterm,
+itermset, modespec, objectinfo, partinfo, prefaceinfo, primary, refentryinfo, 
+referenceinfo, refmeta, refsect1info, refsect2info, refsect3info, 
+refsectioninfo, refsynopsisdivinfo, screeninfo, secondary, sect1info, 
+sect2info, sect3info, sect4info, sect5info, sectioninfo, see, seealso, 
+setindexinfo, setinfo, sidebarinfo, spanspec, tertiary {
+	display:none;
+}
+
+classsynopsisinfo, funcsynopsisinfo, literallayout, programlisting, screen, 
+synopsis {
+	white-space:pre;
+	font-family:monospace;
+	display:block;
+}

lib/sgml/docbook-css/docbook-css-0.4/db-bindings.xml

+<?xml version="1.0"?>
+<bindings xmlns="http://www.mozilla.org/xbl"
+     xmlns:html="http://www.w3.org/1999/xhtml">
+  <binding id="ulink">
+    <handlers>
+      <handler event="click" button="0"
+               action="window.location=this.attributes.url.value;"/>
+      <handler event="mouseover"
+               action="window.status=this.attributes.url.value;"/>
+      <handler event="mouseout"
+               action="window.status=null;"/>
+    </handlers>
+  </binding>
+
+  <binding id="image">
+    <content>
+      <html:img xbl:inherits="src=fileref"/>
+    </content>
+
+    <implementation>
+      <constructor>
+	var img = document.getAnonymousNodes(this)[0];
+	var file = this.getAttribute("fileref");
+	// HACK: using img.src=file 'inline' doesn't seem to work
+	//       but it does when called from a setTimeout()
+	var f = function() { img.src = file; }
+	setTimeout(f, 0);
+      </constructor>
+    </implementation>
+  </binding>
+</bindings>

lib/sgml/docbook-css/docbook-css-0.4/driver.css

+/*
+ * driver.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ *
+ * This is the 'driver' file of the stylesheet.  It imports all the major
+ * stylesheet components.  If you want to make use of this stylesheet in your
+ * XML document (e.g. for display in a web browser), include a line like this
+ * at the top of the XML file (replacing <ver> with the version number):
+ *
+ *   <?xml-stylesheet href="docbook-css-<ver>/driver.css" type="text/css"?>
+ *
+ * If you want to customise the stylesheet, a customisation layer can be
+ * created by simply witing a new CSS file, and including a declaration to
+ * import this file at the top.  The customisation layer can then override any
+ * of the existing stylesheet rules, or create new ones.
+ */
+
+@import "core.css";
+@import "tables.css";
+@import "styles.css";
+@import "l10n.css";
+@import "mozilla.css";
+@import "opera.css";

lib/sgml/docbook-css/docbook-css-0.4/l10n.css

+/*
+ * i10n.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ *
+ * This file deals with localisation ('l10n') of CSS generated content by
+ * delegating to each of the locale-specific files in the l10n directory.
+ */
+
+
+/*
+ * 'en' doesn't specify 'lang()' selectors, so its settings will be the
+ * default where no localisation is available for a particular language.
+ * It must come first; other lauguages override it.
+ */
+@import "l10n/en.css";
+
+@import "l10n/pl.css";
+@import "l10n/de.css";
+@import "l10n/es.css";

lib/sgml/docbook-css/docbook-css-0.4/l10n/de.css

+@charset "utf-8";
+/*
+ * l10n/de.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ */
+
+question:lang(de):before {
+	content: "F: ";
+}
+answer:lang(de):before {
+	content: "A: ";
+}
+
+example > title:lang(de):before {
+	content: "Beispiel: ";
+}
+
+warning:lang(de):before {
+	content: "Warnung: ";
+}
+caution:lang(de):before {
+	content: "Achtung: ";
+}
+important:lang(de):before {
+	content: "Wichtig: ";
+}
+tip:lang(de):before {
+	content: "Hinweis: ";
+}
+note:lang(de):before {
+	content: "Erläuterung: ";
+}

lib/sgml/docbook-css/docbook-css-0.4/l10n/en.css

+@charset "utf-8";
+/*
+ * l10n/en.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ */
+
+/* Generated content for English documents */
+
+question:before {
+	content: "Q: ";
+}
+answer:before {
+	content: "A: ";
+}
+
+example > title:before {
+	content: "Example: ";
+}
+
+quote {
+	quotes: "“" "”";
+}
+quote quote {
+	quotes: "‘" "’";
+}
+
+/* Admonitions */
+
+warning:before {
+	content: "Warning: ";
+}
+caution:before {
+	content: "Caution: ";
+}
+important:before {
+	content: "Important: ";
+}
+tip:before {
+	content: "Tip: ";
+}
+note:before {
+	content: "Note: ";
+}

lib/sgml/docbook-css/docbook-css-0.4/l10n/es.css

+@charset "utf-8";
+/*
+ * l10n/es.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ */
+
+question:lang(es):before {
+	content: "P: ";
+}
+answer:lang(es):before {
+	content: "R: ";
+}
+
+example > title:lang(es):before {
+	content: "Ejemplo: ";
+}
+
+
+warning:lang(es):before {
+	content: "Aviso: ";
+}
+caution:lang(es):before {
+	content: "Atención: ";
+}
+important:lang(es):before {
+	content: "Importante: ";
+}
+tip:lang(es):before {
+	content: "Consejo: ";
+}
+note:lang(es):before {
+	content: "Nota: ";
+}
+

lib/sgml/docbook-css/docbook-css-0.4/l10n/pl.css

+@charset "utf-8";
+/*
+ * l10n/pl.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ */
+
+question:lang(pl):before {
+	content: "P: ";
+}
+answer:lang(pl):before {
+	content: "O: ";
+}
+
+example > title:lang(pl):before {
+	content: "Przykład: ";
+}
+
+:lang(pl) > quote {
+	quotes: "„" "”";
+}
+:lang(pl) > quote quote {
+	quotes: "«" "»";
+}
+
+warning:lang(pl):before {
+	content: "Ostrzeżenie: ";
+}
+caution:lang(pl):before {
+	content: "Uwaga: ";
+}
+important:lang(pl):before {
+	content: "Ważne: ";
+}
+tip:lang(pl):before {
+	content: "Pomoc: ";
+}
+note:lang(pl):before {
+	content: "Notatka: ";
+}

lib/sgml/docbook-css/docbook-css-0.4/mozilla.css

+/*
+ * mozilla.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ *
+ * This file contains CSS specific to mozilla.org's Gecko rendering engine.
+ * 
+ * Some of the rules here will take effect even if you aren't using a Mozilla-
+ * based browser.
+ */
+
+
+/* make <ulink>s clickable */
+ulink {
+	-moz-binding:url('db-bindings.xml#ulink');
+	cursor: pointer;
+	-moz-user-focus: normal;
+}
+
+ulink:active {
+	color: red;
+}
+
+ulink:focus {
+	-moz-outline: 1px dotted invert;
+}
+
+imagedata {
+	-moz-binding:url('db-bindings.xml#image');
+}
+
+
+guimenu, guimenuitem, guisubmenu {
+	font: menu;
+}
+
+orderedlist, itemizedlist, procedure {
+	/* this seems to be required to make auto-numbering work */
+	-moz-counter-reset: -html-counter 0;
+}

lib/sgml/docbook-css/docbook-css-0.4/opera.css

+/*
+ * opera.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ *
+ * This file contains CSS specific to the Opera browser.
+ */
+ 
+/*
+ * Discovered -o-link from,
+ * http://groups.google.com/groups?q=opera+styles+xml&start=10&hl=en&lr=&ie=UTF-8&newwindow=1&selm=opr6pgr0tgicz8n2%40news.opera.com&rnum=18
+ */
+ulink {
+	-o-link: attr(url);
+	-o-link-source: current;
+}
+
+/*
+ * Given the above rule, it makes sense to have this here too, though it's
+ * not Opera-specific
+ */
+ulink:focus {
+	outline: 1px dotted invert;
+}
+
+/* this was in the example I found, but it doesn't achive much */
+imagedata {
+	-o-replace: attr(fileref)
+}

lib/sgml/docbook-css/docbook-css-0.4/styles.css

+/*
+ * styles.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ */
+
+/*
+ * CSS2 styling for DocBook XML
+ *
+ * To be included in the cascade _after_ core.css.  Defines styling that can't
+ * be generated mechanically from another source.
+ */
+
+/*
+ * TODO:
+ *
+ *  - do I remember correctly that <abstract> be hidden for screen media?
+ */
+
+
+article, book {
+	margin:.5em;
+}
+title, subtitle {
+	font-family:sans-serif;
+}
+title {
+	font-weight:bolder;
+	margin-bottom:.5em;
+}
+
+/*
+ * Sectioning elements that may contain paragraph-level elements get left/right
+ * margins
+ */
+section>*, chapter>*, bibliography>*, appendix>*, glossary>*, preface>*,
+dedication>*, colophon>*, sect1>*, sect2>*, sect3>*, sect4>*, sect5>*,
+bibliodiv>* {
+	margin-left:10%;
+	margin-right:10%;
+}
+
+/*
+ * Give admonitions bigger margins, to set them more apart from the main
+ * flow of text.
+ */
+warning, caution, important, tip, note {
+	margin-left: 15%;
+	margin-right: 15%;
+}
+
+/*
+ * Remove any margin defined be the previous rule when the child in question
+ * is a section or title.  Titles should be allowed to take up the maximum
+ * available width, as they're usually is larger type.  Sections must not
+ * be given margins because, the *contents* of the section will alreay have
+ * them; we don't want to recursively increase margins with the nesting depth
+ * of the document.
+ */
+section, title, sect1, sect2, sect3, sect4, sect5, bibliodiv {
+	margin-left:0;
+	margin-right:0;
+}
+
+book>title, article>title {
+	font-size:xx-large;
+	text-align:center;
+	border-bottom-style:solid;
+}
+
+appendix>title, bibliography>title, chapter>title, colophon>title, dedication>title, glossary>title, part>title, preface>title {
+	font-size:xx-large;
+	text-align:center;
+}
+
+section>title, sect1>title, bibliodiv>title {
+	font-size:xx-large;
+}
+
+section>section>title, sect2>title {
+	font-size:x-large;
+	margin-left:5%;
+}
+
+section>section>section>title, sect3>title {
+	font-size:large;
+	margin-left:7.5%;
+}
+
+section>section>section>section>title, sect4>title {
+	font-size:large;
+	margin-left:10%;
+}
+
+section>section>section>section>section>title, sect5>title {
+	font-size:inherit;
+	margin-left:10%;
+}
+
+biblioentry > title {
+	display: inline;
+}
+
+/* Give vertical spacing between compoments of the document */
+
+*+section, *+chapter, *+bibliography, *+bibliodiv, *+appendix, *+glossary {
+	margin-top: 3em;
+}
+section>*+section {
+	margin-top: 2em;
+}
+section>section>*+section {
+	margin-top: 1em;
+}
+
+
+/*
+ * Give paragraph-level elements some leading space when they aren't the first
+ * item in their containing block.
+ */
+*+para, *+formalpara, *+blockquote, *+glossentry, *+table, *+variablelist,
+*+example, *+informalexample, *+programlisting, *+cmdsynopsis,
+*+orderedlist, *+itemizedlist, *+figure,
+*>warning, *>caution, *>important, *>tip, *>note {
+	margin-top:.5em;
+}
+
+
+/*
+ * BiblioEntry blocks need a bit more space, since they may contain multiple
+ * paragraphs, and so need greater-than-paragraph spacing to make it clear
+ * which gap is the end just of a paragraph, and which gap is the end of the
+ * entry
+ */
+*+biblioentry {
+	margin-top: 1em;
+}
+
+/*
+ * REVISIT: I think this is the proper way; but deson't work in Firefox 0.8
+
+formalpara > title {
+	display: run-in;
+}
+
+ * Make all children of formalpara inline, instead...
+ */
+
+formalpara > * {
+	display: inline;
+}
+
+formalpara > title:after {
+	content: ".";
+}
+
+para, formalpara {
+	text-align: justify;
+}
+
+quote:before {
+	content: open-quote;
+}
+
+quote:after {
+	content: close-quote;
+}
+
+question, answer {
+	margin-top:.5em;
+	display:list-item;
+}
+
+question>para, answer>para {
+	display:inline;
+}
+
+/* see language specific files for content */
+question:before {
+	display:marker;
+	font-weight:bolder;
+}
+answer:before {
+	display:marker;
+	font-weight: bolder;
+}
+
+emphasis {
+	font-style:italic;
+}
+emphasis[role="strong"] {
+	font-weight:bolder;
+}
+emphasis[role="bold"] {
+	font-weight:bolder;
+	font-style:inherit;
+}
+emphasis[role="underline"] {
+	text-decoration:underline;
+	font-style:inherit;
+}
+emphasis[role="strikethrough"] {
+	text-decoration:line-through;
+	font-style:inherit;
+}
+emphasis>emphasis {
+	font-weight:bolder;
+}
+
+foreignphrase, wordasword, productname {
+	font-style:italic;
+}
+
+replaceable {
+	font-style:italic;
+}
+
+sgmltag[class="starttag"]:before, sgmltag[class="emptytag"]:before {
+	content: "<";
+}
+
+sgmltag[class="starttag"]:after, sgmltag[class="endtag"]:after {
+	content: ">";
+}
+
+sgmltag[class="endtag"]:before {
+	content: "</";
+}
+
+sgmltag[class="emptytag"]:after {
+	content: "/>";
+}
+
+sgmltag[class="attvalue"]:before, sgmltag[class="attvalue"]:after {
+	content: '"';
+}
+
+sgmltag[class="genentity"]:before {
+	content: "&";
+}
+sgmltag[class="genentity"]:after {
+	content: ";";
+}
+
+sgmltag[class="sgmlcomment"]:before {
+	content: "<!--";
+}
+sgmltag[class="sgmlcomment"]:after {
+	content: "-->";
+}
+
+sgmltag[class="xmlpi"]:before {
+	content: "<?";
+}
+sgmltag[class="xmlpi"]:after {
+	content: "?>";
+}
+
+
+application, keycap, guimenu, guimenuitem, guisubmenu {
+	font-family: sans-serif;
+}
+
+/*
+ * ensure there's some whitespace between elements of an author's name
+ */
+author>* + *:before {
+	content: " ";
+}
+
+/* give keycaps a '3D' shaded look */
+keycap {
+	padding-left: .2em;
+	padding-right: .2em;
+	border-style: solid;
+	border-top-width: 2px;
+	border-left-width: 3px;
+	border-right-width: 3px;
+	border-bottom-width: 4px;
+	border-top-color: #eeeecc;
+	border-left-color: #eeeecc;
+	border-right-color: #999977;
+	border-bottom-color: #999977;
+	background-color: #ddddbb;
+	/* All these borders may interfere with text on the line bellow.  Make
+	   the text a little smaller to try and 'pull up' the bottom edge, */
+	font-size: smaller;
+}
+
+keycombo>keycap+keycap:before {
+	/* FIXME: this appears inside the second keycap's 3D boarder, but
+	 * ideally, we'd like it to appear inbetween the two keycaps */
+	content: "-";
+}
+
+menuchoice>guimenu+guimenuitem:before,
+menuchoice>guimenuitem+guimenuitem:before,
+menuchoice>guimenuitem+guisubmenu:before {
+	/*content: "->";*/
+	/* a 'proper' left-arrow character */
+	content: "\2192";
+}
+
+guibutton {
+	border: 2px outset #dddddd;
+	background-color: #dddddd;
+/*
+	border: 2px solid;
+	border-top-color: #eeeeee;
+	border-left-color: #eeeeee;
+	border-right-color: #999999;
+	border-bottom-color: #999999;
+	background-color: #dddddd;
+*/}
+
+
+/* render link-like elements per HTML's normal styling */
+link, ulink, email {
+	/* When ulink contains no body text, the url should be rendered
+	 * at this point in the document.  Can't see how to do this with CSS */
+	color:#0000ff;
+	text-decoration:underline;
+}
+
+/*ulink:after {
+	content: " <" attr(url) ">";
+}*/
+
+email:before {
+	content: "<";
+}
+email:after {
+	content: ">";
+}
+
+citation:before {
+	content: "[";
+}
+citation:after {
+	content: "]";
+}
+
+xref:after {
+	/* simple symbol - content: "#" attr(linkend);*/
+	/* 'section' symbol */
+	content: "\00a7" attr(linkend);
+	color:#0000ff;
+	text-decoration: underline;
+}
+
+blockquote {
+	padding-left:3em;
+	padding-bottom: 1em;
+}
+
+blockquote>attribution {
+	text-align:right;
+	font-style: italic;
+}
+blockquote>attribution:after {
+	/* I've tried various things to position the attribution after the
+	 * other blockquote content (e.g. relative/absolute positioning), but
+	 * none of the things I tried produced satisfactory results (e.g. the
+	 * attribution appears at the bottom of the containing block, but it
+	 * overlaps preceeding content). */
+	content:":"
+}
+blockquote>para:before {
+	content: open-quote;
+}
+blockquote>para:after {
+	content: no-close-quote;
+}
+blockquote>para:last-child:after {
+	content: close-quote;
+}
+
+/* lists */
+
+itemizedlist {
+        padding-left: 1em;
+        list-style-type: disc;
+}
+
+listitem+listitem {
+	padding-top: .5em;
+}
+
+/* 2 deep nested lists */
+itemizedlist itemizedlist {
+        list-style-type: circle;
+}
+
+/* 3 or more deep nested lists */
+itemizedlist itemizedlist itemizedlist {
+        list-style-type: square;
+}
+
+
+itemizedlist>listitem {
+	display:list-item;
+}
+
+orderedlist {
+        padding-left: 1.5em;
+	list-style-type: decimal;
+}
+
+orderedlist>listitem {
+	display:list-item;
+}
+
+/*
+ * We've got no way of properly implementing call-out lists with CSS, so just
+ * present as a list of bullet points.
+ */
+calloutlist {
+        padding-left: 1em;
+        list-style-type: disc;
+}
+calloutlist>callout {
+	display:list-item;
+}
+
+
+
+/*
+ * The list of possible mark names is not defined by Docbook, but "opencircle"
+ * and "bullet" are used in T.D.G. example
+ */
+itemizedlist[mark="opencircle"], listitem[override="opencircle"] {
+        list-style-type: circle;
+}
+
+itemizedlist[mark="bullet"], listitem[override="bullet"] {
+        list-style-type: disc;
+}
+
+
+varlistentry>listitem {
+	margin-left: 2em;
+}
+varlistentry+varlistentry {
+	margin-top: .5em;
+}
+
+simplelist[type=horiz] {
+	display: block;
+}
+
+simplelist[type=inline]>member+member:before {
+	/* typically, we end up with unwanted whitespace before the comma
+	 * (i.e. whitespace between <member> elements).  I see no way of
+	 * suppressing this with CSS.
+	 * TODO: try a combination of :after and :first-child instead to
+	 * avoid the above issue */
+	content: ", ";
+}
+
+cmdsynopsis, code, command, computeroutput, envar, filename, keycode, keysym,
+literal, option, parameter, sgmltag, systemitem {
+	font-family: monospace;
+}
+
+filename[class=directory]:after {
+	content: "/";
+}
+
+/* TODO: Are these specific to 'en' locales or not? */
+trademark:after {
+	content: "\2122"
+}
+trademark[class="copyright"]:after {
+	content: "\A9"
+}
+trademark[class="registered"]:after {
+	content: "\AE"
+}
+trademark[class="service"]:after {
+	content: "\2120"
+}
+
+example, informalexample, programlisting  {
+	background-color:#dddddd;
+	padding: .5em;
+	border: 1px dashed black;
+}
+
+
+example programlisting, informalexample programlisting {
+	background-color: none;
+	padding: 0;
+	border: none;
+}
+
+/* admonitions */
+
+warning, caution, tip, note, important {
+	border: 1px dashed gray;
+	padding: .5em;
+}
+
+/* Have admonition titles appear inline with generated content ("Note:" etc.) */
+warning>title, caution>title, tip>title, note>title, important>title {
+	display: inline;
+	
+}
+
+warning:before, caution:before, tip:before, note:before, important:before {
+	/* Match the style of <title> */
+	font-weight: bolder;
+	font-family: sans-serif;
+}
+
+/* FIXME: background colours are cheezy :S ... */
+/* see language specific css for content: */
+warning:before {
+	background-color: red;
+}
+caution:before {
+	background-color: yellow;
+}
+tip:before {
+	background-color: #aaaddd;
+}
+note:before {
+	background-color: #dddddd;
+}
+important:before {
+	background-color: plum;
+}
+
+/* Tables */
+
+thead > row > entry {
+	/* FIXME: will under-rule every row in the <thead>, not just the last
+	 * (I tried adding this style to <thead> itself, but this doesn't
+	 * appear to work in combination with display:table-header-group, as
+	 * defined in tables.css) */
+	border-bottom: 2px solid black;
+}
+
+thead {
+	font-weight: bolder;
+}
+
+entry {
+	padding: .2em;
+}
+
+
+/* Footnotes */
+
+
+/*
+ * Attempt to display footnotes on-mouseover.  This may well break if a
+ * footnote element has multiple children (I think the children will end up
+ * stacked on top of each other).
+ */
+
+footnote {
+	position: relative;
+	cursor: help;
+}
+footnote:hover {
+}
+footnote>* {
+	display: none;
+	z-index: 100;
+}
+footnote:hover>* {
+	display: block;
+	position: fixed;
+	border: 2px dotted black;
+	background-color: #ffeeaa;
+	padding: .5em;
+	left: 0px;
+	bottom: 0px;
+}
+footnote:before {
+	content: "?";
+	background-color: #ffeeaa;
+	border: 2px dotted black;
+	font-size: smaller;
+}
+
+
+/*
+
+Attempting to format <footnote> as a sitebar, floating it to the right.
+Sometimes works for footnotes in the 'main body' of some text, but works badly
+when the containing block is, for instance, a table cell.
+
+footnote:before {
+	content: "*";
+	display: block;
+	border: 2px dotted black;
+}
+
+footnote>* {
+	display: block;
+	float: right;
+	border: 2px dotted black;
+	padding: .5em;
+	width: 25%;
+	top: -1em;
+}
+
+footnote>*:before {
+	content: "*Footnote";
+	display: block;
+	font-weight: bold;
+	font-family: sans-serif;
+}
+*/
+
+glossentry>glossterm {
+	font-weight: bolder;
+	font-style: italic;
+}
+
+
+userinput {
+	font-weight: bolder;
+}
+
+figure {
+	text-align: center;
+}
+
+imageobject {
+	display: block;
+}
+
+mediaobject>textobject {
+	font-size: smaller;
+}

lib/sgml/docbook-css/docbook-css-0.4/tables.css

+/*
+ * tables.css
+ *
+ * Copyright (c) 2004 David Holroyd, and contributors
+ * See the file 'COPYING' for terms of use
+ *
+ * Part of the Docbook-CSS stylesheet
+ *   http://www.badgers-in-foil.co.uk/projects/docbook-css/
+ *
+ */
+
+tgroup {
+	display: table;
+}
+
+row {
+	display: table-row;
+}
+
+thead {
+	display: table-header-group;
+}
+
+tbody {
+	display: table-row-group;
+}
+
+entry, entrytbl {
+	display: table-cell;
+}
+
+entry[valign=top] {
+	vertical-align: top;
+}
+entry[valign=bottom] {
+	vertical-align: bottom;
+}
+
+/*
+ * CSS can't generate the indended formatting for segmented lists, so we turn
+ * them into tables instead.
+ *
+ * TODO: seems to break formatting when nested in a table entry
+ */
+segmentedlist {
+	display: table;
+}
+
+seglistitem {
+	display: table-row;
+}
+
+seg, segtitle {
+	display: table-cell;
+}
+
+segmentedlist>title {
+	display: table-caption;
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.