Skip to content

Commit

Permalink
handle Symbol special case
Browse files Browse the repository at this point in the history
  • Loading branch information
pglatza committed Aug 3, 2023
1 parent 87ed1ef commit cef12a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xsl/sym.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,18 @@
//css:rule[@layout-type eq 'inline'][@css:font-family=$docx2hub:symbol-font-names]/@name = ../self::w:r/@role]
|
w:lvlText[../w:rPr/w:rFonts/@w:ascii=$docx2hub:symbol-font-names]/@w:val
[normalize-space()]
[if (matches(., '%\d')) then not(../../w:numFmt/@w:val = 'decimal') else true()]
(: https://mantis.le-tex.de/view.php?id=35783 :)
[not(../../w:rPr/w:rFonts/@w:ascii = 'Symbol' and matches(., '^\.%\d$'))]
|
w:t[string-length(.)=1 and ../@css:font-family = $docx2hub:symbol-font-names]
|
w:lvlText[../@css:font-family = $docx2hub:symbol-font-names]/@w:val
[normalize-space()]
[if (matches(., '%\d')) then not(../../w:numFmt/@w:val = 'decimal') else true()]
(: https://mantis.le-tex.de/view.php?id=35783 :)
[not(../../w:rPr/w:rFonts/@w:ascii = 'Symbol' and matches(., '^\.%\d$'))]
" mode="wml-to-dbk" priority="1.5">
<!-- priority = 1.5 because of priority = 1 ("default for attributes") in wml2dbk.xsl -->
<xsl:variable name="context" select="." as="item()"/>
Expand Down

0 comments on commit cef12a2

Please sign in to comment.