Non-breaking hyphen comes as # in PDF output

Post here questions and problems related to editing and publishing DITA content.
chrizzbee
Posts: 37
Joined: Wed May 13, 2015 11:02 am

Non-breaking hyphen comes as # in PDF output

Post by chrizzbee »

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: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post by radu_pisoi »

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
Joined: Wed May 13, 2015 11:02 am

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

Post by chrizzbee »

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.
Post Reply