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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2008, 06:54 PM   #1
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Post Need help with Html2Lrf (screen attached)

Hi , When ever I try to make lrf from screenshot 1 (html file) I get the screenshot 2 (lrf file).

Why is the lrf always cropped in those pictures ?

The html code is this :

<DIV class=examplewrapper>
<DIV class=example style="WIDTH: 439px">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR vAlign=top>
<TD class=examplehand><SPAN class=nowrap>
<IMG alt=Ac src="1.gif"/>
<IMG alt=Qh src=12h.gif"/>
.
.
.
</SPAN><BR>Me</TD></TR></TABLE></DIV></DIV>

any suggestions ?
Attached Thumbnails
Click image for larger version

Name:	picture1.JPG
Views:	277
Size:	45.9 KB
ID:	9702   Click image for larger version

Name:	picture2.JPG
Views:	245
Size:	34.3 KB
ID:	9703  
alophind is offline   Reply With Quote
Old 01-29-2008, 06:59 PM   #2
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: 25,454
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try the --ignore-tables option. And attach the image files so I can fix the table processing.
kovidgoyal is online now   Reply With Quote
Old 01-30-2008, 01:09 AM   #3
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by kovidgoyal View Post
Try the --ignore-tables option. And attach the image files so I can fix the table processing.
if I ignore the tables it screw the entire look... (picture2)

I've attached a rar with html example .

Thank you !!!!

Btw - Is there an option to make TOC from all <H1> tags in the html ?
Attached Thumbnails
Click image for larger version

Name:	picture1.JPG
Views:	220
Size:	37.9 KB
ID:	9719   Click image for larger version

Name:	picture2.JPG
Views:	220
Size:	34.6 KB
ID:	9720  
Attached Files
File Type: rar example.rar (4.9 KB, 209 views)
alophind is offline   Reply With Quote
Old 01-30-2008, 02:05 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: 25,454
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This is fixed in svn. No there isn't an auto toc option in html2lrf
kovidgoyal is online now   Reply With Quote
Old 01-30-2008, 06:07 AM   #5
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by kovidgoyal View Post
This is fixed in svn. No there isn't an auto toc option in html2lrf
What do you mean "this is fixed in svn" ? What is svn :-)
Where to get it ? ;-)
alophind is offline   Reply With Quote
Old 01-30-2008, 09:04 AM   #6
tytso
Junior Member
tytso began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2008
Device: Sony PRS-505
Quote:
Originally Posted by alophind View Post
What do you mean "this is fixed in svn" ? What is svn :-)
Where to get it ? ;-)
svn == Subversion

It's a source code management (SCM) system. So basically, it means "fixed in the next release --- or if you can't wait, and you know how to use standard open source development tools, you could head over the website at https://libprs500.kovidgoyal.net and download the latest bleeding-edge sources, and install the python application yourself (assuming you know how and don't mind being a pre-alpha tester) -- if not, please just wait a few weeks and upgrade to the latest version when it comes out"

But "fixed in svn" is much faster way of saying all of the above. :-)
tytso is offline   Reply With Quote
Old 01-30-2008, 09:39 AM   #7
Xenophon
curmudgeon
Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.
 
Xenophon's Avatar
 
Posts: 1,453
Karma: 5657812
Join Date: Jun 2006
Location: Pittsburgh, PA USA
Device: Kobo Aura (soon), (soon-to-be-ex)nook, (ex)PRS-700, (ex)PRS-500
Quote:
Originally Posted by alophind View Post
What do you mean "this is fixed in svn" ? What is svn :-)
Where to get it ? ;-)
'svn' is the source code control system 'subversion' which is what kovid uses to manage his development. The user translation of 'this is fixed in svn' is "the fix is done, and will probably be in the next release." This was, of course, completely obvious...

Xenophon
Xenophon is offline   Reply With Quote
Old 01-30-2008, 10:53 AM   #8
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by tytso View Post
svn == Subversion

It's a source code management (SCM) system. So basically, it means "fixed in the next release --- or if you can't wait, and you know how to use standard open source development tools, you could head over the website at https://libprs500.kovidgoyal.net and download the latest bleeding-edge sources, and install the python application yourself (assuming you know how and don't mind being a pre-alpha tester) -- if not, please just wait a few weeks and upgrade to the latest version when it comes out"

But "fixed in svn" is much faster way of saying all of the above. :-)
few weeks... ahhmm....
but if he fixed it in the code , and compiled to see that it works , can't he send the exe and ill QA it :-D
alophind is offline   Reply With Quote
Old 01-30-2008, 11:25 AM   #9
kati42
Member
kati42 began at the beginning.
 
Posts: 17
Karma: 42
Join Date: Jan 2008
Device: PRS-505
Quote:
Originally Posted by alophind View Post
few weeks... ahhmm....
but if he fixed it in the code , and compiled to see that it works , can't he send the exe and ill QA it :-D
Most developers want to fix more than one bug before they "release" - otherwise they'd run out of version numbers. Plus, it takes time to set up the release, recompile for all platforms, notify users of the update, etc. Not a *ton* of time, but enough that developers don't want to do it every day (when they could be working on fixing more bugs, adding more features, or doing something else).
kati42 is offline   Reply With Quote
Old 01-30-2008, 11:46 AM   #10
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: 25,454
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually the next release should be out in a few days, not a few weeks
kovidgoyal is online now   Reply With Quote
Old 01-31-2008, 01:42 AM   #11
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by kovidgoyal View Post
Actually the next release should be out in a few days, not a few weeks
Any chance on making auto TOC from ANY tags ?
I'll manually replace the H1 tags with the matching ones to make the TOC working
alophind is offline   Reply With Quote
Old 01-31-2008, 12:26 PM   #12
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: 25,454
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://libprs500.kovidgoyal.net/ticket/164
kovidgoyal is online now   Reply With Quote
Old 01-31-2008, 07:34 PM   #13
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by kovidgoyal View Post
6 monthes ago :-)
Thank you for all your hard work , As a programmer myself , I know how much hard work it can be.
alophind is offline   Reply With Quote
Old 01-31-2008, 08:25 PM   #14
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: 25,454
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Patches are always welcome
kovidgoyal is online now   Reply With Quote
Old 02-01-2008, 03:56 AM   #15
alophind
Connoisseur
alophind began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Aug 2007
Device: Palm Treo 650
Quote:
Originally Posted by kovidgoyal View Post
Patches are always welcome
C++ / .Net client Programmer here... lol...
alophind 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
PRS-505 Screen says no battery & and has split. * Image Attached" BettyMaeStrange Sony Reader 5 05-26-2010 01:58 AM
Could somebody help me try the attached PDF?? yingwu Amazon Kindle 8 06-14-2009 10:47 PM
HTML2LRF and inline pictures pepak Calibre 12 02-04-2009 12:12 PM
html2lrf vs rtf2lrf paspas Sony Reader 0 11-18-2007 02:35 PM
PRS-500 HTML2LRF igorsk Sony Reader Dev Corner 68 09-02-2007 12:15 PM


All times are GMT -4. The time now is 04:55 AM.


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