Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2014, 10:09 AM   #1
Arran
Lernender
Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.
 
Arran's Avatar
 
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?
Arran is offline   Reply With Quote
Old 09-04-2014, 10:19 AM   #2
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
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.
doubleshuffle is offline   Reply With Quote
Advert
Old 09-04-2014, 10:20 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by Arran View Post
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?
It just takes an extra search/replace. Search/replace » with @@@. Next, search/replace « with ». Finally search/replace @@@ with «.

DONE!

It's a similar problem to the Fox, goose, beans, and small boat. (Google it if you want to know more about this).
JSWolf is offline   Reply With Quote
Old 09-04-2014, 10:32 AM   #4
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
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:
Originally Posted by JSWolf View Post
It just takes an extra search/replace. Search/replace » with @@@. Next, search/replace « with ». Finally search/replace @@@ with «.

DONE!

It's a similar problem to the Fox, goose, beans, and small boat. (Google it if you want to know more about this).
+1

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.
dwig is offline   Reply With Quote
Old 09-04-2014, 10:50 AM   #5
Arran
Lernender
Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.Arran ought to be getting tired of karma fortunes by now.
 
Arran's Avatar
 
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?
Arran is offline   Reply With Quote
Advert
Old 09-04-2014, 11:00 AM   #6
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
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
Quote:
Originally Posted by Arran View Post
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?
Yep, twice. Glorious view both times. Muuuch too long ago though, sadly.
doubleshuffle is offline   Reply With Quote
Old 09-04-2014, 12:06 PM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
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).
Jellby is offline   Reply With Quote
Old 09-04-2014, 09:17 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
»([^«»]*)«
Replace:
Code:
«\1»
Matches all matched sets only, doing both replaces in one go using a capture group to preserve inner text. Assumes no weird-foreign-symbols-I-forget-the-name-of inside matching sets.

Last edited by eschwartz; 09-04-2014 at 09:20 PM.
eschwartz is offline   Reply With Quote
Old 09-09-2014, 04:14 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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:
Originally Posted by eschwartz View Post
I would just use

Search:
Code:
»([^«»]*)«
Replace:
Code:
«\1»
Matches all matched sets only, doing both replaces in one go using a capture group to preserve inner text. Assumes no weird-foreign-symbols-I-forget-the-name-of inside matching sets.
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.
JSWolf is offline   Reply With Quote
Old 09-10-2014, 01:21 AM   #10
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by JSWolf View Post
Yes, you can get unmatched sets when you have a new paragraph in the middle of someone talking.
I have seen that but only in a few books, what are the "rules" for multi paragraphs where it is all spoken. I always thought it was a mistake / bad typesetting ?

most books show
"some speech...."

"some more speech by same person"


only a few use
"some speech.

"some more speech....
cybmole is offline   Reply With Quote
Old 09-10-2014, 03:34 AM   #11
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
most books show
"some speech...."

"some more speech by same person"


only a few use
"some speech.

"some more speech....
Then "most books" are wrong, as far as I know. Have you checked actual printed books from respectable publishers?
Jellby is offline   Reply With Quote
Old 09-10-2014, 03:53 AM   #12
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
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.
doubleshuffle is offline   Reply With Quote
Old 09-10-2014, 04:16 AM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by doubleshuffle View Post
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.
I've not seen 2) personally, I'm a bit OCD on punctuation so I think I would have noticed it. But I don't read everything

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.
BetterRed is online now   Reply With Quote
Old 09-10-2014, 04:43 AM   #14
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
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
Quote:
Originally Posted by BetterRed View Post

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."
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.
doubleshuffle is offline   Reply With Quote
Old 09-10-2014, 05:20 AM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,710
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by doubleshuffle View Post
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.


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.
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:46 AM.


MobileRead.com is a privately owned, operated and funded community.