View Single Post
Old 03-30-2018, 05:00 AM   #1
sinbad21
Junior Member
sinbad21 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2011
Device: Cybook OPUS
Question Problem with entries containing blanks in custom dictionary

Hi,

I have built a custom dictionary from a stardict dictionary containing proper nouns and common nouns, with Penelope. The problem is that when there is any blank or non alphabetic character in an entry, the definition is not found on the Kobo (but found on my Mac in a any dictionary application).

For example, with Abdul, the Kobo gives me 2 entries :

Abdul Hamid II
Abdul Rahman

If I choose one of this entries to see the definition (anyone), I get the message "No definition found". But the definition exists.

If I modify the dictionary before converting it with Penelope, adding " " in keys and definitions, it works in Kobo but I have to tap the " " when searching a word, which is not a valid solution :

"Abdul Hamid II"
"Abdul Rahman"

==> definitions found.

In a native Kobo dictionary, the problem does not occur, a key containing blanks gives the definition. But there is a difference between html files in a kobo native dictionary and my custom dictionary, the tags are different.

In Kobo native dictionary, the tag sequence found in a single html file inside the dictionary is the following :

<?xml version="1.0" encoding="utf-8"?><html><w><p><a name="abaisser"/><b>abaisser</b> ...


In my custom dictionary it is different :

<?xml version="1.0" encoding="utf-8"?><html><w><a name="AB"/><div><b>AB</b> ...

The <p> tag doesn't exist but a <div> tag is present, while there is no <div> tag in Kobo native dictionary.

I have tried to modify directly in the Kobo dictionary, by uncompressing the dicthtml.zip in a folder, then renaming a html file in .zip and decompressing it again. But it does not work, because after recompression the html file is unencrypted, and it seems that html files into a Kobo dictionary must be encrypted.

So what can I do ? Do you thing there is a solution ?

Thanks.
sinbad21 is offline   Reply With Quote