gimp-help-2 r2391 - in trunk: . images stylesheets
- From: ulfehlert svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp-help-2 r2391 - in trunk: . images stylesheets
- Date: Wed, 5 Mar 2008 17:18:10 +0000 (GMT)
Author: ulfehlert
Date: Wed Mar 5 17:18:10 2008
New Revision: 2391
URL: http://svn.gnome.org/viewvc/gimp-help-2?rev=2391&view=rev
Log:
2008-03-05 Ulf-D. Ehlert <ulfehlert svn gnome org>
* Makefile.am
* stylesheets/drafthtml.xsl
* stylesheets/gimp-help-draft.css
* images/draft.png: added new 'make' feature to create
a single HTML page as a draft
Added:
trunk/images/draft.png (contents, props changed)
trunk/stylesheets/drafthtml.xsl (contents, props changed)
trunk/stylesheets/gimp-help-draft.css (contents, props changed)
Modified:
trunk/ChangeLog
trunk/Makefile.am
Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am (original)
+++ trunk/Makefile.am Wed Mar 5 17:18:10 2008
@@ -141,7 +141,7 @@
if GIMP_HELP_BUILD
# Main text
-html/%/index.html: xml/%.xml stylesheets/plainhtml.xsl
+html/%/index.html: xml/%.xml stylesheets/plainhtml.xsl stylesheets/htmlalternate.xsl
@rm -rf html/$*
@$(mkdir_p) html/$*
@test -d html/images || $(LN_S) $(abs_top_srcdir)/images html/
@@ -210,6 +210,48 @@
cd preview-$* && $(LN_S) ../html/$* .
cd preview-$* && $(LN_S) $(abs_top_srcdir)/images .
+#### HTML draft (single page preview)
+
+%.draft: %.xml
+ @echo "Making draft page (ignore any XSLT complaints):"
+ @for lang in $(ALL_LINGUAS); do \
+ test -d $(builddir)/html/$$lang && continue || \
+ $(mkdir_p) $(builddir)/html/$$lang; \
+ cp -fp $(srcdir)/stylesheets/*.css $(builddir)/html/$$lang; \
+ for file in $(srcdir)/stylesheets/$$lang/*.css; do \
+ test -f $$file || continue; \
+ cp -fp $$file $(builddir)/html/$$lang/; \
+ done; \
+ done
+
+ @id=`sed -e 's/.*id=.//; tmatch; d; :match; s/["'"'"'].*//; q' $<`; \
+ test -n "$$id" || id=noname; \
+ for lang in $(ALL_LINGUAS); do \
+ echo "Making $(builddir)/html/$$lang/$$id.html ... "; \
+ $(XSLTPROC) \
+ $(XSLTFLAGS) \
+ $(XSLTEXTRAFLAGS) \
+ --xinclude \
+ --stringparam profile.lang $$lang \
+ --novalid \
+ $(srcdir)/stylesheets/profile.xsl \
+ $< \
+ | \
+ sed -e 's/xmlns[:a-z]*="[^"]*" //' \
+ -e 's/lang="[A-Za-z_;]*"/lang="'$$lang'"/' \
+ -e '/^[ \t]*$$/d' \
+ | \
+ $(XSLTPROC) \
+ $(XSLTFLAGS) $(XSLTEXTRAFLAGS) \
+ --xinclude \
+ --stringparam l10n.gentext.default.language $* \
+ --novalid \
+ --output $(builddir)/html/$$lang/$$id.html \
+ $(srcdir)/stylesheets/drafthtml.xsl \
+ - \
+ ; \
+ done
+
#### Language-specific HTML tarballs for distribution
tarball_prefix := gimp-help-2-html
Added: trunk/images/draft.png
==============================================================================
Binary file. No diff available.
Added: trunk/stylesheets/drafthtml.xsl
==============================================================================
--- (empty file)
+++ trunk/stylesheets/drafthtml.xsl Wed Mar 5 17:18:10 2008
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- This file is part of the gimp-help-2 project and is
+ (C) 2008 The GIMP Documentation Team.
+ You may use this file in accordance to the GNU Free Documentation License
+ Version 1.1 which is available from http://www.gnu.org.
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" />
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="admon.graphics" select="1" />
+ <xsl:param name="admon.graphics.path">../images/</xsl:param>
+ <xsl:param name="callout.graphics.path">../images/callouts/</xsl:param>
+ <xsl:param name="generate.index">0</xsl:param>
+ <xsl:param name="html.stylesheet">
+ gimp-help-plain.css gimp-help-screen.css gimp-help-draft.css
+ </xsl:param>
+ <xsl:param name="make.valid.html" select="1" />
+ <xsl:param name="id.warnings" select="0" />
+ <xsl:param name="use.id.as.filename">1</xsl:param>
+ <xsl:param name="navig.graphics" select="0" />
+ <xsl:param name="navig.showtitles" select="0" />
+
+</xsl:stylesheet>
Added: trunk/stylesheets/gimp-help-draft.css
==============================================================================
--- (empty file)
+++ trunk/stylesheets/gimp-help-draft.css Wed Mar 5 17:18:10 2008
@@ -0,0 +1,14 @@
+/*
+ This file is part of gimp-help-2. It is copyrighted under the GNU
+ Free Documentation License Version 1.1 which you can get from
+ http://www.gnu.org
+*/
+
+body
+{
+ color: white;
+ background: url(../images/draft.png);
+}
+h1,h2,h3,h4,h5,h6 {
+ color: white;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]