|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
How to convert straight quotes to smart 'curly' typographer's quotes
I have an EPUB from a publisher that I'm doing some editing work on in Sigil. But it has been produced using straight quotes instead of smart quotes, same goes for the apostrophes.
I'm wondering if there is a way to change the XHTML files to smart quotes. It may be automatic in Word, but I'm not sure how to do it in an EPUB. I use Sigil for editing. Anyone have any ideas? |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I know calibre has a builtin tool for that (both in conversion and in the Editor), not sure about Sigil.
It should be easy to do with a plugin though -- maybe someone has already made one. EDIT: Yes, DiapDealer's PunctuationSmarten plugin is your friend. Last edited by eschwartz; 03-16-2016 at 08:49 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Ah, thanks!
That looks like what I need. |
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Be warned, though, that these automated methods are not 100% reliable. After using them, you really do need to go through and check for errors manually. The tools are a good first step, but not a complete solution (not, at least, if you want to publish the book. Obviously if it's just for your personal use, you may not be concerned about a few mistakes.).
Tools tend to have problems with words with initial apostrophes, particularly in books where the single apostrophe is also used for speech marks. Last edited by HarryT; 03-17-2016 at 10:07 AM. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Absolutely true, it is also depending on the language. I use multiple S&R commands to get it right. You can do it all automatic, as lang as you program it right.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
What the 'ell are you doin'? and: 'Today is Thursday', he said. Same pattern of quotes, but the first example has two closing quotes, while the second has an opening and a closing quote. Any tool should get the second example right. It's the first one that'll break the automated tool and need to be corrected manually. Toxaris, how would you distinguish between these two cases, programmatically? Last edited by HarryT; 03-18-2016 at 05:16 AM. |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,242
Karma: 3439432
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
|
And of course, there’s the matter of using primes and double primes for foot and inch marks, and stick quotes at need for actual computer code. To expand on Harry's example, one which I've used in the past is:
“She was 5′2″, with eyes of blue, ‘’struth’.” More on this at: http://tex.stackexchange.com/questio.../248039#248039 |
![]() |
![]() |
![]() |
#8 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Indeed. I use WordStar, an old DOS word processor, and WS doesn't do curly quotes (or em dashes, for that matter). So whenever I open a file in Word, I must clean up those omissions. Where Word fails every time (and where I suspect every automagical repair tool would fail) is words that have been truncated by omitting initial letters or syllables, such as the 'ell for hell you cited earlier.
|
![]() |
![]() |
![]() |
#9 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,517
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#10 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 556
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
You can also use RegEx, like
Code:
"[A-Z].+?" |
![]() |
![]() |
![]() |
#11 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,701
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The ability to detect and correct mismatched dialogue quotes is a feature of Toxaris' EPUBTools add-in for Word so maybe the above would be possible - as a final phase in dialogue checking. And if it's not in dialogue then what the ’ell is it doing there anyway, in which case Toxaris' could make use of his new Mark Text tool to highlight the offending text with a suitable tag and colour ![]() Not sure if/how the above would work with UK dialogue marking (single quotes). Aside: I prefer double quotes on displays; but I loathe them on paper - they're almost invariably obtrusive, they tend to stand out like [...]. BR |
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,704
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What I would like is a way to convert UK style quotes to US style quotes because UK style quotes just look unnatural.
|
![]() |
![]() |
![]() |
#14 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,701
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Maybe it's yet another feature Toxaris could offer in his Word add-in as part of dialogue checking ![]() BR Last edited by BetterRed; 03-22-2016 at 08:57 PM. |
|
![]() |
![]() |
![]() |
#15 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,517
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It all boils down to distinguishing between right single quote and apostrophe. Unfortunately, in Unicode they are the same character (a design mistake, I'd say). If using entities, I've used ’ for the former and ’ for the latter, but that doesn't help when the editor changes all entities to characters (and it makes the code messy).
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Typographer's Quotes and other formatting issues. [Assistance to a new member] | Dr. Drib | Writers' Corner | 6 | 05-07-2015 01:29 PM |
Curly vs Straight Quotes in Metadata | icallaci | Library Management | 2 | 05-04-2015 02:08 AM |
Curly quotes or apostrophes? | storax | Workshop | 2 | 06-19-2013 11:43 AM |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 03:51 PM |
curly quotes | DaleDe | Sigil | 6 | 06-26-2010 10:33 PM |