Non-breaking hyphen comes as # in PDF output

chrizzbee
Posts: 37

Non-breaking hyphen comes as # in PDF output

Tue Aug 29, 2017 11:15 am

I want to use the non-breaking hyphen, but when publishing my DITA content to PDF, the hyphen is rendered as #. This is the case if I insert the hyphen via oXygen's character map, or as decimal ‑ or as hex ‑

Any clues here? Thanks a lot.
Chris.
radu_pisoi
Posts: 324
Location: Craiova

Re: Non-breaking hyphen comes as # in PDF output

Wed Aug 30, 2017 3:46 pm

Hi,

This usually happens when the font that you use have not a glyph for a specific character (Non-breaking hyphen for this case).

The solution is to use a font that includes a glyph for this character. Please see the Set a Font for PDF Output Generated with FO Processor topic from our documentation for more details.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
chrizzbee
Posts: 37

Re: Non-breaking hyphen comes as # in PDF output

Thu Aug 31, 2017 10:05 am

Hi Radu
I don't use any odd font. Just Arial. But I realized that the non-breaking hyphen is only supported in Arial Unicode MS, which was deactivated in the Windows fonts. After activating it I thought, this might be it, but still same result. However, I now used the zero-width no-break space entity &#8288; which works fine for my purpose.
Chris.

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 0 guests