![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Chinese characters
I need to display a half dozen Chinese characters in a book.
The smallest Chinese font is 4 MB. Others are 8 or more. So embedding it makes the file 20 times larger for those 6 characters. So I could optimise the font, but I don't want to optimise my other fonts. Is there a tool that lets me choose which fonts to optimise? Or is it safe to just let it use a system font? Does every system have a Chinese font these days? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Yes, you can subset a font before embedding it of course. I wouldn't count your luck with system fonts though...
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Yes, subsetting the font (so it only contains the glyphs actually used in the book) is the best way to do this.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,725
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
You could also convert them to SVG images with Inkscape.
|
![]() |
![]() |
![]() |
#5 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,346
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Only 6 characters - I'd make them an image.
If you really want it as a font you can subset just that font by removing any other fonts and running it through a subsetter like Calibre editor, then add the other fonts back in. (wow...4 "fonts" in one sentence!! ) |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Both just crashed "index out of bounds". I'm running XP, I thought that was supported. Maybe big Chinese fonts overflow something. I don't have time at the moment to diagnose, but probably can try out other things in a few days. Calibre's font optimizer works, and reduces the Chinese font from 6 MB to 3MB. Which is better than nothing, but completely absurd for 5 unique characters. It would be several images, one for each character, in the English text as the smart arse author shows off his Chinese literacy. I'd have another series of hassles trying to make them display correctly, in the right position and size. I need to get this out very soon, so if nothing else comes along, I'll just have to bloat the file by 3 MB. Last edited by AlanHK; 08-09-2015 at 09:09 AM. |
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
With the FontShrinker you can also just enter the characters you want to keep and give only the chinese file. You should be getting a subsetted font that way, ready to be embedded into the ePUB. |
|
![]() |
![]() |
![]() |
#8 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Maybe tomorrow I will try again and with some other fonts and send you the files if it still fails. |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Good luck!
|
![]() |
![]() |
![]() |
#10 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
|
Something you might try ---
Download TypeLight from http://cr8software.net/software.html Now, this will get just a little tedious, but for only 5 or 6 characters, almost painless. The main pain is the endless confirmation dialogs you encounter. Open TypeLight. Go to menu View-->Preferences, and make sure "Paste to make composite glyphs" is UNCHECKED. Open the font you want to pull a character from. Find the glyph (the small browser window on the right-hand side of the window lets you choose the Glyph List or the Code Pages, choose your poison). Double-click the glyph you want to copy. Press CTRL A or menu Glyph-->Select All. Press CTRL X or menu Edit-->Copy Glyph. Now go to menu Font--> New, enter a name or accept default. Now menu Glyph-->New Glyph. Press CTRL V or menu Edit-->Paste. Drag the vertical GREEN line to the right edge of the new glyph. If the glyph needs to be re-aligned horizontally or vertically, Select All, and use keyboard arrow keys to nudge it, or make sure the "Select" icon is highlighted on the small editing toolbar, and click and drag the glyph into place. Now scroll through the Code Pages to find the character you want to map the glyph to. When you find and highlight it, click the little "Map" tab at the top of the browser dialog. Go to menu File-->Save AS, and save your new custom font. Reopen the source font to copy another glyph, open your custom font, make another new blank glyph and paste in the copy; map it to the desired character. Rinse, lather, repeat. If your source glyphs are from several different fonts, they might need resizing. To fix that problem, you would need the trial version of Type3.2 Pro. It is not time-limited, the only limitation is that it only saves the first 50 glyphs (and a nag screen every time you launch.) But it has a "stretch" button and other additional tools not available in TypeLight. This step-through sounds a lot more complicated than it really is. Give it a try. I have been intending to write a tutorial for this program for a while now, maybe this will get my wheels turning. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Displaying Chinese characters | John123 | Workshop | 11 | 05-05-2015 09:50 AM |
Displaying Chinese? Characters | Rand Brittain | ePub | 8 | 04-05-2014 01:51 PM |
PRS-T3 Need T3 directly supporting Chinese Characters! | sbwtxj | Sony Reader | 8 | 11-15-2013 06:34 AM |
CHM to MOBI: Just getting chinese characters | rcollette | Conversion | 0 | 02-15-2012 05:57 PM |
Chinese characters on the Sony Reader | Snappy! | Sony Reader | 0 | 11-09-2006 12:13 AM |