Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2020, 09:35 AM   #1
shadowmanwkp
Dutch guy
shadowmanwkp began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2020
Device: Kobo Clara hd
File paths not case sensitive in preview window?

I don't know if this has been reported on the github or here on the forums, but I couldn't find my issue in either place.

On Sigil 1.2.0 I often use the preview window to check if I've made an error (XHTML has a stricter syntax than regular HTML 5), one thing I regularly slip up with is using the proper case for images and style sheets. For example:

I have the following files:
  • Styles/style.css
  • Images.image.png

If I then use the following tag in my header...

Code:
<link rel="stylesheet" type="text/css" href="../styles/style.css" />
And this code in my tag...

Code:
<img src="../Images/Image.png" class="img"/>
Everything looks fine if I preview it in Sigil. However on Adobe Digital Editions and my Kobo Clara HD I don't see any image and the CSS is not applied. I've added an example epub so you can see it in action.
Attached Files
File Type: epub case test.epub (371.6 KB, 149 views)
shadowmanwkp is offline   Reply With Quote
Old 04-25-2020, 10:02 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,873
Karma: 5449552
Join Date: Nov 2009
Device: many
That all depends on the File System of the device used, not a Sigil issue.. On Windows and most macOS machines, file paths are case insensitive but case preserving. On other macOS and most Linux boxes, file systems are case sensitive.

So you are probably using Sigil on a machine with a case-insensitive file system. While your ADE device is case sensitive.

The best way to detect these issues in your epub is to use the epubcheck plugin.
KevinH is online now   Reply With Quote
Advert
Old 04-25-2020, 10:27 AM   #3
shadowmanwkp
Dutch guy
shadowmanwkp began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2020
Device: Kobo Clara hd
Sorry for not specifying my OS, I'm running Sigil on a windows computer.

Just took a look at the W3 validator you pointed me to and that one doesn't indicate any problems. Seems to be vendor-specific shenanigans like it usually is when it comes to (X)HTML.
shadowmanwkp is offline   Reply With Quote
Old 04-25-2020, 10:41 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,624
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by shadowmanwkp View Post
However on Adobe Digital Editions and my Kobo Clara HD I don't see any image and the CSS is not applied. I've added an example epub so you can see it in action.
Shameless plug: if you install my EPUBCheck plugin and run it, it'll report the path problems:

ERROR(RSC-007):OEBPS/Text/Section0001.xhtml(8,71): Referenced resource 'OEBPS/styles/style.css' could not be found in the EPUB.
ERROR(RSC-007):OEBPS/Text/Section0001.xhtml(12,46): Referenced resource 'OEBPS/images/image.png' could not be found in the EPUB.
Doitsu is offline   Reply With Quote
Old 04-25-2020, 11:25 AM   #5
shadowmanwkp
Dutch guy
shadowmanwkp began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2020
Device: Kobo Clara hd
Quote:
Originally Posted by Doitsu View Post
Shameless plug: if you install my EPUBCheck plugin and run it, it'll report the path problems
That actually was the plugin I ran, but it didn't return any error. ...And now I'm aware why, I probably didn't restart Sigil, because this time the validator was as pedantic as I remember it to be.

Well, I'm wrong on two counts today, good thing I don't buy lottery tickets.
shadowmanwkp is offline   Reply With Quote
Advert
Reply

Tags
bug report


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Case sensitive tags and metadata? Kythe42 Library Management 2 04-18-2018 10:40 PM
File Preview Window Font Too Small to Read ssolitar Editor 2 12-27-2015 06:19 PM
Case-sensitive search john_es Calibre 1 02-18-2014 12:25 AM
Library on Case-Sensitive file system on OS X lbutlr Calibre 13 11-04-2011 01:20 PM
K3 search case sensitive only? charonme Amazon Kindle 1 01-28-2011 05:15 PM


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


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