Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2007, 10:37 PM   #196
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Automatically embedded when you specify the family.
If I want to use the built in Dutch Roman font but the Times New Roman italics, I just specify Time New Roman for where the italics are? How can I unspecify the embedded font to use the built-in font?
JSWolf is offline   Reply With Quote
Old 06-28-2007, 10:41 PM   #197
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,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just specify --serif-family "C:\Windows\Fonts, Times New Roman" that will automatically give you italics, bold and bold-italics. You cannot specify a separate font for just a single element of text. That is really bad style and html2lrf wont support it.
kovidgoyal is offline   Reply With Quote
Old 06-28-2007, 10:45 PM   #198
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Just specify --serif-family "C:\Windows\Fonts, Times New Roman" that will automatically give you italics, bold and bold-italics. You cannot specify a separate font for just a single element of text. That is really bad style and html2lrf wont support it.
If I specify a font family of "Dutch801 Rm BT Roman" to which I only have on my computer the regular font. Will it use the internal font or will it try to embed the one that's on my computer?
JSWolf is offline   Reply With Quote
Old 06-28-2007, 10:53 PM   #199
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,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It will embed and you'll have the usual italic since that family doesn't have bold, italic fonts.
kovidgoyal is offline   Reply With Quote
Old 06-28-2007, 10:55 PM   #200
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
It will embed and you'll have the usual italic since that family doesn't have bold, italic fonts.
So once I embed a font, I'm unable to go back to the built-in fonts? All I want to do is use the internal Dutch Roman to red normal text and Times New Roman for bold and italics.
JSWolf is offline   Reply With Quote
Old 06-28-2007, 10:59 PM   #201
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,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
For that LRF file, yes.
kovidgoyal is offline   Reply With Quote
Old 06-28-2007, 11:01 PM   #202
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
For that LRF file, yes.
Can you add in the ability to go back to the built-in fonts if we want?
JSWolf is offline   Reply With Quote
Old 06-28-2007, 11:07 PM   #203
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,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No using two fonts for the same style of text is just not good document design. You shouldn't need to have two fonts for serif text in your document. Looks bad.
kovidgoyal is offline   Reply With Quote
Old 06-28-2007, 11:13 PM   #204
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I just converted a LIT file to HTML because lit2LRF is not working. It failes to write out the HTML file. The conversion from HTML to LRF failed...

html2lrf -a "Mike W. Barr" -t "The Centre Cannot Hold" --serif-family "C:\Windows\Fonts, Times New Roman" contents.html
Processing contents.html
Parsing HTML... done
Converting to BBeB... done
Processing mereanarchybook2thecentrecannothold.html
Parsing HTML... done
Converting to BBeB... done
Traceback (most recent call last):
File "convert_from.py", line 1400, in <module>
File "convert_from.py", line 1335, in main
File "convert_from.py", line 1195, in process_file
File "convert_from.py", line 620, in process_links
File "libprs500\ebooks\lrf\pylrs\pylrs.pyo", line 301, in append
libprs500.ebooks.lrf.pylrs.pylrs.LrsError: can't append CharButton to Text
JSWolf is offline   Reply With Quote
Old 06-28-2007, 11:21 PM   #205
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,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Send me the lit file.
kovidgoyal is offline   Reply With Quote
Old 06-28-2007, 11:59 PM   #206
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Send me the lit file.
Sent along with an HTML conversion from a LIT file that fails too.
JSWolf is offline   Reply With Quote
Old 06-29-2007, 03:27 AM   #207
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,356
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Both bugs squashed in 0.3.60
kovidgoyal is offline   Reply With Quote
Old 06-29-2007, 03:43 AM   #208
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kovidgoyal View Post
Both bugs squashed in 0.3.60
I've emailed more bugs to be squashed.
JSWolf is offline   Reply With Quote
Old 06-29-2007, 04:18 AM   #209
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Could you put up a separate download with only html2lrf and lit2lrf, preferably py2exe'd? I'd like to pass these utilities to some of my friends, but don't want to make them install the full GUI or Python.
igorsk is offline   Reply With Quote
Old 06-29-2007, 07:07 AM   #210
John Wheater
Keen reader
John Wheater may already be a Texan
 
John Wheater's Avatar
 
Posts: 4
Karma: -54
Join Date: Jun 2007
Device: kobo touch
Quote:
Originally Posted by kovidgoyal View Post
I'm happy to announce html2lrf, an open source, cross-platform HTML to LRF converter that I believe is the most

