Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-29-2016, 04:43 AM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Discrepancy in >Differences between books<



Click image for larger version

Name:	b2 --with-regex.png
Views:	307
Size:	43.4 KB
ID:	153835
b2 --with-regex

It is known: pictures say everything. Even so, my comment: (Smarten Punctuation) That’s totally over the top!

"With all Good Wishes for Christmas and the New Year"

We still need you, as you know ... your chaot
chaot is offline   Reply With Quote
Old 12-29-2016, 07:32 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Could you tell us what you actually did? Sure, there is a difference shown. But, you don't say how the difference window was opened. For all I know you are you comparing two versions of the book and one has two hypens, and the the other either an emdash or endash. That sounds reasonable as they are different.

I can take a guess that this is after doing a smarten punctuation in the editor. The other changes seem to agree with this and you vaguely mention it. If so, I don't understand the problem. Two hyphens/dashes together like that should get converted to an emdash. At least, that is what has been done in every punctuation smartener that I have used.

Have I missed the point? If so, please explain in detail what the problem is. And include all the steps needed to reproduce the problem. If you think, "Should I include that detail?", the answer is "yes". And a sample file is always helpful. Maybe a before and after file?
davidfor is offline   Reply With Quote
Old 12-30-2016, 05:21 AM   #3
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
OK, context: I am writing a book! Both, the subject of the book (regular expressions) and the manual process to produce an EPUB is still largely unknown. Nevertheless, the progress I find remarkable - with confidence, I gladly announce the presentation for Christmas 2017.

These regular expressions are very useful for text editing, HTML & CSS are mandatory anyway. Well, a secondary aspect is that the brain cells get trained.

Quote:
I can take a guess that this is after doing a smarten punctuation in the editor.
I thought this had been sufficiently indicated →... (Smarten Punctuation) ...

Quote:
The other changes seem to agree with this and you vaguely mention it.
Yes, Boost's get transformed to Boosts (Typewriter apostrophe get transformed to an apostrophe. Correct!?)

Quote:
Two hyphens/dashes together like that should get converted to an emdash.
That's the point: Even if it is what has been done in every punctuation smartener that you know. Here, this kind of smartening makes no sense: the text will be alienated.

I have discovered the matter only by chance, the book got over 300 pages.
God knows what else has been 'smartened'?

Does there exist a list what kind of 'things' get smartened and how - before/after status!?

Last edited by chaot; 12-30-2016 at 05:51 AM. Reason: add: gladly
chaot is offline   Reply With Quote
Old 12-30-2016, 05:50 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaot View Post
OK, context: I am writing a book! Both, the subject of the book (regular expressions) and the manual process to produce an EPUB is still largely unknown.
Sorry, I don't follow that statement. You are writing a book about a subject you don't understand? If so, why? And why would I, or anyone else, want to buy a book from someone who wasn't an expert?

Or do you think that "regular expressions" are little known? If so, really?
Quote:
Nevertheless, the progress I find remarkable - with confidence, I announce the presentation for Christmas 2017.

These regular expressions are very useful for text editing, HTML & CSS are mandatory anyway. Well, a secondary aspect is that the brain cells get trained.

I thought this had been sufficiently indicated →... (Smarten Punctuation) ...
You might think that was obvious, but it wasn't. How hard would it have been to say: "I ran the Smarten Punctuation tool and saw these results. I don't think this is correct." And then explain why you don't think that it is correct. Because I couldn't see any problem in the image you posted, I had read your original post several times to find out what you were complaining about.
Quote:

Yes, Boost's get transformed to Boosts (Typewriter apostrophe get transformed to an apostrophe. Correct!?)

That's the point: Even if it is what has been done in every punctuation smartener that you know. Here, this kind of smartening makes no sense: the text will be alienated.
Yes, that's the point. The Smarten Punctuation works like every other Smarten Punctuation out there. Otherwise people would be raising bug reports because things like two hyphens together did not get converted to an emdash. Unfortunately, you have a situation where the double-hyphen isn't supposed to be smartened, but that is probably rare.
Quote:
I have discovered the matter only by chance, the book has over 300 pages.
God knows what else has been 'smartened'?

