|
From: <sh...@us...> - 2007-08-08 14:51:31
|
Revision: 47
http://fb2-perl-tools.svn.sourceforge.net/fb2-perl-tools/?rev=47&view=rev
Author: shaplov
Date: 2007-08-08 07:51:24 -0700 (Wed, 08 Aug 2007)
Log Message:
-----------
Copyright notice added to fb2_docbook
Modified Paths:
--------------
trunk/fb2-perl-tools/xslt/fb2docbook.xsl
trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl
trunk/fb2-perl-tools/xslt/l10n/en.xml
trunk/fb2-perl-tools/xslt/l10n/gentext.xsl
trunk/fb2-perl-tools/xslt/l10n/l10n.xml
trunk/fb2-perl-tools/xslt/l10n/ru.xml
trunk/fb2-perl-tools/xslt/params/system_params.xsl
Modified: trunk/fb2-perl-tools/xslt/fb2docbook.xsl
===================================================================
--- trunk/fb2-perl-tools/xslt/fb2docbook.xsl 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/fb2docbook.xsl 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0"
xmlns:exsl="http://exslt.org/common" xmlns:redirect="http://xml.apache.org/xalan/redirect"
Modified: trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl
===================================================================
--- trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0"
xmlns:exsl="http://exslt.org/common" xmlns:redirect="http://xml.apache.org/xalan/redirect"
Modified: trunk/fb2-perl-tools/xslt/l10n/en.xml
===================================================================
--- trunk/fb2-perl-tools/xslt/l10n/en.xml 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/l10n/en.xml 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<l10n language="en" english-language-name="English">
<param name="SeeAbr" text="See"/>
<param name="seeabr" text="see"/>
Modified: trunk/fb2-perl-tools/xslt/l10n/gentext.xsl
===================================================================
--- trunk/fb2-perl-tools/xslt/l10n/gentext.xsl 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/l10n/gentext.xsl 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0">
<xsl:param name="l10n.xml" select="document('l10n.xml')"/>
Modified: trunk/fb2-perl-tools/xslt/l10n/l10n.xml
===================================================================
--- trunk/fb2-perl-tools/xslt/l10n/l10n.xml 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/l10n/l10n.xml 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version='1.0' encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<!DOCTYPE i18n SYSTEM "l10n.dtd" [
<!ENTITY en SYSTEM "en.xml">
<!ENTITY ru SYSTEM "ru.xml">
Modified: trunk/fb2-perl-tools/xslt/l10n/ru.xml
===================================================================
--- trunk/fb2-perl-tools/xslt/l10n/ru.xml 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/l10n/ru.xml 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<l10n language="ru" english-language-name="Russian">
<param name="SeeAbr" text="См."/>
<param name="seeabr" text="см."/>
Modified: trunk/fb2-perl-tools/xslt/params/system_params.xsl
===================================================================
--- trunk/fb2-perl-tools/xslt/params/system_params.xsl 2007-08-08 14:34:35 UTC (rev 46)
+++ trunk/fb2-perl-tools/xslt/params/system_params.xsl 2007-08-08 14:51:24 UTC (rev 47)
@@ -1,4 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+This library is free software; you can redistribute it and/or modify
+it under the terms of the General Public License (GPL). For
+more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
<xsl:variable name="fb2.mime-types">
<mime-type id="image/jpeg" docbook-format="JPEG"/>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ki...@us...> - 2007-10-14 15:47:26
|
Revision: 52
http://fb2-perl-tools.svn.sourceforge.net/fb2-perl-tools/?rev=52&view=rev
Author: kir666
Date: 2007-10-14 08:47:25 -0700 (Sun, 14 Oct 2007)
Log Message:
-----------
fb2:subtitle to docbook:bridgeahead; add date-time to docbook output; more checks at gen_infos
Modified Paths:
--------------
trunk/fb2-perl-tools/xslt/fb2docbook.xsl
trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl
trunk/fb2-perl-tools/xslt/l10n/en.xml
trunk/fb2-perl-tools/xslt/l10n/ru.xml
Modified: trunk/fb2-perl-tools/xslt/fb2docbook.xsl
===================================================================
--- trunk/fb2-perl-tools/xslt/fb2docbook.xsl 2007-09-04 12:11:02 UTC (rev 51)
+++ trunk/fb2-perl-tools/xslt/fb2docbook.xsl 2007-10-14 15:47:25 UTC (rev 52)
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
-
-This library is free software; you can redistribute it and/or modify
-it under the terms of the General Public License (GPL). For
-more information, see http://www.fsf.org/licenses/gpl.txt
-
--->
-
+<!--
+
+ Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the General Public License (GPL). For
+ more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0"
xmlns:exsl="http://exslt.org/common" xmlns:redirect="http://xml.apache.org/xalan/redirect"
@@ -390,7 +390,7 @@
</xsl:template>
<xsl:template name="a_xref">
<xsl:param name="href_id"/>
- <xref linkend="{$href_id}"/>
+ <xref linkend="{$href_id}"/>
</xsl:template>
<xsl:template name="metadata_author">
<xsl:choose>
@@ -411,37 +411,56 @@
<xsl:text>"</xsl:text>
</xsl:if>
</xsl:otherwise>
- </xsl:choose>
+ </xsl:choose>
</xsl:template>
<xsl:template name="write_binaries_tree">
<conversion_info>
<page>
<dpi>
- <width><xsl:value-of select="$output.dpi.width"/></width>
- <height><xsl:value-of select="$output.dpi.height"/></height>
+ <width>
+ <xsl:value-of select="$output.dpi.width"/>
+ </width>
+ <height>
+ <xsl:value-of select="$output.dpi.height"/>
+ </height>
</dpi>
<size>
- <width><xsl:value-of select="$page.width"/></width>
- <height><xsl:value-of select="$page.height"/></height>
+ <width>
+ <xsl:value-of select="$page.width"/>
+ </width>
+ <height>
+ <xsl:value-of select="$page.height"/>
+ </height>
</size>
<max_image_margin>
- <width><xsl:value-of select="$output.max_image_margin.width"/></width>
- <height><xsl:value-of select="$output.max_image_margin.height"/></height>
+ <width>
+ <xsl:value-of select="$output.max_image_margin.width"/>
+ </width>
+ <height>
+ <xsl:value-of select="$output.max_image_margin.height"/>
+ </height>
</max_image_margin>
<images_mode>
- <resize><xsl:value-of select="$output.images_mode.resize"/></resize>
- <mode><xsl:value-of select="$output.images_mode.mode"/></mode>
- </images_mode>
+ <resize>
+ <xsl:value-of select="$output.images_mode.resize"/>
+ </resize>
+ <mode>
+ <xsl:value-of select="$output.images_mode.mode"/>
+ </mode>
+ </images_mode>
</page>
- <metadata>
+ <metadata>
<Title>
- <xsl:value-of select="/fb:FictionBook/fb:description/fb:title-info/fb:book-title"/>
+ <xsl:value-of
+ select="/fb:FictionBook/fb:description/fb:title-info/fb:book-title"/>
</Title>
<Author>
- <xsl:for-each select="/fb:FictionBook/fb:description/fb:title-info/fb:author[position() = 1]">
+ <xsl:for-each
+ select="/fb:FictionBook/fb:description/fb:title-info/fb:author[position() = 1]">
<xsl:call-template name="metadata_author"/>
</xsl:for-each>
- <xsl:for-each select="/fb:FictionBook/fb:description/fb:title-info/fb:author[position() > 1]">
+ <xsl:for-each
+ select="/fb:FictionBook/fb:description/fb:title-info/fb:author[position() > 1]">
<xsl:text>; </xsl:text>
<xsl:call-template name="metadata_author"/>
</xsl:for-each>
@@ -684,15 +703,10 @@
</xsl:element>
</xsl:template>
<xsl:template match="fb:subtitle">
- <simpara>
+ <bridgehead>
<xsl:apply-templates select="@xml:lang|@id"/>
- <emphasis role="{$fb2.subtitle.role}">
- <xsl:apply-templates/>
- </emphasis>
- </simpara>
- <xsl:processing-instruction name="dbfo">
- <xsl:text>keep-together="always"</xsl:text>
- </xsl:processing-instruction>
+ <xsl:apply-templates/>
+ </bridgehead>
</xsl:template>
<xsl:template match="fb:style">
<xsl:comment> == style <xsl:value-of select="@name"/> == </xsl:comment>
Modified: trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl
===================================================================
--- trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl 2007-09-04 12:11:02 UTC (rev 51)
+++ trunk/fb2-perl-tools/xslt/fb2docbook_gen_infos.xsl 2007-10-14 15:47:25 UTC (rev 52)
@@ -1,18 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
-
-This library is free software; you can redistribute it and/or modify
-it under the terms of the General Public License (GPL). For
-more information, see http://www.fsf.org/licenses/gpl.txt
-
--->
-
+<!--
+
+ Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
+
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of the General Public License (GPL). For
+ more information, see http://www.fsf.org/licenses/gpl.txt
+
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0"
- xmlns:exsl="http://exslt.org/common" xmlns:redirect="http://xml.apache.org/xalan/redirect"
- extension-element-prefixes="exsl redirect" version="1.1">
+ xmlns:exsl="http://exslt.org/common" xmlns:date="http://exslt.org/dates-and-times"
+ xmlns:redirect="http://xml.apache.org/xalan/redirect"
+ extension-element-prefixes="exsl date redirect" version="1.1">
<xsl:import href="l10n/gentext.xsl"/>
<xsl:template name="technical-appendix">
<appendix id="{concat('tappendix', generate-id())}">
@@ -29,12 +30,21 @@
<xsl:text>: </xsl:text>
<ulink url="{system-property('xsl:vendor-url')}">
<xsl:value-of select="system-property('xsl:vendor')"/>
- </ulink> (XSLT version <xsl:value-of select="system-property('xsl:version')"/>).
- </para>
+ </ulink> (XSLT version <xsl:value-of select="system-property('xsl:version')"/>). </para>
+ <xsl:if test="function-available('date:date-time')">
+ <para>
+ <xsl:call-template name="gentext.info.param">
+ <xsl:with-param name="context" select="'technical-appendix'"/>
+ <xsl:with-param name="param" select="'conversion-date-time'"/>
+ </xsl:call-template>
+ <xsl:text>: </xsl:text>
+ <xsl:value-of select="date:date-time()"/>
+ </para>
+ </xsl:if>
</appendix>
</xsl:template>
<xsl:template name="title-info-appendix">
- <xsl:if test="count(fb:description/fb:title-info)">
+ <xsl:if test="count(fb:description/fb:title-info) and count(fb:description/fb:title-info/*)">
<xsl:for-each select="fb:description/fb:title-info">
<xsl:call-template name="title-info-appendix-wrk">
<xsl:with-param name="my_id"
@@ -48,7 +58,8 @@
</xsl:if>
</xsl:template>
<xsl:template name="src-title-info-appendix">
- <xsl:if test="count(fb:description/fb:src-title-info)">
+ <xsl:if
+ test="count(fb:description/fb:src-title-info) and count(fb:description/fb:src-title-info/*)">
<xsl:for-each select="fb:description/fb:src-title-info">
<xsl:call-template name="title-info-appendix-wrk">
<xsl:with-param name="my_id"
@@ -333,7 +344,8 @@
</simpara>
</xsl:template>
<xsl:template name="document-info-appendix">
- <xsl:if test="count(fb:description/fb:document-info)">
+ <xsl:if
+ test="count(fb:description/fb:document-info) and count(fb:description/fb:document-info/*)">
<xsl:for-each select="fb:description/fb:document-info">
<xsl:call-template name="document-info-appendix-wrk"/>
</xsl:for-each>
@@ -457,7 +469,8 @@
<xsl:apply-templates select="fb:history/*"/>
</xsl:template>
<xsl:template name="publish-info-appendix">
- <xsl:if test="count(fb:description/fb:publish-info)">
+ <xsl:if
+ test="count(fb:description/fb:publish-info) and count(fb:description/fb:publish-info/*)">
<xsl:for-each select="fb:description/fb:publish-info">
<xsl:call-template name="publish-info-appendix-wrk"/>
</xsl:for-each>
@@ -540,7 +553,8 @@
</appendix>
</xsl:template>
<xsl:template name="custom-info-appendix">
- <xsl:if test="count(fb:description/fb:custom-info)">
+ <xsl:if
+ test="count(fb:description/fb:custom-info) and count(fb:description/fb:custom-info/*)">
<appendix id="{concat('custom-info-appendix', generate-id())}">
<xsl:for-each select="fb:description/fb:custom-info[1]">
<title>
Modified: trunk/fb2-perl-tools/xslt/l10n/en.xml
===================================================================
--- trunk/fb2-perl-tools/xslt/l10n/en.xml 2007-09-04 12:11:02 UTC (rev 51)
+++ trunk/fb2-perl-tools/xslt/l10n/en.xml 2007-10-14 15:47:25 UTC (rev 52)
@@ -1,14 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
-
-This library is free software; you can redistribute it and/or modify
-it under the terms of the General Public License (GPL). For
-more information, see http://www.fsf.org/licenses/gpl.txt
-
--->
-
<l10n language="en" english-language-name="English">
<param name="SeeAbr" text="See"/>
<param name="seeabr" text="see"/>
@@ -77,5 +67,6 @@
<context name="technical-appendix">
<title text="Information about conversion"/>
<param name="xslt.processor" text="XSLT processor"/>
+ <param name="conversion-date-time" text="Date and time of transformation Fictionbook2 — Docbook"/>
</context>
</l10n>
Modified: trunk/fb2-perl-tools/xslt/l10n/ru.xml
===================================================================
--- trunk/fb2-perl-tools/xslt/l10n/ru.xml 2007-09-04 12:11:02 UTC (rev 51)
+++ trunk/fb2-perl-tools/xslt/l10n/ru.xml 2007-10-14 15:47:25 UTC (rev 52)
@@ -1,14 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-Copyright 2007 by KiR Jakobson ( http://kir666.ru/fb2docbook/ )
-
-This library is free software; you can redistribute it and/or modify
-it under the terms of the General Public License (GPL). For
-more information, see http://www.fsf.org/licenses/gpl.txt
-
--->
-
<l10n language="ru" english-language-name="Russian">
<param name="SeeAbr" text="См."/>
<param name="seeabr" text="см."/>
@@ -77,5 +67,6 @@
<context name="technical-appendix">
<title text="Информация о конвертации"/>
<param name="xslt.processor" text="XSLT процессор"/>
+ <param name="conversion-date-time" text="Дата и время трансформации Fictionbook2 — Docbook"/>
</context>
</l10n>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|