Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2021, 03:34 PM   #1
cake001
Junior Member
cake001 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 10th gen
Korean -> English dictionary

First of all hi, I've lurked hard but this is too complicated for me.

Second, I have scoured the internet on how to get this dictionary thing to work but it won't. Either it freezes the kindle for a while or the highlighted word pop's up with ... (then random words) not the definition.

I have the tab2opf.exe the mobigen.exe. I even tried a python script I found

So I tried this from this site though googlefu and that fixed the hmtl gibberish problem
Code:
python tab2opf.py -utf mytabfile.txt
But not this? Warning(prcgen): encountered an empty "idx:key" tag.
So I'm at a complete loss now and my head is fried.

Can anyone help me with this?
html looks like this now
Attached Files
File Type: zip stardict-KoreanEnglishDic-2.4.2.zip (19.90 MB, 295 views)
cake001 is offline   Reply With Quote
Old 01-02-2021, 05:17 AM   #2
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Quote:
Originally Posted by cake001 View Post
First of all hi, I've lurked hard but this is too complicated for me.

Second, I have scoured the internet on how to get this dictionary thing to work but it won't. Either it freezes the kindle for a while or the highlighted word pop's up with ... (then random words) not the definition.

I have the tab2opf.exe the mobigen.exe. I even tried a python script I found

So I tried this from this site though googlefu and that fixed the hmtl gibberish problem
Code:
python tab2opf.py -utf mytabfile.txt
But not this? Warning(prcgen): encountered an empty "idx:key" tag.
So I'm at a complete loss now and my head is fried.

Can anyone help me with this?
html looks like this now
The script generated no keys. I've added them with a txt editor in the html files

Check both of them
Attached Files
File Type: zip KoreanEnglishDic.zip (14.63 MB, 294 views)
Owl_ is offline   Reply With Quote
Old 01-02-2021, 10:03 AM   #3
cake001
Junior Member
cake001 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 10th gen
Thank you! But...maybe this xmas kindle of mine is defective. Because it freezes up completely as well.

Also what do you mean by keys?
cake001 is offline   Reply With Quote
Old 01-02-2021, 12:31 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,024
Karma: 90000009
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Owl_ View Post
The script generated no keys. I've added them with a txt editor in the html files

Check both of them
Would you mind sharing the files you fed into mobigen to produce those? There is something about the resulting files that kindleunpack doesn’t like and I am curious what it might be.
jhowell is online now   Reply With Quote
Old 01-03-2021, 01:03 AM   #5
cake001
Junior Member
cake001 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 10th gen
This is attempt xxxxx with python+penelope which is the closest I've gotten. But the kindle still freezes for a good while before actually popping up with text. It doesn't pull the word like a normal text.

I have no idea what I'm doing wrong.
Attached Files
File Type: zip kr2en1.zip (7.93 MB, 160 views)
cake001 is offline   Reply With Quote
Old 01-03-2021, 05:24 AM   #6
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Quote:
Originally Posted by jhowell View Post
Would you mind sharing the files you fed into mobigen to produce those? There is something about the resulting files that kindleunpack doesn’t like and I am curious what it might be.
here they are
Attached Files
File Type: zip html_parts.zip (6.98 MB, 179 views)
Owl_ is offline   Reply With Quote
Old 01-03-2021, 05:34 AM   #7
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Quote:
Originally Posted by cake001 View Post
Also what do you mean by keys?
Before

<mbp:pagebreak/>
<idx:entry name="word" scriptable="yes">
<b>
<idx:orth>분유</idx:orth><idx:key key="">
</b></font>
분유 [粉乳] powdered[dry / dried] milk.ㆍ 탈지 ∼ nonfat dry milk.

After

<mbp:pagebreak/>
<idx:entry name="word" scriptable="yes">
<b>
<idx:orth>분유</idx:orth><idx:key key="분유">
</b></font>
분유 [粉乳] powdered[dry / dried] milk.ㆍ 탈지 ∼ nonfat dry milk.
Owl_ is offline   Reply With Quote
Old 01-03-2021, 08:48 AM   #8
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,024
Karma: 90000009
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Owl_ View Post
here they are
Thanks for that.

I am still looking into the original problem, but one thing I noticed wrong with those files is that "<" and ">" characters in definitions are not being escaped, leading to text being treated as HTML tags. For example:

welcome / make <a person> welcome / receive <a person> with delight.


