[PATCH] Add local customization layers for all languages

Øyvind A. Holm sunny at sunbase.org
Mon Aug 7 20:57:54 CDT 2006


I need to do a change to the xsl stylesheets for the Norwegian book 
(changing “” to «» and maybe some other small stuff) so I need a local 
customization layer to be able to do it. This patch creates a local 
tools/ directory at the root of every book variant, containing their own 
.xsl files. For now they don’t change anything, only imports the master 
stylesheets from $TOOLS_DIR. Later on they can be tweaked for each 
language separately. Have tested make for all languages.

Ugly log message, btw. Don’t know about any alternative “legal” styles.

[[[
Create local customization layers for all languages.

* src/de/tools/chunk-stylesheet.xsl
* src/de/tools/fo-stylesheet.xsl
* src/de/tools/html-stylesheet.xsl
* src/en/tools/chunk-stylesheet.xsl
* src/en/tools/fo-stylesheet.xsl
* src/en/tools/html-stylesheet.xsl
* src/es/tools/chunk-stylesheet.xsl
* src/es/tools/fo-stylesheet.xsl
* src/es/tools/html-stylesheet.xsl
* src/it/tools/chunk-stylesheet.xsl
* src/it/tools/fo-stylesheet.xsl
* src/it/tools/html-stylesheet.xsl
* src/nb/tools/chunk-stylesheet.xsl
* src/nb/tools/fo-stylesheet.xsl
* src/nb/tools/html-stylesheet.xsl
* src/pt_BR/tools/chunk-stylesheet.xsl
* src/pt_BR/tools/fo-stylesheet.xsl
* src/pt_BR/tools/html-stylesheet.xsl
* src/ru/tools/chunk-stylesheet.xsl
* src/ru/tools/fo-stylesheet.xsl
* src/ru/tools/html-stylesheet.xsl
* src/zh/tools/chunk-stylesheet.xsl
* src/zh/tools/fo-stylesheet.xsl
* src/zh/tools/html-stylesheet.xsl
  New files. Imports the master stylesheets from src/tools/ and can be 
  fine-tuned for every language.

* src/tools/Makefile.base-rules
  ($XSL_DIR): New variable.

* src/tools/Makefile.base-vars
  (html, html-chunk, fo): Execute $(XSLTPROC) with stylesheets in 
    $(XSL_DIR) instead of $(TOOLS_DIR).
]]]

Attachments:
d81d14f47373fe148360023c4810ab23  layers.r2370.patch

sunny256
N 60.42541° E 5.29959°
----------------------
cat /dev/urandom >SCO
-------------- next part --------------
Index: src/nb/tools/fo-stylesheet.xsl
===================================================================
--- src/nb/tools/fo-stylesheet.xsl	(revision 0)
+++ src/nb/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/nb/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/nb/tools/html-stylesheet.xsl
===================================================================
--- src/nb/tools/html-stylesheet.xsl	(revision 0)
+++ src/nb/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/nb/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/nb/tools/chunk-stylesheet.xsl
===================================================================
--- src/nb/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/nb/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/nb/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/tools/Makefile.base-vars
===================================================================
--- src/tools/Makefile.base-vars	(revision 2370)
+++ src/tools/Makefile.base-vars	(working copy)
@@ -36,6 +36,7 @@
 DIR = .
 IMAGES =
 TOOLS_DIR = ../tools
+XSL_DIR = tools
 OUTNAME = $(NAME)
 
 HTML_CHUNK_DIR = $(DIR)/html-chunk
Index: src/tools/Makefile.base-rules
===================================================================
--- src/tools/Makefile.base-rules	(revision 2370)
+++ src/tools/Makefile.base-rules	(working copy)
@@ -24,7 +24,7 @@
 $(HTML_TARGET): $(ALL_SOURCE) $(VERSION_SOURCE) $(STYLESHEET) $(IMAGES)
 	$(ENSURE_XSL)
 	$(XSLTPROC) $(HTML_XSLTPROC_OPTS) --output $(HTML_TARGET) \
-	  $(TOOLS_DIR)/html-stylesheet.xsl $(XML_SOURCE)
+	  $(XSL_DIR)/html-stylesheet.xsl $(XML_SOURCE)
 
 # The trailing slash on the xsltproc --output option is essential to
 # output pages into the directory
@@ -35,7 +35,7 @@
 	$(ENSURE_XSL)
 	$(XSLTPROC) $(HTML_XSLTPROC_OPTS) \
            --output $(HTML_CHUNK_DIR)/ \
