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

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2018, 01:22 PM   #31
Steven Wong
Member
Steven Wong began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura One
Thanks for your suggestion. I use epub, will try kepub later.
Steven Wong is offline   Reply With Quote
Old 08-19-2018, 11:15 AM   #32
Steven Wong
Member
Steven Wong began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura One
You are right. I use epub and get that result. I rename the file to .kepub.epub, then the English characters are displayed correctly. Thanks for your suggestion!

Quote:
Originally Posted by davidfor View Post
Are you using epubs or kepubs on the Aura ONE? They use different renderers, so the results will be different. I believe the kepub renderer handles Chinese better. I can't from the photo which it you are using.
Steven Wong is offline   Reply With Quote
Advert
Old 08-19-2018, 08:58 PM   #33
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 15,505
Karma: 25810738
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Quote:
Originally Posted by Steven Wong View Post
You are right. I use epub and get that result. I rename the file to .kepub.epub, then the English characters are displayed correctly. Thanks for your suggestion!
In that case, you should try the KoboTouchExtended driver or the Kepub Output plugin. The first will convert to kepub on the fly when sending a book to the device. The second is to convert to kepub in the library and then send later. These are needed as the kepub renderer expects certain things in the books. If they aren't done, then things like the reading position are not recorded correctly. Without them, the position will track OK when reading, but if you close and reopen a book, you probably won't get back to the right place.
davidfor is offline   Reply With Quote
Old 08-20-2018, 03:41 AM   #34
Steven Wong
Member
Steven Wong began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura One
Thanks David. I purchased KA1 in last month, and started to read in kepub (by rename) a few days ago. I find that last read position is incorrect, and now know the reason!
Steven Wong is offline   Reply With Quote
Old 08-20-2018, 03:47 AM   #35
Steven Wong
Member
Steven Wong began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura One
For those interested to use command line, you can try:
calibre-debug --run-plugin "Chinese Text Conversion" -- -h

to get a full list of supported arguments.
Steven Wong is offline   Reply With Quote
Advert
Old 09-06-2018, 06:18 AM   #36
Steven Wong
Member
Steven Wong began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura One
I cannot convert some books from Simplified Chinese to Traditional Chinese. I find that the text files inside epub are encoded in UTF8. Do you come across that? Here is part of a text file:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ibooks="http://www.apple.com/2011/iBooks" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="zh" xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"/><title>未命名</title><link rel="stylesheet" type="text/css" href="assets/css/content1.css"/></head><body><p id="p0" class="s1 s2">&#x94F6;&#x5E01;&#x6545;&#x4E8B;</p><p id="p1" class="s3 s4"><img class="s5" width="200" height="180" src="assets/images/730689864.jpg" id="image-31" alt=""/></p><p id="p2" class="s3 s4"><img class="s5" width="200" height="182" src="assets/images/809711190.jpg" id="image-32" alt=""/></p><p id="p3" class="s6 s7">*</p><p id="p4" class="s6 s7">&#x516C;&#x5143;&#x524D;527&#x5E74;&#x81F3;&#x 524D;430&#x5E74;&#xFF0C;&#x53E4;&#x4EE3;&#x5E0C;&# x814A;&#x57CE;&#x90A6;&#x56FD;&#x5BB6;&#x96C5;&#x5 178;&#x94F8;&#x9020;&#x7684;&#x8D27;&#x5E01;&#x53E B;&#x56DB;&#x5FB7;&#x62C9;&#x514B;&#x9A6C;&#x94F6; &#x5E01;&#x3002;&#x94F6;&#x5E01;&#x6B63;&#x9762;&# x662F;&#x5934;&#x6234;&#x76AE;&#x76D4;&#x7684;&#x5 973;&#x795E;&#x96C5;&#x5178;&#x5A1C;&#x5934;&#x50C F;&#xFF0C;&#x80CC;&#x9762;&#x662F;&#x96C5;&#x5178; &#x5A1C;&#x5973;&#x795E;&#x7684;&#x5B88;&#x62A4;&# x8005;&#x732B;&#x5934;&#x9E70;&#x3002;</p><p id="p5" class="s6</p></body></html>
Steven Wong is offline   Reply With Quote
Old 09-06-2018, 10:31 AM   #37
Hopkins
Member
Hopkins began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
The plugin is not set up to handle XML/HTML-style numerical character references.

