![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Orphaned end double quotes
I'm working on an old book to convert it into ePub for the forum. The author ended many of his character's speaches with - ". That is, the character talks for a while but does not finish the sentence.
I've tried to handle this with last word – ” but the last none breaking space does not attach the double quote, so the double quote can end up on a line by itself. It may only happen once or twice in an ebook, but looks awful. Any suggestions on how to make the doublequote stick to the non breaking space, so that the whole conglomeration will move together to the next line if it won't fit on a line? |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
First, in those case I would use an em-dash, instead of space-en-dash-space, even if the rest of the book uses en-dashes (a trailing dash is often different from a middle dash).
Second, I wouldn't do anything special, that linebreak is a bug/feature of the rendering engine, and I don't like adding too much markup for working around bugs. You could try wrapping everything in a <span> with "white-space: nowrap", though. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Thanks again for your help, Jellby. I really appreciate the support you give people.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change single quotes to double quotes | Elfwreck | Workshop | 16 | 04-26-2013 10:06 AM |
Single quotes to double quotes? | lunixer | General Discussions | 35 | 10-10-2010 05:47 AM |
Dealing with double quotes " in URL | kinurev | Recipes | 6 | 10-03-2010 09:57 AM |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 03:51 PM |
Stop line wrapping at quotes at the end of a paragraph | sherman | ePub | 6 | 05-13-2010 02:52 PM |