From nobody@FreeBSD.org  Sun Dec  8 20:23:56 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 64EAD1A6
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Dec 2013 20:23:56 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 37E8F1D5B
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Dec 2013 20:23:56 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rB8KNusT056032
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 8 Dec 2013 20:23:56 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rB8KNuJV056031;
	Sun, 8 Dec 2013 20:23:56 GMT
	(envelope-from nobody)
Message-Id: <201312082023.rB8KNuJV056031@oldred.freebsd.org>
Date: Sun, 8 Dec 2013 20:23:56 GMT
From: Carlo Strub <cs@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Translation of dashes in PDF version
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184606
>Category:       docs
>Synopsis:       Translation of dashes in PDF version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gabor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 08 20:30:00 UTC 2013
>Closed-Date:    Wed Jan 22 14:35:28 UTC 2014
>Last-Modified:  Wed Jan 22 14:40:00 UTC 2014
>Originator:     Carlo Strub
>Release:        
>Organization:
>Environment:
>Description:
There seems to be a bug in the generator for the PDF version with regard
to hyphens/dashes in code. For example in the DVD section it says:

# growisofs -dvd-compat -Z /dev/cd0=imagefile.iso


However, in the PDF version, we get

# growisofs --dvd-compat --Z -/dev/cd0=imagefile.iso
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Dec 8 23:42:02 UTC 2013 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184606 
State-Changed-From-To: open->closed 
State-Changed-By: gabor 
State-Changed-When: Wed Jan 22 14:35:12 UTC 2014 
State-Changed-Why:  
Fixed, thanks! 


Responsible-Changed-From-To: freebsd-doc->gabor 
Responsible-Changed-By: gabor 
Responsible-Changed-When: Wed Jan 22 14:35:12 UTC 2014 
Responsible-Changed-Why:  
Fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184606 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/184606: commit references a PR
Date: Wed, 22 Jan 2014 14:34:16 +0000 (UTC)

 Author: gabor
 Date: Wed Jan 22 14:34:08 2014
 New Revision: 43630
 URL: http://svnweb.freebsd.org/changeset/doc/43630
 
 Log:
   - Line wrap indicators are rendered in the verbatim texts with the help
     of soft hyphens. However, FOP does not handle well soft hyphens when placed
     after certain characters. Apply a workaround for this.
   
   PR:		docs/184606
   Submitted by:	cs
 
 Modified:
   head/share/xml/freebsd-fo.xsl
 
 Modified: head/share/xml/freebsd-fo.xsl
 ==============================================================================
 --- head/share/xml/freebsd-fo.xsl	Wed Jan 22 12:13:12 2014	(r43629)
 +++ head/share/xml/freebsd-fo.xsl	Wed Jan 22 14:34:08 2014	(r43630)
 @@ -513,6 +513,51 @@
    <!-- Suppress list titles -->
    <xsl:template match="db:title" mode="list.title.mode"/>
  
 +  <!-- Soft-hyphen workaround for verbatim hyphenation -->
 +  <xsl:template name="hyphenate.verbatim">
 +    <xsl:param name="content"/>
 +    <xsl:variable name="apos" select='"&apos;"'/>
 +    <xsl:variable name="head" select="substring($content, 1, 1)"/>
 +    <xsl:variable name="tail" select="substring($content, 2)"/>
 +    <xsl:variable name="next" select="substring($tail, 1, 1)"/>
 +    <xsl:choose>
 +      <!-- Place soft-hyphen after space or non-breakable space. -->
 +      <xsl:when test="$next = '&#xA;' or $next = '' or $next = '&quot;' or
 +	$next = '.' or $next = ',' or $next = '-' or $next = '/' or
 +	$next = $apos or $next = ':' or $next = '!' or $next = '|' or
 +	$next = '?' or $next = ')'">
 +	<xsl:value-of select="$head"/>
 +      </xsl:when>
 +      <xsl:when test="($head = ' ' or $head = '&#160;') and $next != '.' and
 +	$next != '}' and $next != ' ' and $next != '&#160;'">
 +	<xsl:text>&#160;</xsl:text>
 +	<xsl:text>&#x00AD;</xsl:text>
 +      </xsl:when>
 +      <xsl:when test="$head = '.' and translate($next, '0123456789', '') != ''">
 +	<xsl:text>.</xsl:text>
 +	<xsl:text>&#x00AD;</xsl:text>
 +      </xsl:when>
 +      <xsl:when test="$hyphenate.verbatim.characters != '' and
 +	translate($head, $hyphenate.verbatim.characters, '') = '' and
 +	translate($next, $hyphenate.verbatim.characters, '') != ''">
 +	<xsl:value-of select="$head"/>
 +	<xsl:text>&#x00AD;</xsl:text>
 +      </xsl:when>
 +      <xsl:when test="$next = '('">
 +	<xsl:value-of select="$head"/>
 +	<xsl:text>&#x00AD;</xsl:text>
 +      </xsl:when>
 +      <xsl:otherwise>
 +	<xsl:value-of select="$head"/>
 +      </xsl:otherwise>
 +    </xsl:choose>
 +    <xsl:if test="$tail">
 +      <xsl:call-template name="hyphenate.verbatim">
 +	<xsl:with-param name="content" select="$tail"/>
 +      </xsl:call-template>
 +    </xsl:if>
 +  </xsl:template>
 +
  <!--
  	TITLEPAGE TEMPLATES
  -->
 _______________________________________________
 svn-doc-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-doc-all
 To unsubscribe, send any mail to "svn-doc-all-unsubscribe@freebsd.org"
 
>Unformatted:
