Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > OpenInkpot

Notices

 
 
Thread Tools Search this Thread
Old 03-02-2009, 08:24 PM   #1
daviddem
Connoisseur
daviddem doesn't litterdaviddem doesn't litterdaviddem doesn't litter
 
daviddem's Avatar
 
Posts: 63
Karma: 244
Join Date: Dec 2008
Location: Dubai
Device: Sony PRS-T1
Dictionary support for cr3, did anybody get this to work?

Snapshot 20090222 has cr3 with dictionary support installed.

So I followed the instructions and downloaded the GCIDE dictionary in .dict.dz format and associated .index file from the dict.org ftp site. I then created a dict folder on the root of my SD card and copied both aforementioned files in it.

When I search for a word from a book open in cr3, I simply get thrown back out to the shelf. Nothing else happens.

The file I tried is the 0.48-4 version under the dict-pre-Debian folder. Maybe I should have taken the 0.44 version under the dict-pre folder. I'll give that a go later.

This seems to be a problem with this particular dictionary because I also tried the WordNet dictionary, and it works. Well, partly. Weirdly, I get pages of definitions and synonyms for some words (i.e. wrap, green, show, shoe) and nothing at all for others (i.e. jacket, open, close, cotton).

I also tried the Webster 1913 dictionary, and I get blank pages for all the words I have tried so far... not much help.

So what is the story here? Anybody had more success with this?
daviddem is offline  
Old 03-02-2009, 09:22 PM   #2
quickhand
Connoisseur
quickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheesequickhand can extract oil from cheese
 
Posts: 54
Karma: 1202
Join Date: Oct 2008
Device: Hanlin V3, Sony prs-505, Hanwang n516
Don't worry. I'm waiting on dottedmag to do a quick rewrite of the libtinydict library, then I'm going to make a nice dictionary app with all the bells and whistles.
quickhand is offline  
Advert
Old 03-02-2009, 09:36 PM   #3
daviddem
Connoisseur
daviddem doesn't litterdaviddem doesn't litterdaviddem doesn't litter
 
daviddem's Avatar
 
Posts: 63
Karma: 244
Join Date: Dec 2008
Location: Dubai
Device: Sony PRS-T1
Quote:
Originally Posted by quickhand View Post
Don't worry. I'm waiting on dottedmag to do a quick rewrite of the libtinydict library, then I'm going to make a nice dictionary app with all the bells and whistles.


Good stuff, dude!

Will this be accessible directly from fbreader and coolreader, so we can lookup words as we read books?

Definitely, after trying OI, there is no going back!
daviddem is offline  
Old 03-03-2009, 01:11 AM   #4
loweb1
Book Lover
loweb1 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2009
Location: Boise, ID
Device: iPhone
Quote:
Originally Posted by quickhand View Post
Don't worry.
WooHoo!

You guys are amazing, OI is awesome!

loweb1 is offline  
Old 05-06-2009, 04:08 PM   #5
gwitt
Enthusiast
gwitt is on a distinguished road
 
gwitt's Avatar
 
Posts: 27
Karma: 62
Join Date: Apr 2009
Location: Lübeck, Germany
Device: BeBook reader
I got the dictionary work plus a trick to do it from the reader itself

I used the *dict.dz format dictionary (coming with many Linux distributions), which you also can get e.g. from http://sourceforge.net/project/showf...group_id=80679 or other sources on the web.

For the English-German translation I extracted the "stardict-freedict-eng-deu-2.4.2.tar.bz" file and moved the files

freedict-eng-deu.dict.dz
freedict-eng-deu.index

towards a "dict" directory on my SD card

After inserting the SD card and restarting my book in CR3 reader I was able to get translations with:
<Menu> - 4
and then letter input according to the T9 letter groups in the bottom line of the screen. Some words are missing as the dict is not very big, but it is a very nice feature and comfortable reading
After that I thought it might be even better to have the "dict" directory on the device itself instead on an SD card. So I did a somewhat "dirty" but working trick:

I connected from the Linux command line via

# ssh root@192.168.111.1
# (password: zxc)

and copied the SD card "dict" directory to the device itself

# cp /media/sd/dict /media/

After that I took out the SC-card and linked the "dict" directory to the sd-card mount point directory

# ln -s /media/dict /media/sd/

with
# ls /media/sd/

I checked whether the link had been generated

A restart of a book on the reader itself showed that the CR3 dictionary worked fine.

If you instert the SD card again the /media/sd directory is mounted normally and the reader takes the dictionary in the SD card directory.
After taking out the SD card it switches back to the on-device directory.

Such you are independent of a SD card.

