Page 1 of 1

Non-breaking hyphen (\u2011) is not rendered correctly when

PostPosted: Thu Jan 12, 2017 5:16 am
by roytmana@gmail.com
Some of my data that I bind to content control needs non-breaking hyphens (\u2011)
It renders fine in content controls (if I inject XML and then bind it to content control) but when I use bind XML + Remove content control option it renders incorrectly. in MS Word 2013 it renders wits some sort of white space and it does not act as non-breaking in MW Word 2010 it renders as unknow character

MSWord 2013:
Image

MSWord 2010
Image

while in content control it renders and behaves just fine:
Image

Re: Non-breaking hyphen (\u2011) is not rendered correctly w

PostPosted: Wed Jan 18, 2017 1:40 pm
by jason
It is interesting that the behaviour changes depending on whether the content control is there or not.

It must affect Word's font substitution. See https://www.google.com.au/search?q=word ... yphen+2011 for some interesting discussion.

For best results, the non-breaking hyphen should be replaced with:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
            <w:r>
                <w:noBreakHyphen/>
            </w:r>
 
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


I also found explicitly specifying a suitable font works around the issue.