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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 09-05-2011, 10:18 PM   #1
Techbar
TechnoGeek
Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.
 
Techbar's Avatar
 
Posts: 26
Karma: 3202
Join Date: Jul 2011
Location: Hamilton, New Zealand
Device: Onyx Boox i62HD Firefly, Kobo Touch, Asus Transformer TF201, IPAQ 212
Font in book view

I'm experimenting (ie learning) with converting a plain text file to an epub book. Because it is a text file there are no fonts specified in the document and Sigil seems by default to show the text in a sans-serif font when in the book view pane. I prefer a serif font when reading but havent found anywhere I can change to this. It's not a problem when the file is in my Kobo because I can specify the font in the reader - I just want to be able to change the default font in Sigil to make my proof reading easier. Is there anywhere I can do this? I haven't managed to find it if there is.
Techbar is offline   Reply With Quote
Old 09-06-2011, 03:09 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You have to change that in the stylesheet. If you want to do it for the whole document, put it in a body specification.
Toxaris is offline   Reply With Quote
 
Advertisement
Old 09-06-2011, 09:09 AM   #3
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 582
Karma: 2000358
Join Date: Aug 2010
Location: East Texas
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
To expand a bit on the comment made by Toxaris and I can only vouch for this on Windows systems.

Apparently Sigil will use the Windows font files to display the text in "book view" if it is specified in the css. It is not necessary to have the font files present in the ebook itself.

I insert the following line in the <body> definition:

font-family: Times New Roman; (pick one)

I remove it on the last pass since there are no font files present and it might cause problems for those few ereaders that support in line fonts.

If you are not using Windows you can try it and see what happens - it can't hurt.

Regards - John
Jabby is offline   Reply With Quote
Old 09-06-2011, 02:24 PM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
It is not required to actually name a font. Just:
Code:
body {
font-family: serif;
}
is enough.
Toxaris is offline   Reply With Quote
Old 09-06-2011, 02:26 PM   #5
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 236
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
Will doing that with a non-embedded font trigger the dreaded QTWebKit bug?
Rand Brittain is offline   Reply With Quote
Old 09-06-2011, 04:05 PM   #6
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
No, WebKit's problems with italics and bold only extend to fonts embedded in the epub (and there are hopeful signs that it might finally be fixed with the release of Qt 4.8). You won't have this problem if you use a generic font-family or specify a system font name.
charleski is offline   Reply With Quote
Old 09-06-2011, 04:24 PM   #7
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 582
Karma: 2000358
Join Date: Aug 2010
Location: East Texas
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
Quote:
Originally Posted by Toxaris View Post
It is not required to actually name a font. Just:
Code:
body {
font-family: serif;
}
is enough.
Thanks. That is a handy bit of info I can put to use now. This makes it easy to go back and forth (serif/sans serif).

Regards - John
Jabby is offline   Reply With Quote
Old 09-06-2011, 05:48 PM   #8
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 236
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
Quote:
Originally Posted by charleski View Post
No, WebKit's problems with italics and bold only extend to fonts embedded in the epub (and there are hopeful signs that it might finally be fixed with the release of Qt 4.8). You won't have this problem if you use a generic font-family or specify a system font name.
I did look into the status of that bug a while back, and saw that it was something like "We've decided to forego fixing the bug in favor of rewriting the entire fonts API." I'm not a programmer though, so although I could see that somebody was doing work I wasn't terribly sure what the work was or what it meant.
Rand Brittain is offline   Reply With Quote
Old 09-07-2011, 03:29 AM   #9
Techbar
TechnoGeek
Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.
 
Techbar's Avatar
 
