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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2010, 07:38 PM   #1
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
HTML importing problem

Tonight I installed 0.2.0 version and it looks nice. It is faster than previous version that I had.

I have a problem when creating ePub from HTML. Can I use option "Add existing items" to add HTML files? It look that I can but when I insert, for example, three HTML files and save it as ePub I have this situation: first HTML file have 10 pages on PRS-505 reader, it opens only first page, then skips next nine pages and it jumps after 1st page directly to 10th page (that is first page of second HTML file), and after that it jumps to 24. page (that is first page of third HTML file). So I only have first page on reader of every HTML file, I see just fraction of text that I have in HTML files.

I have the same problem with Calibre. When I create LRF in Calibre it looks great, but with ePub I have the same problem.

I created good ePub in Sigil only when I manually copy/paste text from all HTML files (book is divided in 20-30 HTML files, one file = one chapter) to Sigil and save it as ePub. Or when I copy/paste all text from HTML to Word, save as RTF, import that RTF in Calibre, convert to ePub, open that ePub in Sigil, and then I create 20-30 chapter breaks to make chapters.

So...what is the best way to create ePub from 20-30 HTML files/chapters?
PaladinBL is offline   Reply With Quote
Old 03-10-2010, 07:53 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by PaladinBL View Post
I have the same problem with Calibre. When I create LRF in Calibre it looks great, but with ePub I have the same problem.
If you experience the same problem with both Calibre and Sigil, then the problem is not in Calibre or Sigil.

It could be something with your HTML files... I honestly couldn't tell you. You'd have to create an issue on the tracker and attach the HTML files, then I could take a look at it. Read this wiki page.
Valloric is offline   Reply With Quote
Old 03-10-2010, 08:35 PM   #3
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Quote:
Originally Posted by Valloric View Post
If you experience the same problem with both Calibre and Sigil, then the problem is not in Calibre or Sigil.
Yes, it is obvious

I asked here because I hoped that maybe someone had the same problem and have some advice. Creating an "issue" will be appropriate if this is Sigil-only error, but it seems that it's not the case.

And another thing, when I insert several HTML files in Sigil (HTML charset is windows-1250) that have (our ) letters č-ć-š-đ-ž and save as ePub then I have those letters in reader, but if I close Sigil and then open that ePub again in Sigil then Sigil will not display those letters.

Can you take a look at a three HTML files that give me this problems?
Attached Files
File Type: zip HTML.zip (35.1 KB, 112 views)
PaladinBL is offline   Reply With Quote
Old 03-10-2010, 08:58 PM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by PaladinBL View Post
And another thing, when I insert several HTML files in Sigil (HTML charset is windows-1250) that have (our ) letters č-ć-š-đ-ž and save as ePub then I have those letters in reader, but if I close Sigil and then open that ePub again in Sigil then Sigil will not display those letters.
Tried it, bug confirmed.

Hvala kolega što si ga ulovio.
Valloric is offline   Reply With Quote
Old 03-10-2010, 09:15 PM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
As a quick fix, change this line:
Code:
<META HTTP-EQUIV="Content-Type"CONTENT="text/html; charset=windows-1250">
to this:

