Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-20-2014, 06:52 PM   #1
RZetlin
Addict
RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.RZetlin ought to be getting tired of karma fortunes by now.
 
RZetlin's Avatar
 
Posts: 383
Karma: 3461302
Join Date: Mar 2013
Location: Canada
Device: Kobo Aura One, Kobo Glo, Kobo Aura HD (RIP)
Obok cannot read special characters

I recently got a book that has ★ in its title.

Unfortunately, Obok cannot decode this character correctly.

Code:
Traceback (most recent call last):
  File "c:\obok_2.01.py", line 198, in <module>
    print "%d: %s" % (i, volumekeys[key]["title"])
  File "C:\Python27\lib\encodings\cp850.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2605' in position
 8: character maps to <undefined>
I am a little puzzled on how I can overcome this.
RZetlin is offline   Reply With Quote
Old 08-20-2014, 08:02 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,262
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Sorry to say you're best to ask where you found Obok.. Maybe a friendly Alf ?
PeterT is offline   Reply With Quote
Advert
Old 11-24-2014, 06:44 PM   #3
mimosavj
Addict
mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.
 
Posts: 205
Karma: 352572
Join Date: Jul 2009
Location: USA
Device: Sony PRS 650, Nook HD+, Aura HD, Aura H2O v1, Libra 2
I had the same problem today. Here is the solution. If you can edit the obok file (I used editra), at line 198, replace that line with

print "%d: %s" % (i, volumekeys[key]["title"].encode('utf8'))

Save the file. And it worked, at least for me
mimosavj is offline   Reply With Quote
Old 11-24-2014, 07:01 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,627
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by mimosavj View Post
I had the same problem today. Here is the solution. If you can edit the obok file (I used editra), at line 198, replace that line with

print "%d: %s" % (i, volumekeys[key]["title"].encode('utf8'))

Save the file. And it worked, at least for me
That line doesn't exist as is because you have an old outdated version of obok. You want the 3.0.7 version which now handles DRM free kepub.

Last edited by JSWolf; 11-25-2014 at 12:57 PM.
JSWolf is offline   Reply With Quote
Old 11-25-2014, 12:16 AM   #5
mimosavj
Addict
mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.
 
Posts: 205
Karma: 352572
Join Date: Jul 2009
Location: USA
Device: Sony PRS 650, Nook HD+, Aura HD, Aura H2O v1, Libra 2
I cannot figure out how to use the obok plugin with calibre. When I tried to add files from the kobo\kepub directory on my PC, calibre just adds an unknown file. And I have no clue where to download the newest obok_xxx.py file, the one I found on Alf blog is the old one obok_2.01.py
mimosavj is offline   Reply With Quote
Advert
Old 11-25-2014, 12:21 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
http://the-digital-reader.com/2014/0...es-wont-allow/
eschwartz is offline   Reply With Quote
Old 11-25-2014, 12:28 AM   #7
mimosavj
Addict
mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.mimosavj ought to be getting tired of karma fortunes by now.
 
Posts: 205
Karma: 352572
Join Date: Jul 2009
Location: USA
Device: Sony PRS 650, Nook HD+, Aura HD, Aura H2O v1, Libra 2
Thanks, I finally figured out how to use the plug in
mimosavj is offline   Reply With Quote
Old 12-09-2014, 06:30 AM   #8
AColobus
Enthusiast
AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.
 
Posts: 25
Karma: 71334
Join Date: Dec 2014
Device: Kobo Touch
I too am having problems with Obok encoding. I suspect it's setting encoding that can't display non-Roman characters? Having just bought a ton of Japanese books I am dismayed at inability to read them on my Kobo.*

It quite happily makes the files and they load onto my Kobo, they just seem to be mostly blank. Ellipses (...) or something very similar appear; numbers appear because they're in Roman, and images are okay. Looks like it can't handle Japanese characters, which is going to be a serious issue.

Can anyone advise, or point me at Obok's creator to ask?

*I can't even read them as bought, without playing around with DRM. It's complicated.
AColobus is offline   Reply With Quote
Old 12-09-2014, 06:36 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,627
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Current version of Obok is 3.1.1. Try to find that version and give it a try.
JSWolf is offline   Reply With Quote
Old 12-09-2014, 06:37 AM   #10
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by AColobus View Post
I too am having problems with Obok encoding. I suspect it's setting encoding that can't display non-Roman characters? Having just bought a ton of Japanese books I am dismayed at inability to read them on my Kobo.*

It quite happily makes the files and they load onto my Kobo, they just seem to be mostly blank. Ellipses (...) or something very similar appear; numbers appear because they're in Roman, and images are okay. Looks like it can't handle Japanese characters, which is going to be a serious issue.

