![]() |
#16 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
<span>"Yada, yada yada yada," he said.</span> <span>"Blah! Blah, blah blah, blah blah blah</span> <span>"Yada yada."</span> Quote:
![]() Last edited by DiapDealer; 08-05-2014 at 11:45 AM. |
||
![]() |
![]() |
#17 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
The Jones boys (see Last Crusade) would be glad to know the quest for the holy grail of brainless epub conversion still is alive!
|
![]() |
![]() |
#18 | |||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Quote:
![]() ![]() ![]() Quote:
Thanks for the hint. I've found it. Nevertheless, a nice gui dialog perhaps? ![]() ![]() |
|||
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
|
![]() |
![]() |
#20 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I'll certainly look into making it possible for someone to turn that feature on if they like, but it's just not something I've ever needed. And in my testing, it usually introduced more anomalies than it was worth. Quote:
![]() But I've sort of made that "feature" a little difficult to implement on purpose. The potential for trouble is already there with the ability to change div to p. But if at possible, I'd like to avoid having to answer questions about why someone's ebook broke after they replaced a perfectly valid nested structure with html elements that cannot be nested. ![]() Those with the knowledge to edit a json file will more likely know what they're doing with regard to markup. Last edited by DiapDealer; 08-05-2014 at 03:14 PM. |
||
![]() |
![]() |
#21 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Code:
<p>”Tis is a dialogue’ John said.</p> <p>”Whatever” is not a dialogue.</p> Is everything fine? Or is there some kind of bug here? |
|
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,599
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I have a question and a request (if it's posiblie):
Thank you very much |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Code:
<p>''Tis is a dialogue' John said. <p>''Whatever'' is not a dialogue.</p> ![]() Let's try this: I'm attaching a sample epub that contains your examples (and some of my own). I'm also attaching the same epub AFTER my smartening routine has processed it (using my original apostrophe exception file, all boxes checked, and the dashes combobox set to the middle of the three options). Please make sure you're getting the same results. EDIT: ooh ... I see now what you mean about calibre's regular smartening routine. It DOES turn those consecutive straight single quotes into right curlies. I don't think it always did that. EDIT 2: After studying SmartyPants again, the attempt to smarten backticks is exactly why all consecutive single quotes get converted to a right (closing) curly double quote -- and exactly why I chose to turn that feature off. ![]() Last edited by DiapDealer; 08-05-2014 at 04:45 PM. |
|
![]() |
![]() |
#24 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Quote:
EDIT: did you ever get any more details on the "index out of range" error you were getting? I should really post a version that has more in the way of debug output. Last edited by DiapDealer; 08-05-2014 at 04:08 PM. |
||
![]() |
![]() |
#25 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Smarten Punctuation (the sequel):
Would it be possible to publish Smarten Punctuation (the sequel) as a stand alone??
|
![]() |
![]() |
#26 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,599
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
![]() Quote:
I haven't tested it more. I am on vacation and preparing a travel (I begin my travel tomorrow at 7:20AM), so I'll test it after it. |
||
![]() |
![]() |
#27 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() A stand alone that allowed a user to choose their options, and then feed an html file (or files) to my modified SmartyPants script which then outputs new file(s) isn't out of the question. But that's probably about it. It'd take me a decade of Sundays to adapt all of the functionality that calibre contributes to my little project into a stand alone tool. ![]() Last edited by DiapDealer; 08-05-2014 at 11:33 PM. |
|
![]() |
![]() |
#28 | ||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
In addition, do you still need me to test your examples? (I've been too lazy to do it yet... ![]() Quote:
(Remember that Whatever is not in the exception list but it is also modified as if it were...) |
||
![]() |
![]() |
#29 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,417
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can't get my smartening routine to duplicate what you claim it does with your sample. My "Whatever" is not treated like it's in the exceptions file. The straight single quote in front of "Whatever" gets converted to a left curly single quote like it should. See the sample epubs I uploaded.
|
![]() |
![]() |
#30 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
![]() Nevertheless one hint: I mounted my attached exception file from your example (downloaded from the initial post). And when I opened it (Windows Notepad), all the words were in the very same line with some kind of non-printable character between them. So I immediately thought about the UNIX-Windows CR/LF (or whatever) conflict and retyped those "return key" symbols in their place. So my file should be a pure genuine windows friendly one. Could it be the source of the trouble? EDIT: I've downloaded your books and ALSO my exceptions file (just in case). If I run the routine I get it wrong: Code:
<p>Bob said; “This is an example of quoted speech that ’specially goes on longer than one paragraph.</p> <p>“Then it resumes in the next paragraph where the I said; ’give ’em hell, Harry!’ and then it concludes.”</p> <p>“Then it resumes in the ’80s and the ’90s—”</p> <p> </p> <p>---’I hope it works to … everyone’s satisfaction.’</p> <p>‘’Tis is a dialogue’ John said.</p> <p>‘’Whatever’’ is not a dialogue.</p> (Using Editor comparison tool, those are the only differences with your _after.epub book). Last edited by arspr; 08-06-2014 at 12:15 PM. Reason: Test done |
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 10:23 PM |
Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 11:15 AM |
Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 11:13 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |