Bug 55767

Summary: -- becomes a ligature
Product: [Retired] Red Hat Raw Hide Reporter: Tim Waugh <twaugh>
Component: xmltexAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-28 23:15:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2001-11-06 12:41:10 UTC
Description of Problem:
xmltex does not disable ligatures.

Here is some XSL that works around the '--' problem for now (reported to 
docbook-apps):

<xsl:template name="fix-dash">
 <xsl:param name="str"/>
 <xsl:choose>
  <xsl:when test="contains($str,'--')">
   <xsl:value-of select="substring-before($str,'--')"/>
   <xsl:text>-&#x200b;-</xsl:text>
   <xsl:call-template name="fix-dash">
    <xsl:with-param name="str">
     <xsl:value-of select="substring-after($str,'--')"/>
    </xsl:with-param>
   </xsl:call-template>
  </xsl:when>
  <xsl:otherwise>
   <xsl:value-of select="$str"/>
  </xsl:otherwise>
 </xsl:choose>
</xsl:template>

<xsl:template match="text()">
 <xsl:call-template name="fix-dash">
  <xsl:with-param name="str" select="."/>
 </xsl:call-template>
</xsl:template>

Comment 1 Tim Waugh 2001-11-09 19:29:23 UTC
David Carlisle has a fix for this, but then passivetex breaks.  Waiting to see 
if Sebastian can fix that..


Comment 2 Tim Waugh 2001-12-06 14:00:30 UTC
Fixed in xmltex-20000118-4.