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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2018, 10:41 PM   #1
wealthtsay
Member
wealthtsay began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
When Calibre convert, the input language is zh-tw, but the output language become zh

When Calibre convert a book, the input book language is "zh-tw"(traditional Chinese), but the output book language will become "zh"(Simplified Chinese).

I want the output book language (zh-tw) is the same as the input book language (zh-tw).

Please help to correct this error in later software updates.

For example: epub (content.opf)

Input book: <dc:language>zh-tw</dc:language>
Output book: <dc:language>zh</dc:language>
wealthtsay is offline   Reply With Quote
Old 04-26-2018, 11:14 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does not support country specific language variants. So you will need to either correct it manually or simply leave the langauge field in calibre blank, in which case it wont set the language.
kovidgoyal is offline   Reply With Quote
Old 04-26-2018, 11:23 PM   #3
wealthtsay
Member
wealthtsay began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
My input format is epub, output format is mobi. How either correct it manually on mobi files ?
wealthtsay is offline   Reply With Quote
Old 04-26-2018, 11:40 PM   #4
wealthtsay
Member
wealthtsay began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
If I simply leave the langauge field in calibre blank on epub file. But the converted mobi files language is "zh", not "zh-tw". How to resolve it ? Thank you
wealthtsay is offline   Reply With Quote
Old 04-26-2018, 11:50 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Convert to azw3 to MOBI. ANd you can edit the azw3 in the calibre editor.
kovidgoyal is offline   Reply With Quote
Old 04-27-2018, 12:02 AM   #6
wealthtsay
Member
wealthtsay began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
When I use the calibre editor and open the metadata.opf to edit the AZW3 language from "zho" to "zh-tw" , and save it. But when I edit this azw3 again, the language changes back to "zho"

How to resolve it ?
wealthtsay is offline   Reply With Quote
Old 04-27-2018, 05:24 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then I'm afraid you are out of luck, sorry. Looking a the AZW3 output plugin code, it looks like it also does not support language + country metadata.
kovidgoyal is offline   Reply With Quote
Old 04-27-2018, 05:49 AM   #8
wealthtsay
Member
wealthtsay began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
Can Calibre solve this problem in future updates?

Thank you very much
wealthtsay is offline   Reply With Quote
Old 04-27-2018, 06:17 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's certainly possible, but it is a fairly large amount of work (one has to write code to parse and validate http://www.rfc-editor.org/rfc/rfc5646.txt codes and then check that they actually work on a kindle).
kovidgoyal is offline   Reply With Quote
Old 04-30-2018, 10:36 PM   #10
wealthtsay
Member
wealthtsay began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jun 2017
Device: kindle paperwhite
Ok. Please resolve this issue at next system update as soon as possible, thank you very much.
wealthtsay is offline   Reply With Quote
Old 06-05-2019, 04:43 PM   #11
yuleshow
Junior Member
yuleshow began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2019
Device: Kindle Paperwhite
Yes, please resolve this. It's very important for Chinese readers. Chinese has two systems, Simplified Chinese (zh) and Traditional Chinese (zh-TW), both are a conflict with each other.
yuleshow is offline   Reply With Quote
Old 06-06-2019, 03:34 AM   #12
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,490
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Calibre is open source, and Kovid is open to pull requests. If it's an issue that severely affects Chinese readers, perhaps one that also has technical skills will look at implementing it.
pdurrant is offline   Reply With Quote
Old 06-06-2019, 02:39 PM   #13
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Amazon only officially added support for books in Traditional Chinese in May of this year. Books sold by Amazon in Traditional Chinese are only delivered in KFX format, not KF8/AZW3. I do not know if this is due to a limitation in the KF8 renderer, which is based on an outdated version of webkit, or whether it is just intended to promote lock in to their ecosystem.

The KFX Output plugin for calibre can convert Traditional Chinese into KFX format when used in conjunction with the latest version of Amazon's Kindle Previewer. A KFX supporting Traditional Chinese is output by the Previewer for language codes of zh-CHT, zh-Hant, zh-HK, zh-MO, and zh-TW.

The KFX Output plugin works around the problem discussed in this thread by examining the source EPUB to see if the actual HTML content specifies a country code and if so moving it into the OPF before conversion.

Added: Currently KFX only supports horizontal text for Traditional Chinese, but it appears that Amazon is working on handling vertical text in the future.

Last edited by jhowell; 06-06-2019 at 03:10 PM.
jhowell is offline   Reply With Quote
Old 06-06-2019, 03:45 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,280
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
And perhaps we should ask which language designation system should be used. Should Kovid attempt to support such forms as zh-Hant and zh-Hans for traditional and simplified? Or older deprecated forms? See IANA language subtag registry for more information on RFC5646 supported tags.
DNSB is offline   Reply With Quote
Old 06-06-2019, 03:55 PM   #15
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,280
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by wealthtsay View Post
When Calibre convert a book, the input book language is "zh-tw"(traditional Chinese), but the output book language will become "zh"(Simplified Chinese).
Minor correction. zh is not simplified Chinese, zh is generic Chinese language support. zh-TW is an obsolete form. See https://ISO Language Codes (639-1 and 693-2) and IETF Language Types for more information.
DNSB 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
Language input and durability of the M92 crispyambulance Onyx Boox 12 02-20-2014 11:23 AM
How to add new input language to KT 5.1 firmware lumanz Kindle Developer's Corner 3 05-02-2012 10:26 AM
Unable to convert foreign language dictionary for Kindle likewater Conversion 6 11-17-2011 08:39 PM
How can I convert a pdf with thai language to epub cadeau Calibre 0 06-02-2010 10:46 AM


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


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