Posts: 26
Karma: 3202
Join Date: Jul 2011
Location: Hamilton, New Zealand
Device: Onyx Boox i62HD Firefly, Kobo Touch, Asus Transformer TF201, IPAQ 212
Many thanks one and all. I'm off to learn a bit more about style sheets and definitions (and html in general) The file has been converted from raw text so Sigil hasn't created any styling - it's all up to me now... I had hoped that Sigil might have had a place where you could define what default font it would use for display (just like my e-reader does) but it doesn't seem like that is the case. Still, for version 0.4 (and free) it's pretty good and fairly intuative to use.
Regards
James
Techbar is offline   Reply With Quote
Old 09-07-2011, 06:33 AM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Actually, why would Sigil do that? By default your reader has a serif and a non-serif font and sometimes more. An ePUB will refer to the default serif or non-serif font. If you want another font, you either have to include it in the ePUB or specify it on the reader. The latter is usually not possible.
The display in Sigil is not intended as a reading option.
BTW, Sigil will not create any styling for you. That's up to you and actually a big strength of the program.
Toxaris is offline   Reply With Quote
Old 09-07-2011, 08:48 AM   #11
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,263
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Techbar View Post
Many thanks one and all. I'm off to learn a bit more about style sheets and definitions (and html in general) The file has been converted from raw text so Sigil hasn't created any styling - it's all up to me now... I had hoped that Sigil might have had a place where you could define what default font it would use for display (just like my e-reader does) but it doesn't seem like that is the case. Still, for version 0.4 (and free) it's pretty good and fairly intuative to use.
Regards
James
For (raw) TXT files, I usually run them through Calibre first, then touch the result up with Sigil. Saves a whole lot of work
theducks is online now   Reply With Quote
Old 09-07-2011, 09:37 AM   #12
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by theducks View Post
For (raw) TXT files, I usually run them through Calibre first, then touch the result up with Sigil. Saves a whole lot of work
This is the best route to go. calibre has very good and advanced detection for paragraphs and formatting. Combined with heuristic processing you can get about 85 - 90% formatted.
user_none is offline   Reply With Quote
Old 09-07-2011, 05:10 PM   #13
Techbar
TechnoGeek
Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.Techbar could sell banana peel slippers to a Deveel.
 
Techbar's Avatar
 
Posts: 26
Karma: 3202
Join Date: Jul 2011
Location: Hamilton, New Zealand
Device: Onyx Boox i62HD Firefly, Kobo Touch, Asus Transformer TF201, IPAQ 212
Quote:
Originally Posted by Toxaris View Post
Actually, why would Sigil do that?
purely for the convenience/comfort of the user while checking the book creation. Some of us find a serif font is easier to follow accross the page (there is a reason why books are usually printed with serif fonts!).

Quote:
Originally Posted by Toxaris View Post
BTW, Sigil will not create any styling for you. That's up to you and actually a big strength of the program.
Don't have a problem with that - I have to use MS Word etc at work and get constantly frustrated when it keeps wanting to do things I don't want it to do!

I'm a comms tech by trade, don't know much about html - just have to learn something new.

James
Techbar is offline   Reply With Quote
Old 09-10-2011, 01:55 PM   #14
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,183
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by Techbar View Post
purely for the convenience/comfort of the user while checking the book creation. Some of us find a serif font is easier to follow accross the page (there is a reason why books are usually printed with serif fonts!).
The problem is of course that if you can set a DISPLAY font for Sigil, a lot of people will expect that font to be in the ePUB when they put it on there reader. Actually, I find a serif font easier to read than non-serif in a book. However, the default will depend on the reader application. That is the reason that I always set the font-family to serif. It is easy and does the job.
Toxaris is offline   Reply With Quote
Old 09-11-2011, 05:13 AM   #15
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,316
Karma: 4963983
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Toxaris View Post
That is the reason that I always set the font-family to serif. It is easy and does the job.
But with the Cybook Orizon, for example, that overrides the font selected by the user, so use with care
Jellby 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
quotes differences book view & code view cybmole Sigil 13 03-29-2011 02:53 AM
lock book view & code view windows into synch cybmole Sigil 5 01-19-2011 11:30 PM
Font Size in Library View Archon Calibre 2 12-13-2010 08:47 PM
Is it possible to view the Format of a book in Library view? highwaykind Calibre 6 01-23-2010 07:28 PM
Changing font for code view mode matthewyi Sigil 2 11-05-2009 03:20 PM


All times are GMT -4. The time now is 02:48 PM.


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