Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2014, 09:16 AM   #1
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Angry Fonts, fonts, fonts ....

First, my situation at the moment.

I had to embed a font in an ePub in order to able able to display some diacritics, which were not in the stock font (of the Sony PRS-T1 if this matters, but try not to link your answer to this, I am not interested in a circumventional solution for T1) with calibre, again if that matters.

After embedding, I used the ePub preview of the calibre and saw no problem.

On all the eReaders I've checked this ePub, a certain unicode punctuation was replaced by the "missing character" glyph, a square in this case.

Now, the book has been heavily edited within calibre, that means the original XHTML files cannot longer be used for recreating the book.

So I am facing two alternatives:
- one is to change the font
- the other one is to export the ePub into a different format then reimport it with a new font

The first solution has the disadvantage of heavily editing (the initial font has been subset) and no control up to the hardware eReader.

The second one seems to destroy my carefully (and long) edited TOC. To which I have again no solution in sight.

Is it a method to replace the embedded font/s that only replaces the font/s, but doesn't alter nothing else (and subsequently also subset them)? And is there any method to check whether the glyphs used have indeed the required corresponding glyphs in the selected font?

I searched the internet, this forum and read the documentation, but couldn't find anything pertinent.

Thanks.
Ghitulescu is offline   Reply With Quote
Old 10-29-2014, 09:21 AM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Moved to the "Workshop" forum.
HarryT is offline   Reply With Quote
Advert
Old 10-29-2014, 10:29 AM   #3
Chi Cygni
秋子 permanently lurking
Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.Chi Cygni ought to be getting tired of karma fortunes by now.
 
Chi Cygni's Avatar
 
Posts: 839
Karma: 6587575
Join Date: Dec 2010
Location: Europe
Device: Oasis 3, Pocketbook Era
Don't quote me on this one and I may be wrong but last time I checked sony never liked special characters. When I was choosing ereader I realised that unless I tweak sony firmware there is no way it will display my fonts. Needless to say I decided not to buy sony ereader.
In short I suspect no matter which font you apply end result will be squares.

Good luck though.
Chi Cygni is offline   Reply With Quote
Old 10-29-2014, 11:04 AM   #4
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
The Sony is no different than any other eReader (I presume) if one embeds the fonts. That is, the fonts inside the ePub will be used instead of the stock fonts.

It works on all my eReaders.

My problem is that I embedded a wrong font. I need to correct this, without recompiling the book (I'll lose some formatting and the hand-made TOC).
That is my problem in fewer words .
Ghitulescu is offline   Reply With Quote
Old 10-29-2014, 11:12 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Ghitulescu View Post
The Sony is no different than any other eReader (I presume) if one embeds the fonts. That is, the fonts inside the ePub will be used instead of the stock fonts.

It works on all my eReaders.

My problem is that I embedded a wrong font. I need to correct this, without recompiling the book (I'll lose some formatting and the hand-made TOC).
That is my problem in fewer words .
That's no problem. An ePub book is just a ZIP file. Simply replace the font file (giving it the same name as the original) in the ZIP file.
HarryT is offline   Reply With Quote
Advert
Old 10-29-2014, 12:02 PM   #6
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Quote:
Originally Posted by Ghitulescu View Post
... (the initial font has been subset) ....
Quote:
Originally Posted by HarryT View Post
That's no problem. An ePub book is just a ZIP file. Simply replace the font file (giving it the same name as the original) in the ZIP file.
Ok, I'll see what I can do. I'll probably have to make sacrifice editions of the book with various unicode fonts to see whether the punctuation (or other diacritics) exist, then I'll see how these fonts subset, finally I'll see whether I have 3-4 fonts (for normal, bold, italic, bi) or only one, and do the replacement/s.
Ghitulescu is offline   Reply With Quote
Old 10-29-2014, 12:11 PM   #7
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 first can check if the font has the diacritics you need. Some use FontForge, but that is perhaps quite heavy. However, be aware that most fonts are not allowed to be embedded. One font that is allowed, is Charis Sil. It is also quite complete, although on the heavy side.
If you open your ePUB in Sigil or the Calibre Editor (I have a love/hate relationship with the Calibre editor with regards to fonts), you can replace all the fonts and adapt the stylesheet to ensure the fonts are used.

Subsetting of the fonts can be done with the Calibre Editor. My own program FontShrinker can also subset all the fonts in an ePUB, but you need the current version that is not released yet. The older version works differently and less friendly. I hope to release that one tonight, depending on some testing from one of the residents on this forum.
Toxaris is offline   Reply With Quote
Old 10-29-2014, 12:51 PM   #8
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
Quote:
Originally Posted by Toxaris View Post
You first can check if the font has the diacritics you need. Some use FontForge, but that is perhaps quite heavy.
I have two problems.

One is that I don't know which diacritics I use. I hoped there is a sort of automatic check, much in the sense calibre does when subsetting the fonts.

The second is to use, work, view, etc. fonts that are not within windows (in other words, not installed).

I hope your program would consider these two issues.
Ghitulescu is offline   Reply With Quote
Old 10-29-2014, 01:55 PM   #9
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
My program just retrieves all unique characters used for that specific font en removes all other glyphs from the font. It does not matter if the font is installed, as it only works with fonts embedded in the ePUB. It will take into account the whole font-family. So, if a character is used bold-italic but not in italic, it will be removed from the italic font but not the bold-italic font.

There is way to get all the characters in your ePUB. These will not be specified per font, but all. There is a report in Sigil called 'Characters in HTML files'.
Toxaris is offline   Reply With Quote
Reply

Tags
conversion, epub, font embedding


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add alternate fonts without replacing system fonts.(this time this is a guide) techiemonkey Kindle Developer's Corner 17 09-12-2012 04:55 PM
An Observation on Fonts - Improving readability by using *bold* versions of fonts nesler General Discussions 12 06-24-2012 12:33 PM
need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 hanpal Kindle Developer's Corner 1 02-20-2012 10:40 AM
Troubleshooting need the fonts in /usr/java/lib/fonts of kindle touch5.0.0 hanpal Amazon Kindle 0 02-20-2012 08:51 AM
Touch Fonts question (special characters in stock and custom fonts) levil Kobo Reader 20 09-23-2011 01:51 PM


All times are GMT -4. The time now is 12:21 PM.


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