MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Workshop (https://www.mobileread.com/forums/forumdisplay.php?f=178)
-   -   How to create your own mobipocket dictionary for any language: (https://www.mobileread.com/forums/showthread.php?t=20480)

Devot3d 11-21-2010 02:22 PM

1 Attachment(s)
:thanks:

Thanks for the helpful thread!

I've used the tips here to make my own Chinese-English dictionary. I converted CEdict over to the correct format, got rid of the traditional characters since I don't want them and I'm not sure how they would affect the functionality of the dictionary. I also changed the pinyin with numbers to pinyin with tone marks because I prefer tone marks.

It seems to be good, but I don't know until I try it on a Kindle and my Kindle is not working right now :smack:

So is there anyone with a Kindle 3 that could test out my dictionary for me? :2thumbsup I'd really appreciate any help, and I'm sure other people would find a Chinese-English dictionary helpful.

just check out the attached .mobi file, set it as your default dictionary on the kindle, and let me know if it works with the instant lookup.

Newby 12-08-2010 03:33 AM

I could test for you some german-german dictionary, if you would be so kind to make it :)

buffboy 12-16-2010 02:58 AM

Quote:

Originally Posted by Devot3d (Post 1227887)
:thanks:

Thanks for the helpful thread!

I've used the tips here to make my own Chinese-English dictionary. I converted CEdict over to the correct format, got rid of the traditional characters since I don't want them and I'm not sure how they would affect the functionality of the dictionary. I also changed the pinyin with numbers to pinyin with tone marks because I prefer tone marks.

It seems to be good, but I don't know until I try it on a Kindle and my Kindle is not working right now :smack:

So is there anyone with a Kindle 3 that could test out my dictionary for me? :2thumbsup I'd really appreciate any help, and I'm sure other people would find a Chinese-English dictionary helpful.

just check out the attached .mobi file, set it as your default dictionary on the kindle, and let me know if it works with the instant lookup.

Hey Devot3d, it didn't work for me. I can open and read the dictionary, however, the look up function does not work for me. If it makes any difference, I do have the font and ss hack for the kindle.

I'd be happy to test future versions for you as well! Keep up the good work!

edit: If anyone else has made a Chinese-English dictionary, please post it! Help us non-computer savvy users!

ghewgill 12-30-2010 04:01 PM

I've created a Chinese-English dictionary which you can find at http://hewgill.com/hanzidict/. Unfortunately, I haven't discovered how to make this work as an actual Kindle dictionary (that you can use to look up Chinese characters in other books). However, it works as a traditional radical-order dictionary.

wattsmart 12-31-2010 11:20 AM

I followed the instructions and got my dictionary .txt file. However, when I run the python script I get the following error

Quote:

File "C:\Dictionary\tab2opf.py", line 199
print "tab2opf <Stardict->MobiPocket>"

SyntaxError: invalid syntax
I'm using a windows 7 machine if that matters...any suggestions?

Edit: I got it to work by uninstalling Python 3 and installing 2.7...

BeeMn 01-05-2011 12:29 AM

Dont know if this post is helpful, it lists some CN-EN dict's and has instructions on how to make them the default Kindle dict

http://mrhaoji.com/blog/resources-for-kindle.html

intruder1960 01-20-2011 10:51 AM

cyrrilic dictionary
 
1 Attachment(s)
thanks for the helpful post. I'm almost there, but hit a snag:

trude@trude-laptop:~/Documents/dictionary$ python2.6 tab2opf.py ukr_eng_dic.txtfeff#NAME

#INDEX_LANGUAGE

#CONTENTS_LANGUAGE

Traceback (most recent call last):

File "tab2opf.py", line 240, in <module>

dt, dd = r.split('\t',1)

ValueError: need more than 1 value to unpack

trude@trude-laptop:~/Documents/dictionary$


I'll attach the .txt file if you need to look at it.
Many thanks:book2:

EbokJunkie 01-21-2011 04:14 AM

Try python 2.7. Should work.

mchunkat 01-29-2011 07:16 AM

I am having the same problem that intruder1960 is having.

C:\mobdic project>c:\python27\python.exe tab2opf.py csw.txt

Traceback (most recent call last):
File "tab2opf.py", line 240, in <module>
dt, dd = r.split('\t',1)
ValueError: need more than 1 value to unpack

Please help. I am trying to create a custom English-English dictionary. Thanks.

mchunkat 01-29-2011 07:20 AM

Sorry forgot to mention that I am using Python 2.7 on Windows XP. Thanks.

GeoffC 01-29-2011 09:14 AM

Lots of Newbies here :2thumbsup

Welcome all of you, to Mobileread .... Take a look around and join in ...

:hatsoff:

kaleissin 02-04-2011 10:14 AM

Quote:

Originally Posted by mchunkat (Post 1365497)
Code:

Traceback (most recent call last):
  File "tab2opf.py", line 240, in <module>
    dt, dd =  r.split('\t',1)
ValueError: need more than 1 value to unpack


This is telling you that (at least) one line in the file does not contain a tab. It attempts to split the string r once (1) on tab (\t) but fails, and thus can't fill (unpack to) the two "buckets" dt and dd.

Check if there is an empty line anywhere (check at the end!), or one with just a description but no keyword, or just a keyword but no description.

(Disclaimer: Python is my "native" programming language).

avid-e-reader 02-05-2011 12:05 AM

In the .OPF file, there is, in the <metadata>

<dc:Language>en</dc:Language>

Then in the <x-metadata> there is

<DictionaryInLanguage>en</DictionaryInLanguage>
<DictionaryOutLanguage>en</DictionaryOutLanguage>

Now to make a translation dictionary, from some other language to english, it is pretty clear I need to change the DictionaryInLanguage, but what should the <dc:Language> be set to? The source language, or English?

I think I've tried both, but still, I can't get the Kindle to look up words using my generated dictionary. So what else could be going wrong? The dictionary displays fine when I browse it.

GeoffC 02-05-2011 04:45 AM

kaleissin

:hatsoff:

Welcome to Mobileread ....

meehrcat 02-23-2011 05:43 PM

i'd like a Swedish-English dictionary (niche, i know), and I can't find one anywhere - the only one on amazon doesn't seem to work with the functionality it should - ie. being able to look up words in the text of an ebook. There's a GNU dictionary

http://folkets-lexikon.csc.kth.se/fo...ets_public.xml

which can provide an xml file, but it's not a comma del text file, as some of the software discussed here appears to require. I wonder if there's anyone who can point to how I might go about compiling this xml list into a functional ebook that can be used on the kindle in the same way that the english dictionary that comes free (with the K3) does. I am a complete beginner, btw.

I've got a Mac, should that make any difference, and a K3.

Advice would be super, Thanks!


All times are GMT -4. The time now is 11:09 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.