Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2013, 11:54 AM   #1
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
Chinese KF8 trouble

Hi

I have a bit of a funny problem with Calibre and my paperwhite 2.

So I am converting Chinese books to azw3 format so I can embed a custom font. With the azw3 file converted by calibre I cannot select the individual characters, the kindle will just select a block of characters between punctuation or whitespace as though all of those characters were one word.

I have a .mobi copy of "Romance of the three kingdoms" and in it the Kindle lets me select individual characters, or arbitrarily long sets of characters (It also works in books from the Chinese Kindle store) so the issue is in the conversion process.

Since I am learning Chinese I want to use my custom font and the dictionary at the same time.
bobafruit is offline   Reply With Quote
Old 11-21-2013, 10:08 AM   #2
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
Anyone point me to some help in this?
Is calibre doing something to mark things as words?

I tried uploading an example, but my Internet connection is real lousy. If it would help I'll try and find a smaller file to do the conversion on.
bobafruit is offline   Reply With Quote
Old 11-21-2013, 10:09 AM   #3
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Make sure you have set the language correctly before converting.And the books that you are converting need to have the correct lang attribute in their source as well.
kovidgoyal is offline   Reply With Quote
Old 11-21-2013, 09:53 PM   #4
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
alright, I'm not sure exactly how to set language attributes... is there anywhere other than the metadata to set the language? maybe I'm missing that.

So I did a little test, took an article about wolves and put it in a UTF-8 text file loaded it into Calibre and changed the metadata to be in chinese then had Calibre make an AZW3 file with the desired font.

the result is interesting, for both the txt and azw3 file the kindle treats a group of characters as one long word...

perhaps it's a bad example... but I do have other .mobi files that the dictionary works for the mobi, but breaks when converted.
Attached Files
File Type: azw3 wolves - Unknown.azw3 (1.00 MB, 74 views)
File Type: txt wolves - Unknown.txt (42.0 KB, 117 views)
bobafruit is offline   Reply With Quote
Old 11-21-2013, 10:03 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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Only amazon can tell you why the kindle behaves as it does. Apart from specifying the metadata in the language you may also need to specify the language code in the actual html markup, use the Tweak Book feature in calibre to do that like this

<html lang="zh">
kovidgoyal is offline   Reply With Quote
Old 11-21-2013, 10:28 PM   #6
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
Thanks for the help, I'll see if this fixes the problem (I have heaps of old files that had the same problem on Kindle 3...)

But in the meantime looks like Paperwhite 2 is jailbroken so I can probably take care of my custom fonts on that end
bobafruit is offline   Reply With Quote
Old 12-11-2013, 12:33 AM   #7
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
Quote:
Originally Posted by kovidgoyal View Post
Only amazon can tell you why the kindle behaves as it does. Apart from specifying the metadata in the language you may also need to specify the language code in the actual html markup, use the Tweak Book feature in calibre to do that like this

<html lang="zh">
Sorry for being obtuse, but after I go into Tweak Book, which file do I need to change the HTML markup in? The CSS or each individual HTML file?

Thanks again.
bobafruit is offline   Reply With Quote
Old 12-11-2013, 01:03 AM   #8
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
every html file
kovidgoyal is offline   Reply With Quote
Old 12-11-2013, 11:34 PM   #9
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
Ok, so I've been messing with the html files, and it seems that adding <html lang="zh"> doesn't work...

So... I took a less elegant approach. I've taken the contents of a book that works perfectly and piece by piece replaced the contents of a book that doesn't work.

and yet somehow it doesn't work...

so... then I took two books that worked, and hit Tweak Book, then exploded and rebuilt them... and then they didn't work
bobafruit is offline   Reply With Quote
Old 12-12-2013, 12:02 AM   #10
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,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then you are out of luck. I dont have the time to try to reverse engineer why the Kindle behaves as it does.
kovidgoyal is offline   Reply With Quote
Old 12-12-2013, 12:39 AM   #11
bobafruit
Member
bobafruit began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: paperwhite 2
Alright, thanks for your help... at least I know now that using Calibre for this is barking up the wrong tree.

I'll go find other ways to get what I want done
bobafruit is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content KF8 only or combined KF8/Mobi JSWolf Amazon Kindle 9 06-03-2012 09:11 PM
KF8 only JSWolf Conversion 2 05-15-2012 08:26 PM
Kindle Touch KF8 support: trouble in paradise? tomsem Amazon Kindle 0 04-20-2012 03:16 PM
Read Chinese books in Sony Reader PRS900 using Chinese Fonts PSL ePub 3 10-08-2010 08:11 AM
Chinese Support : book name & fetching chinese webs tnzshn Calibre 12 05-02-2009 01:21 AM


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


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