Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-22-2009, 11:07 AM   #766
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by sauravishal View Post
is there any the best possible way to convert pdf into mobipocket files (.prc)...exact as same as the pdf...
sure, make a picture of each page and include it in a prc file. Otherwise there is no way to make any other ebook reading format exactly like PDF. I am not sure why you would want to make a 6" display look exactly like a 14" (A4) size display, but to each his own.

Dale
DaleDe is offline   Reply With Quote
Old 01-22-2009, 02:13 PM   #767
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
Well,I don't know about Mobi,
But on the Sony reader LRF, one could copy the text,and save the pictures inside a PDF, and then in book designer re-create your version of the book.
Like mentioned above, identical copying is impossible,especially when you're dealing with a large papersize. the 6" screen of the reader is too small to comfortably read a4 or larger pages.

I don't know if there's a program to create mobi, but I do know,that one is able to create a HTML file of the book, and convert that to mobi.

Again,to have it identically looking the same I don't think will be possible (when you use text based methode). But looking like,yes...

Or like above mentioned, take a snapshot of every page, and view the book as pictures.
ProDigit is offline   Reply With Quote
Advert
Old 01-22-2009, 02:38 PM   #768
nelliesorvig
Junior Member
nelliesorvig began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2009
Device: Handheld
why do you want it to be same as pdf?
nelliesorvig is offline   Reply With Quote
Old 02-10-2009, 01:18 PM   #769
douglasamcintosh
Junior Member
douglasamcintosh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2009
Device: Sony eReader prs 505
Calibre Chokes When Trying To Display This

Open up Archive. Choose add book from menu and select file ns1.htm. Importer runs for a while. Run it through the converter to LRF. That runs for a while. As far as I can tell the files are encoded in 7bit ASCII which I am presuming is fairly standard for the older web page

Then try to display it with the built in viewer and get the following message.

Code:
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 416-417: illegal UTF-16 surrogate
Failed to render document
Detailed traceback:
Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/calibre/gui2/lrf_renderer/main.py", line 33, in run
  File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/lrfparser.py", line 28, in parse
  File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/lrfparser.py", line 56, in _parse_objects
  File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/objects.py", line 840, in initialize
  File "build/bdist.linux-i686/egg/calibre/ebooks/lrf/objects.py", line 701, in add_text
  File "/usr/lib/python2.5/encodings/utf_16_le.py", line 16, in decode
    return codecs.utf_16_le_decode(input, errors, True)
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 416-417: illegal UTF-16 surrogate
Works fine with mobipocket creator but I am hoping the html2lrf will give me a better page layout. Everything seems squashed with mobipocket.

Am running Calibre on Ubuntu linux.

Thanks for any help.
Attached Files
File Type: zip NS01.zip (465.8 KB, 234 views)
douglasamcintosh is offline   Reply With Quote
Old 02-10-2009, 01:42 PM   #770
karo02
Enthusiast
karo02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animals
 
Posts: 35
Karma: 6698
Join Date: Oct 2008
Device: none
html2lrf always add blank lines between paragraphs

Hello,

I have some issues with html converted to lrf : even if I don't check the option box, I always have blank lines between paragraph, even if they are none in the original html file (generated with MS Word).
Only when I replaced the "paragraph mark" (^p) by the "end line" (^l) mark did the blank lines disappear, but then I don't have the indent for the following paragraph.

When converting the same html file to epub, no problem... but when I'm converting the epub to lrf, the blank line between paragraph reapper.

Is it a bug, or am I missing something ?

Thanks.
karo02 is offline   Reply With Quote
Advert
Old 02-10-2009, 01:47 PM   #771
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: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Post an extract from the HTML file showing a couple of paragraphs.
kovidgoyal is offline   Reply With Quote
Old 02-10-2009, 02:22 PM   #772
douglasamcintosh
Junior Member
douglasamcintosh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2009
Device: Sony eReader prs 505
Works fine from command line for some reason.
douglasamcintosh is offline   Reply With Quote
Old 02-10-2009, 02:43 PM   #773
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: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by douglasamcintosh View Post
Works fine from command line for some reason.
The conversion or the viewer?
kovidgoyal is offline   Reply With Quote
Old 02-10-2009, 02:57 PM   #774
karo02
Enthusiast
karo02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animals
 
Posts: 35
Karma: 6698
Join Date: Oct 2008
Device: none
here's the extract, thanks !
Attached Files
File Type: rar extract.rar (5.3 KB, 221 views)
karo02 is offline   Reply With Quote
Old 02-10-2009, 03:22 PM   #775
douglasamcintosh
Junior Member
douglasamcintosh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2009
Device: Sony eReader prs 505
Quote:
Originally Posted by kovidgoyal View Post
The conversion or the viewer?
Um both. I convert from the command line:

