Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 05-03-2015, 06:38 AM   #1
John123
Connoisseur
John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40
 
John123's Avatar
 
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
Displaying Chinese characters

Hi All,

I am attempting to display Chinese characters for an ebook. The characters display correctly in the Kindle file and on Sigil, using the font Adobe Song OTF, but don't on ADE.

I have tried other numerous epub ereader "apps" on both hudl2 and Samsung Galaxy Tab 4, none of which display these characters.

The infuriating thing is I thought I would have problems with the Kindle but that worked just great!

I have attached an example of both .epub and .mobi.

Thanks in advance,

John.
Attached Files
File Type: epub chinese test.epub (246.4 KB, 228 views)
File Type: mobi chinese test.mobi (531.6 KB, 206 views)
John123 is offline   Reply With Quote
Old 05-03-2015, 09:18 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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
You need to embed a font that contains chinese characters. Also, be aware that most readers do not support RTL.
Toxaris is offline   Reply With Quote
Advert
Old 05-03-2015, 09:35 AM   #3
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
AFAIK, only the latest ADE desktop version (4.x) supports CJK text, but only in ePub3 files. If you export your book with the Sigil ePub3 output plugin, the Chinese text will display fine with ADE 4.x. However, most dedicated eInk readers come with older versions. If you want to achieve full backwards compatibility, you'll have to convert the Chinese words to SVG images or recommend that the reader use alternative apps, for example, Gitden reader.

Last edited by Doitsu; 05-03-2015 at 10:00 AM.
Doitsu is offline   Reply With Quote
Old 05-03-2015, 11:45 AM   #4
John123
Connoisseur
John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40
 
John123's Avatar
 
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
Hi, and thanks for the replies.

I kinda guessed this would be the case, but I posted anyway in the forlorn hope you guys might have a simple workaround.

What you suggest would, of course, work but this is for general distribution and, as far as I know, Epub3 is still a bit of a way off for general usage.

Doitsu: using SVG images may prove to be the most elegant way, under the circumstances (i.e. Epub2), however, there are approximately 270+ Chinese words containing many different individual characters and I'm not that familiar with Illustrator. Also, I doubt it could be done quickly.

I may just suggest they only offer the Kindle version, since it's widely available on Android devices. Perhaps they could offer the epub, and put a disclaimer on it saying the Chinese characters will not display correctly.

I think I just stepped off the boardwalk on our little wild west town called Ebooks and got my feet muddy )

Thanks again,

John.
John123 is offline   Reply With Quote
Old 05-03-2015, 12:10 PM   #5
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by John123 View Post
Doitsu: using SVG images may prove to be the most elegant way, under the circumstances (i.e. Epub2), however, there are approximately 270+ Chinese words containing many different individual characters and I'm not that familiar with Illustrator. Also, I doubt it could be done quickly.
You could create SVG images with Inkscape (freeware). It's actually quite simple and it doesn't take much longer than copying and pasting the Chinese text. Here's a detailed tutorial by GrannyGrump.

Quote:
Originally Posted by John123 View Post
What you suggest would, of course, work but this is for general distribution and, as far as I know, Epub3 is still a bit of a way off for general usage. [...]

