symbols ### appears in PDF output

catherine
Posts: 139
Joined: Fri Nov 10, 2017 8:16 am

symbols ### appears in PDF output

Post by catherine » Fri Feb 28, 2020 11:59 am

Hi,
In the past, I used "PDF based on DITA & CSS", and created an customization print css for the PDF output.
Everything worked well with your instructions.
The only problem is that certain styles defined in custom css file didn't work very well for the Tables.

Today, I am testing "PDF based on HTML & CSS.
I find that the tables displayed well in the PDF output.
But!
The symbols ## appears again!
The first level Topic titles display correctlly.
The second level Topic title, third level topic title only display English characters, and display #### instead of the Chinese characters.

However, all the topic titles display correctly in the TOC.

This is what I set in my customized css file:

Code: Select all

*[class ~= "topic/title"] {
    
    font-weight: 900 !important;
    color: blue !important;
    font-family:  SourceHanSansCN-Light, sans-serif !important; 
}

Another issue on the TOC page, I want to add a TOC title on the TOC page, so I add this codes in the css file.
It works if I use "PDF based on DITA & CSS", but doesn't work if I use "PDF based on HTML & CSS"

Code: Select all

/* Title in the TOC page  */
toc-title[empty]:lang(zh-cn):before { 
    content: "目录"; 
}

Please help.
Thanks and Regards,
Catherine

Costin
Posts: 715
Joined: Mon Dec 05, 2011 6:04 pm

Re: symbols ### appears in PDF output

Post by Costin » Fri Feb 28, 2020 12:39 pm

Hello,

The ## symbols appear when you are using a specific font that does not have support for specific characters or glyphs.

What version and build of oXygen are you using (you can find this information in the dialog from oXygen menu Help > About)?
I tested using oXygen XML Editor version 22 but could not reproduce the issue. "目录" was rendered OK in the PDF on 2nd and 3rd level topic titles and I used both the built-in (untouched) DITA Map PDF based on HTML5 & CSS and your CSS rule (setting font-family: SourceHanSansCN-Light, sans-serif !important; on any topic title),

There might be another selector with higher specificity elsewhere in your customization CSS that sets a different font.

In order to investigate and help you with your CSS customization, please send us (on the official support email - support@oxygenxml.com - or through the online support form) a sample DITA Map that reproduces the characters issue, together with the customization CSS file that you are using.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

catherine
Posts: 139
Joined: Fri Nov 10, 2017 8:16 am

Re: symbols ### appears in PDF output

Post by catherine » Fri Feb 28, 2020 12:59 pm

Hi, I solved these problems.

All the codes need to be rewrote.

catherine
Posts: 139
Joined: Fri Nov 10, 2017 8:16 am

Re: symbols ### appears in PDF output

Post by catherine » Fri Feb 28, 2020 1:01 pm

Thanks for your help!

Post Reply