Re: [ditac] A few questions about converting DITA to PDF
Jirka Kosek <[email protected]> Mon, 3 Jun 2024 12:51:34 +0200
| Newsgroups | gmane.editors.xxe.general |
|---|---|
| Message-ID | <[email protected]> |
On 27.05.2024 18:29, Hussein Shafie wrote:
>> (1) I found out that sometimes I/O is rendered with I/ on one line and
>> O on the next line. Is there a way to force I/O to always stay
>> together
>> in the same line?
>
> "I/O" split between lines: sorry, no clue.
I'm not sure if FOP has some option to control this. But you can add
quite simple template into your XSLT stylesheet customization to wrap
"I/O" into formatting object that would prevent line break:
<xsl:template match="text()">
<xsl:analyze-string select="." regex="I/O">
<xsl:matching-substring>
<fo:inline keep-together.within-line="always">
<xsl:value-of select="."/>
</fo:inline>
</xsl:matching-substring>
<xsl:non-matching-substring>
<xsl:value-of select="."/>
</xsl:non-matching-substring>
</xsl:analyze-string>
</xsl:template>
--
------------------------------------------------------------------
Jirka Kosek e-mail: [email protected] http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
OpenPGP_signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQRya5eRAjs9i3DpmvLPCZLDufR1HgUCZl2gNgUDAAAAAAAKCRDPCZLDufR1HnS+ AKDDakXBhwp85cPYwG1EbDDSo0xPlwCguv8nrr0klnF1wjBZ9mjnO5jiRaI= =9BGV -----END PGP SIGNATURE-----