Does there exist a list what kind of 'things' get smartened and how - before/after status!?
Sorry, I don't know. I assume that calibre uses a standard library but would have to hunt through the code to find it. I don't think there are any options to control it. You could try Diap's Editing Toolbag. This is an editor plugin and includes a different smarten punctuation tool. It does have options for handling double-hyphens.
davidfor is offline   Reply With Quote
Old 12-30-2016, 06:40 AM   #5
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: 20,587
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@chaot - IIRC calibre made use of daring fireballs smarty pants regex routines - but I have a feeling it was replaced by something 'smarter'. Or maybe I'm thinking of Diap Dealers PunctuationSmarten plugin for Sigil.

Anyway there's lots of stuff on the 'net about punctuation smartening - someone's probably written a PhD dissertation on it - in double time four part harmony I shouldn't wonder.

Conversion Look & Feel has options to Smarten AND UNsmarten populations punctuation.

BR

Last edited by BetterRed; 12-30-2016 at 07:00 AM.
BetterRed is online now   Reply With Quote
Old 12-30-2016, 06:57 AM   #6
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: 20,587
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Oh look at this ==>> Calibre user manual - Conversion- Look and Feel

Quote:
--smarten-punctuation

Convert plain quotes, dashes and ellipsis to their typographically correct equivalents. For details, see http://daringfireball.net/projects/smartypants
BR Ψ²
BetterRed is online now   Reply With Quote
Old 12-30-2016, 07:30 AM   #7
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
EDIT The following only takes # 4

Responsible for the content are experts. @chaot compiles and edits the whole bunch to an EPUB - available free of charge to everybody. I will not even ask for donations!
By the way that work will make me also to a (little) expert, for editing EPUBs and Regexes.

Quote:
Or do you think that "regular expressions" are little known? If so, really?
Yes, really! Just go to the street and ask some passers-by. I'll bet with you: Until you find someone who knows about, you're half starved and thirsty. Except you live in somewhere like Silicon Valley.
You will think these passers-by are not interested anyway: Yes, the most not. The rest, however, the information acquisition on the Internet will be too inconvenient, to buy a corresponding book too expensive. So much interest does not exist. But the free EPUB for the socalled john (english loo), that's exactly what they need, I guess.

Quote:
How hard would it have been to say: "I ran the Smarten Punctuation tool and saw these results. I don't think this is correct."
Not so hard! Only 4 times as many letters, about.

Click image for larger version

Name:	That's not the point.png
Views:	283
Size:	36.4 KB
ID:	153850
That's not the point. Unfortunately, MobileRead suppresses quotes in the repeating citation.

Quote:
Otherwise people would be raising bug reports because things like two hyphens together did not get converted to an emdash. Unfortunately, you have a situation where the double-hyphen isn't supposed to be smartened, but that is probably rare.
The rare things are that make us happy.

Diap's Editing Toolbag: I will try and report. But not today!

And then a new question arises. Punctuation rules are probably different depending on the language. This should be considered, possibly pointed out.

Last edited by chaot; 12-30-2016 at 07:45 AM. Reason: add: EDIT and ;)
chaot is offline   Reply With Quote
Old 12-30-2016, 07:52 AM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaot View Post
Responsible for the content are experts. @chaot compiles and edits the whole bunch to an EPUB - available free of charge to everybody. I will not even ask for donations!
By the way that work will make me also to a (little) expert, for editing EPUBs and Regexes.

Yes, really! Just go to the street and ask some passers-by. I'll bet with you: Until you find someone who knows about, you're half starved and thirsty. Except you live in somewhere like Silicon Valley.
You will think these passers-by are not interested anyway: Yes, the most not. The rest, however, the information acquisition on the Internet will be too inconvenient, to buy a corresponding book too expensive. So much interest does not exist. But the free EPUB for the socalled john (english loo), that's exactly what they need, I guess.
In that case, knowledge of RegEx is a lot wider than you think. But, more importantly, it's a specialised knowledge that I wouldn't expect the "man in the street" to know or need. And there are a lot of excellent resources already available for anyone who needs to learn.
Quote:
Not so hard! Only 4 times as many letters, about.

