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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2010, 02:34 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
minor bug report - html conversion

more of a weakness than a bug really:

I started reading Mississippi Blues - (nanoquartet vol 2) which I'd converted from a found html version.

from chapter 2 onwards everything went into CAPITALS, centre justified. AND STAYED THAT WAY UNTIL END OF BOOK - you can see how annoying that would be

So I opened the source in both IE8 and chrome & saw the same thing. in IE8 it was actually RED capitals as red was being used for headers, so clearly there was a missing bit of html code.

tried to edit the source file in word 97 but word refused to open it - said there was a problem with mismatched tags.

so as last resport I ran the source through auto kindle. that converted it OK and got rid of the all caps problem.

if anyone wishes to delve into why auto kindle outperformed calibre in this instance I'd be happy to pass on the source file. I told that I can't post it here because of copyright.

I'm trying to get IE8 to show me the source html but as it's book length it's been contemplating the request for 20 mins now with no signs of completion. If I can extract the buit where it goes pear shaped I'll post it for info.
cybmole is offline   Reply With Quote
Old 09-30-2010, 02:41 AM   #2
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
OK - thanks to wordpad - it goes wrong in the middle of this block, at start of chapter 1. or in the 2nd block - at start of chapter 2:
[code]
but only another spell of the blindness I’ve been experiencing, I might almost be dead again.</p>
<p>Save for that distant music, beginning again, a bright, tenuous thread to which I cling.</p>
</div>
<hr /><h5><a name="part_1" id="part_1"></a>1<br /><span class="title">Trouble in Mind</span></h5>
</div>
<hr /><h3><a name="chapter_1" id="chapter_1"></a>One<br /><span class="title">Resurrection Blues</span</h3>
<div class="right">
<a href="#prologue"><img src="Previous.gif" class="noborder" alt="Next" title ="Next" /></a>
<a href="#contents"><img src="Top.gif" class="noborder" alt="Top" title="Top" /></a>
<a href="#chapter_2"><img src="Next.gif" class="noborder" alt="Next" title ="Next" /></a>
</div>
<div>
<p class="first">T<em>he first sunset after Cincinnati’s awakening was fiery, flaring incandescent red and yellow sheets of light through transparent intense blue, coloring the coming
[code]

2nd extract
[code]
the rough water above the rapids. Verity had one final glimpse of golden, moving, surging matter…</p>
<p><em>Good-bye, my lovely City.</em></p>
<p>Then they moved beyond that point, ever more swiftly.</p>
<p>Lighting out.</p>
</div>
<hr /><h5><a name="part_2" id="part_2"></a>2<br /><span class="title">Beautiful Ohio</span></h5>
</div>
<hr /><h3><a name="chapter_2" id="chapter_2"></a>Two<br /><span class="title">Free-Fall Blues</span></h5>
<div class="right">
<a href="#chapter_1"><img src="Previous.gif" class="noborder" alt="Previous" title="Previous" /></a>
<a href="#contents"><img src="Top.gif" class="noborder" alt="Top" title="Top" /></a>
<a href="#chapter_3"><img src="Next.gif" class="noborder" alt="Next" title ="Next" /></a>
</div>
<div>
<p class="first">Her own crazed laugh startled Verity. Torn from her, it blended with the whitecapped waves heaving round the raft.
[code]

Last edited by cybmole; 09-30-2010 at 02:48 AM.
cybmole is offline   Reply With Quote
Advert
Old 09-30-2010, 02:48 AM   #3
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You should open a bug on bugs.calibre-ebook.com. Attach the source format of the book. There isn't any way to tell you why from this small snippet of code.
ldolse is offline   Reply With Quote
Old 09-30-2010, 03:01 AM   #4
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by ldolse View Post
You should open a bug on bugs.calibre-ebook.com. Attach the source format of the book. There isn't any way to tell you why from this small snippet of code.
damn - took me ages to extract those snippets!

well technically the bug is in the source file, not in calibre.

word97 error message (document cannot be opened - details) is:

end tag "div" does not match the start tag "body"
location line 376 column 3
cybmole is offline   Reply With Quote
Old 09-30-2010, 04:14 AM   #5
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
In the second block,
Code:
<hr /><h3><a name="chapter_2" id="chapter_2"></a>Two<br /><span class="title">Free-Fall Blues</span></h5>
should probable be
Code:
<hr /><h3><a name="chapter_2" id="chapter_2"></a>Two<br /><span class="title">Free-Fall Blues</span></h3>
Change the last </h5> tag to </h3> to match it's opening <h3> tag
Perkin is offline   Reply With Quote
Advert
Old 09-30-2010, 04:18 AM   #6
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
That would make the text go bold throughout the book, but it shouldn't make it all capitals..