Maybe someone here knows of a tool or plugin that can convert these into actual characters...
Hopkins is offline   Reply With Quote
Old 09-06-2018, 05:16 PM   #38
Hopkins
Member
Hopkins began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
Try this:

In the Editor select

Tools|Beautify All Files

See before and after pictures in a file where I added some numerical character references. The "Beautify" tool appears to convert them to actual Unicode code points.
Attached Thumbnails
Click image for larger version

Name:	BeautifyBefore.png
Views:	24
Size:	167.2 KB
ID:	166100   Click image for larger version

Name:	BeautifyAfter.png
Views:	21
Size:	163.4 KB
ID:	166101  
Hopkins is offline   Reply With Quote
Old 09-07-2018, 02:50 AM   #39
Steven Wong
Member
Steven Wong began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Aug 2018
Device: Kobo Aura One
It works! Thanks a lot for your help. Steven
Steven Wong is offline   Reply With Quote
Old 09-30-2018, 07:39 AM   #40
rayeung77
Junior Member
rayeung77 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2016
Device: Kindle paperwhite, Boox Notes
Hi there,

after install the Chinese plugin 2.31 in Calibre 3.32, the following message appears when I try to convert epub from simplified Chinese to Traditional Chinese, can you help ?

------------------------------------
Cannot Process: No file open for editing or the current file is not an (x)html file.
---------------------------------------

thanks
Attached Thumbnails
Click image for larger version

Name:	capture.JPG
Views:	21
Size:	123.5 KB
ID:	166598  
rayeung77 is offline   Reply With Quote
Old 09-30-2018, 09:10 AM   #41
Hopkins
Member
Hopkins began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
At the bottom of the pop-up menu is a field to choose how much of the book you wish to convert. The option allows people to change the entire book, or only a portion of the book.

Based on the error message, I believe you have chosen "Selected File Only" without selecting one of the HTML files on the left.

Select "Entire eBook" instead.
Attached Thumbnails
Click image for larger version

Name:	calibre_image.png
Views:	20
Size:	114.0 KB
ID:	166600  
Hopkins is offline   Reply With Quote
Old 09-30-2018, 10:38 AM   #42
rayeung77
Junior Member
rayeung77 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2016
Device: Kindle paperwhite, Boox Notes
it works! now I know to scroll down to the bottom and select "entire ebook", thanks a lot
rayeung77 is offline   Reply With Quote
Old 09-30-2018, 10:53 AM   #43
rayeung77
Junior Member
rayeung77 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2016
Device: Kindle paperwhite, Boox Notes
BTW the plugin seems can't batch convert several files at the same time, can it?
thanks
rayeung77 is offline   Reply With Quote
Old 09-30-2018, 08:23 PM   #44
Hopkins
Member
Hopkins began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
Yes and no.
The only way to convert several files at once is to use the command line option. There is no way to do it using the Calibre GUI.

You need to open a terminal (e.g. PowerShell on Windows, xterm on Unix) on your computer and change directory to the root of all your epub files.

To convert from simplified to traditional vertical text, enter the command at the shell prompt:

Code:
calibre-debug --run-plugin "Chinese Text Conversion" -- -ol tw -il cn -d s2t -qt e -td v -tdo r -a T **/*.epub
This will convert all epub files in that directory and below. The new files will have the same name as the old files except add a "T" to the end of the name. replace "epub" with "azw3" in the command if you have Kindle files. See post #28 above.
Hopkins 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
traditional and simplified chinese character set? mzmm ePub 3 05-10-2013 08:41 AM
Best ereader with (simplified) Chinese support in Australia fallsauce Which one should I buy? 3 12-29-2011 08:59 PM
A Simplified Chinese + English font that actually looks good macroexp Sony Reader Dev Corner 5 12-25-2010 12:08 AM
iLiad Enable Simplified Chinese handwriting ericshliao iRex Developer's Corner 2 04-15-2010 02:58 AM
Looking for Contemporary Simplified Chinese Books for PRS 505 eldon Sony Reader 2 08-25-2008 06:22 AM


All times are GMT -4. The time now is 02:40 PM.


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