Attachment 153850
That's not the point. Unfortunately, MobileRead suppresses quotes in the repeating citation.
Yes, four times as many letters were needed. And if they had been used, think how many less would have been needed in the answers.

My point was that your original post was unclear and I had to take a guess as to what the problem was.
Quote:
The rare things are that make us happy.
But they are the things that make the code a lot harder. And unless there is well documented exception, it can't be considered.
Quote:
Diap's Editing Toolbag: I will try and report. But not today!

And then a new question arises. Punctuation rules are probably different depending on the language. This should be considered, possibly pointed out.
That I have no idea about. Kovid caters for multiple languages where possible. But, it will require that the library in use handles other languages than English. And, as the smarten punctuation tool needs the user to do something, it is entirely up to the user to use it. If it doesn't work for them, they just don't use it.
davidfor is offline   Reply With Quote
Old 12-30-2016, 07:57 AM   #9
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,235
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Just my two cents. Regex are so unknown to the non-computer interested (we're not talking about professional here) as the kind of optical glasses or window glasses (a lot, as I've listened to some experts) are. If somebody who is going to work with regex isn't able to find information in internet, giving the nature of the matter, he's going to have a bigger problem in his hands. *going down of the soap box*
Terisa de morgan is offline   Reply With Quote
Old 12-30-2016, 10:10 AM   #10
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: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
chaot, the yellow text in your signature is both unreadable and annoying. Would you mind changing the color? Thanks.
JSWolf is offline   Reply With Quote
Old 12-30-2016, 11:42 AM   #11
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by JSWolf View Post
chaot, the yellow text in your signature is both unreadable and annoying. Would you mind changing the color? Thanks.
Of course! Impossible to refuse a request. But please allow me a question first: Is your discomfort due to language problems? It is particularly easy to read, I would mean (mouse click left and hoover). Even better than the rest.

Click image for larger version

Name:	Mein ist ..png
Views:	187
Size:	14.1 KB
ID:	153855
Mein ist ...

This is, incidentally, a slightly modified formula. This is to avoid the already several times raised question about my mother tongue.

Would be #00FFFF (CSS3 name: cyan) pleasant!?
chaot is offline   Reply With Quote
Old 12-30-2016, 11:54 AM   #12
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
@BetterRed #5 & #6

Heavy stuff! You should understand: Writing a book you got no time for something like that.

Anyway, thanks for your effort.
chaot is offline   Reply With Quote
Old 12-30-2016, 12:05 PM   #13
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,174
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Actually I find neither colour easy to read. Why not just use black on white...
PeterT is offline   Reply With Quote
Old 12-30-2016, 12:10 PM   #14
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by davidfor View Post
... there are a lot of excellent resources already available for anyone who needs to learn.
Where is the link?
Download
Sorry, not active!
chaot is offline   Reply With Quote
Old 12-30-2016, 12:11 PM   #15
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: 74,037
Karma: 129333114
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 PeterT View Post
Actually I find neither colour easy to read. Why not just use black on white...
I agree that neither color is easy to read. Also, both colors are unpleasant to look at on a white background. Best solution is to stop the colors.You won't get much help if we cannot easily read what you write.

Last edited by JSWolf; 12-30-2016 at 12:13 PM.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences between books - Markings (2) chaot Editor 3 06-03-2016 05:47 AM
Edit Book: Inconsistency in Differences between books chaot Editor 8 06-02-2016 11:07 AM
HDX differences between doc and books backgrounds stumped Kindle Fire 1 06-01-2016 04:05 AM
Differences between books - Markings chaot Editor 6 05-26-2016 11:19 AM
Differences between books - Color of markers chaot Calibre 4 05-19-2016 01:09 PM


All times are GMT -4. The time now is 07:07 PM.


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