symbols ### appears in PDF output
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 158
- Joined: Fri Nov 10, 2017 8:16 am
symbols ### appears in PDF output
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:
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"
Please help.
Thanks and Regards,
Catherine
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
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: symbols ### appears in PDF output
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
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
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service