Re: text overflows in converted <screen> elements when converting DocBook to PDF

Hussein Shafie <[email protected]> Sat, 13 Nov 2021 12:00:01 +0100
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
Your text overflow issue is caused by some style changes made (as of 
XMLmind XML Editor --XXE for short-- v9.3, April 8, 2020) to the DocBook 
XSL stylesheets used to convert DocBook (any version, including the v5.1 
you use) to PDF. The main style change being a base font size changed 
from 10pt to 11pt.

Please follow this procedure to fix this issue once for all.


0) Start XXE. Select "Options|Preferences". Select "Advanced|Cache 
data". Click "Clear" (Quick Start cache). See attached 0.png. Quit XXE.


1) Copy attached 0docbook51.xxe to folder XXE_user_preferences_dir/addon/

0docbook51.xxe restores the stock styles:
---
<configuration name="DocBook v5.1+"
    mimeType="application/x-docbook-5+xml"
    icon="xxe-config:common/mime_types/docbook.png"
    xmlns="http://www.xmlmind.com/xmleditor/schema/configuration"
    xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration"
    xmlns:db="http://docbook.org/ns/docbook">

    <include location="docbook51-config:docbook51.xxe"/>

    <property name="db51.toPS.alternateXSLT">
      Normal stylesheet (10pt)
      docbook5-config:xsl/fo/stock_docbook.xsl

      Profiling stylesheet (10pt)
      docbook5-config:xsl/fo/stock_profile-docbook.xsl
    </property>

</configuration>
---


2) Start XXE. Open your DocBook v5.1 XML file. Select "Options|Customize 
Configuration|Customize Document Conversion Stylesheets". See attached 1.png


3) A dialog box is displayed. Select "Convert to PDF, PostScript" from 
the first combobox. Select "Normal stylesheet (10pt)" from the second 
combobox. Click "OK". See attached 2.png.



--> You are done once for all, for all DocBook v5.1 documents (but 
assemblies). Convert your DocBook v5.1 XML file. The issue should have 
been fixed.




We'll make this much easier in the next version of XMLmind XML Editor, 
version 10, which should be released by the end of this month.




Francesco T. wrote:
> I have a problem with XMLMind xe-usr.
> 
> I had an xml document created with XMLMind xe-usr (macOS, see copied section for the configuration of XMLMind XML Editor Professional Edition 9.5.0) which printed as expected on A4 sheets.
> I haven’t been opening that document for a long time. Today I opened it, I made a little change and, when I save the output as a PDF,  all the <screen>...</screen> sections of the documents flow over the gray boxes. 
> What could the problem be?
> I checked the "Page setup...” dialog and for some reason “Paper size" was set to A5. I reset it to A4, but the problem persists.
> 
> Can you help me?


Francesco T. wrote:
> Thank you.
> This is the zip file.
> The xml file is the same that produced in the past the “right” version. I only changed two words in the text to correct a typo.
> The old (right) version is 177 pages. The new (wrong) has 213 pages.


Francesco T. wrote:
> Sorry I forgot the image files


Francesco T. wrote:
> You can see the effects of the problem in almost any page of the section 4 (“Comandi UNIX”, since they all use the screen tag)


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support
0.png (image/png, 87.3 KB) - not displayed
0docbook51.xxe (application/xml, 642 B) - not displayed
1.png (image/png, 198.1 KB) - not displayed
2.png (image/png, 348.3 KB) - not displayed