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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2013, 09:44 AM   #211
mietek81
Member
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 16
Karma: 5412
Join Date: Mar 2013
Device: Kobo Glo
Quote:
Originally Posted by AlPe View Post
Do you mean "merge them into one dictionary for the Kobo" ?

Unfortunately the merging function is not implemented in Penelope yet. Meanwhile, you can do the following:

1) Convert first StarDict dictionary to XML
2) Convert second StarDict dictionary to XML
3) Concatenate the two XML files of 1) and 2) (deleting the "tail/header" at the joining site) into a single XML file
4) Convert the XML file of step 3) into Kobo format
Well.. Yeah, I'm gonna use it on kobo glo.

I had to check in dictionary what does 'Concatenate' means And yes, that's what I would like to do - join them into one single dict.

Basically I should use Penelope to convert those stardict files to XML, then use notepad++ for joining/Concatenating them into single xml and then again convert it to desired format.

So what if I wanted to add another language to english-english dictionary, to have english-english-polish dict? So then I could read english definiton of a word and if that wouldn't help me in understanding it I would have polish translation under english definition. I think somebody have done something like that
mietek81 is offline   Reply With Quote
Old 04-09-2013, 11:15 AM   #212
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
Quote:
Originally Posted by mietek81 View Post
Well.. Yeah, I'm gonna use it on kobo glo.

I had to check in dictionary what does 'Concatenate' means And yes, that's what I would like to do - join them into one single dict.

Basically I should use Penelope to convert those stardict files to XML, then use notepad++ for joining/Concatenating them into single xml and then again convert it to desired format.
Apologies, I use a lot of Latin-based (old-fashioned) English words because I am Italian. You understand correctly. After concatenating the two XML files, you get something like:
Code:
<?xml version = "1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE document SYSTEM "dictionary.dtd">
<dictionary>
<entry><key>k1</key><def>d1</def></entry>
<entry><key>k2</key><def>d2</def></entry>
<entry><key>k3</key><def>d3</def></entry>
</dictionary>
<?xml version = "1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE document SYSTEM "dictionary.dtd">
<dictionary>
<entry><key>k4</key><def>d4</def></entry>
<entry><key>k5</key><def>d5</def></entry>
</dictionary>
which should become:
Code:
<?xml version = "1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE document SYSTEM "dictionary.dtd">
<dictionary>
<entry><key>k1</key><def>d1</def></entry>
<entry><key>k2</key><def>d2</def></entry>
<entry><key>k3</key><def>d3</def></entry>
<entry><key>k4</key><def>d4</def></entry>
<entry><key>k5</key><def>d5</def></entry>
</dictionary>
{BTW, I now realize that if you export to CSV instead of XML, the editing step might be unnecessary.}

Quote:
Originally Posted by mietek81 View Post
So what if I wanted to add another language to english-english dictionary, to have english-english-polish dict? So then I could read english definiton of a word and if that wouldn't help me in understanding it I would have polish translation under english definition. I think somebody have done something like that
From the Penelope page:
Quote:
Future versions will include:
- support for merging multiple input dictionaries into a single one, and
- PRC/MOBI support.
AlPe is offline   Reply With Quote
 
Advertisement
Old 04-09-2013, 02:04 PM   #213
mietek81
Member
mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!mietek81 , Klaatu Barada Niktu!
 
Posts: 16
Karma: 5412
Join Date: Mar 2013
Device: Kobo Glo
Thank You for all your help and efforts. I will patiently wait for the future versions of this beautiful girl which Penelope is

I had to check the word because im not that fluent in english, my vocabulary is rather poor :P So there's no need for apologies.

Is there a way to send you (I prefer paypal) a small evidence of gratitude for all your work on Penelope?
mietek81 is offline   Reply With Quote
Old 04-09-2013, 02:28 PM   #214
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
You are welcome.

I do not accept money because the code I develop is released "into the world" for free under GPL. Instead, if you want, you can donate to your preferred charity (e.g., Wikimedia Foundation (Wikipedia), EFF, etc.)
AlPe is offline   Reply With Quote
Old 04-20-2013, 03:06 AM   #215
gouni
Connoisseur
gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.
 
gouni's Avatar
 
Posts: 86
Karma: 546021
Join Date: Nov 2012
Device: kobo
My dictionaries no longer work with kobo system 2.5.0
gouni is offline   Reply With Quote
Old 04-20-2013, 07:05 AM   #216
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
By "my dictionaries" do you mean "sideloaded" dictionaries, made by Penelope or your own tools, right?

