![]() |
#1 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2011
Device: xoom
|
![]()
Hi there,
I have certain ePUBS that are crashing the ebook app I'm using. From what I can see it is the <dc:language>en</dc:language> line that is causing this. If I delete that line from content.opf then the file marked not working, will work. What doesn't make sense is that another ePUB works fine with the same dc:language set. So obviously something else in the document is causing a clash with the dc:language tag for some reason, can someone help me find what specifically is causing this between these two files? Regards, MM |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,381
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Maybe could you fill us in on WHAT application you are using to read these with?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2011
Device: xoom
|
It's the native samsung ebook application (latest and final version of the app) on Android.
I just switched to moon+ reader pro and the not working one opens fine in that. I'd just really like to know what was causing it though... Another thing I did was strip out all html files and css apart from the cover page, and tried opening it and it opened fine (with the dc:language tag present), so it's definitely some clash with the dc language tag and some coding in one of the other pages or the css... I'll keep digging at it and see if I can narrow that down a bit, but I thought someone might be able to locate an obvious difference between the files that may have been causing this. |
![]() |
![]() |
![]() |
#4 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Both files work fine in my reading app.
I would suggest that you treat this as a bug in the reading app that crash. Seems most likely. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look for language declarations in the html (lang or xml:lang attributes) Most likely the app cannot handle having both present.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2011
Device: xoom
|
![]()
Ok I've worked out what it is.
Kovid can you see if you can work this one out. In the split_002.html file this line is causing it to crash the reader. Code:
<p class="calibre12"><span class="calibre11"><span class="bold"><span class="calibre5">Corgi Books are published by Transworld Publishers Ltd., 61-63 Uxbridge Road, Ealing, London W5 5SA, in Australia by Transworld Publishers (Australia) Pty. Ltd., 15-23 Helles Avenue, Moorebank, NSW 2170, and in New Zealand by Transworld Publishers (N.Z.) Ltd., Cnr. Moselle and Waipareira Avenues, Henderson, Auckland.</span></span></span></p> So the following still crashes it: Code:
<p class="calibre12"><span class="calibre11"><span class="bold"><span class="calibre5">5SA, in Australia by Transworld Publishers (Australia) Pty. Ltd., 15-23 Helles Avenue, Moorebank, NSW 2170, and in New Zealand by Transworld Publishers (N.Z.) Ltd., Cnr. Moselle and Waipareira Avenues, Henderson, Auckland.</span></span></span></p> So I'm sort of not understanding what part of the above code is causing it. However of the 3 or 4 ePUBS that are causing the reader to crash all of them have the exact same code in them. As I said if I remove the <dc:language>en</dc:language> from content.opf it works, but of course when getting epub files from the web interface of Calibre that tag gets reinserted. If I remove the whole line from ...split_002.html and leave the dc:language tages in place it fixes it and won't break when getting them from calibre, which is the obvious solution, but could you perhaps see what from the above code is causing the crash in the first place? I know it's not calibre causing the crash now, but thought you might be able to help out? |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,255
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's nothing in that line that is unusual, except the number of non-breaking spaces. Perhaps Samsung's reader cant handle lines like that. Other than that, I see nothing.
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: May 2011
Device: xoom
|
I thought so - yeah me too. The weird thing is that the ones that are working also have that in there, but 2 less spans, and pointing to a different css style, and instead of (Australia) it has (Aust.), but everything else is exactly the same.
So... I thought "I'll just copy that over to the other one", and yet it still crashes, although I didn't copy the css over, so unless there is some weird interaction with the css and the non breaking spaces then I haven't the foggiest. Anyways thanks for looking at it, I've switched again to Mantano reader for Android and it's a much nicer reader than the default Samsung one and doesn't have these issues with crashes, on these so that will suit me fine. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to create regional language (Kannada) epubs ? | vinayaksanga | ePub | 4 | 01-02-2013 02:34 AM |
iPhone AllThingsD: Apple Confirms iOS 5 Bugs Causing Battery Issues for Some iPhones | kjk | Apple Devices | 2 | 11-03-2011 01:37 AM |
Some EPUBs not opening - normal? | zormal | Astak EZReader | 17 | 05-19-2010 08:05 AM |
Crashing opening calibre epubs | mediax | Sigil | 3 | 11-12-2009 04:41 PM |
Links opening in the same tab and other issues. | BookCat | Feedback | 25 | 01-22-2009 03:15 PM |