Added: Actually I did find the problem and it is related to the above issue. In the entry that is failing the closing tag (</idx:entry>) is being lost because the definition is truncated in the middle of text with unescaped characters:

<idx:entry name="word" scriptable="yes">
<b>
<idx:orth>맞다</idx:orth><idx:key key="맞다">
</b></font>
맞다11 [영접하다] meet; go (out) to meet; receive; greet.ㆍ 반가이 ∼ welcome / make <a person> welcome / receive <a person> with delight.ㆍ 따뜻이 ∼ give <a person> a warm reception.ㆍ... (셈을 마치고) All right!2 [적합하다] suit <one's taste>; answer[serve] <the p
</idx:entry>

Last edited by jhowell; 01-03-2021 at 08:54 AM.
jhowell is online now   Reply With Quote
Old 01-03-2021, 09:25 AM   #9
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Quote:
Originally Posted by jhowell View Post
Thanks for that.

I am still looking into the original problem, but one thing I noticed wrong with those files is that "<" and ">" characters in definitions are not being escaped, leading to text being treated as HTML tags. For example:

welcome / make <a person> welcome / receive <a person> with delight.


Added: Actually I did find the problem and it is related to the above issue. In the entry that is failing the closing tag (</idx:entry>) is being lost because the definition is truncated in the middle of text with unescaped characters:

<idx:entry name="word" scriptable="yes">
<b>
<idx:orth>맞다</idx:orth><idx:key key="맞다">
</b></font>
맞다11 [영접하다] meet; go (out) to meet; receive; greet.ㆍ 반가이 ∼ welcome / make <a person> welcome / receive <a person> with delight.ㆍ 따뜻이 ∼ give <a person> a warm reception.ㆍ... (셈을 마치고) All right!2 [적합하다] suit <one's taste>; answer[serve] <the p
</idx:entry>
I will give it a try
Owl_ is offline   Reply With Quote
Old 01-03-2021, 09:55 AM   #10
cake001
Junior Member
cake001 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 10th gen
Both of you and that key is over my head.
cake001 is offline   Reply With Quote
Old 01-03-2021, 10:43 AM   #11
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Your dictionary is under my feet
Attached Files
File Type: zip KoreanEnglish.zip (14.61 MB, 622 views)
Owl_ is offline   Reply With Quote
Old 01-03-2021, 12:15 PM   #12
cake001
Junior Member
cake001 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 10th gen
Quote:
Originally Posted by Owl_ View Post
Your dictionary is under my feet
Omg thank you. It takes a little bit for the kindle to process it but it works!
How do you do that key insert thing? for future reference? I have no experience with that stuff.
cake001 is offline   Reply With Quote
Old 01-03-2021, 12:26 PM   #13
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Talking

Quote:
Originally Posted by cake001 View Post
Omg thank you. It takes a little bit for the kindle to process it but it works!
How do you do that key insert thing? for future reference? I have no experience with that stuff.
Using Notepad++ or Emeditor. I did the replace in the html with the "regex" = regular expressions, that allowed me to do the things listed over your head
Owl_ is offline   Reply With Quote
Old 01-03-2021, 12:52 PM   #14
cake001
Junior Member
cake001 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 10th gen
Is...there a for dummies version?
cake001 is offline   Reply With Quote
Old 01-03-2021, 01:10 PM   #15
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,016
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by jhowell View Post
...Actually I did find the problem and it is related to the above issue. In the entry that is failing the closing tag (</idx:entry>) is being lost because the definition is truncated in the middle of text with unescaped characters...

Quote:
Originally Posted by Owl_ View Post
Your dictionary is under my feet
Insightful. Thanks both of you.

Last edited by PoP; 01-03-2021 at 01:13 PM.
PoP is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for certain english-english dictionary from early 1900s Cootey Kobo Reader 3 10-02-2020 01:30 AM
Help! Installing a Korean keyboard under English UI OS ibid Onyx Boox 1 06-08-2020 03:58 PM
PDF w/ Korean & English to Mobi Help Needed HomelessRob Conversion 1 12-20-2011 04:51 AM
PB302 - How to replace English->Russian dictionary with English only (with defin.)? guyanonymous PocketBook 29 08-03-2010 06:05 PM
Reader to read Korean and English laowai Which one should I buy? 1 11-10-2007 05:13 PM


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


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