html2ltf --link-levels=2 -t blah -a blahblah ns1.htm

It runs for a few seconds. Then using lrfviewer shows up fine. Not perfect but good enough for me

If I do not set the link level the conversion takes a long long time. It seems to endlessly loop round and round.

Not sure what the default settings are when I use the gui but plainly something is not working happily.

Thanks for the program it has inspired me to go out and actually buy a Sony Reader. Well not just now but when I have flogged a bunch of stuff on eBay
douglasamcintosh is offline   Reply With Quote
Old 02-10-2009, 03:41 PM   #776
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by karo02 View Post
here's the extract, thanks !
I looked at the code and this is where I think your blank line is coming from.

<p class=MsoNormal><span lang=EN-GB style='mso-ansi-language:EN-GB'><o>&nbsp;</o></span></p> It's between each of your paragraphs. For some reason MS Word like to add code to every space. I use Word 97 to convert my stories to html because it doesn't add that piece of code between my paragraphs.
Amalthia is offline   Reply With Quote
Old 02-10-2009, 05:30 PM   #777
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: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by karo02 View Post
here's the extract, thanks !
Works for me, see attached file
Attached Files
File Type: lrf extract.lrf (6.2 KB, 229 views)
kovidgoyal is offline   Reply With Quote
Old 02-10-2009, 05:31 PM   #778
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: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by douglasamcintosh View Post
Um both. I convert from the command line:

html2ltf --link-levels=2 -t blah -a blahblah ns1.htm

It runs for a few seconds. Then using lrfviewer shows up fine. Not perfect but good enough for me

If I do not set the link level the conversion takes a long long time. It seems to endlessly loop round and round.

Not sure what the default settings are when I use the gui but plainly something is not working happily.

Thanks for the program it has inspired me to go out and actually buy a Sony Reader. Well not just now but when I have flogged a bunch of stuff on eBay
Look at the encoding setting in the GUI for that book.
kovidgoyal is offline   Reply With Quote
Old 02-11-2009, 04:33 AM   #779
karo02
Enthusiast
karo02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animalskaro02 is kind to children and small, furry animals
 
Posts: 35
Karma: 6698
Join Date: Oct 2008
Device: none
Quote:
Originally Posted by Amalthia View Post
I looked at the code and this is where I think your blank line is coming from.

<p class=MsoNormal><span lang=EN-GB style='mso-ansi-language:EN-GB'><o>&nbsp;</o></span></p> It's between each of your paragraphs. For some reason MS Word like to add code to every space. I use Word 97 to convert my stories to html because it doesn't add that piece of code between my paragraphs.
Thanks, I tried to "save as filtered html" with Word (instead of save as html) :
it says that the "MS Office" tags will be removed, and now it's work. So I guess this is the way to prevent Word to add code everywhere...

I'm really glad it works this way, because if I understood correctly, generating html files with Word and then converting to lrf (or epub) is the easiest and best way for newbie to obtain a proper layout..

Don't know why Kovidgoyal didn't have any problem with my extract though.
karo02 is offline   Reply With Quote
Old 02-12-2009, 02:54 PM   #780
ProDigit
Karmaniac
ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.ProDigit ought to be getting tired of karma fortunes by now.
 
Posts: 2,553
Karma: 11499146
Join Date: Oct 2008
Location: Miami FL
Device: PRS-505, Jetbook, + Mini, +Color, Astak Ez Reader Pro, PPW1, Aura H2O
it also shows of bad text conversion.
In word you should not let every sentence end with ^l or ^p.

In order to understand the exact structure of books you're better off learning html code.
^l = <br>, and ^p=<p>
it's not that hard.
If you want your text to look a certain way, creating it in HTML is probably the best thing you can do.

Book designer and the Sony reader, I think support html0.
That's very easy, there are only about 15 commands to learn to create a book!
The easiest thing you can do is create it in word, save it to html, and prune the text for html command strings that are not necessary.

Last edited by ProDigit; 02-12-2009 at 02:57 PM.
ProDigit is offline   Reply With Quote
Reply

Tags
html2lrf, libprs500


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change font of header for LRF Output on PRS 505 duckbill Calibre 3 05-15-2010 11:07 AM
Pissed off with LRF formatting: LRF/LRS clean tool? grimborg LRF 8 02-15-2010 01:14 PM
Fonts for LRF output krischik Calibre 1 10-03-2009 05:01 AM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 06:44 AM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 12:16 PM


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


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