|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#16 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is just what you are used to. I find the double quotes too big and obtrusive. But, in the end it is about the story, not the quotes actually used. If the story is good, I don't even notice the used style.
|
![]() |
![]() |
![]() |
#17 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
You can search text in straight quotes using RegEx, and replace it with curly ones. Using RegEx could give you more instruments to get the text you really need and jump the other. The regex I wrote about book/article title is an example.
|
![]() |
![]() |
![]() |
#18 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
I strongly suspect that we're all familiar with the use of regular expressions, but unfortunately they really don't help with the fundamental problem we're addressing here. You can certainly use a regex to find a single quote at the start of a word, but the problem is knowing whether to replace it with an left or a right curly quote. How would you address that issue? Eg, if you find the string 'ello you need to replace the straight quote with a right apostrophe (abbreviated word), whereas if you find the string 'hello you need to replace it with left apostrophe (opening speech or quotation mark). Have you any suggestions to assist with this? |
|
![]() |
![]() |
![]() |
#19 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
Using the example:
Quote:
I can try to catch all the text in straight quotes beginning with a lowercase. If there is a good % of results I can build a better Regex looking around: space before, punctuation/start of paragraph before, uppercase et ceterae. I do not wanna say I can make a 100% find/replace work with regex, but I can reach a 99% leaving some manual working here and there. |
|
![]() |
![]() |
![]() |
#20 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#21 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
and even within one language there can be significant difference between dialects, as large or larger than there is between mocdfn British English and American English.
|
![]() |
![]() |
![]() |
#22 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When you do a smarten punctuation, you then have to read the book and check each punctuation mark.
|
![]() |
![]() |
![]() |
#23 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 557
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
|
I'm not talking about a regex for every book. I suggest to use regex to *adapt* the regex to the contest you are working with.
|
![]() |
![]() |
![]() |
#24 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#25 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#26 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://www.mobileread.com/forums/sho....php?p=2980740 I find it to be much more helpful than Calibre's built in Smarten Punctuation because this one has options (such as don't touch ellipses, or don't touch dashes). Side Note: My personal method is three rounds: Round #1: Diapdealer's Toolbag, Smarten Punctuation. Round #2: I run the book through a lot of the regex fixes (of common errors I have come across). I do my usual code cleanup + OCR fixing + everything else. Round #3: As the final step, I run the final text through Toxaris's Dialogue Check. Quote:
The books I work on don't really have too many of the "'tis a jolly good day" + "'twas the night before Christmas" + "go get 'em", but I have this in my Saved Regexes: Search: ‘(Em|em|Til|til|Tis|tis|Twas|twas) Replace: ’\1 You can easily just append whatever words needed in there with a pipe between, and it can make it easier to find/change the Left Single Quote (wrong) quotes into Right Single Quote (Correct). (I believe Diap's Toolbag also has an "exception" list if you wanted to take that route.) I also have this Regex to handle years, such as "’90s": Search: ‘([0-9]) Replace: ’\1 Quote:
![]() I suspect you already came across this the multitude of times me (and Toxaris) have posted this: https://en.wikipedia.org/wiki/Quotat...ious_languages All different languages use all different types of quotation marks (High/Low, Left/Right, Quotes/Guillemets, [...]). If you read Finnish books you might be used to ”…” instead. UK to US has no easily automated way to do it... you would have to manually replace all Left/Right Single Quotes with their Double Quote equivalents (and change all Double -> Single). Then you try to catch a lot of the accidentally converted apostrophes like: Search: ([a-zA-Z])”([a-z]) Replace: \1’\2 And step through and try to catch apostrophes at the end of words: Search: ([s])”(\s) Replace: \1’\2 And a ton more elbow grease. I have done UK -> US quotes a handful of times, and it is brutal/boring work. Quote:
Side Note: On a related note, does everyone here remember the glorious Smarten Punctuation (plus other typography) discussion we had back in 2014? (My gods, how time flies): https://www.mobileread.com/forums/sho...58#post2912458 Last edited by Tex2002ans; 03-31-2016 at 11:08 PM. |
||||
![]() |
![]() |
![]() |
#27 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
I always save your tools for the very last pass. I take the nearly completed EPUB, use your Import EPUB and do a Dialogue Check + spellchecking pass (and do manual corrections directly in the EPUB). I don't need Word bungling up my perfect EPUB. ![]() I must admit, I haven't tested your Smarten Quotes though (all I know is that the default Word one is DREADFUL). |
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Well, I wouldn't call it dreadful. It is not that bad actually, you just need several fixes afterwards. I just can't understand why Microsoft does not improve it themselves.
|
![]() |
![]() |
![]() |
#30 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() But if they did, the EU would probably 'order' them offer OOo, AbiWord, Wordstar and Atlantis as alternatives for Word, like Mario Monti 'ordered' them to offer alternate browsers - which they never obeyed. Mario's reward was to be parachuted into the Palazzo Chigi (Italy's 10 Downing St). He's now a Senator for Life. There's some VBA code here that could be made smarter. BR |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |