![]() |
#196 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#197 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
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.
|
![]() |
![]() |
![]() |
#198 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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?
|
![]() |
![]() |
![]() |
#199 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
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.
|
![]() |
![]() |
![]() |
#200 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
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.
|
![]() |
![]() |
![]() |
#201 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
For that LRF file, yes.
|
![]() |
![]() |
![]() |
#202 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#203 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
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.
|
![]() |
![]() |
![]() |
#204 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#205 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Send me the lit file.
|
![]() |
![]() |
![]() |
#206 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#207 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Both bugs squashed in 0.3.60
|
![]() |
![]() |
![]() |
#208 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#209 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#210 | |
Keen reader
![]() Posts: 4
Karma: -54
Join Date: Jun 2007
Device: kobo touch
|
Quote:
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 |
|
![]() |
![]() |
![]() |
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 |