-	   $(TOOLS_DIR)/chunk-stylesheet.xsl $(XML_SOURCE)
+	   $(XSL_DIR)/chunk-stylesheet.xsl $(XML_SOURCE)
 	cp $(STYLESHEET) $(HTML_CHUNK_DIR)
 	$(IFIMAGES) cp $(IMAGES) $(HTML_CHUNK_DIR)/images $(ENDIF)
 
@@ -58,7 +58,7 @@
 $(FO_TARGET): $(ALL_SOURCE) $(VERSION_SOURCE) $(IMAGES)
 	$(ENSURE_XSL)
 	$(XSLTPROC) $(FO_XSLTPROC_OPTS) --output $(FO_TARGET) \
-	  $(TOOLS_DIR)/fo-stylesheet.xsl $(XML_SOURCE)
+	  $(XSL_DIR)/fo-stylesheet.xsl $(XML_SOURCE)
 
 pdf: $(PDF_TARGET)
 $(PDF_TARGET): $(FO_TARGET) $(IMAGES)
Index: src/zh/tools/fo-stylesheet.xsl
===================================================================
--- src/zh/tools/fo-stylesheet.xsl	(revision 0)
+++ src/zh/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/zh/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/zh/tools/html-stylesheet.xsl
===================================================================
--- src/zh/tools/html-stylesheet.xsl	(revision 0)
+++ src/zh/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/zh/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/zh/tools/chunk-stylesheet.xsl
===================================================================
--- src/zh/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/zh/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/zh/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/en/tools/fo-stylesheet.xsl
===================================================================
--- src/en/tools/fo-stylesheet.xsl	(revision 0)
+++ src/en/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/en/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/en/tools/html-stylesheet.xsl
===================================================================
--- src/en/tools/html-stylesheet.xsl	(revision 0)
+++ src/en/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/en/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/en/tools/chunk-stylesheet.xsl
===================================================================
--- src/en/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/en/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/en/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/pt_BR/tools/fo-stylesheet.xsl
===================================================================
--- src/pt_BR/tools/fo-stylesheet.xsl	(revision 0)
+++ src/pt_BR/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/pt_BR/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/pt_BR/tools/html-stylesheet.xsl
===================================================================
--- src/pt_BR/tools/html-stylesheet.xsl	(revision 0)
+++ src/pt_BR/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/pt_BR/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/pt_BR/tools/chunk-stylesheet.xsl
===================================================================
--- src/pt_BR/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/pt_BR/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/pt_BR/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/ru/tools/fo-stylesheet.xsl
===================================================================
--- src/ru/tools/fo-stylesheet.xsl	(revision 0)
+++ src/ru/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/ru/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/ru/tools/html-stylesheet.xsl
===================================================================
--- src/ru/tools/html-stylesheet.xsl	(revision 0)
+++ src/ru/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/ru/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/ru/tools/chunk-stylesheet.xsl
===================================================================
--- src/ru/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/ru/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/ru/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/es/tools/fo-stylesheet.xsl
===================================================================
--- src/es/tools/fo-stylesheet.xsl	(revision 0)
+++ src/es/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/es/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/es/tools/html-stylesheet.xsl
===================================================================
--- src/es/tools/html-stylesheet.xsl	(revision 0)
+++ src/es/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/es/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/es/tools/chunk-stylesheet.xsl
===================================================================
--- src/es/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/es/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/es/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/de/tools/fo-stylesheet.xsl
===================================================================
--- src/de/tools/fo-stylesheet.xsl	(revision 0)
+++ src/de/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/de/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/de/tools/html-stylesheet.xsl
===================================================================
--- src/de/tools/html-stylesheet.xsl	(revision 0)
+++ src/de/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/de/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/de/tools/chunk-stylesheet.xsl
===================================================================
--- src/de/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/de/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/de/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/it/tools/fo-stylesheet.xsl
===================================================================
--- src/it/tools/fo-stylesheet.xsl	(revision 0)
+++ src/it/tools/fo-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/fo-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/it/tools/fo-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/it/tools/html-stylesheet.xsl
===================================================================
--- src/it/tools/html-stylesheet.xsl	(revision 0)
+++ src/it/tools/html-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/html-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/it/tools/html-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Index: src/it/tools/chunk-stylesheet.xsl
===================================================================
--- src/it/tools/chunk-stylesheet.xsl	(revision 0)
+++ src/it/tools/chunk-stylesheet.xsl	(revision 0)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+  <xsl:import href="../../tools/chunk-stylesheet.xsl"/>
+</xsl:stylesheet>

Property changes on: src/it/tools/chunk-stylesheet.xsl
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the svnbook-dev mailing list