Unless the CSS style for H3 also says to make it all caps...
ldolse is offline   Reply With Quote
Old 09-30-2010, 04:20 AM   #7
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You should probably set Calibre's "Page breaks before" setting in structure detection to break on H3. That might limit the portion of the book that's affected.
ldolse is offline   Reply With Quote
Old 09-30-2010, 04:20 AM   #8
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
thanks - the source for all 4 books in this quartet is poor, but it seems to be the only source out there. they are not available to buy from Amazon kindle
cybmole is offline   Reply With Quote
Old 09-30-2010, 04:25 AM   #9
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
A comment on your "extract source"- problems: HTML files are really just text files with a special syntax and a different file extension. Try opening them in Windows' builtin editor, or, for nice things like syntax highlighting, something like Notepad++. That should go way faster to open.
Manichean is offline   Reply With Quote
Old 09-30-2010, 04:25 AM   #10
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
I would recommend running any html you want to convert using calibre through html tidy in notepad++ apart from catching errors it helps removing many of the crap that microsoft word adds to an html file.
Its really improves the conversion speed specially to epub.
Dopedangel is offline   Reply With Quote
Old 09-30-2010, 04:28 AM   #11
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
In relation to my previous post (#5), you could also change the start <h3> to <h5> to match the end tag, which would probably be more inline with the rest of the code given and what was wanted.

This should fix the mismatched tag issue (unless there's more of them)

As Idolse says, it would then depend on css for h3/h5 classes.

In the code of the file, Is the text normal, or is that all uppercase. If it's normal, as Idolse says (again) try looking at the css/styleheader for 'text-transform:uppercase;'
and removing it.
Perkin is offline   Reply With Quote
Old 09-30-2010, 05:39 AM   #12
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by Manichean View Post
A comment on your "extract source"- problems: HTML files are really just text files with a special syntax and a different file extension. Try opening them in Windows' builtin editor, or, for nice things like syntax highlighting, something like Notepad++. That should go way faster to open.
Hmm - my windows "built in editor" appears to be word 97, which will not open the file.
I guess the install of office alters some original windows 7 default ?

PS I think I've made the book readable enough for my needs now, via the auto kindle route. it's not perfect but I can live with it.
cybmole is offline   Reply With Quote
Old 09-30-2010, 05:58 AM   #13
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by cybmole View Post
Hmm - my windows "built in editor" appears to be word 97, which will not open the file.
I guess the install of office alters some original windows 7 default ?
I'm not talking about your word processor, but the built-in text editor. You should be able to find that in the accessories group in the start menu. Although personally, I'd recommend Notepad++.
Manichean is offline   Reply With Quote
Old 09-30-2010, 08:05 AM   #14
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: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
Hmm - my windows "built in editor" appears to be word 97, which will not open the file.
I guess the install of office alters some original windows 7 default ?

PS I think I've made the book readable enough for my needs now, via the auto kindle route. it's not perfect but I can live with it.
Windows also has the built in TEXT editor: notepad.exe that is safer to use as it adds nothing ON IT'S OWN to your file.

Right click on a file. Select "Open With..." choose Notepad"

Get Notepad++ (free), (also suggested by Manichean) way better if you are doing code tweaking.
theducks is online now   Reply With Quote
Old 09-30-2010, 08:35 AM   #15
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by theducks View Post
Windows also has the built in TEXT editor: notepad.exe that is safer to use as it adds nothing ON IT'S OWN to your file.

Right click on a file. Select "Open With..." choose Notepad"

:
yes, notepad works - I thought it would choke on file size, bur maybe the win7 version has improved since windows XP days

wordpad also works fine.

& to answer an earlier question the body of story text in source is in correct case, it's just the HTML bugs that are forcing the ALL CAPS outcome.
cybmole 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
DR800 2.0 Beta - Minor bug with panning icon display leexp82 iRex 1 04-21-2010 04:23 AM
html conversion bug in 0.6xx series? slantybard Calibre 8 09-04-2009 03:34 AM
How do I report minor errors or make corrections? Wetdogeared Upload Help 7 05-06-2009 12:10 PM
Attn vvv - Minor bug in BD HarryT Sony Reader 33 07-11-2007 01:37 AM
Minor Book Designer bug (?) HarryT Sony Reader 2 04-25-2007 03:51 AM


All times are GMT -4. The time now is 09:03 AM.


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