[oXygen-user] [solved] Fontchange in table titles?

Bernhard Kleine bernhard.kleine at gmx.net
Thu Nov 22 04:12:13 CST 2018


I had in the customization the following lines:

> <l:context name="title">
>         <!-- formatiert Tabellen und Abbildungstitel -->
>         <l:template name="table" text="Tabelle %t."/>
>         <l:template name="figure" text="Bild %t"/>
>       </l:context>
the empty space in front of %t in both lines was ???. Obviously Alegreya
has no corresponding glyph for that so that FOP looked for a font which
had it. That was Times Roman. Thanks a lot for Luca Bellonda from the
FOP Mailing list for sorting this out. Changing the space for a no-break
space ( U+00A0) removed the offending font change.

A bit tricky and not obvious at all :(

Regards Bernhard

Am 05.11.2018 um 01:52 schrieb Bob Stayton:
>
> Hi Bernhard,
>
> This is indeed strange, as there is nothing in the markup to trigger a
> font change.  I suspect a FOP bug.  Can you send me the PDF off list?
>
> One other thing: I noticed that the FO you send has indented the
> nested elements.  Did you do that in Oxygen before sending it, or does
> your customization layer have <xsl:output indent="yes"/> ?  If the
> latter, I suggest that be changed to "no" because the indenting
> process introduces whitespace that can mess with an FO processor.
>
> Bob Stayton
> Sagehill Enterprises
> bobs at sagehill.net
> On 11/4/2018 1:38 PM, Bernhard Kleine wrote:
>>
>> Hi Bob,
>>
>> the fo-file is included. It is another table but the first to show
>> the error. I cannot see why the font change takes place. The
>> offendint "Tabelle Bläuling noch nicht fotografiert" is around line
>> number 700.
>>
>>>   <fo:block xmlns:rx="http://www.renderx.com/XSL/Extensions"
>>> space-before.minimum="0.5em" space-before.optimum="1em"
>>>                         space-before.maximum="2em"
>>> space-after.minimum="0.5em" space-after.optimum="1em"
>>> space-after.maximum="2em"
>>>                         keep-together.within-column="auto" id="d0e101">
>>>                         <fo:block space-before.optimum="1em"
>>> space-before.minimum="0.8em" space-before.maximum="1.2em"
>>> font-weight="bold"
>>>                             font-size="13.2pt" hyphenate="false"
>>> space-after.minimum="0.4em" space-after.optimum="0.6em"
>>> space-after.maximum="0.8em"
>>>                             keep-with-next.within-column="always">
>>>                             Tabelle Bläuling noch nicht fotografiert.
>>>                         </fo:block>
>>>                         <fo:table
>>> border-before-width.conditionality="retain"
>>> border-collapse="collapse" border-start-style="none"
>>> border-end-style="none"
>>>                             border-top-style="none"
>>> border-bottom-style="none" table-layout="fixed" width="100%">
>>>                             <fo:table-column column-number="1"
>>> column-width="130pt"/>
>>>                             <fo:table-column column-number="2"
>>> column-width="167pt"/>
>>>                             <fo:table-column column-number="3"
>>> column-width="93pt"/>
>>>                             <fo:table-column column-number="4"
>>> column-width="66.6pt"/>
>>>                             <fo:table-header start-indent="0pt"
>>> end-indent="0pt">
>>  I am using FOP.
>>
>> kind regards
>>
>> Bernhard
>>
>>
>> Am 04.11.2018 um 20:28 schrieb Bob Stayton:
>>>
>>> Hi Bernhard,
>>>
>>> To help sort this out, create a copy of your transformation scenario
>>> but turn off the FO processor (uncheck the Perform FO Processing
>>> box) and save the fo file (in the Output tab, change Save as to
>>> ${cfn}.fo).  Then examine the fo file in Oxygen at that point to see
>>> what the fo markup is.  That will provide clues.
>>>
>>> Is your FO processor FOP?
>>>
>>> Bob Stayton
>>> Sagehill Enterprises
>>> bobs at sagehill.net
>>> On 11/4/2018 10:50 AM, Bernhard Kleine wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I have changed body.font.family and the title.font.family and added
>>>> in Front of the fonts, oxygen offers, Alegreya. This font is
>>>> installed on the computer.
>>>>
>>>> The strange thing happening is that in table titles the first word
>>>> of the title is now not in Alegreya, maybe in Times Roman although
>>>> in cannot see anything in parameters where the table.title is
>>>> mentioned so that the first word is going into some other font. I
>>>> asked Thomas Schaitle already, but he has no idea what is going on.
>>>> Have you any idea what is going on? When necessary I can provide
>>>> the source code and the customizations.
>>>>
>>>> <sect2 xml:id="lycanidaeBilder" xreflabel="Bilder von Feuerfaltern
>>>> und Bläulingen">             <title>Feuerfalter- und
>>>> Bläulingsbilder</title>             <table frame="none"
>>>> tocentry="1">                 <title>Bläulinge, Zipfel- und
>>>> Feuerfalter</title>                 <tgro
>>>>
>>>>
>>>> Regards and greetings from the Black Forest
>>>>
>>>> Bernhard
>>>>
>>>> -- 
>>>> spitzhalde9
>>>> D-79853 lenzkirch
>>>> bernhard.kleine at gmx.net
>>>> www.b-kleine.com, www.urseetal.net
>>>> -
>>>> thunderbird mit enigmail
>>>> GPG schlüssel: D5257409
>>>> fingerprint:
>>>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>>>>
>>>>
>>>> _______________________________________________
>>>> oXygen-user mailing list
>>>> oXygen-user at oxygenxml.com
>>>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>>
>>>
>>>
>>> _______________________________________________
>>> oXygen-user mailing list
>>> oXygen-user at oxygenxml.com
>>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>>
>> -- 
>> spitzhalde9
>> D-79853 lenzkirch
>> bernhard.kleine at gmx.net
>> www.b-kleine.com, www.urseetal.net
>> -
>> thunderbird mit enigmail
>> GPG schlüssel: D5257409
>> fingerprint:
>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>>
>>
>> _______________________________________________
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com
>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kleine at gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181122/1211cbe7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fpcnlpepaeifpfib.png
Type: image/png
Size: 4671 bytes
Desc: not available
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181122/1211cbe7/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20181122/1211cbe7/attachment.sig>


More information about the oXygen-user mailing list