Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2018, 12:46 AM   #1
hvugar
Member
hvugar began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Feb 2018
Device: none
Image locations problem

Hello, Sigil team.

I have some problem in my ePub book structure. There is some book which is not in standart Sigil eBook file structure. For example my pages are located in folder OEBPS\units\unit1\page1.xhtml, OEBPS\units\unit1\page2.xhtml, OEBPS\units\unit1\page3.xhtml ..., OEBPS\units\unit2\page1.xhtml, OEBPS\units\unit2\page2.xhtml, ... and etc. Image, Fonts, Video files are located in OEBPS\assets\img\image1.png, OEBPS\assets\img\someimage2.png, ..., OEBPS\assets\vid\move1.png, OEBPS\assets\fonts\segoepr.ttf, and etc.

But during opening this file all images, videos and etc are located in OEBPS\Images, OEBPS\Videos, and etc. And links in the pages *.xhtml are not changes. And in pages images are not visible. It happens because sigil dont locates my images in OEBPS\assets\*.png files into Images folder. After saving any other ePub viewers also dont shows images, because in this case links to images in pages ../../assets/someimage.png are broken, this folder dont exists. Existes new file structure OEBPS\Images, OEBPS\Videos and etc. How to fix this problem?

Thanks.
hvugar is offline   Reply With Quote
Old 02-09-2018, 04:32 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If some file paths aren't being correctly updated when opening an epub, it usually means their paths in the original opf manifest weren't correct to begin with. Sigil's automatic link updating routines require the paths in the opf to be correct.

Are you saying every path except the ones to .png files are being correctly updated?

Also, what version of Sigil are you using? I believe there were changes made to more recent versions so that duplicate file names (in different folders) could be accommodated.
DiapDealer is offline   Reply With Quote
Advert
Old 02-09-2018, 04:59 AM   #3
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,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by hvugar View Post
How to fix this problem?
Check the following preference settings:

Code:
Edit > Preferences > Mend XHTML Source Code on:
Make sure that both check boxes are checked. Otherwise Sigil's automatic link updating routines won't work.
Doitsu is offline   Reply With Quote
Old 02-09-2018, 08:15 AM   #4
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,631
Karma: 5433388
Join Date: Nov 2009
Device: many
Even without Mend on Open, links should be updated unless the underlying xhtml is brojen in some way to begin with.
KevinH is online now   Reply With Quote
Old 02-09-2018, 09:40 AM   #5
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,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
Even without Mend on Open, links should be updated unless the underlying xhtml is brojen in some way to begin with.
Unfortunately, in some rare cases, links in valid epub3 files won't be updated, if Mend on Open is disabled.

One example, is the (valid) semi-official Creative Commons Shared Culture epub3 sample file.

Without Mend on Open, in p20.xhtml video, css and script paths won't be updated.
Doitsu is offline   Reply With Quote
Advert
Old 02-09-2018, 11:32 AM   #6
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,631
Karma: 5433388
Join Date: Nov 2009
Device: many
That means that "official" epub has something that gumbo feels in inappropriate. I will take a look at what that epub has that gumbo barfs on.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo Image problem Andrew Ashling Kobo Reader 18 12-12-2012 02:24 PM
weird image problem radiocure Conversion 8 07-10-2011 04:10 PM
Problem: kindle stopped showing locations Raheldm Amazon Kindle 37 03-10-2011 10:20 PM
Image problem mikeywilliams25 Sigil 1 10-18-2009 01:37 PM
epub problem: weird link and page locations dracodoc Calibre 5 06-13-2009 11:03 AM


All times are GMT -4. The time now is 08:38 AM.


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