<snip>

If you have an HTML file it chokes on, I want to know about it!
Dear kovidgoyal

Many thanks for your kind reply to my request for html2rlf.

I got the problem below after downloading and saving the html from http://www.gutenberg.org/etext/19694 into your libprs500 directory.
I was expecting to see SmithHistory.lrf, is that right?

The directory SmithHistory_files contains all the pictures mentioned in SmithHistory.htm.

I’m running on Windows XP. The document is successfully rendered by Firefox.

Here is the DOS box showing the problem:

C:\Program Files\libprs500>html2lrf SmithHistory.htm
Processing SmithHistory.htm
Parsing HTML... done
Converting to BBeB...Unhandled/malformed CSS key: clear both
Unhandled/malformed CSS key: left 1%
Unhandled/malformed CSS key: vertical-align super
done
Traceback (most recent call last):
File "convert_from.py", line 1407, in <module>
File "convert_from.py", line 1342, in main
File "convert_from.py", line 1202, in process_file
File "convert_from.py", line 556, in process_links
File "encodings\utf_8.pyo", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in position 8:
ordinal not in range(128)

C:\Program Files\libprs500>dir
Volume in drive C is ACER
Volume Serial Number is 40A9-98AA

Directory of C:\Program Files\libprs500

29/06/2007 11:42 <DIR> .
29/06/2007 11:42 <DIR> ..
18/04/2007 16:51 77,824 bz2.pyd
04/07/2004 18:34 46,080 clit.exe
29/06/2007 10:57 <DIR> driver
29/06/2007 09:39 61,952 html2lrf.exe
29/06/2007 09:39 122,880 libprs500.exe
29/06/2007 10:57 58 libprs500.url
29/06/2007 09:39 1,919,171 library.zip
29/06/2007 09:39 15,124 LICENSE
29/06/2007 09:39 19,456 lit2lrf.exe
29/06/2007 09:39 38,912 lrf-meta.exe
29/06/2007 09:39 57,344 markdown.exe
13/01/2005 20:19 15,960 mingwm10.dll
12/07/2006 02:35 348,160 MSVCR71.dll
28/06/2007 21:56 28,160 multiarray.pyd
29/06/2007 09:39 28,672 prs500.exe
18/04/2007 16:51 135,168 pyexpat.pyd
18/04/2007 16:51 2,113,536 python25.dll
08/06/2007 06:27 6,656 Qt.pyd
08/06/2007 06:26 1,357,312 QtCore.pyd
03/06/2007 00:03 2,077,696 QtCore4.dll
08/06/2007 06:26 5,682,688 QtGui.pyd
25/05/2007 16:03 9,041,920 QtGui4.dll
08/06/2007 06:27 104,960 QtSvg.pyd
29/06/2007 09:39 411,648 QtSvg4.dll
29/06/2007 09:39 499,200 QtXml4.dll
29/06/2007 09:39 20,992 rtf-meta.exe
18/04/2007 16:51 7,680 select.pyd
03/06/2007 05:44 59,904 sip.pyd
29/06/2007 11:12 1,296,659 SmithHistory.htm
29/06/2007 11:42 <DIR> SmithHistory_files
03/04/2006 16:41 260,096 sqlite3.dll
28/03/2006 01:23 576,000 tcl84.dll
28/03/2006 01:44 1,038,848 tk84.dll
29/06/2007 09:39 19,968 txt2lrf.exe
28/06/2007 21:56 55,296 umath.pyd
18/04/2007 16:51 475,136 unicodedata.pyd
29/06/2007 10:57 127,953 Uninstall.exe
18/04/2007 16:51 4,608 w9xpopen.exe
18/04/2007 16:51 81,920 _ctypes.pyd
18/04/2007 16:52 323,584 _hashlib.pyd
03/12/2006 14:23 319,488 _imaging.pyd
03/12/2006 14:23 290,816 _imagingft.pyd
03/12/2006 14:23 10,752 _imagingmath.pyd
03/12/2006 14:23 5,120 _imagingtk.pyd
28/06/2007 21:56 72,192 _numpy.pyd
18/04/2007 16:52 53,248 _socket.pyd
18/04/2007 16:51 49,152 _sqlite3.pyd
18/04/2007 16:52 655,360 _ssl.pyd
46 File(s) 30,015,309 bytes
4 Dir(s) 18,338,516,992 bytes free
John Wheater 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 10:44 PM.


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