Code:
<META http-equiv="Content-Type" content="text/html; charset=windows-1250">
in all three files. It seems the attributes being in all caps throws Tidy off his game.
Valloric is offline   Reply With Quote
Old 03-10-2010, 10:09 PM   #6
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
This is now fixed in trunk.
Valloric is offline   Reply With Quote
Old 03-11-2010, 08:32 AM   #7
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by PaladinBL View Post
I have a problem when creating ePub from HTML. Can I use option "Add existing items" to add HTML files? It look that I can but when I insert, for example, three HTML files and save it as ePub I have this situation: first HTML file have 10 pages on PRS-505 reader, it opens only first page, then skips next nine pages and it jumps after 1st page directly to 10th page (that is first page of second HTML file), and after that it jumps to 24. page (that is first page of third HTML file). So I only have first page on reader of every HTML file, I see just fraction of text that I have in HTML files.
This problem happens because all of you text is inside an HTML table. just remove the table and it should go away.
Valloric is offline   Reply With Quote
Old 03-11-2010, 10:33 AM   #8
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Yes, the problem was in the HTML table. Now works as it should, thanks
PaladinBL is offline   Reply With Quote
Old 03-16-2010, 03:21 PM   #9
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Quote:
Originally Posted by Valloric View Post
This problem happens because all of you text is inside an HTML table. just remove the table and it should go away.
As I can see I need to do it manually for all HTML files inside ePub file. Maybe it will be nice if there will be a option to do Find and Replace for all (HTML) files inside ePub. Find and Replace work for one file but not for all of them at once.

I have another situation where Find and Replace on all files will be great, if I make ePub in Calibre then page title have code

<h3 class="calibre17">11. OBRED OBESVEĆENJA</h3>

But on reader this "ć" will not be displayed because of this class="calibre17", but it will be diplayed if I delete that part and have just

<h3>11. OBRED OBESVEĆENJA</h3>

And I have to do that editing on all HTML files inside ePub in Sigil, one by one.
PaladinBL is offline   Reply With Quote
Old 03-16-2010, 04:07 PM   #10
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by PaladinBL View Post
Maybe it will be nice if there will be a option to do Find and Replace for all (HTML) files inside ePub.
Already tracked. See this issue report.
Valloric is offline   Reply With Quote
Old 03-16-2010, 04:53 PM   #11
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Great

I'm not pushing you but I am curious: will that be finished soon?
PaladinBL is offline   Reply With Quote
Old 03-16-2010, 05:22 PM   #12
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,343
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Quote:
Originally Posted by PaladinBL View Post
I have another situation where Find and Replace on all files will be great, if I make ePub in Calibre then page title have code

<h3 class="calibre17">11. OBRED OBESVEĆENJA</h3>

But on reader this "ć" will not be displayed because of this class="calibre17", but it will be diplayed if I delete that part and have just

<h3>11. OBRED OBESVEĆENJA</h3>

And I have to do that editing on all HTML files inside ePub in Sigil, one by one.
Or you could try & see what the CSS 'calibre17' is doing to stop the character showing up (maybe setting a font-definition) and just remove that, as that would have the same effect but you'd only need to edit the singe CSS definition.
gwynevans is offline   Reply With Quote
Old 03-16-2010, 05:41 PM   #13
PaladinBL
Enthusiast
PaladinBL began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2010
Location: Banjaluka, BiH
Device: Sony PRS-505
Quote:
Originally Posted by gwynevans View Post
Or you could try & see what the CSS 'calibre17' is doing to stop the character showing up (maybe setting a font-definition)
Where can I see that? Where is that CSS?
PaladinBL is offline   Reply With Quote
Old 03-16-2010, 06:03 PM   #14
paulpeer
Zealot
paulpeer is on a distinguished road
 
paulpeer's Avatar
 
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
Quote:
Originally Posted by PaladinBL View Post
Where can I see that? Where is that CSS?
CSS is the Style Sheet with all the style information.
If you use version 0.2.0 of Sigil, you'll find the Styles section in the Book Browser on the left hand side.
paulpeer 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
Importing Open Office HTML in Sigil paulpeer Sigil 17 03-18-2010 05:23 AM
Importing HTML Files Shadowlane Calibre 1 12-19-2009 04:04 PM
importing html does not import images reup Calibre 12 12-08-2009 09:52 PM
Looking for Advice with an HTML Importing Problem deanstow Calibre 2 10-03-2009 06:14 PM
Calibre 0.6.15-16 importing html files as zips BKeeper Calibre 2 10-02-2009 04:29 AM


All times are GMT -4. The time now is 04:33 PM.


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