![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Forcing a quotation mark style
Hi
(Sorry if this has already been discussed elsewhere, but I couldn't find an answer to my question in another thread.) Please can someone tell me how (or indeed, if) I can set/force quotation mark style/s in Sigil! i.e. opt to use straight rather than angled or curly quotation marks or vice versa. At present, no matter what I try, my keyboard input is straight, vertical quotation marks, regardless of font, font-style, CSS etc. Many thanks! |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You don't control this with styling. If you want curly quotes, you must enter curly quotes. You can use Sigil's special character feature to enter them. Or you can copy/paste from your system's character map utility. Or you can use entities, or alt-key codes.
There's some utility programs that will convert straight quotes to their typographic equivalents. Some of them are quite good, but none are perfect. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Don't forget, a curly quote is a different character than a straight quote. The meaning is also different, as straight quotes are also symbols used length. It is a different as an character 'a' and 'A'. It is unfortunate that the keyboards don't allow direct typing of curly quotes.
The 'issue' is that we are spoiled by some wordprocessors how try to do it automatically. Let me stress 'try'. |
![]() |
![]() |
![]() |
#4 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You might try getting curly quotes through using search and replace, with leading space meaning curly left and following space meaning curly right. But this is not going to be perfect..like periods, commas, etc. The aggravation level will depend on how many quotes there are and how creative the author got with unusual uses of the " sign. I would not try a replace all myself. But if you choose to live dangerously or excitingly, make a copy with another name to play with. That way you waste your time rather than your sanity if it blows up some way.
|
![]() |
![]() |
![]() |
#5 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Thanks, all. I suspected there was no one-stroke fix. I just thought it was perhaps my ignorance, and hoped there might be.
As it is, I type in any missing or incorrect quotes as "straight" quotes when editing, then search/replace everything back to curly quotes as the last editing effort. It works fine, and is second nature now, but it does seem a long-winded way of doing things. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
As you're doing your corrections, why not enter the correct smart quote to begin with instead of the straight quotes and then having to go back? Just open the "Insert special character" from the top menu and move it off to the side to click on which quote you need as you're editing.
Or if you have a keyboard like the Logitech G11 or G15, set 4 of the Gkeys for the curly quotes. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I assume Calibre's new "Polish Books" can do the same thing (although I have not tested the "smarten punctuation" using Polish Books). From there, I use this Regex to catch SOME of the potential curly quote mistakes: Search: Code:
(“[^”\r\n]*)</p>\s+<p> Code:
\1 |
|
![]() |
![]() |
![]() |
#8 |
Autism Spectrum Disorder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
|
Macs have two keystroke for them, but that's because Macs don't use the alt key for anything but modifying keyboard input. PCs have always used the alt key for other things (like the old Open Apple and Closed Apple keys) and never adopted it.
|
![]() |
![]() |
![]() |
#9 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Thanks for your input, everyone. I guess I'll just stick with the way I do things now since I'm used to that.
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quite frankly, I usually end up dumping it in Word and do the quotes there and run my macro's (or add-in currently). Fix the quotations and a lot more (missing quotes anyone?). Export it to HTML (not via standard Word of course) and recreate the book. Takes a bit more time, but solves a whole lot of additional errors.
|
![]() |
![]() |
![]() |
#11 | |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
|
I've used this series of search & replaces to convert from single curly quotes to double curly quotes. Saved as a saved search in Sigil an then load all/ replace all. Use with caution until you are sure it's doing what you expect. It's not perfect but gets most of them - expects the text to be decent punctuation in the first place.
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,649
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Whatever automated system you put in place, it will still need checking. ’Tis the way of the world.
|
![]() |
![]() |
![]() |
#13 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Well, since from the discussion above it seems my way is as easy and efficient as any other, and not remotely complicated, I think I'll stick with it, bar some day finding a way to force my keyboard to type "smart quotes" as I go.
i.e. a) edit in Sigil correcting quotes - using keyboard straight quotes as needed, then b) converting ALL quotes to straight via search/replace, c) using Book Polish with smart quotes checked - alll quotes are fixed to curly quotes. Three simple steps and it's done, so I suppose there was no point whining in the first place. ![]() |
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,125
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I find the best way to do it is once you have the ePub made, toss it into Calibre and smarten punctuation (no converting allowed). Then open file location, copy the file and put it where you want to work on it. Then you can fix anything that's wrong in the smartening.
|
![]() |
![]() |
![]() |
#15 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
There are keyboard shortcuts assigned to clips by number. You could put the curly quotes in two clips and use the keyboard shortcuts. I will admit that Ctrl-Alt-0 is not the easiest thing, but it is an option.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forcing Android 4.2 on the PocketBook | valondon | PocketBook | 3 | 12-06-2013 01:37 PM |
Forcing more than 10 items? | fw190a8 | Recipes | 3 | 08-10-2011 04:08 PM |
Mobi TOC style vs ePub style? | phearlez | Kindle Formats | 3 | 04-11-2010 06:35 AM |
Forcing carriage returns | KindleHog | Amazon Kindle | 3 | 05-01-2009 01:14 PM |
EU forcing DRM interoperability | Hadrien | News | 100 | 01-13-2008 03:07 PM |