Skip to main content
Participant
Jan 22, 2009 12:27 PM UTC
Answered

non-breaking hyphen not displayed correctly

The non-breaking hyphen (\u2011, &#8209) is not displayed correctly - the wrong glyph is shown.

To reproduce, do the following:
1. Start the TLF demo editor http://labs.adobe.com/technologies/textlayout/demos/
2. Import the markup below

Results:
- Line wrapping is correct: no line break at the hyphen
- Times New Roman on Windows does have the glyph defined - it should look like an ordinary hyphen.

This was seen in Build 3291.

Cheers
David


Markup:
<?xml version="1.0" encoding="utf-8"?>
<flow:TextFlow whiteSpaceCollapse="preserve" xmlns:flow=" http://ns.adobe.com/textLayout/2008"><flow:p marginRight="5"><flow:span fontSize="60">
2011 non-breaking hyphen Macro‑media
</flow:span></flow:p></flow:TextFlow>
This topic is closed to new replies. Start a new post to keep the conversation going.
david128128Correct answer
Participant
Jan 28, 2009 2:35 PM UTC
Hi Chris,

you're right, Times New Roman does not contain the glyph. I was seeing 2013 whlie I type 2011 -- my mistake, sorry.

However, it's a pity non of the OTFs implement this glyph (also Myriad Pro doesn't, for instance). Open Office 3 seems to replace it by a hypen (which is greyed), and InDesign CS4 also seems to replace the character and does no word-wrap at this position.

Of course it would be very convenient if Flash could handle it the same way..

Btw, character map is the same as my "chart table application", at least it's my translation from the German "Zeichentabelle". :-)

So, sorry again for the confusion...

david

13 replies

Participant
Jul 20, 2009 2:37 PM UTC

I was going through the same problem. Thanks for sharing and helping out.

Cheers,

Adam@pheromones.com

Translate
Participating Frequently
Jan 30, 2009 5:49 AM UTC
Thanks for the clarification, David.

I think the general request of "glyph substitution" within a font in cases like this is a good one. Many Windows applications do not do any kind of substitution whatsoever (Notepad is one example), but as you point out, Word and InDesign do use the hyphen glyph when a non-breaking hyphen is undefined (and presumably they have a table of acceptable substitutions, not just this one). I think this is a reasonable feature request either for TLF or the underlying flash.text.engine that powers it. I can't promise anything, but I'll take this request back to the team.

Thanks!
-Chris
Translate
Known Participant
Dec 29, 2009 4:41 PM UTC

FYI: I was just testing the use of the nonbreaking hyphens and it turns out nonbreaking hyphens are showing correct now in the beta 10.1 player.

Tested with debug player, version: WIN 10,1,51,6

- Benny

Translate
david128128Correct answer
Participant
Jan 28, 2009 2:35 PM UTC
Hi Chris,

you're right, Times New Roman does not contain the glyph. I was seeing 2013 whlie I type 2011 -- my mistake, sorry.

However, it's a pity non of the OTFs implement this glyph (also Myriad Pro doesn't, for instance). Open Office 3 seems to replace it by a hypen (which is greyed), and InDesign CS4 also seems to replace the character and does no word-wrap at this position.

Of course it would be very convenient if Flash could handle it the same way..

Btw, character map is the same as my "chart table application", at least it's my translation from the German "Zeichentabelle". :-)

So, sorry again for the confusion...

david
Translate
Participating Frequently
Jan 26, 2009 11:15 PM UTC
Strange, my copy of Times New Roman does not contain the glyph. I don't have the chart table application, but I looked in Character Map, and there's nothing between U+200F and U+2013 in Times New Roman. I'm on Windows XP Service Pack 2. I wonder if some apps are using font substitution to find that glyph in another font, or if there is more than one version of Times New Roman?
Translate
Participating Frequently
Jan 24, 2009 4:46 AM UTC
Hi David -

When I paste your markup into Notepad, I see the same box for the hyphen that I see when viewing it in the TLF demo editor. Are you saying that you see the hyphen display in other Windows apps but not TLF?

Thanks,
-Chris
Translate
Participant
Jan 26, 2009 4:50 PM UTC
Hi Chris,

yeah, that's it exactly. When I paste it in word, I see the dash. E.g. try it in Times New Roman. This font contains the glyph (enter 2011 in the Windows chart table application).

David
Translate