docs-common/common/entities README.txt, NONE, 1.1 Makefile, 1.6, 1.7 entities-en.xml, 1.5, 1.6 entities.dtd, 1.5, 1.6 entities.xsl, 1.4, 1.5
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Tue Feb 28 02:07:21 UTC 2006
- Previous message (by thread): docs-common Makefile.common,1.74,1.75
- Next message (by thread): docs-common/common/entities entities-it.xml, 1.6, 1.7 entities-pt_BR.xml, NONE, 1.1 entities-ru.xml, NONE, 1.1 entities-zh_CN.xml, NONE, 1.1 it.po, 1.6, 1.7 pt_BR.po, NONE, 1.1 ru.po, NONE, 1.1 zh_CN.po, NONE, 1.1 Makefile, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jtr
Update of /cvs/docs/docs-common/common/entities
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9219/common/entities
Modified Files:
Makefile entities-en.xml entities.dtd entities.xsl
Added Files:
README.txt
Log Message:
Added "fdpcommon" kind of entity. Automatically relocate files
marked as "fdpcommon" when building the ".ent" files.
Revert Karsten's "Makefile.common" change as a courtesey.
--- NEW FILE README.txt ---
How To Add Support For A New Locale
1) Append the ISO locale code, as either xx or xx_YY, to the
${OTHER} macro definition in the file "Makefile". Below,
we will refer to the new locale as ${LANG}.
2) Create a .PO file for the locale by typing the command:
$ make ${LANG}.po
3) Add the translations using your favorite .PO file editor,
such as kbable(1) or gtranslator(1).
4) Review your updated XML file using the command:
$ make xml-${LANG}
and reviewing the file "entities-${LANG}.xml" for
correctness.
5) Repeat steps #3 and #4 until a correct XML file is
produced.
6) Produce the final output file, "entities-${LANG}.ent" by
using the command:
$ make
and reviewing the results.
Tommy Reynolds
Index: Makefile
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Makefile 26 Feb 2006 21:32:31 -0000 1.6
+++ Makefile 28 Feb 2006 02:06:58 -0000 1.7
@@ -23,7 +23,8 @@
# entities file
#
%.ent: %.xml
- xsltproc -o $@ entities.xsl $<
+ xsltproc -o $@ --stringparam FDPCOMMONDIR "${FDPCOMMONDIR}" \
+ entities.xsl $<
#
#######################################################################
@@ -34,6 +35,10 @@
#######################################################################
#######################################################################
+FDPCOMMONDIR:=$(shell cd .. && /bin/pwd)
+#######################################################################
+
+#######################################################################
# WARNING: put no targets before this one!
#
.PHONY: all
@@ -134,6 +139,7 @@
@echo "OTHERXMLFILES=${OTHERXMLFILES}"
@echo "ENTFILES=${ENTFILES}"
@echo "POFILES=${POFILES}"
+ @echo "FDPCOMMONDIR=${FDPCOMMONDIR}"
help::
@printf ${HELPFMT} "make showvars" "Show certain macro values"
#
Index: entities-en.xml
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/entities-en.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- entities-en.xml 25 Feb 2006 20:29:12 -0000 1.5
+++ entities-en.xml 28 Feb 2006 02:06:58 -0000 1.6
@@ -50,7 +50,7 @@
<comment>cf. Fedora Core</comment>
<text><use entity="FED"/> <use entity="EX"/></text>
</entity>
- <entity name="FP-URL">
+ <entity name="FDP-URL">
<comment>Fedora Docs Project URL</comment>
<text><ulink url="http://fedora.redhat.com/projects/docs/"/></text>
</entity>
@@ -114,31 +114,31 @@
</entity>
</group>
<group name="Common doc files">
- <entity name="LEGALNOTICE" kind="system">
+ <entity name="LEGALNOTICE" kind="fdpcommon">
<comment/>
<text>legalnotice-en.xml</text>
</entity>
- <entity name="LEGALNOTICE-CONTENT" kind="system">
+ <entity name="LEGALNOTICE-CONTENT" kind="fdpcommon">
<comment/>
<text>legalnotice-content-en.xml</text>
</entity>
- <entity name="LEGALNOTICE-OPL" kind="system">
+ <entity name="LEGALNOTICE-OPL" kind="fdpcommon">
<comment/>
<text>legalnotice-opl-en.xml</text>
</entity>
- <entity name="LEGALNOTICE-OPL-CONTENT" kind="system">
+ <entity name="LEGALNOTICE-OPL-CONTENT" kind="fdpcommon">
<comment/>
<text>opl.xml</text>
</entity>
- <entity name="LEGALNOTICE-RELNOTES" kind="system">
+ <entity name="LEGALNOTICE-RELNOTES" kind="fdpcommon">
<comment/>
<text>legalnotice-relnotes-en.xml</text>
</entity>
- <entity name="LEGALNOTICE-SECTION" kind="system">
+ <entity name="LEGALNOTICE-SECTION" kind="fdpcommon">
<comment/>
<text>legalnotice-section-en.xml</text>
</entity>
- <entity name="BUG-REPORTING" kind="system">
+ <entity name="BUG-REPORTING" kind="fdpcommon">
<comment/>
<text>bugreporting-en.xml</text>
</entity>
Index: entities.dtd
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/entities.dtd,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- entities.dtd 25 Feb 2006 20:29:12 -0000 1.5
+++ entities.dtd 28 Feb 2006 02:06:58 -0000 1.6
@@ -4,7 +4,7 @@
<!ELEMENT entity (comment,text) >
<!ATTLIST entity name NMTOKEN #REQUIRED >
-<!ATTLIST entity kind (term|system) "term" >
+<!ATTLIST entity kind (term|system|fdpcommon) "term" >
<!ELEMENT comment (#PCDATA) >
<!ELEMENT text (#PCDATA|use|ulink)* >
Index: entities.xsl
===================================================================
RCS file: /cvs/docs/docs-common/common/entities/entities.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- entities.xsl 25 Feb 2006 20:29:12 -0000 1.4
+++ entities.xsl 28 Feb 2006 02:06:58 -0000 1.5
@@ -3,7 +3,16 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" omit-xml-declaration="yes"/>
+ <xsl:param name="FDPCOMMONDIR">/usr/share/fedora/doc/docs-common/common</xsl:param>
+
<xsl:template match="/">
+ <xsl:comment><xsl:value-of select="' Group: Automatic Entities '"/></xsl:comment>
+ <xsl:call-template name="do_entity">
+ <xsl:with-param name="name">FDPCOMMONDIR</xsl:with-param>
+ <xsl:with-param name="desc">Base directory</xsl:with-param>
+ <xsl:with-param name="extra" />
+ <xsl:with-param name="body" select="$FDPCOMMONDIR"/>
+ </xsl:call-template>
<xsl:apply-templates/>
</xsl:template>
@@ -16,7 +25,7 @@
<xsl:variable name="desc">
<xsl:choose>
<xsl:when test="comment = ''">
- WHO AM I? WHAT AM I? I CAN'T REMEMBER!
+ FIXME: PLEASE DEFINE ME
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="comment"/>
@@ -28,6 +37,9 @@
<xsl:when test="@kind = 'system'">
<xsl:text> SYSTEM</xsl:text>
</xsl:when>
+ <xsl:when test="@kind = 'fdpcommon'">
+ <xsl:text> SYSTEM</xsl:text>
+ </xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
@@ -36,7 +48,21 @@
<xsl:variable name="body">
<xsl:apply-templates/>
</xsl:variable>
- <xsl:value-of select="concat( '<!ENTITY ', @name, ' ', normalize-space($extra), ' "', normalize-space($body), '" > <!-- ', normalize-space($desc), ' -->')" disable-output-escaping="yes"/>
+ <xsl:call-template name="do_entity">
+ <xsl:with-param name="name" select="@name"/>
+ <xsl:with-param name="desc" select="$desc"/>
+ <xsl:with-param name="extra" select="$extra"/>
+ <xsl:with-param name="body">
+ <xsl:choose>
+ <xsl:when test="@kind = 'fdpcommon'">
+ <xsl:value-of select="concat( $FDPCOMMONDIR, '/', normalize-space($body))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="normalize-space($body)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:with-param>
+ </xsl:call-template>
</xsl:template>
<xsl:template match="use">
@@ -67,4 +93,12 @@
<xsl:text disable-output-escaping="yes">'/></xsl:text>
</xsl:template>
+ <xsl:template name="do_entity">
+ <xsl:param name="name">NAME</xsl:param>
+ <xsl:param name="desc">DESC</xsl:param>
+ <xsl:param name="extra"></xsl:param>
+ <xsl:param name="body">BODY</xsl:param>
+ <xsl:value-of select="concat( '<!ENTITY ', $name, ' ', normalize-space($extra), ' "', normalize-space($body), '" > <!-- ', normalize-space($desc), ' -->')" disable-output-escaping="yes"/>
+ </xsl:template>
+
</xsl:stylesheet>
- Previous message (by thread): docs-common Makefile.common,1.74,1.75
- Next message (by thread): docs-common/common/entities entities-it.xml, 1.6, 1.7 entities-pt_BR.xml, NONE, 1.1 entities-ru.xml, NONE, 1.1 entities-zh_CN.xml, NONE, 1.1 it.po, 1.6, 1.7 pt_BR.po, NONE, 1.1 ru.po, NONE, 1.1 zh_CN.po, NONE, 1.1 Makefile, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-docs-commits
mailing list