Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2009, 11:45 AM   #1
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
Set default font for LRF?

Hope this isn't too dumb of a question: I'm trying to convert a .txt to a .lrf file for my Sony PRS-500. I want it to default to a sans-serif, like Arial. How do I do that?
daruking is offline   Reply With Quote
Old 03-03-2009, 12:34 PM   #2
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: 25,622
Karma: 4998489
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
use override css and set

body{ font-family: sansserif}
p { font-family: sansserif}
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Old 03-03-2009, 01:02 PM   #3
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 780
Karma: 194642
Join Date: Dec 2007
Location: Argentina
Device: Kindle PaperWhite, Motorola Xoom
Quote:
Originally Posted by kovidgoyal View Post
use override css and set

body{ font-family: sansserif}
p { font-family: sansserif}
I think correction is needed:

Code:
body{ font-family: sans-serif}
p { font-family: sans-serif}
kiklop74 is offline   Reply With Quote
Old 03-03-2009, 01:19 PM   #4
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
I've attached an image of the resulting lrf. The font looks like courier to me or at least a sarif font. I used with and without the dash:

body{ font-family: sans-serif}
p { font-family: sans-serif}

Thanks!

David
Attached Thumbnails
Click image for larger version

Name:	IMG_2215.JPG
Views:	142
Size:	408.1 KB
ID:	24915  
daruking is offline   Reply With Quote
Old 03-03-2009, 01:26 PM   #5
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 780
Karma: 194642
Join Date: Dec 2007
Location: Argentina
Device: Kindle PaperWhite, Motorola Xoom
This one works for me just fine:

Code:
txt2lrf --override-css="body{font-family: sans-serif} p{font-family: sans-serif}" book.txt
kiklop74 is offline   Reply With Quote
Old 03-03-2009, 01:30 PM   #6
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
I was using the gui. Do you have to type it different in the gui?
daruking is offline   Reply With Quote
Old 03-03-2009, 01:40 PM   #7
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 780
Karma: 194642
Join Date: Dec 2007
Location: Argentina
Device: Kindle PaperWhite, Motorola Xoom
This is how you should setup in the gui:

kiklop74 is offline   Reply With Quote
Old 03-03-2009, 01:55 PM   #8
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
Attached is what I have it set to and I still get the courier type font. Strange!

Thanks,

David
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	123
Size:	253.5 KB
ID:	24929  
daruking is offline   Reply With Quote
Old 03-03-2009, 02:14 PM   #9
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 780
Karma: 194642
Join Date: Dec 2007
Location: Argentina
Device: Kindle PaperWhite, Motorola Xoom
This looks like older version of calibre. Download and install latest version and report your findings.
kiklop74 is offline   Reply With Quote
Old 03-03-2009, 02:17 PM   #10
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
OK, looks like it's working, but I ran into another issue. When calibre runs across Line Feeds in the .txt file, it switches the font back to that original one I was seeing. I have sans-serif until that point.

I guess I could just parse out those, but that's kind of a pain!

Thanks for sticking with me through this. I appreciate it!

David
daruking is offline   Reply With Quote
Old 03-03-2009, 02:30 PM   #11
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: 25,622
Karma: 4998489
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
switc the output format to epub and you should be fine
kovidgoyal is online now   Reply With Quote
Old 03-03-2009, 05:06 PM   #12
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
It doesn't appear that I can epub books to my PRS-500.
daruking is offline   Reply With Quote
Old 03-03-2009, 05:07 PM   #13
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,516
Karma: 11248282
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by daruking View Post
It doesn't appear that I can epub books to my PRS-500.
You are correct. The 500 only supports LRF.

BOb
pilotbob is offline   Reply With Quote
Old 03-03-2009, 05:15 PM   #14
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: 25,622
Karma: 4998489
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run markdown-calibre on the txt file and look and post an extract frm the resulting HTML
kovidgoyal is online now   Reply With Quote
Old 03-03-2009, 05:54 PM   #15
daruking
Member
daruking began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2006
I ran it, but it bombed out with errors. Do you just get a command line and then type markdown-calibre text.txt?
daruking is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetch News - Where is set the Default Time for Every 1.0 day? mrjcleaver Calibre 2 10-06-2010 07:27 PM
set default ebook viewer window size? smee Calibre 3 10-02-2010 07:24 PM
Default font set? brainycat PocketBook 13 06-03-2010 03:19 AM
feed to lrf, how do I change font (or have default font) lovemov Calibre 3 03-16-2009 10:57 PM
lrf with Embedded Font vs Default - speed? pitolee Sony Reader 3 04-13-2007 08:50 AM


All times are GMT -4. The time now is 12:38 AM.


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