aboutsummaryrefslogtreecommitdiff
path: root/bn_BD.UTF-8/share/xml
diff options
context:
space:
mode:
Diffstat (limited to 'bn_BD.UTF-8/share/xml')
-rw-r--r--bn_BD.UTF-8/share/xml/catalog.xml14
-rw-r--r--bn_BD.UTF-8/share/xml/freebsd-dblatex.xsl17
-rw-r--r--bn_BD.UTF-8/share/xml/freebsd-fo.xsl76
3 files changed, 105 insertions, 2 deletions
diff --git a/bn_BD.UTF-8/share/xml/catalog.xml b/bn_BD.UTF-8/share/xml/catalog.xml
index a3feec86ca..f97d0055a9 100644
--- a/bn_BD.UTF-8/share/xml/catalog.xml
+++ b/bn_BD.UTF-8/share/xml/catalog.xml
@@ -5,11 +5,21 @@
<!-- $FreeBSD$ -->
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
- <rewriteSystem systemIdStartString="http://www.FreeBSD.org/XML/www/lang/"
+ <rewriteSystem systemIdStartString="http://www.FreeBSD.org/XML/lang/"
rewritePrefix="../../"/>
- <rewriteURI uriStartString="http://www.FreeBSD.org/XML/www/lang/"
+ <rewriteURI uriStartString="http://www.FreeBSD.org/XML/lang/"
rewritePrefix="../../"/>
+ <system
+ systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-common.xsl"
+ uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
+ <system
+ systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-epub.xsl"
+ uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
+ <system
+ systemId="http://www.FreeBSD.org/XML/lang/share/xml/freebsd-xhtml.xsl"
+ uri="http://www.FreeBSD.org/XML/share/xml/empty.xsl" />
+
<public
publicId="-//FreeBSD//ENTITIES DocBook FreeBSD Entity Set//EN"
uri="entities.ent" />
diff --git a/bn_BD.UTF-8/share/xml/freebsd-dblatex.xsl b/bn_BD.UTF-8/share/xml/freebsd-dblatex.xsl
new file mode 100644
index 0000000000..9b84712c2e
--- /dev/null
+++ b/bn_BD.UTF-8/share/xml/freebsd-dblatex.xsl
@@ -0,0 +1,17 @@
+<?xml version='1.0'?>
+
+<!-- $FreeBSD$ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+
+ <xsl:param name="xetex.font">
+ <xsl:text>\setmainfont{Lohit Bengali}
+ </xsl:text>
+ <xsl:text>\setsansfont{Lohit Bengali}
+ </xsl:text>
+ <xsl:text>\setmonofont{DejaVu Sans Mono}
+ </xsl:text>
+ </xsl:param>
+
+</xsl:stylesheet>
diff --git a/bn_BD.UTF-8/share/xml/freebsd-fo.xsl b/bn_BD.UTF-8/share/xml/freebsd-fo.xsl
new file mode 100644
index 0000000000..bf908941b2
--- /dev/null
+++ b/bn_BD.UTF-8/share/xml/freebsd-fo.xsl
@@ -0,0 +1,76 @@
+<?xml version='1.0'?>
+
+<!-- $FreeBSD$ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ xmlns:str="http://exslt.org/strings"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:db="http://docbook.org/ns/docbook"
+ exclude-result-prefixes="db"
+ extension-element-prefixes="str">
+ <!--
+ BENGALI-SPECIFIC PARAMETERS
+ -->
+
+ <!-- Base fonts -->
+ <xsl:param name="body.font.family">Lohit Bengali</xsl:param>
+ <xsl:param name="sans.font.family">Lohit Bengali, Andika</xsl:param>
+ <xsl:param name="title.font.family">Lohit Bengali</xsl:param>
+ <xsl:param name="monospace.font.family">DejaVu Sans Mono</xsl:param>
+
+ <xsl:attribute-set name="intermixed.english.attributes">
+ <xsl:attribute name="font-family">Gentium Plus</xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:template match="*" mode="intermixed.english">
+ <xsl:apply-templates select="."/>
+ </xsl:template>
+
+ <xsl:template match="text()" mode="intermixed.english">
+ <xsl:for-each select="str:split(., ' ')">
+ <xsl:choose>
+ <xsl:when test="contains('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/(', substring(., 1, 1))">
+ <fo:inline xsl:use-attribute-sets="intermixed.english.attributes">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </fo:inline>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </xsl:template>
+
+<xsl:template match="db:para">
+ <xsl:variable name="keep.together">
+ <xsl:call-template name="pi.dbfo_keep-together"/>
+ </xsl:variable>
+ <fo:block xsl:use-attribute-sets="para.properties">
+ <xsl:if test="$keep.together != ''">
+ <xsl:attribute name="keep-together.within-column"><xsl:value-of
+ select="$keep.together"/></xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="anchor"/>
+ <xsl:apply-templates mode="intermixed.english"/>
+ </fo:block>
+</xsl:template>
+
+<xsl:template match="db:simpara">
+ <xsl:variable name="keep.together">
+ <xsl:call-template name="pi.dbfo_keep-together"/>
+ </xsl:variable>
+ <fo:block xsl:use-attribute-sets="normal.para.spacing">
+ <xsl:if test="$keep.together != ''">
+ <xsl:attribute name="keep-together.within-column"><xsl:value-of
+ select="$keep.together"/></xsl:attribute>
+ </xsl:if>
+ <xsl:call-template name="anchor"/>
+ <xsl:apply-templates mode="intermixed.english"/>
+ </fo:block>
+</xsl:template>
+
+</xsl:stylesheet>