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 02-02-2014, 06:45 AM   #1
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Check Book can't find images in svg tags

Is this a bug?

I have this:

Code:
<div>
    <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid" version="1.1" viewBox="0 0 402 650" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
      <image height="650" width="402" xlink:href="Images/img001.jpg"></image>
    </svg>
</div>
This image displays fine in File Preview, but Check Book complains: "The file OEBPS/images/img001.jpg is not referenced". And also "The linked resource 'Images/img001.jpg' is a directory [OEBPS/maps.html]".

The referencing file is OEBPS/maps.html, and the image file is OEBPS/Images/img001.jpg so the file locations are OK (they must be because File Preview would not work).

Last edited by ShellShock; 02-02-2014 at 06:48 AM.
ShellShock is offline   Reply With Quote
Old 02-02-2014, 06:50 AM   #2
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
OK, I found the problem was due to case sensitivity. The image file is in "OEBPS/images/img001.jpg", but I was linking to "Images/img001.jpg".

Would this be a good candidate for an automatic fix? I.e., change case of links to match physical locations.

Last edited by ShellShock; 02-02-2014 at 06:55 AM.
ShellShock is offline   Reply With Quote
Advert
Old 02-02-2014, 07:30 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Case mismatches are a rather subtle problem. calibre represents the book as files on the filesystem. Therefore case mismatches may or may not be detected, depending on the case sensitivity of the underlying file system. I plan to spend the time someday to make it work right on all filesystems, but for the moment, the fact that it points out *some* error is enough.
kovidgoyal is offline   Reply With Quote
Old 02-02-2014, 10:46 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Turns out that inspiration (in the form of a concise algorithm to handle case-mismatches on all types of filesystems) struck while I was in the shower. https://github.com/kovidgoyal/calibr...da2c37a0842b66
kovidgoyal is offline   Reply With Quote
Old 02-02-2014, 11:44 AM   #5
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Great work...thanks!
ShellShock is offline   Reply With Quote
Advert
Old 02-02-2014, 12:04 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,923
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Some people sing
others write code
Thanks
theducks is offline   Reply With Quote
Old 02-02-2014, 04:22 PM   #7
rwmcafee
Connoisseur
rwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it is
 
Posts: 56
Karma: 2024
Join Date: Apr 2011
Location: Southern Idaho
Device: Samsung Galaxy Tabs
Just think what Calibre would be like if he took more showers each day. But, he would become the cleanest and most wrinkled programmer in the world.

rwmcafee is offline   Reply With Quote
Old 02-02-2014, 09:10 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have been known to linger in my showers till the hot water runs out. I do most of my serious thinking in there
kovidgoyal is offline   Reply With Quote
Old 02-03-2014, 01:14 AM   #9
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Think what you could accomplish with a bigger water heater!

You do great work!

Dale
DaleDe is offline   Reply With Quote
Old 02-03-2014, 02:01 AM   #10
rwmcafee
Connoisseur
rwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it isrwmcafee knows what time it is
 
Posts: 56
Karma: 2024
Join Date: Apr 2011
Location: Southern Idaho
Device: Samsung Galaxy Tabs
Maybe this is why the code is so clean.

All kidding aside, I really do appreciate your program along with all of the various plugins.

Ron
rwmcafee is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How good Sigil supports SVG images? RbnJrg Sigil 7 07-18-2013 03:08 AM
blank pages after SVG images in Kobo jobalcaen ePub 3 05-19-2013 01:19 PM
can I use SVG images in mobi? sarah_pnix Kindle Formats 4 01-07-2013 04:21 PM
Two Neighboring SVG Tags Rand Brittain ePub 6 12-19-2012 04:58 PM
<svg> to <img> tags conversion codrutoctavian Conversion 1 02-15-2012 09:58 PM


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


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