Perhaps they could offer the epub, and put a disclaimer on it saying the Chinese characters will not display correctly.
Have you tested Gitden Reader for Android? The iOS version even displayed your ePub2 version correctly. (Unfortunately, Gitden doesn't support ADEPT DRM.)

BTW, regarding the Chinese text, I'm only remotely familiar with Chinese, but, IIRC, Pinyin text requires accents to mark tones in Chinese and none of the Pinyin text in your excerpt had any.
For example, the book mentions director Jiang Wen, however, in proper Pinyin it should read Jiāng Wén.
Doitsu is offline   Reply With Quote
Advert
Old 05-04-2015, 11:05 AM   #6
John123
Connoisseur
John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40
 
John123's Avatar
 
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
Quote:
BTW, regarding the Chinese text, I'm only remotely familiar with Chinese, but, IIRC, Pinyin text requires accents to mark tones in Chinese and none of the Pinyin text in your excerpt had any. For example, the book mentions director Jiang Wen, however, in proper Pinyin it should read Jiāng Wén.
You are, of course, quite correct. However, I'm the monkey, not the organ grinder ) and would never dare correct an "academic"!!

Anyway, thanks for your advice. I followed GrannyGrump's tutorial and now have a test SVG file converted to paths from the proper font. Given that I have the coding:

<p class="Bibliography"><i>1911</i>. <i>Xinhai Geming</i> <span class="Chinese-Logograms">辛亥革命</span>. Directed by Jackie Chan <span class="Chinese-Logograms">成龙</span> and Zhang Li <span class="Chinese-Logograms">张 黎</span>. People’s Republic of China and Hong Kong: 2011.</p>

What would be the best way to introduce the SVG file into that senario. Bear in mind there are 270+ images to insert and I'm doing this as a favour. So don't want to spend too much time on it.
John123 is offline   Reply With Quote
Old 05-04-2015, 05:10 PM   #7
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by John123 View Post
What would be the best way to introduce the SVG file into that senario. Bear in mind there are 270+ images to insert and I'm doing this as a favour. So don't want to spend too much time on it.
If I were in your shoes, I'd simply hide all Chinese characters, because they don't add any value to the book and Chinese speakers can probably handle the simplified Pinyin text even though it lacks tone markers.

If that's not an option, I'd to the following:

1. Use this simple Sigil plugin to add consecutive ids to all Chinese-Logograms spans. (Enter span in the Tag box, class in the Attribute box and Chinese-Logograms in the Value box)

2. Generate all Chinese svg files using the incremental ids as the file name. I.e., I'd generate chinese1.svg for <span id="chinese1" class="Chinese-Logograms"> ... </span> etc.

3. Use a regular expression in Sigil to replace the Chinese-Logograms spans with an image reference based on the span id value. (If you plan to upload the book to several bookstores, you could of course keep the Chinese-Logograms spans and hide the images or vice versa, depending on the app/device.)

You'll obviously also need to add a style for inline svg images and fine-tune the vertical-align and height properties of the svg images.
Doitsu is offline   Reply With Quote
Old 05-04-2015, 05:48 PM   #8
John123
Connoisseur
John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40
 
John123's Avatar
 
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
Please forgive me, I'm very much a newbie here.

I added your plugin but it's asking me to set a path. Is there a step-by-step guide to using this plugin in the way you suggest?

A dummies guide for total dummies would be very useful

BTW: I have a Maths book incoming so this learning curve is very useful.
John123 is offline   Reply With Quote
Old 05-04-2015, 06:05 PM   #9
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by John123 View Post
I added your plugin but it's asking me to set a path. Is there a step-by-step guide to using this plugin in the way you suggest?
Sigil plugins require Python 2.7. If you have already installed Python, simply click the Auto button after Python 2.7. This should add C:/Python27/python2.exe to the text box, if you have a Windows machine.
If it doesn't work, you'll need to install ActivePython 2.7.8.10. (Python 3.4.1.0 doesn't work.)

Maybe you find the instructions for installing the ePubcheck plugin helpful. (You can ignore the Java information, if you don't want to actually install that plugin.)
Doitsu is offline   Reply With Quote
Old 05-04-2015, 07:39 PM   #10
John123
Connoisseur
John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40
 
John123's Avatar
 
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
Thanks, that all worked perfectly, I do get there ... eventually.

So, just to recap, this added: "id1", "id2", "id3" etc. incremently to all the Chinese Logograms spans as an aid to inserting "chinese1.svg", "chinese2.svg" and so on, to make sure I am inserting the correct image number into the correct slot.

Incidentally, it added a space after the close tag > where punctuation: period, colon, etc. followed this closing tag. No big deal it's easily search and replaced. It's just FYI.

Thanks again.
John123 is offline   Reply With Quote
Old 05-05-2015, 07:03 AM   #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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by John123 View Post
So, just to recap, this added: "id1", "id2", "id3" etc. incremently to all the Chinese Logograms spans as an aid to inserting "chinese1.svg", "chinese2.svg" and so on, to make sure I am inserting the correct image number into the correct slot.
Yep. BTW, you can also change the id prefix from "id" to "chinese" (or another unique value) in the plugin dialog.

Quote:
Originally Posted by John123 View Post
Incidentally, it added a space after the close tag > where punctuation: period, colon, etc. followed this closing tag.
This appears to be a "feature" of the Beautiful Soup HTML parser that my simple plugin uses for the searches. Unfortunately, I don't know how to fix this.
Doitsu is offline   Reply With Quote
Old 05-05-2015, 09:50 AM   #12
John123
Connoisseur
John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40John123 is slicker than a case of WD-40
 
John123's Avatar
 
Posts: 82
Karma: 73150
Join Date: Feb 2011
Location: Scottish Highlands
Device: Samsung Note, Kindle, hudl2
Hi, a very minor thing for such a major aid. I was worried about having to identify these images (270), with a visual. Since I'm not Chinese this task was onerous in the extreme. The plugin greatly simplified this procedure.

Once again thanks for all your help!!
John123 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Chinese? Characters Rand Brittain ePub 8 04-05-2014 01:51 PM
Displaying french characters on Japanese Kindle PW Tekeur Amazon Kindle 6 05-04-2013 10:12 AM
Glo Chinese ebook not displaying dpoon73 Kobo Reader 7 12-28-2012 12:03 AM
KoboTouch displaying boxes instead of cyrillic characters mewakitty Kobo Reader 8 07-29-2012 07:05 AM
CE characters not displaying citac Sigil 18 10-08-2010 08:07 AM


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


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