![]() |
#646 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Adding a encoding='latin1' should take care of it
|
![]() |
![]() |
![]() |
#647 |
Member
![]() Posts: 14
Karma: 20
Join Date: Jan 2008
Device: PRS-505
|
Css sheet handeling
how does libprs500 handle External Css pages ?
I am working on a html book and it has an external css page that seems to be ignored. if I put the html file and cover jpg and css page in a zip file will libprs know what to do with it ? thx |
![]() |
![]() |
Advert | |
|
![]() |
#648 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you put it in a zip file and the src attribute of the <link> tag is the filename, it will be picked up.
|
![]() |
![]() |
![]() |
#649 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
|
Kovid,
I have found an anomaly in html2lrf that is somewhat troublesome for me. I create a large number of files in some of my projects, like the bible projects. I then will produce from them some specialized PDF files because of the need for hierarchical TOCs which are not suppoted in the BBeB format. I will also produce "single" books in the BBeB format from the same files. In order to use the "tags" feature in Acrobat I will frequently use the following in my style declaration or in my style sheet: Code:
H3 {font-size:0.1pt; color:white;} Code:
<h3>Chapter 1</h3> |
![]() |
![]() |
![]() |
#650 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
THe corresct way to acheive no display for an HTML element is the set
style="display:none" of style="visibility:hidden" |
![]() |
![]() |
Advert | |
|
![]() |
#651 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
|
|
![]() |
![]() |
![]() |
#652 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
|
No doubt that is the "correct" way of doing it. Certainly any HTML element set with such styles is not displayed or is invisible in a browser (I am using Safari and FireFox for testing). It is also a fact that such un-displayed or invisible elements are not seen by Adobe Acrobat Pro V8. The only way that I have found that lets me use the tags in PDF is the kludge I have come up with. What truly surprises me is that the font-size is ignored. Color, well, color of typescript is not as widely supported as size.
|
![]() |
![]() |
![]() |
#653 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'd suggest using the --override-css option of html2lrf
Something like Code:
--override-css "h3{display:none}" |
![]() |
![]() |
![]() |
#654 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
|
|
![]() |
![]() |
![]() |
#655 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#656 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
|
On to another issue. I want to try embedding some fonts to see if it gives any advantage. When i go to select the font I want to embed in the lbprs500 GUI interface I do not see the font I want in the drop down menu. What is even stranger I see several fonts which I do not believe are installed let alone activated on my computer. I use a font management program, Suitcase. What and how does lbprs500 and html2lrf determine what fonts are avilable?
|
![]() |
![]() |
![]() |
#657 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#658 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
|
Hey Kovid, quick technical question on the BBEB format, if you include multuiple references to the same image, does it do the smart thing, or does it embed the image multiple times?
|
![]() |
![]() |
![]() |
#659 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It can do either. What it does depends on the tool you use to generate it. html2lrf includes an image at a particular path only once.
|
![]() |
![]() |
![]() |
#660 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
|
Quote:
I have a 590x790 image, and then right after it, a H3 with "Chapter 12" in it. When I put that through html2lrf I get the image, a blank page and then the H3. I'm wondering where the extra blank page came from, and how I could make it go away. Also, what do you figure is the perfect size for a full page graphic? I'd prefer for the book or html2lrf to not have to resize it for me. |
|
![]() |
![]() |
![]() |
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 |