]> git.pld-linux.org Git - packages/apertium-dict-mk-en.git/blame - apertium-dict-mk-en-missing.patch
- new package
[packages/apertium-dict-mk-en.git] / apertium-dict-mk-en-missing.patch
CommitLineData
7c201940
JB
1--- apertium-mk-en-0.1.0/lexchoicebil.xsl.orig 1970-01-01 01:00:00.000000000 +0100
2+++ apertium-mk-en-0.1.0/lexchoicebil.xsl 2010-12-04 15:36:26.938122774 +0100
3@@ -0,0 +1,138 @@
4+<?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
5+<!--
6+ Copyright (C) 2005 Universitat d'Alacant / Universidad de Alicante
7+
8+ This program is free software; you can redistribute it and/or
9+ modify it under the terms of the GNU General Public License as
10+ published by the Free Software Foundation; either version 2 of the
11+ License, or (at your option) any later version.
12+
13+ This program is distributed in the hope that it will be useful, but
14+ WITHOUT ANY WARRANTY; without even the implied warranty of
15+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+ General Public License for more details.
17+
18+ You should have received a copy of the GNU General Public License
19+ along with this program; if not, write to the Free Software
20+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21+ 02111-1307, USA.
22+-->
23+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
24+ <xsl:output method="xml" encoding="UTF-8"/>
25+<xsl:param name="r2l"/>
26+
27+<xsl:template match="s">
28+ <s n="{./@n}"/>
29+</xsl:template>
30+
31+<xsl:template match="b">
32+ <b/>
33+</xsl:template>
34+
35+<xsl:template match="g">
36+ <g><xsl:apply-templates/></g>
37+</xsl:template>
38+
39+<xsl:template match="a">
40+ <a/>
41+</xsl:template>
42+
43+<xsl:template match="j">
44+ <j/>
45+</xsl:template>
46+
47+<xsl:template match="l">
48+ <xsl:apply-templates select="./*|text()"/>
49+</xsl:template>
50+
51+<xsl:template match="r">
52+ <xsl:apply-templates select="./*|text()"/>
53+</xsl:template>
54+
55+<xsl:template match="par">
56+ <par n="{./@n}"/>
57+</xsl:template>
58+
59+<xsl:template match="re">
60+ <re><xsl:apply-templates/></re>
61+</xsl:template>
62+
63+<xsl:template match="p">
64+ <p>
65+ <xsl:choose>
66+ <xsl:when test="not(count(../@slr)=0)">
67+ <l><xsl:apply-templates select="./l/text()|./l/*[not(name(.)=string('s'))]"/>:<xsl:apply-templates select="../@slr"/><xsl:apply-templates select="./l/*[name(.)=string('s')]"/></l>
68+ </xsl:when>
69+ <xsl:otherwise>
70+ <l><xsl:apply-templates select="./l/*|./l/text()"/></l>
71+ </xsl:otherwise>
72+ </xsl:choose>
73+ <r><xsl:apply-templates select="./r/*|./r/text()"/></r>
74+ </p>
75+</xsl:template>
76+
77+
78+<xsl:template match="i">
79+ <p>
80+ <xsl:choose>
81+ <xsl:when test="not(count(../@slr)=0)">
82+ <l><xsl:apply-templates select="text()|*[not(name(.)=string('s'))]"/>:<xsl:apply-templates select="../@slr"/><xsl:apply-templates select="*[name(.)=string('s')]"/></l>
83+ </xsl:when>
84+ <xsl:otherwise>
85+ <l><xsl:apply-templates select="*|text()"/></l>
86+ </xsl:otherwise>
87+ </xsl:choose>
88+ <r><xsl:apply-templates select="*|text()"/></r>
89+ </p>
90+</xsl:template>
91+
92+
93+<xsl:template match="e">
94+ <xsl:choose>
95+ <xsl:when test="not(count(./@r)=0)">
96+ <e r="{./@r}"><xsl:apply-templates select="./*"/></e>
97+ </xsl:when>
98+ <xsl:otherwise>
99+ <e><xsl:apply-templates select="./*"/></e>
100+ </xsl:otherwise>
101+ </xsl:choose>
102+</xsl:template>
103+
104+
105+<xsl:template match="dictionary">
106+<dictionary>
107+ <xsl:value-of select="string('&#xA;')"/>
108+ <xsl:copy-of select="./alphabet"/>
109+ <xsl:value-of select="string('&#xA;')"/>
110+ <xsl:copy-of select="./sdefs"/>
111+ <xsl:value-of select="string('&#xA;')"/>
112+ <xsl:if test="not(count(./pardefs/pardef)=0)">
113+ <pardefs>
114+ <xsl:value-of select="string('&#xA;')"/>
115+
116+ <xsl:for-each select="./pardefs/pardef">
117+ <xsl:value-of select="string('&#xA;')"/>
118+
119+ <pardef n="{./@n}">
120+ <xsl:apply-templates/>
121+ </pardef>
122+ </xsl:for-each>
123+ <xsl:value-of select="string('&#xA;')"/>
124+
125+ </pardefs>
126+ </xsl:if>
127+ <xsl:value-of select="string('&#xA;')"/>
128+
129+ <xsl:for-each select="./section">
130+ <section id="{./@id}" type="{./@type}">
131+ <xsl:apply-templates/>
132+ </section>
133+
134+ </xsl:for-each>
135+
136+</dictionary>
137+
138+</xsl:template>
139+
140+
141+</xsl:stylesheet>
This page took 0.057331 seconds and 4 git commands to generate.