Can anyone advise, or point me at Obok's creator to ask?

*I can't even read them as bought, without playing around with DRM. It's complicated.
Did you select a Japanese font on the Kobo?
tshering is offline   Reply With Quote
Old 12-09-2014, 07:13 AM   #11
Lynx-lynx
Treachery of images ...
Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.
 
Lynx-lynx's Avatar
 
Posts: 4,069
Karma: 91561091
Join Date: May 2012
Location: Australia
Device: Blackberry Playbook, Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2
Quote:
Originally Posted by eschwartz View Post
Quote:
Originally Posted by AColobus View Post
I too am having problems with Obok encoding. I suspect it's setting encoding that can't display non-Roman characters? Having just bought a ton of Japanese books I am dismayed at inability to read them on my Kobo.*

It quite happily makes the files and they load onto my Kobo, they just seem to be mostly blank. Ellipses (...) or something very similar appear; numbers appear because they're in Roman, and images are okay. Looks like it can't handle Japanese characters, which is going to be a serious issue.

Can anyone advise, or point me at Obok's creator to ask?

*I can't even read them as bought, without playing around with DRM. It's complicated.
If you use eschwartz link you'll get the latest obok version.

Please let us know if what tshering suggested works out.
Lynx-lynx is offline   Reply With Quote
Old 12-09-2014, 08:54 AM   #12
AColobus
Enthusiast
AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.
 
Posts: 25
Karma: 71334
Join Date: Dec 2014
Device: Kobo Touch
Thanks for the very speedy response! As soon as time allows, I will try adding and selecting a Japanese font specially. I have previously read books including Japanese text, but maybe these are specially encoded in some way or presented as images.

Incidentally, the link is not to the latest 3.1.1 version, it's to 3.0.7 - I haven't yet found 3.1.1 anywhere. But I'll try the font solution first and report back.
AColobus is offline   Reply With Quote
Old 12-09-2014, 09:33 AM   #13
AColobus
Enthusiast
AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.AColobus knows who John Galt is.
 
Posts: 25
Karma: 71334
Join Date: Dec 2014
Device: Kobo Touch
My Kobo turns out to have no Japanese font, only a very limited selection.

I have followed the instructions on this site to download and install a Japanese font. I used Unifont. While I wouldn't recommend it aesthetically, the book is now displaying correctly so the method is sound.

I also inspected my existing Japanese content that (as mentioned above) was already displaying correctly. This turns out to be in html format, and presumably these are processed differently from epubs.

Is it worth me explaining the context of my problem for future readers? If so, should I do so here or on a new thread?
AColobus is offline   Reply With Quote
Old 12-09-2014, 10:00 AM   #14
Lynx-lynx
Treachery of images ...
Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.
 
Lynx-lynx's Avatar
 
Posts: 4,069
Karma: 91561091
Join Date: May 2012
Location: Australia
Device: Blackberry Playbook, Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2
Obok 3.0.7 is the latest version and any newer version will be released via that Article. Should you need obok help or want to comment generally about obok then please use the posts below the Article.
Lynx-lynx is offline   Reply With Quote
Old 12-09-2014, 10:04 AM   #15
Lynx-lynx
Treachery of images ...
Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.Lynx-lynx ought to be getting tired of karma fortunes by now.
 
Lynx-lynx's Avatar
 
Posts: 4,069
Karma: 91561091
Join Date: May 2012
Location: Australia
Device: Blackberry Playbook, Sony 650, Kobo Glo, H2O, Aura One, Forma, Libra 2
Quote:
Originally Posted by AColobus View Post
My Kobo turns out to have no Japanese font, only a very limited selection.

I have followed the instructions on this site to download and install a Japanese font. I used Unifont. While I wouldn't recommend it aesthetically, the book is now displaying correctly so the method is sound.

I also inspected my existing Japanese content that (as mentioned above) was already displaying correctly. This turns out to be in html format, and presumably these are processed differently from epubs.

Is it worth me explaining the context of my problem for future readers? If so, should I do so here or on a new thread?
Yes, why not comment on the context of your problem here, and if necessary you can request a mod to change the title of the thread.
Lynx-lynx is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Special characters in conversion derekn552 Conversion 4 02-05-2014 07:31 PM
Special Characters abbotrichard ePub 4 07-01-2011 06:03 PM
Epub and special characters again mtravellerh Calibre 3 01-04-2009 12:55 PM
REFERENCE: Special Characters nrapallo IMP 2 04-07-2008 01:29 PM
Special Characters / Fonts Gatton IMP 4 03-21-2008 01:43 AM


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


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