Skip to content

Commit

Permalink
Merge pull request #664 from openSUSE/639-hyphenation-in-titles
Browse files Browse the repository at this point in the history
Fix #639: Disable hyphenation in article/book titles
  • Loading branch information
tomschr authored Feb 12, 2025
2 parents ac81e48 + e6fcf3a commit 8d24e57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions suse2022-ns/fo/article.titlepage.templates.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
</fo:instream-foreign-object>
</fo:block>

<fo:block start-indent="{&columnfragment; + &gutter;}mm" text-align="start"
<fo:block start-indent="{&columnfragment; + &gutter;}mm"
hyphenate="false" text-align="start"
role="article.titlepage.recto">
<fo:block space-after="{&gutterfragment;}mm">
<xsl:apply-templates mode="article.titlepage.recto.auto.mode"
Expand Down Expand Up @@ -84,9 +85,8 @@
</xsl:choose>
</fo:block>

<fo:block padding-before="{2 * &gutterfragment;}mm"
<fo:block padding-before="{2 * &gutterfragment;}mm" hyphenate="false"
padding-start="{&column; + &columnfragment; + &gutter;}mm">

<xsl:choose>
<xsl:when test="d:articleinfo/d:subtitle">
<xsl:apply-templates
Expand Down
4 changes: 2 additions & 2 deletions suse2022-ns/fo/book.titlepage.templates.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<fo:block> </fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block padding-after="&gutterfragment;mm">
<fo:block padding-after="&gutterfragment;mm" hyphenate="false">
<xsl:choose>
<xsl:when test="d:bookinfo/d:title">
<xsl:apply-templates mode="book.titlepage.recto.auto.mode"
Expand Down Expand Up @@ -156,7 +156,7 @@
<xsl:template match="d:subtitle" mode="book.titlepage.recto.auto.mode">
<fo:block
xsl:use-attribute-sets="title.font" font-size="{&super-large; * $sans-fontsize-adjust}pt"
space-before="&gutterfragment;mm">
space-before="&gutterfragment;mm" hyphenate="false">
<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
</fo:block>
</xsl:template>
Expand Down

0 comments on commit 8d24e57

Please sign in to comment.