[gimp-help-2] AUTHORS-related changes and improvements



commit 073dce2e68b9f346fc912becd79e5ebbcb637dfd
Author: Ulf-D. Ehlert <ulfehlert svn gnome org>
Date:   Mon Apr 12 18:42:21 2010 +0200

    AUTHORS-related changes and improvements
    
    * authors.xml: move SimaMoto,RyÅ?Ta from <contributor>s to <creator>s
      (<contributor>s are listed as "Contributors in the past" in AUTHORS.)
    * authors_common.xsl: add "Japanese".
    * authors_text.xsl: remove AUTHORS indent (if desired, this can
      be implemented much easier in Makefile using 'sed').
    * Makefile.am, Makefile.GNU: don't compute list of XML source files
      on "make AUTHORS".

 Makefile.GNU                   |    2 +-
 Makefile.am                    |    2 +-
 stylesheets/authors.xml        |    2 +-
 stylesheets/authors_common.xsl |    1 +
 stylesheets/authors_text.xsl   |   39 ++++++++++++++++++++-------------------
 5 files changed, 24 insertions(+), 22 deletions(-)
---
diff --git a/Makefile.GNU b/Makefile.GNU
index 31cd796..213ef3a 100644
--- a/Makefile.GNU
+++ b/Makefile.GNU
@@ -111,7 +111,7 @@ AUTHORS_DOCBOOK_STYLESHEETS = \
 	stylesheets/authors_common.xsl
 
 # Targets which don't require source file list
-QUICK_TARGETS = help clean dot image-%
+QUICK_TARGETS = help clean dot image-% AUTHORS
 
 # Files & directories
 ifeq ($(filter $(QUICK_TARGETS),$(MAKECMDGOALS)),)
diff --git a/Makefile.am b/Makefile.am
index d594c47..12a9a91 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -108,7 +108,7 @@ AUTHORS_DOCBOOK_STYLESHEETS = \
 	stylesheets/authors_common.xsl
 
 # Targets which don't require source file list
-QUICK_TARGETS = help clean dot image-%
+QUICK_TARGETS = help clean dot image-% AUTHORS
 
 # lists of source (XML) files and source directories
 # HIDE FROM AUTOMAKE #ifeq ($(filter $(QUICK_TARGETS),$(MAKECMDGOALS)),)
diff --git a/stylesheets/authors.xml b/stylesheets/authors.xml
index e09707c..fc03369 100644
--- a/stylesheets/authors.xml
+++ b/stylesheets/authors.xml
@@ -22,6 +22,7 @@
   <creator role="documenter" lang="pl">Patrycja Stawiarska</creator>
   <creator role="documenter" lang="no">Kolbjørn Stuestøl</creator>
   <creator role="documenter" lang="en">Andrew Pitonyak</creator>
+  <creator role="documenter" lang="ja">SimaMoto,RyÅ?Ta (島æ?¬è?¯å¤ª)</creator>
 
   <contributor role="documenter" lang="cz en">Jakub Friedl</contributor>
   <contributor role="documenter" lang="nl">Hans De Jonge</contributor>
@@ -79,5 +80,4 @@
   <contributor role="documenter" lang="en de">Susanne Schmidt</contributor>
   <contributor role="documenter" lang="de">Ben</contributor>
   <contributor role="documenter" lang="en">Daniel Hornung</contributor>
-  <contributor role="documenter" lang="ja">SimaMoto,RyÅ?Ta (島æ?¬è?¯å¤ª)</contributor>
 </gimp-authors>
diff --git a/stylesheets/authors_common.xsl b/stylesheets/authors_common.xsl
index 0fda41c..bea6c40 100644
--- a/stylesheets/authors_common.xsl
+++ b/stylesheets/authors_common.xsl
@@ -50,6 +50,7 @@
       fr:French
       hr:Croatian
       it:Italian
+      ja:Japanese
       ko:Korean
       lt:Lithuanian
       nl:Dutch
diff --git a/stylesheets/authors_text.xsl b/stylesheets/authors_text.xsl
index cfe8951..11669a8 100644
--- a/stylesheets/authors_text.xsl
+++ b/stylesheets/authors_text.xsl
@@ -13,44 +13,45 @@
 
   <xsl:template match="/dc:gimp-authors">
     <xsl:text>This file is generated from authors.xml, do not edit it directly.
-    </xsl:text>
+</xsl:text>
     <xsl:text>
-      Active Contributors
-      ===================
-    </xsl:text>
+Active Contributors
+===================
+</xsl:text>
     <xsl:apply-templates select="//dc:creator" />
 
     <xsl:text>
 
-      Contributors in the past
-      ========================
+Contributors in the past
+========================
 
-      Writers
-      -------
-    </xsl:text>
+Writers
+-------
+</xsl:text>
     <xsl:apply-templates select="//dc:contributor[contains(@role, 'documenter')]" />
 
     <xsl:text>
-      Graphics, Stylesheets
-      ---------------------
-    </xsl:text>
+Graphics, Stylesheets
+---------------------
+</xsl:text>
     <xsl:apply-templates select="//dc:contributor[contains(@role, 'artist')]" />
 
     <xsl:text>
-      Buildsystem, Technical Contributions
-      ------------------------------------
-    </xsl:text>
+Buildsystem, Technical Contributions
+------------------------------------
+</xsl:text>
     <xsl:apply-templates select="//dc:contributor[contains(@role, 'technican')]">
       <xsl:with-param name="print_language" select="0" />
     </xsl:apply-templates>
 
+    <xsl:text>
+</xsl:text>
   </xsl:template>
  
-  <!-- two simple transformations -->
+  <!-- Print creator/contributor and (optionally) his/her languages -->
   <xsl:template match="//dc:creator | //dc:contributor">
     <xsl:param name="print_language">1</xsl:param>
-    <xsl:text>  </xsl:text>
-    <xsl:apply-templates match="." />
+    <xsl:value-of select="."/>
     <xsl:if test="@lang != '' and $print_language != 0">
       <xsl:text> (</xsl:text>
       <xsl:call-template name="lang.split">
@@ -59,7 +60,7 @@
       <xsl:text>)</xsl:text>
     </xsl:if>
     <xsl:text>
-    </xsl:text>
+</xsl:text>
   </xsl:template>
 
 </xsl:stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]