Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-05-2014, 11:31 AM   #1066
Lucas Malor
Pain in the arse
Lucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughingLucas Malor can shake the floor when laughing
 
Lucas Malor's Avatar
 
Posts: 624
Karma: 63854
Join Date: Apr 2013
Device: Kobo Glo, Kindle 4
Thank you David. I think I have to use the Old Good Elbow Grease.

PS: I think Kobo had a good idea about ids. It's surely more faster to select a DOM element by id instead of searching it.

Last edited by Lucas Malor; 08-05-2014 at 11:33 AM.
Lucas Malor is offline   Reply With Quote
Old 08-05-2014, 02:35 PM   #1067
Mivo
Evangelist
Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.Mivo ought to be getting tired of karma fortunes by now.
 
Mivo's Avatar
 
Posts: 445
Karma: 3352840
Join Date: Jul 2013
Device: iPad, Pyrus mini, Kobo Glo / Aura, Odyssey HD FL, Nexus 7.2, ImcoV6L
Thanks for the work you put in the plugin. It is a shame that you're dropping the support for it, but I certainly understand not wanting to work for free for a company that frustrates the stuff out of you.

I have walked away from a company that I had given several thousands to over the course of years when they refused to refund ten lousy bucks for something that had been their mistake. So, I definitely understand the irritation and the desire to pull out.

But do know that the community appreciated you and your efforts, even if Kobo seems to have taken your work for granted. It is one of those companies who are hellbent on sabotaging themselves. I do like their readers, though.
Mivo is offline   Reply With Quote
Old 08-06-2014, 12:20 AM   #1068
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: 6,090
Karma: 6238033
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Quote:
Originally Posted by Lucas Malor View Post
PS: I think Kobo had a good idea about ids. It's surely more faster to select a DOM element by id instead of searching it.
Hmm, don't know about faster. The ADE method simply counts tags. And I think that is roughly the same way that has been defined for epub3. The latter is what calibre does in the viewer.

The ids are an overhead. They have to be added and unique. And if the book code changes, they need to be maintained.And the way that Kobo have done it by wrapping a span around each sentence, makes editing the book a little harder.
davidfor is offline   Reply With Quote
Old 08-12-2014, 11:35 PM   #1069
PeterT
Taking a break; Fed up
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: 7,414
Karma: 46459035
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
As posted over in the Kobo forums there seems to be an error in the driver involving the handling of certain, unusual markup.

The original post reads:
Quote:
Originally Posted by cybmole View Post
in one specific book, I am seeing a most strange effect. I appreciate that teh authro of the relevant plugin which tweaks epub iunto kepub is not longer actively involced here. but I am hoping shomeone else can shed some light

what i see on AuraHD is that each h tag chapter header is printed twice.
when I intcept the converted-to-kepub code, then sure enought it is in there - see below, but it is not in the epub source,
so something in how this header line is constructed must be causing the plug-in to glitch. I have not seen it do this with any other book

kepub code ( plug in configured to save a copy to PC, as it send to device )
Code:
<h1 class="h"><span class="koboSpan" id="kobo.6.1"><img alt="002" class="imgepub" src="../Images/stro_9781101081983_oeb_002_r1.gif" />BOMB SCARE</span><span class="koboSpan" id="kobo.6.1">BOMB SCARE</span></h1>
epub (my calibre library file ]
Code:
<h1 class="h"><img alt="002" class="imgepub" src="../Images/stro_9781101081983_oeb_002_r1.gif" />BOMB SCARE</h1>
is it's not going to happen to any other books then I can live with it, i would guess that the <img bit is what triggers the glitch, and that if I stripped that out of the source file, then the doubling effect would go away.
PS the gif is just a little circle thingie, it's not anything meaningful or important.

so I what I should see for that snippet is (centered) BOMB SCARE

what I actually see on Aura HD is (centered) BOMB SCAREBOMB SCARE

and the same throughout the book, for each similarly constructed header
Attached find a small ePub that demonstrates this.
Attached Files
File Type: epub Double H1 Text with Image - Peter Thomas.epub (3.1 KB, 20 views)

Last edited by PeterT; 08-12-2014 at 11:36 PM. Reason: As to why I am doing this.... I really don't know. The OP seemed to think it a waste of HIS time to create a test case.
PeterT is online now   Reply With Quote
Old 08-13-2014, 12:26 AM   #1070
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 659
Karma: 2018502
Join Date: Jan 2013
Location: San Francisco Bay Area
Device: Kindle Paperwhite 2
I suspect there's some oddity around handling the tail text of the <img> tag. In code, the 'BOMB SCARE' immediately following the tag is actually the element's .tail attribute. I think something is happening that the <img> tag is being copied as if it were text; perhaps there's an oddity in handling tags that have no .text attribute but do have a .tail attribute.

Hopefully that's enough for someone enterprising enough to go fixing this. And hopefully I'm at least close to right
jgoguen is offline   Reply With Quote
Old 08-13-2014, 01:30 AM   #1071
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: 6,090
Karma: 6238033
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
Yes, it's something like that.

I was also wondering were the spans should go. Should there be one span around it all? Or one for the img and one for the tail? I grabbed the preview and it has:

Code:
<span class="koboSpan" id="kobo.2.1"><img src="stro_9781101081983_oeb_002_r1.gif" alt="002" class="imgepub" xmlns="http://www.w3.org/1999/xhtml" /></span><span class="koboSpan" id="kobo.3.1">BOMB SCARE</span>
The tag and the tail text are being treated as separate sentences. Which makes sense as the tail could be multiple sentences.
davidfor is offline   Reply With Quote
Old 08-13-2014, 01:38 AM   #1072
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 659
Karma: 2018502
Join Date: Jan 2013
Location: San Francisco Bay Area
Device: Kindle Paperwhite 2
I never looked at a real KePub with text following an image, but my hunch is that the tag and text should have each their own span.
jgoguen is offline   Reply With Quote
Old 08-13-2014, 04:51 AM   #1073
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: 6,090
Karma: 6238033
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
It was what we thought it was. Attached is a version that fixes the problem. It does this by handling the child text of a node separately from the rest of the node. It wasn't to hard to do, and I actually spent most of the time trying to get the counts on the ids right. Then I put the original back in and found it had the same problem.

As well as the plugin, I have attached a modified version of PeterT's sample. This adds some other combinations for where the image could be.
Attached Files
File Type: epub Double H1 Text with Image - Peter Thomas.epub (3.9 KB, 25 views)
File Type: zip KoboTouchExtended.zip (27.6 KB, 32 views)
davidfor is offline   Reply With Quote
Old 08-13-2014, 09:36 AM   #1074
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 659
Karma: 2018502
Join Date: Jan 2013
Location: San Francisco Bay Area
Device: Kindle Paperwhite 2
Once I'm in front of a computer I'll update the file in the first post with this. Should another thread be made and the plugin index updated to point at that thread? Updates to this are probably infrequent.
jgoguen is offline   Reply With Quote
Old 08-13-2014, 09:42 AM   #1075
PeterT
Taking a break; Fed up
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: 7,414
Karma: 46459035
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
I think a new thread would be a good idea, apart from the fact we don't know who will pick up issues (and ideally they should be the one to create the thread).

Also, remember this same fix is needed in the kEpuib Output plugin.
PeterT is online now   Reply With Quote
Old 08-13-2014, 10:56 AM   #1076
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 659
Karma: 2018502
Join Date: Jan 2013
Location: San Francisco Bay Area
Device: Kindle Paperwhite 2
Thanks for reminding me

The shell/PowerShell scripts I have in the git repository (not included in the plugin ZIP) rebuild both plugin ZIP files. Once I merge davidfor's changes, that'll give me both updates at once. And hopefully whoever takes this over can make use of them as well.
jgoguen is offline   Reply With Quote
Old 08-18-2014, 09:56 AM   #1077
pblasi
Member
pblasi began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Aug 2014
Device: Kobo aura
Hi,

I'm quite new here with my Kobo Aura.

I was very happy to know about this project and now I'm sad to know it will be not continued... Anyway a great work! Congratulations and thank you!

I have an issue with hyphenation in kepubs. It simply does not work properly while in epubs it does. First I send an epub version of a book using calibre and hyphenation works perfect. Then I use your plugin to send a kepub of the same book, but now hyphenation is full of errors, badly splited words.

I've already loaded hyphen dicts from libreoffice, following your instructions, and tried all combinations (tick-untick "hyphenate" option in your plugin, trying "hyphenate this!" plugin...) No matter what I do, hyphenation is ok in epubs, but completely wrong in kepubs... It's making me crazy because I really want to use kepubs but this issue is keeping me away from doing it.

Any idea where the problem could be?

Thank you very much! I will really appreciate any suggestion.
pblasi is offline   Reply With Quote
Old 08-18-2014, 10:36 AM   #1078
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 659
Karma: 2018502
Join Date: Jan 2013
Location: San Francisco Bay Area
Device: Kindle Paperwhite 2
No promises, but post your debug log and I'll see if anything jumps out at me. Also, what language is the book in, and what language is your reader using?
jgoguen is offline   Reply With Quote
Old 08-18-2014, 10:47 AM   #1079
pblasi
Member
pblasi began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Aug 2014
Device: Kobo aura
Quote:
Originally Posted by jgoguen View Post
No promises, but post your debug log and I'll see if anything jumps out at me. Also, what language is the book in, and what language is your reader using?
Thanks for your answer. You will need to excuse me, I'm just an user, not a developer. Could you tell me how to make a debug log?

Both book and reader are in spanish.

Thank you!
pblasi is offline   Reply With Quote
Old 08-18-2014, 10:50 AM   #1080
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 659
Karma: 2018502
Join Date: Jan 2013
Location: San Francisco Bay Area
Device: Kindle Paperwhite 2
Sorry, the first post has details but basically you click the arrow beside Preferences, choose to restart in debug mode, then after calibre restarts send the book to the reader again. When you close calibre, a debug log will be displayed. Paste that here as a QUOTE or CODE block.
jgoguen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 206 10-10-2014 07:00 AM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 05:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 11:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 09-01-2011 12:47 AM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 05:08 AM


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


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