]> Lady’s Gitweb - LesML/commitdiff
Add support for proper name marks
authorLady <redacted>
Sat, 26 Apr 2025 03:32:24 +0000 (23:32 -0400)
committerLady <redacted>
Sat, 26 Apr 2025 03:35:23 +0000 (23:35 -0400)
README.markdown
parser.xslt

index 29815e549d3a86cd67fb8a6fe953ac902cd726e7..6c972944045260665bf39c07dd03b97ed9163ff2 100644 (file)
@@ -209,6 +209,8 @@ Markup within paragraphs is delimited with·out exception by pairs of
 
 - The characters `⟪` and `⟫` indicate titles (`<html:cite>`).
 
 
 - The characters `⟪` and `⟫` indicate titles (`<html:cite>`).
 
+- The characters `⸶` and `⸷` indicate names (`<html:u class="name">`).
+
 - The characters `⟨` and `⟩` indicate offset text (`<html:i>`).
   This may be followed by a `@`, a language tag, and a `$` to provide
     the language of the text.
 - The characters `⟨` and `⟩` indicate offset text (`<html:i>`).
   This may be followed by a `@`, a language tag, and a `$` to provide
     the language of the text.
index 227e285f2eaff705a6a0ec9954c5733d5bbb493d..7f6d153b8c1bd3bb373187ffc2b7ddaeb7ba4846 100644 (file)
@@ -755,6 +755,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                <param name="element-namespace" select="'http://www.w3.org/1999/xhtml'"/>
                <param name="start-sigil"/>
                <param name="end-sigil"/>
                <param name="element-namespace" select="'http://www.w3.org/1999/xhtml'"/>
                <param name="start-sigil"/>
                <param name="end-sigil"/>
+               <param name="class"/>
                <param name="role"/>
                <param name="langtag-supported" select="false()"/>
                <choose>
                <param name="role"/>
                <param name="langtag-supported" select="false()"/>
                <choose>
@@ -802,6 +803,11 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                                                        <value-of select="$role"/>
                                                                                </attribute>
                                                                        </if>
                                                                                        <value-of select="$role"/>
                                                                                </attribute>
                                                                        </if>
+                                                                       <if test="string($class)!=''">
+                                                                               <attribute name="class">
+                                                                                       <value-of select="$class"/>
+                                                                               </attribute>
+                                                                       </if>
                                                                        <if test="string($langtag)!=''">
                                                                                <if test="$element-namespace='http://www.w3.org/1999/xhtml'">
                                                                                        <attribute name="lang">
                                                                        <if test="string($langtag)!=''">
                                                                                <if test="$element-namespace='http://www.w3.org/1999/xhtml'">
                                                                                        <attribute name="lang">
@@ -1034,6 +1040,18 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                <with-param name="end-sigil" select="'⟫'"/>
                        </apply-templates>
                </variable>
                                <with-param name="end-sigil" select="'⟫'"/>
                        </apply-templates>
                </variable>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:named"/>
+       </template>
+       <template match="node()" mode="LesML:named">
+               <variable name="result">
+                       <apply-templates select="." mode="LesML:inline">
+                               <with-param name="element-name" select="'u'"/>
+                               <with-param name="element-namespace" select="'&xhtml;'"/>
+                               <with-param name="start-sigil" select="'⸶'"/>
+                               <with-param name="end-sigil" select="'⸷'"/>
+                               <with-param name="class" select="'name'"/>
+                       </apply-templates>
+               </variable>
                <apply-templates select="exsl:node-set($result)/node()" mode="LesML:offset"/>
        </template>
        <template match="node()" mode="LesML:offset">
                <apply-templates select="exsl:node-set($result)/node()" mode="LesML:offset"/>
        </template>
        <template match="node()" mode="LesML:offset">
This page took 0.205579 seconds and 4 git commands to generate.