![]() |
#766 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Dale |
|
![]() |
![]() |
![]() |
#767 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#768 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2009
Device: Handheld
|
why do you want it to be same as pdf?
|
![]() |
![]() |
![]() |
#769 |
Junior Member
![]() 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 Am running Calibre on Ubuntu linux. Thanks for any help. |
![]() |
![]() |
![]() |
#770 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#771 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#772 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2009
Device: Sony eReader prs 505
|
Works fine from command line for some reason.
|
![]() |
![]() |
![]() |
#773 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#774 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 6698
Join Date: Oct 2008
Device: none
|
here's the extract, thanks !
|
![]() |
![]() |
![]() |
#775 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2009
Device: Sony eReader prs 505
|
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 ![]() |
![]() |
![]() |
![]() |
#776 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,185
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
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 ![]() ![]() |
![]() |
![]() |
![]() |
#777 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#778 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#779 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 6698
Join Date: Oct 2008
Device: none
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#780 |
Karmaniac
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
Tags |
html2lrf, libprs500 |
|
![]() |
||||
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 |