![]() |
#1 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
[Editor Plugin] Traditional<->Simplified Chinese Convertor
Currently, the Chinese language is written with two different standardized character sets. The Chinese mainland and Singapore officially use the simplified set while other areas (such as Taiwan and Hong Kong) continue to largely use the traditional set. This plugin will allow users to convert EPUB and AZW3 files between both formats.
If only text format changes are desired (such as flow direction or quotation mark types), character set changes can be omitted. This allows changes to non-Chinese texts such as Japanese. Main Features
Testing Platforms
Note:
Github repository link Command Line Interface(CLI) Details: Spoiler:
Installation Steps: Download the attached zip file and install the plugin/add to context menu or toolbar/restart Calibre as described in the Introduction to plugins . Operation: From the main Calibre window, select a book and then press the "Edit book" icon on the toolbar. The editor will open. Press the "plugins" text on the editor toolbar and select the plugin. Special Notes:
Version History: Spoiler:
Last edited by Hopkins; 03-27-2023 at 12:59 PM. Reason: Fix Version: 3.0.1 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,970
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks, I have added it to the plugin index.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() ![]() Posts: 9
Karma: 100
Join Date: Jun 2011
Device: Nook, Nook Color, ASUS, Galaxy
|
Wow. Thank you. I finally can check out simplified Chinese books from my library. I have been waiting for a useful tool like this. Thank you SO MUCH.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Oct 2016
Device: Kindle PaperWhite
|
This plugin is really useful, and I use it all the time. However, I have two little recommendations for you.
1) this plugin can't convert the Chinese words inside metadata and table of contents 2) it would be perfect if there is a bulk convert function i look forward to the next update~ |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
Those changes look like they would be very useful. I have spare time, so I think I can take a quick cut at it next week.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
Update to 2.0.0
Plugin updated:
- Added command line processing to support batch processing - Updated dictionary (txt) files based on OpenCC changes:- Plugin now updates Table of Contents (TOC) and Content metadata. The GUI updates both only if the "Entire eBook" option selected. Command line always does the entire book. |
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2017
Device: kindle
|
I have tried installing this plugin multiple times, both through Calibre and manually. Each time I get a message that the Plug in is installed and and to restart the machine. However Once i restart the Machine the plug in is listed as not installed. Here is the log after I install it.
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
I just noticed I have the same problem. When I look at the "User Plugins" dialog window in the main program, I see that the plug is in the "Not Installed" list. But when I open the editor, I see that the plug is available (and works) under the "Plugins" menu.
Try this:
Check if there is an entry called "Convert Chinese Text Simplified/Traditional". It's possible that the plugin is actually installed, but not properly registering with the main library application. Let me know what happens. Edit: Also, try this in the main Calibre window:
The plugin shows up in the list in this dialog in my case. Last edited by Hopkins; 01-11-2017 at 10:22 AM. |
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Hopkins: I think this means you have a name mismatch somewhere in the plugin. From memory, when I did this with one if my plugins, I had to uninstall it before the correct name would take.
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
I think I see the issue. The name given in the plugin index and displayed via the "User Plugins" dialog is "Traditional<->Simplified Chinese Converter" where as the name I used in the plugin is "Chinese Text Conversion". I believe I changed the name at one point because the command shell processor and command line parser got annoyed when I used characters such as "<", "-", and ">".
I think the name in the plugin index may need to be changed. For anyone writing plugins that may eventually use the command line interface:
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2017
Device: kindle
|
Your right, it did install. Thank you much.
|
![]() |
![]() |
![]() |
#12 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Kindle
|
Hi,
tested with calibre 2.55.0+dfsg-1 on Ubuntu 16.04, the editor could not load the plugin. Not sure if I missed some dependency Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Kindle
|
It's API changed, the patch[1] works for me. :-)
[1] https://gist.github.com/chihchun/eee...9c1f62e8a84f39 |
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Jun 2016
Location: Minnesota USA
Device: Amazon Paperwhite 3G
|
I see what happened. It looks like the API was changed in version 2.59 back in June 2016. I added the TOC stuff in the last plugin update in November 2016 but never tested on early versions. I'll incorporate your change and update the minimum version information to 2.55 (though it may very well work for earlier versions)
I was looking for an excuse to update the changes to the conversion dictionaries that were made to OpenCC since my November update: https://github.com/BYVoid/OpenCC/com...ata/dictionary I'll also add some text to my original post explaining how users can update their conversion dictionaries (they are just UTF-8 text files) in case I'm not around in the future... |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Kindle
|
Thank you, it would be great if you could host your code on github.com or somewhere that I can propose a pull request. :-)
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
traditional and simplified chinese character set? | mzmm | ePub | 3 | 05-10-2013 07:41 AM |
Best ereader with (simplified) Chinese support in Australia | fallsauce | Which one should I buy? | 3 | 12-29-2011 07:59 PM |
A Simplified Chinese + English font that actually looks good | macroexp | Sony Reader Dev Corner | 5 | 12-24-2010 11:08 PM |
iLiad Enable Simplified Chinese handwriting | ericshliao | iRex Developer's Corner | 2 | 04-15-2010 01:58 AM |
Looking for Contemporary Simplified Chinese Books for PRS 505 | eldon | Sony Reader | 2 | 08-25-2008 05:22 AM |