Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2008, 08:14 PM   #646
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Adding a encoding='latin1' should take care of it
kovidgoyal is offline   Reply With Quote
Old 03-11-2008, 07:06 AM   #647
jackhammer
Member
jackhammer began at the beginning.
 
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
jackhammer is offline   Reply With Quote
Advert
Old 03-11-2008, 11:24 AM   #648
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,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.
kovidgoyal is offline   Reply With Quote
Old 03-16-2008, 01:02 PM   #649
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
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;}
So that when I want, for example, an invisible chapter mark i insert into the data stream

Code:
<h3>Chapter 1</h3>
html2lrf ignores the declared style of the h3 tag and actually inserts the chapter mark. This means that I have to do a re-edit for it. Have I missed something? Can it be fixed? Would you like for me to open a ticket on this?
Deputy-Dawg is offline   Reply With Quote
Old 03-16-2008, 01:45 PM   #650
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,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"
kovidgoyal is offline   Reply With Quote
Advert
Old 03-16-2008, 03:02 PM   #651
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Quote:
Originally Posted by kovidgoyal View Post
THe corresct way to acheive no display for an HTML element is the set
style="display:none" of style="visibility:hidden"
Thanks I've added that to my notes
Deputy-Dawg is offline   Reply With Quote
Old 03-16-2008, 03:48 PM   #652
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Quote:
Originally Posted by kovidgoyal View Post
THe corresct way to acheive no display for an HTML element is the set
style="display:none" of style="visibility:hidden"
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.
Deputy-Dawg is offline   Reply With Quote
Old 03-16-2008, 03:54 PM   #653
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,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}"
kovidgoyal is offline   Reply With Quote
Old 03-16-2008, 04:22 PM   #654
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
Posts: 153
Karma: 799
Join Date: Dec 2007
Device: sony prs505
Quote:
Originally Posted by kovidgoyal View Post
I'd suggest using the --override-css option of html2lrf

Something like

Code:
--override-css "h3{display:none}"
I'll try that. I had not realized that you could override a single item in the CSS, I assumed it was an all or nothing - don't know why, I just did.
Deputy-Dawg is offline   Reply With Quote
Old 03-16-2008, 04:45 PM   #655
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Deputy-Dawg View Post
I'll try that. I had not realized that you could override a single item in the CSS, I assumed it was an all or nothing - don't know why, I just did.
A natural assumption, but no, it only overrides what you ask it to
kovidgoyal is offline   Reply With Quote
Old 03-16-2008, 09:15 PM   #656
Deputy-Dawg
Groupie
Deputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-booksDeputy-Dawg has learned how to read e-books
 
Deputy-Dawg's Avatar
 
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?
Deputy-Dawg is offline   Reply With Quote
Old 03-16-2008, 09:55 PM   #657
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://libprs500.kovidgoyal.net/user....html#osxfonts
kovidgoyal is offline   Reply With Quote
Old 03-16-2008, 10:13 PM   #658
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
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?
bkilian is offline   Reply With Quote
Old 03-16-2008, 10:14 PM   #659
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,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.
kovidgoyal is offline   Reply With Quote
Old 03-16-2008, 11:08 PM   #660
bkilian
Zealot
bkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notesbkilian can name that song in three notes
 
Posts: 131
Karma: 24870
Join Date: Oct 2006
Device: Sony PRS/505
Quote:
Originally Posted by kovidgoyal View Post
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.
Excellent, thanks. Now a html2lrf question:
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.
bkilian 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 06:32 PM.


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