Last edited by gwitt; 11-29-2009 at 03:14 AM.
gwitt is offline  
Advert
Old 05-12-2009, 03:47 AM   #6
idle
I Do Like Ebooks
idle can extract oil from cheeseidle can extract oil from cheeseidle can extract oil from cheeseidle can extract oil from cheeseidle can extract oil from cheeseidle can extract oil from cheeseidle can extract oil from cheeseidle can extract oil from cheese
 
idle's Avatar
 
Posts: 145
Karma: 1006
Join Date: May 2009
Location: Prague, Czech rep.
Device: Pocketbook Ultra 650
Quote:
Originally Posted by daviddem View Post
I also tried the WordNet dictionary, and it works. Well, partly. Weirdly, I get pages of definitions and synonyms for some words (i.e. wrap, green, show, shoe) and nothing at all for others (i.e. jacket, open, close, cotton).
This is exactly what WordNet dictionary does for me. I've noticed, that the missing words seem to be in blocks (considering alphabetical order).

For example, when I search for words starting with an "a", the first one it offers, is "annotate" - rather far down the alphabet. There are no words in between to be found - no "abbey", no "acid", etc.
Similarly, the "b" words start with "black sea bass". Also in other parts of the alphabet, random sections seem to be missing.

The thing is, the source files seem to contain the missing words, so they are just not found.
idle is offline  
Old 05-12-2009, 09:44 PM   #7
keng2000
Researcher and Consultant
keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.
 
Posts: 210
Karma: 364
Join Date: Nov 2008
Location: Bangkok, THAILAND
Device: MACBOOKPRO17" HP2400TX SONYUX27
I got the problem
dictionary comes with .idx not .index
Anyone explains how to convert.... thanks

UPDATE: I solve my problem by getting raw dictionary data in XML and convert them to C5 and build .dict and .index. then use dictzip to make dict.dz and fially it works with CR3.
My dictionary is Lexitron ENG-THAI, THAI-ENG.

Last edited by keng2000; 05-16-2009 at 04:00 AM.
keng2000 is offline  
Old 05-22-2009, 06:04 AM   #8
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by daviddem View Post
So I followed the instructions and downloaded the GCIDE dictionary in .dict.dz format and associated .index file from the dict.org ftp site.
The link on some of the dict.org web pages is broken, but the files are at ftp://ftp.dict.org/dict/pre/

These are apparently the right files, but still with the problems reported in this thread.
wallcraft is offline  
Old 05-22-2009, 04:06 PM   #9
Kardell
Junior Member
Kardell began at the beginning.
 
Kardell's Avatar
 
Posts: 4
Karma: 10
Join Date: May 2009
Device: HanLin V3
Quote:
Originally Posted by keng2000 View Post
I got the problem
dictionary comes with .idx not .index
Anyone explains how to convert.... thanks

UPDATE: I solve my problem by getting raw dictionary data in XML and convert them to C5 and build .dict and .index. then use dictzip to make dict.dz and fially it works with CR3.
My dictionary is Lexitron ENG-THAI, THAI-ENG.
Can you describe the whole process in details? It'd be great.
Thank you in advance
Kardell is offline  
Old 05-23-2009, 04:36 AM   #10
IgnareAcademy
Banned
IgnareAcademy is on a distinguished road
 
Posts: 49
Karma: 50
Join Date: May 2009
Device: Hanlin clone
In Linux install the dictconv package. Be aware that it is still buggy, and not all dictionaries will be perfectly converted.

Then download a dictionary, extract it to a new folder, and in this folder open a console.
In this console type for example (to transform a stardict dictionary which contains three files ending with .ifo .idx and .dz; the goal is to get a new file ending with .index):
dictconv -o dictd_www.freedict.de_eng-deu.index dictd_www.freedict.de_eng-deu.ifo

It might take an hour for a dictionary of a few megabytes!
In the end you get these messages:
Results
File: dictd_www.freedict.de_eng-deu.index
Title: English - German
Author:
Email:
Version:
License:
Description: Made by Hu Zheng
Original Language:
Destination Language:
Headwords: 93101
Words: 93101

Then you get two new files (.index and .dict). You must transform the .dict file into a .dz file. To do so you need to install the dictzip package. Then type something like this in a console:
dictzip dictd_www.freedict.de_eng-deu.dict

Copy the .index file and the new .dz file to the dict folder you have created on the SD card you use in your Hanlin/Hanlin clone.

Then when you open an .rtf file with cr3 (long press of the key corresponding to the number of the file, then choose 2), you need to press OK and then 4 to use the dictionary.
Then for example if you want the translation of a word beginning with the letter a, b, c, d or e, just press 1 and then press the < or > keys (those on the left of the screen) to reach the word you wish to translate, then press OK. The definition may be longer than one screen, so do not hesitate to use the > key. Press OK again to exit the translation.

It would be perfect if it were possible to use more than one dictionary, or to be able to choose which dictionary to use.

