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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2017, 12:31 PM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
{font-size: 75%;} to substitute SMALL CAPS



I got currently an problem with SMALL CAPS: They don't function in my ereader (built 2015/16, so I assume in other ereaders is the same) - CSS font-size does. In calibre File Preview they function both.

Click image for larger version

Name:	SMALL CAPS vs font-size: 0.75em;.png
Views:	246
Size:	46.2 KB
ID:	154871
SMALL CAPS vs font-size: 0.75em;

Code:
span.small_font {font-size: 75%;}
75% (or 0.75em) works fine with the surrounding characters (in ereader). But it's not exactly SMALL CAPS.

What do you think about!?
chaot is offline   Reply With Quote
Old 02-09-2017, 12:47 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,621
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by chaot View Post
I got currently an problem with SMALL CAPS: They don't function in my ereader (built 2015/16, so I assume in other ereaders is the same)
If you're referring to:

Code:
 font-variant: small-caps;
it's indeed rarely supported by eInk rendering engines.
In addition to your solution some ebook designers embed a special small caps only font.

Last edited by Doitsu; 02-09-2017 at 04:53 PM. Reason: EDIT: Fixed CSS
Doitsu is offline   Reply With Quote
Advert
Old 02-09-2017, 01:10 PM   #3
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
You would be better off by embedding a small caps font like Doitsu said. That is the only way to get real small caps.
Toxaris is offline   Reply With Quote
Old 02-09-2017, 01:18 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,012
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Toxaris View Post
You would be better off by embedding a small caps font like Doitsu said. That is the only way to get real small caps.
But you would also need to embed the main font to be sure you got the correct small cap and the correct main font. Also, it depends on how often the small caps is used as to whether fonts should be used or the fake small caps should be used.
JSWolf is offline   Reply With Quote
Old 02-09-2017, 01:47 PM   #5
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
So?

Code:
span.small_font {font-variant-caps: small-caps;}
Warning: CSS Property: Unknown Property name

Fonts are Dejavu or Times New Roman: they are already in calibre. Or not?

Last edited by chaot; 02-09-2017 at 02:28 PM.
chaot is offline   Reply With Quote
Advert
Old 02-09-2017, 02:11 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,012
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chaot View Post
So?

Code:
span.small_font {font-variant-caps: small-caps;}
Warning: CSS Property: Unknown Property name

Fonts are Dejavu or New Times Roman: they are already in calibre. Or not?
Do you have a license to embed Time New Roman?
JSWolf is offline   Reply With Quote
Old 02-09-2017, 02:15 PM   #7
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
No!

I just look in the internet for free small cap fonts. But only there is this funny stuff, what I don't like.

I would like to have NTRoman, because it's an older book, so an older looking font is what I need. And it must look uniform.

EDIT: Is that not to transfer easily, such a .ttf file?

Last edited by chaot; 02-09-2017 at 02:31 PM.
chaot is offline   Reply With Quote
Old 02-09-2017, 02:47 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,012
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chaot View Post
No!

I just look in the internet for free small cap fonts. But only there is this funny stuff, what I don't like.

I would like to have NTRoman, because it's an older book, so an older looking font is what I need. And it must look uniform.

EDIT: Is that not to transfer easily, such a .ttf file?
You have to either have a license to be able to embed the fonts or they have to be public domain or be released under a license like the SIL license.

Now the problem you'll have is if you sell via Amazon, Mobi eBooks do not support embedded fonts and KF8/KFX eBooks default to not showing embedded fonts.
JSWolf is offline   Reply With Quote
Old 02-09-2017, 03:17 PM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,128
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Doitsu View Post
Code:
font-variant-caps: small-caps;

Just a small correction:
The code should be:
Code:
font-variant:small-caps
Turtle91 is offline   Reply With Quote
Old 02-09-2017, 04:41 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,765
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
But you would also need to embed the main font to be sure you got the correct small cap and the correct main font. Also, it depends on how often the small caps is used as to whether fonts should be used or the fake small caps should be used.
especially for fake small caps, I download from one US site that puts its headings, captions etc in fake small caps, looks bloody awful on my android tablet using Aldiko or Coolreader - sometimes indecipherable. Fortunately their code is sensible, so its easy to fix.

Small caps okay if usage is limited to front matter but don't bother with faking it, just let it default to real caps.

IMO faking small caps is akin to putting plastic hundreds-and-thousands (US nonpareils) on your kid's birthday cake

BR
BetterRed is online now   Reply With Quote
Old 02-09-2017, 04:54 PM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,621
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Turtle91 View Post
Just a small correction:
The code should be:
Code:
font-variant:small-caps
You're, of course right. I must have made a mistake copying the rule.
Doitsu is offline   Reply With Quote
Old 02-09-2017, 05:11 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,012
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by BetterRed View Post
especially for fake small caps, I download from one US site that puts its headings, captions etc in fake small caps, looks bloody awful on my android tablet using Aldiko or Coolreader - sometimes indecipherable. Fortunately their code is sensible, so its easy to fix.

Small caps okay if usage is limited to front matter but don't bother with faking it, just let it default to real caps.

IMO faking small caps is akin to putting plastic hundreds-and-thousands (US nonpareils) on your kid's birthday cake

BR
I have replaced the fake small caps with real ones when there were enough to bother with. If there's not enough, I won't bother.
JSWolf is offline   Reply With Quote
Old 02-10-2017, 10:44 AM   #13
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by Doitsu View Post
Code:
 font-variant: small-caps;
Yes, that was my CSS before (not functioning in ereader).

Quote:
Originally Posted by JSWolf View Post
But you would also need to embed the main font to be sure you got the correct small cap and the correct main font.
If I understand right: The small caps font and the main font should be the same font family. Of course! I don't will use any different, 'only a little bit similar' looking fonts.

Quote:
Also, it depends on how often the small caps is used as to whether fonts should be used or the fake small caps should be used.
Probably you mean: Is it worse to buy a related small caps and main font, if using only one? time. Of course not. It's a book for private use only. Not must be 100% correct.

@BetterRed #10 & @JSWolf #12: I don't really understand you both.
After all said above: Is it recommendable for me to continue with 'fake' small caps via
Code:
span.small_font {
  font-size: 75%;
}

Last edited by chaot; 02-11-2017 at 06:02 AM. Reason: delete a passage: unnecessary
chaot is offline   Reply With Quote
Old 02-10-2017, 10:55 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 75,012
Karma: 131375774
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Yes, if you don't have too many instances of small caps and the fake small caps won't be a bother then go ahead and use the fake small caps.
JSWolf is offline   Reply With Quote
Old 02-10-2017, 11:26 AM   #15
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
@JSWolf
Thanks! I use them only as a distinctive feature for some headings (to look like old style and original).
chaot 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
Font Size on New Books Is Too Small! go4me77 General Discussions 2 04-24-2012 11:51 AM
ePub font size is so small - was not a converted file, BTW paulak Conversion 3 04-19-2011 06:22 AM
DR1000 FW2.0 - RC2 - font-variant: small-caps ThR iRex 0 06-29-2010 05:31 AM
PRS-300 Med font size too big, but small font size too small eli2k Sony Reader 4 05-28-2010 09:47 AM
Small font size with epub in latest software. timt1961 HanLin eBook 7 09-21-2009 06:55 AM


All times are GMT -4. The time now is 09:05 PM.


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