Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

En dash within programlisting not displayed correctly in HTML [DOC68] #76

Closed
firebird-automations opened this issue Jun 20, 2011 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: @paulvink

In the HTML output, en dashes (Unicode 2013h = 8211d) are displayed incorrectly when they occur in a programlisting element.

Observed in Firefox and IE, under Windows 7. Possibly due to limitations of the fixed-width font.

@firebird-automations
Copy link
Author

Commented by: @helebor

Actually, I think it's likely to be a transformation issue. I don't use en dashes at all...but, in listings, it is common for the double-hyphen comment marker to be present. Is the transformer trying to convert these to en-dash? Can you find any examples of the problem where the double-hyphen misconversion is *not* the case?

NB, I do use em dashes, but never in listings.

@firebird-automations
Copy link
Author

Commented by: @paulvink

Neither en dashes nor double hyphens are converted into anything else by the transformer.

You can see the problem at http://www.firebirdsql.org/refdocs/langrefupd25-hexnumerals.html :

- In the Syntax block, you see a thick vertical bar between the numbers 1 and 16 (at least, that's what *I* see in my browsers).

- In the 2nd (outermost) listitem under Value ranges, you see the text "Thus, in this range - and in this range only - ..." with correctly displayed en dashes (again, in my browsers).

If you look at the HTML source, they are all the same entity: &#⁠8211; (Unicode code point 8211d = 2013h = en dash).

Also, if I select and copy the "thick vertical bar" character and paste it into a text editor, I get an en dash.

So I think it's the monospace font that lacks a glyph here.

@mrotteveel
Copy link
Member

No longer relevant after overhaul of documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants