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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2019, 07:07 AM   #1
coneheadZombie
Junior Member
coneheadZombie began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
Question about fonts and character .

While creating my first ebook i saw that a particular character wasnt been shown across some readers .

These are the characters : 「 and 」(left and right corner bracket).

Is this because of varying fonts in there readers ? also is there any way to fix it ?

Thanks in advance.
coneheadZombie is offline   Reply With Quote
Old 02-10-2019, 08:58 AM   #2
Doitsu
Wizard
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: 4,419
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by coneheadZombie View Post
These are the characters : 「 and 」(left and right corner bracket).
These characters are typically only used in CJK fonts and are only supported by readers/apps with CJK support.
You'll have to embed a suitable font.
If your book doesn't contain any other CJK characters, you also might want to subset the embedded font to keep the file size down.
Doitsu is offline   Reply With Quote
Old 02-10-2019, 11:41 AM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,147
Karma: 6100569
Join Date: Jul 2012
Device: Kobo Forma, Nook
Is this a Maths book?

Because there's also Ceiling/Floor characters, which are used for rounding up or down:

⌈3.4⌉ = 4

or

⌊3.4⌋ = 3

and look eerily similar to the CJK brackets used for quotes.

Quote:
Originally Posted by coneheadZombie View Post
Is this because of varying fonts in there readers ? also is there any way to fix it ?
Like Doitsu said, you'll typically have to embed a font when using more "rare" characters.
Tex2002ans is offline   Reply With Quote
Old 02-11-2019, 09:59 AM   #4
coneheadZombie
Junior Member
coneheadZombie began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2019
Device: Moon+Reader (Android)
Guys, Thanks for replying.

Quote:
Originally Posted by Tex2002ans View Post
Is this a Maths book?
Because there's also Ceiling/Floor characters, which are used for rounding up or down:
This not a maths books, im making a epub of a light novel. these are CJK characters.

Quote:
Originally Posted by Doitsu View Post
If your book doesn't contain any other CJK characters, you also might want to subset the embedded font to keep the file size down.
This book contains of Japanese text( other characters excluding these).

Do you know which font might me suitable for embedding ?

also how do i fix a particular for <p> in all devices ? do i have to add it in the css for <p> ?
coneheadZombie is offline   Reply With Quote
Old 02-11-2019, 11:13 AM   #5
Doitsu
Wizard
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: 4,419
Karma: 14368669
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by coneheadZombie View Post
Do you know which font might me suitable for embedding ?
List of CJK fonts
Doitsu is offline   Reply With Quote
Old 02-11-2019, 08:41 PM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,147
Karma: 6100569
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by coneheadZombie View Post
This book contains of Japanese text( other characters excluding these).

Do you know which font might me suitable for embedding ?
Hmmm, I'm not too familiar with Asian fonts. I only work with English + Latin-based languages.

Maybe Source Han Serif + Source Han Sans:

https://en.wikipedia.org/wiki/Source_Han_Serif

or the Noto fonts:

https://en.wikipedia.org/wiki/Noto_fonts

Those were designed by Adobe+Google.

When embedding fonts, you have to make sure the License is an Open License and allows embedding.

Quote:
Originally Posted by coneheadZombie View Post
also how do i fix a particular for <p> in all devices ? do i have to add it in the css for <p> ?
You can see the MobileRead Wiki for an example:

https://wiki.mobileread.com/wiki/EPu...Font_embedding

What you have to do is add the OTF files into the EPUB, then add a few lines of CSS:

Code:
@font-face { 
	font-family: "Source Han Sans";
	font-weight: normal;
	font-style: normal;
	src: url(../Fonts/SourceHanSans-Regular.otf);
}
You have to adjust that for bold + italic + bold/italic (and whatever other types you are embedding).

Then you have to add a little line to your <p> in the CSS:

Code:
p { 
	font-family: "Source Han Sans", serif;
	[...]
}
What this says is for every paragraph "use the 'Source Han Sans' font" + "if that doesn't exist, use the serif font".

If the font then displays correctly in Sigil/Calibre, then it's recommended to Subset the font in order to make the font files much smaller (it will only keep the characters your book actually uses).

In Calibre's Editor, you can Tools > Subset embedded fonts.

Or in Sigil, there's Toxaris's "ePUB Optimizer" plugin.

Or various other font subsetting tools out there.

Last edited by Tex2002ans; 02-12-2019 at 12:14 AM.
Tex2002ans 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
Character Encoding Question mikapanja Editor 11 06-28-2014 11:14 PM
Embedding fonts question holdit Sigil 41 02-27-2013 04:34 PM
Question about Fonts Japes PocketBook 11 12-18-2011 02:54 PM
Touch Fonts question (special characters in stock and custom fonts) levil Kobo Reader 20 09-23-2011 02:51 PM
Character morality question Steven Lake Writers' Corner 27 02-23-2011 02:05 AM


All times are GMT -4. The time now is 09:42 AM.


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