I haven't updated my Kobo (and I plan not to do so), so I cannot confirm directly.
AlPe is offline   Reply With Quote
Old 04-20-2013, 07:45 AM   #217
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 982
Karma: 2199790
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
Quote:
Originally Posted by gouni View Post
My dictionaries no longer work with kobo system 2.5.0
Confirmed. Me too. This is a custom dictionary that I have built myself using marisa and 7zip. It was OK with firmware 2.4.

So far I have tried the following to fix it with no success:

Upgraded marisa source from 0.2.0 to 0.2.4.
Various marisa-build options.

This is all random guesses as to what the difference is. May be I'll get lucky and hit on the right combination. It could be the zip options I am using (or not using). In fact I do not use any specific zip options other than the compression format, gzip for the html files and zip for the final file.
ShellShock is offline   Reply With Quote
Old 04-20-2013, 08:31 AM   #218
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
Oh, bad luck, they might have changed the dictionary format.

Does inspecting the Kobo-provided dictionaries yield something?
AlPe is offline   Reply With Quote
Old 04-20-2013, 09:06 AM   #219
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 982
Karma: 2199790
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
Not that I can tell; the zip contains the same *.html and words files, but as these are binary it is difficult to analyse the differences any further.
ShellShock is offline   Reply With Quote
Old 04-20-2013, 09:21 AM   #220
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 597
Karma: 1281565
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
You are right, I forgot about the "encryption".

I will try to have a look at the issue next week. A wild guess is that they changed something in the markup of the HTML files.

(Fun fact: between 3/1 and 4/20, the Google Code page for Penelope got 16 visits from "Toronto, Canada", of which 12 went to clone or download the source code. Clearly, this might well be just a coincidence --- all are from "generic" domains, like "rogers cable inc.".)

Last edited by AlPe; 04-20-2013 at 09:28 AM.
AlPe is offline   Reply With Quote
Old 04-20-2013, 11:29 AM   #221
gouni
Connoisseur
gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.gouni ought to be getting tired of karma fortunes by now.
 
gouni's Avatar
 
Posts: 86
Karma: 546021
Join Date: Nov 2012
Device: kobo
Quote:
Originally Posted by AlPe View Post
By "my dictionaries" do you mean "sideloaded" dictionaries, made by Penelope or your own tools, right?

I haven't updated my Kobo (and I plan not to do so), so I cannot confirm directly.
The two, by penelope and by me.
gouni is offline   Reply With Quote
Old 04-20-2013, 11:31 AM   #222
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 982
Karma: 2199790
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
Big brother is watching...? But would it be in their interest to deliberately break custom dictionaries?
ShellShock is offline   Reply With Quote
Old 04-20-2013, 11:36 AM   #223
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: 6,090
Karma: 6238033
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo Touch, Kobo Glo
They might think so. But, as Kobo don't actually support custom dictionaries, it is more likely that the change was for some other reason.
davidfor is offline   Reply With Quote
Old 04-20-2013, 01:27 PM   #224
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 982
Karma: 2199790
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
Interestingly the Kobo English dictionary from firmware 2.1.4 still works on firmware 2.5. Our custom dictionaries use gzipped html and words files, whereas the official dictionaries do not as far as I can tell; if you change the extension to gzip they are not recognised as gzip format. May be this is the crucial difference?

Last edited by ShellShock; 04-20-2013 at 01:30 PM.
ShellShock is offline   Reply With Quote
Old 04-20-2013, 01:48 PM   #225
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: 1,419
Karma: 365536
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by ShellShock View Post
Interestingly the Kobo English dictionary from firmware 2.1.4 still works on firmware 2.5.
And the new ones work on FW 2.4.

Quote:
Originally Posted by ShellShock View Post
Our custom dictionaries use gzipped html and words files, whereas the official dictionaries do not as far as I can tell; if you change the extension to gzip they are not recognised as gzip format.
This has been so since FW 2.0.0 or so with some dictionaries.
tshering 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
What's file format of dictionary mnjkl Kobo Reader 2 12-12-2011 09:48 AM
Dictionary format jgray Sony Reader 1 10-25-2010 10:52 AM
English Thesaurus in the dictionary format osnova Amazon Kindle 14 12-12-2009 07:42 PM
Dictionary: what version? can it be in firmware? jedix Sony Reader Dev Corner 7 12-05-2008 01:00 PM
Webster dictionary in DEPReader format abigail Reading and Management 0 08-10-2005 09:00 AM


All times are GMT -4. The time now is 10:00 AM.


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