![]() |
#1 |
Lernender
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 70
Karma: 341348
Join Date: Mar 2012
Location: Isle of Arran, Scotland
Device: Calibre, Sigil and Tolino
|
Exchanging quotes from »« to «»
Hello
I try to adapt a miserable coded Ebook with the quotes »« (German way) to «» (Swiss way). I thought, when I have to code the book anyway, I might as well change them. However how would I best do this? I could exchange first all » by the «, but then I can not do the second exchange, because the look would no be «text«. Any clever suggestions? |
![]() |
![]() |
![]() |
#2 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
The experts will probably have something much cleverer, but I have dealt with similar problems by including the spaces before/after the respective marks in the search/replace. Should work in this case as well.
How's the view from Goat Fell today? EDIT: JSWolf's solution below is much better than mine. I knew it... Last edited by doubleshuffle; 09-04-2014 at 10:24 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,680
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
DONE! It's a similar problem to the Fox, goose, beans, and small boat. (Google it if you want to know more about this). |
|
![]() |
![]() |
![]() |
#4 | |
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, ...
|
Quote:
The only caution is that you choose the "@@@" string carefully being sure that it doesn't exist in the text. If you are concerned, simply do a text search for your chosen temp string, "@@@" in this case, to confirm that it doesn't exist. |
|
![]() |
![]() |
![]() |
#5 |
Lernender
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 70
Karma: 341348
Join Date: Mar 2012
Location: Isle of Arran, Scotland
Device: Calibre, Sigil and Tolino
|
Thanks, friends. This is the solution. However, i will use a very exotic letter from Russia or so, and I will not run into any problems.
I have easily managed to get rid of the german ß and put ss into the place. Again a slight, but important difference between Switzerland and its neighbours D and A. And à propos Goatfell: between 10.00 and 15.00 georgous weather all over the Island, before that, morning haze and after three clouds coming in. You've been up? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
|
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I use ¬ or | or ¦ (I search first, to make sure it doesn't appear anywhere).
|
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I would just use
Search: Code:
»([^«»]*)« Code:
«\1» ![]() Last edited by eschwartz; 09-04-2014 at 09:20 PM. |
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,680
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But then you still have to do it my way to handle any unmatched sets. So this is just one extra S/R that doesn't need to be done. Yes, you can get unmatched sets when you have a new paragraph in the middle of someone talking.
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
most books show "some speech...." "some more speech by same person" only a few use "some speech. "some more speech.... |
|
![]() |
![]() |
![]() |
#11 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#12 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
I think there are two standards, at least in English (in German it has always been option 2) only, I think):
1) "Some speech... "Some more speech by same person... "Last bit of speech by same person." 2) "Some speech... Some more speech by same person... Last bit of speech by same person." My impression is that 1) has become rarer. |
![]() |
![]() |
![]() |
#13 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Coincidentally more recent discussion on continued speech from this post forward ==>> e-Book Tools - a Word add-in From what Hitch has posted there I get the impression that some contemporary authors use "Some speech..." "Some more speech by same person..." "Last bit of speech by same person." And from what Toxaris says that is common in Dutch. BR Last edited by BetterRed; 09-10-2014 at 04:18 AM. |
|
![]() |
![]() |
![]() |
#14 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
I don't think I have ever come across this. Can't be sure, but I think I would remember - it would have confused the hell out of me, because it clearly signifies a change of speaker to me.
|
![]() |
![]() |
![]() |
#15 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() However your 2) is the same, I would initially assume the second and third paragraphs were not speech, and the first para was missing a closing quote. IMO the traditional way provides the best visual clue as to what's going on - short of using coloured fonts :lol: I have seen some contemporary writers contrive an introductory tag at start of each paragraph "Some speech..." Looking bewildered he then said, "Some more speech by same person..." After scratching his left elbow he continued, "Last bit of speech by same person." Ψ² - BR Last edited by BetterRed; 09-10-2014 at 05:22 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change single quotes to double quotes | Elfwreck | Workshop | 16 | 04-26-2013 10:06 AM |
Exchanging Kindle: what to do? | PennySD | Amazon Kindle | 2 | 11-03-2010 12:59 PM |
Single quotes to double quotes? | lunixer | General Discussions | 35 | 10-10-2010 05:47 AM |
convert straight quotes to curly quotes | alansplace | Calibre | 3 | 09-25-2010 03:51 PM |
Classic Exchanging nook from overseas | Khai | Barnes & Noble NOOK | 3 | 08-22-2010 08:57 PM |