View Single Post
Old 07-29-2011, 05:20 PM   #6
Ransom
Banned
Ransom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensions
 
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
Quote:
"What you've posted above is a comment with css-like text inside of it"
I sure did.

Quote:
"btw, if you want an em-dash just use an actual em-dash -there's no need to use html encoding. "
Not really. If you take text out of something like a Word doc file and paste it in an html file, it may or may not show up in some browsers. If you want it to show for sure, use an html tag for an Em Dash like this:

And if you try to paste some text from a typical Word doc with a dash in it into the 'pre' tags of an html file, it will get turned into, oh I don't remember what you call it, but it's a very small dash rather than a nice big Em dash. It's hardly any longer than a hyphen and most people would confuse it with one I'm sure.

Lastly, Calibre will ignore anything but a proper html Em dash code like the one I gave above.

In the following sample the first stanza was copy/pasted into html without using html code for the Em dash. The second stanza used for the dash. And the third was the same copy/paste from Word and placed within 'pre' tags. They all show up in my browser, but the dashes within the 'pre' tags get turned into that real small dash I was talking about.



This is what the same html file looks like after Calibre gets hold of it. Notice that only the stanza with the proper code for an Em dash shows up. However, you can't use that code within 'pre' tags. It simply won't work. Maybe there's another way, but I haven't found it yet.


Last edited by Ransom; 07-29-2011 at 07:29 PM.
Ransom is offline   Reply With Quote