Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A How can I prevent, or work around, unfortunate hyphenation in critical words?

With help from a coworker I was able to fix this by adding the following to the FO stylesheet: <xsl:template match="classname"> <fo:inline hyphenate="false"> <xsl:call-templat...

posted 11y ago by Monica Cellio‭  ·  last activity 5y ago by System‭

Answer
#3: Attribution notice added by user avatar System‭ · 2019-12-08T03:08:49Z (almost 5 years ago)
Source: https://writers.stackexchange.com/a/9203
License name: CC BY-SA 3.0
License URL: https://creativecommons.org/licenses/by-sa/3.0/
#2: Initial revision by (deleted user) · 2019-12-08T03:08:49Z (almost 5 years ago)
With help from a coworker I was able to fix this by adding the following to the FO stylesheet:

    <xsl:template match="classname">
      <fo:inline hyphenate="false">
        <xsl:call-template name="inline.monoseq"/>
      </fo:inline>
    </xsl:template>

And likewise for other elements that should get this treatment, like `methodname` and `literal`.

This creates a wrapper around the native style, changing hyphenation only.

[Source](http://www.sagehill.net/docbookxsl/PrintCustomEx.html#Hyphenation)

#1: Imported from external source by user avatar System‭ · 2013-10-22T17:01:38Z (about 11 years ago)
Original score: 3