]> Lady’s Gitweb - LesML/commitdiff
Adjust order of precedence for inlines
authorLady <redacted>
Sat, 22 Mar 2025 02:32:18 +0000 (22:32 -0400)
committerLady <redacted>
Sat, 22 Mar 2025 02:44:39 +0000 (22:44 -0400)
I think this ordering makes a little bit more sense.

README.markdown
parser.xslt

index 6b43717951f1345d24ca2648abfa94a2ec7299ef..29815e549d3a86cd67fb8a6fe953ac902cd726e7 100644 (file)
@@ -205,10 +205,7 @@ Markup within paragraphs is delimited with·out exception by pairs of
 - The characters `⸨` and `⸩` indicate parenthetical content
     (`<html:small>`).
 
-- The characters `☞︎` and `☜︎` indicate strong importance
-    (`<html:strong>`).
-
-- The characters `⹐` and `⹑` indicate emphasis (`<html:em>`).
+- The characters `` ` `` and `´` indicate code (`<html:code>`).
 
 - The characters `⟪` and `⟫` indicate titles (`<html:cite>`).
 
@@ -219,7 +216,10 @@ Markup within paragraphs is delimited with·out exception by pairs of
 - The characters `⦃` and `⦄` indicate keyword highlighting
     (`<html:b>`).
 
-- The characters `` ` `` and `´` indicate code (`<html:code>`).
+- The characters `☞︎` and `☜︎` indicate strong importance
+    (`<html:strong>`).
+
+- The characters `⹐` and `⹑` indicate emphasis (`<html:em>`).
 
 Once the tree is built as above, it is remediated into its final form
   by the following steps :⁠—
index a47b5bbc9531d5f264bb5c9872414f063fac70a0..6e0d82a842f43854ec589bc8413ee2cf12ce3c63 100644 (file)
@@ -1004,24 +1004,14 @@ 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>
-               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:important"/>
-       </template>
-       <template match="node()" mode="LesML:important">
-               <variable name="result">
-                       <apply-templates select="." mode="LesML:inline">
-                               <with-param name="element-name" select="'html:strong'"/>
-                               <with-param name="start-sigil" select="'☞'"/>
-                               <with-param name="end-sigil" select="'☜'"/>
-                       </apply-templates>
-               </variable>
-               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:emphasized"/>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:code"/>
        </template>
-       <template match="node()" mode="LesML:emphasized">
+       <template match="node()" mode="LesML:code">
                <variable name="result">
                        <apply-templates select="." mode="LesML:inline">
-                               <with-param name="element-name" select="'html:em'"/>
-                               <with-param name="start-sigil" select="''"/>
-                               <with-param name="end-sigil" select="''"/>
+                               <with-param name="element-name" select="'html:code'"/>
+                               <with-param name="start-sigil" select="'`'"/>
+                               <with-param name="end-sigil" select="'´'"/>
                        </apply-templates>
                </variable>
                <apply-templates select="exsl:node-set($result)/node()" mode="LesML:titled"/>
@@ -1055,13 +1045,23 @@ 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>
-               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:code"/>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:important"/>
        </template>
-       <template match="node()" mode="LesML:code">
+       <template match="node()" mode="LesML:important">
+               <variable name="result">
+                       <apply-templates select="." mode="LesML:inline">
+                               <with-param name="element-name" select="'html:strong'"/>
+                               <with-param name="start-sigil" select="'☞'"/>
+                               <with-param name="end-sigil" select="'☜'"/>
+                       </apply-templates>
+               </variable>
+               <apply-templates select="exsl:node-set($result)/node()" mode="LesML:emphasized"/>
+       </template>
+       <template match="node()" mode="LesML:emphasized">
                <apply-templates select="." mode="LesML:inline">
-                       <with-param name="element-name" select="'html:code'"/>
-                       <with-param name="start-sigil" select="'`'"/>
-                       <with-param name="end-sigil" select="'´'"/>
+                       <with-param name="element-name" select="'html:em'"/>
+                       <with-param name="start-sigil" select="''"/>
+                       <with-param name="end-sigil" select="''"/>
                </apply-templates>
        </template>
 </transform>
This page took 0.279554 seconds and 4 git commands to generate.