Last edited by IgnareAcademy; 05-23-2009 at 09:51 AM.
IgnareAcademy is offline  
Old 05-23-2009, 09:42 AM   #11
keng2000
Researcher and Consultant
keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.keng2000 has a complete set of Star Wars action figures.
 
Posts: 210
Karma: 364
Join Date: Nov 2008
Location: Bangkok, THAILAND
Device: MACBOOKPRO17" HP2400TX SONYUX27
Quote:
Originally Posted by Kardell View Post
Can you describe the whole process in details? It'd be great.
Thank you in advance
What I found in the internet is only way to convert from one to another dictionary format (dictd stardict, babylon and others)
I have not founded any between .idx back to .index.
But finally I found the original single dictionary file in plain text (TIS-620) with 5 XML tags seperated by <DOC> for each word.
Then I did some research and got the solution luckily.
1. convert them to UTF8.
2. Fix all & to &amp;
3. Use perl program to convert them to C5 format
4. Use dictfmt to build .dict and .index
5. Use dictzip to make .dict.dz

the following is my sample script
SOURCE: eltex
PERL: parse_etlex.pl

=======================
iconv -f tis620 -c etlex > etlex.utf-8

# DO IT IN EDITOR
# Change & to &amp,
# Add <etlex> at TOP
# Add </etlex> at BUTTOM
#Save as UTF-8 with SIG

./parse_etlex.pl etlex.utf-8 > etlex.c5 > /dev/null

cat lexitron.info etlex.c5 | dictfmt \
-c5 -u ftp://ftp.opentle.org/pub/lexitron/s...tron-data.zip\
-s "LEXiTRON version 2, etlex" \
--without-info --allchars \
--utf8 etlex

dictzip etlex.dict
keng2000 is offline  
Old 05-24-2009, 06:34 AM   #12
IgnareAcademy
Banned
IgnareAcademy is on a distinguished road
 
Posts: 49
Karma: 50
Join Date: May 2009
Device: Hanlin clone
More simple method for some dictionaries: just get the debian package of the freedict dictionary you want, unpack it and go look inside data.tar.gz/usr/share/dictd. You can also install them in debian and then find them in /usr/share/dictd (the bigger the file the bigger the dictionary; so if you speak several languages, you can choose the best combination of languages).
You will find a .dz and a .index file!

For example here is the german-english dictionary:
http://packages.debian.org/sid/all/d...u-eng/download
Others:
http://packages.debian.org/source/sid/freedict

It works great with the new great LBook firmware from Ukrania:
http://lbook.com.ua/downloads/V3upda...20090409-2.rar
I just do a long press (2 seconds) of the key number 3 to use the dictionary.

Last edited by IgnareAcademy; 05-24-2009 at 06:38 AM.
IgnareAcademy is offline  
Old 05-24-2009, 09:58 AM   #13
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by IgnareAcademy View Post
just get the debian package of the freedict dictionary you want
See Virtual Package: dictd-dictionary for all the dictionaries. On Windows, 7-zip will extract from .deb files (although it takes a few mouse clicks to drill down to the actual files).
wallcraft is offline  
Old 05-25-2009, 06:47 PM   #14
Kardell
Junior Member
Kardell began at the beginning.
 
Kardell's Avatar
 
Posts: 4
Karma: 10
Join Date: May 2009
Device: HanLin V3
Quote:
Originally Posted by IgnareAcademy View Post
In Linux install the dictconv package. Be aware that it is still buggy, and not all dictionaries will be perfectly converted.
To all Linux users want to achieve the same: remember to downgrade gcc package from v.4.3 to 4.2, otherwise compilation is unsuccessfull.
Kardell is offline  
Old 05-26-2009, 07:12 AM   #15
IgnareAcademy
Banned
IgnareAcademy is on a distinguished road
 
Posts: 49
Karma: 50
Join Date: May 2009
Device: Hanlin clone
Quote:
Originally Posted by Kardell View Post
To all Linux users want to achieve the same: remember to downgrade gcc package from v.4.3 to 4.2, otherwise compilation is unsuccessfull.
In debian it is available as a .deb package, so no need to compile it.

Last edited by IgnareAcademy; 06-01-2009 at 06:27 AM.
IgnareAcademy is offline  
 

Tags
solved


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does dictionary work in PB360? hardgainer PocketBook 7 08-22-2010 02:17 PM
how does Kindle2's dictionary work? nitrocuadam Amazon Kindle 4 02-23-2010 11:28 AM
Classic Anyone know how highlighting and dictionary work? okalyddude Barnes & Noble NOOK 10 12-15-2009 05:38 PM
will Mobi dictionary work in oi legin OpenInkpot 2 07-30-2009 02:07 PM
Dictionary look up doesnt work... Chrikow Bookeen 0 11-16-2008 08:01 PM


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


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