Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 47812

Polish dictionary

$
0
0
Hi!

I'm building polish dictionary for my kindle 3 (and will share it somewhere...). But i've found one quite annoying problem:
there are for example two words: laskę and łaskę.
first one is recognised well, but second one shows definition for laskę, but the meaning should be different.

can i make this dictionary work with this kind of words?

regards!

my opf file:
Code:

<?xml version="1.0"?><!DOCTYPE package SYSTEM "oeb1.ent">

<!-- the command line instruction 'prcgen dictionary.opf' will produce the dictionary.prc file in the same folder-->
<!-- the command line instruction 'mobigen dictionary.opf' will produce the dictionary.mobi file in the same folder-->

<package unique-identifier="uid" xmlns:dc="Dublin Core">

    <metadata>
        <dc-metadata>
                <dc:Identifier id="uid">Słownik Języka Polskiego, sjp.pl</dc:Identifier>
                <!-- Title of the document -->
                <dc:Title><h2>[ZM] sjp.pl (2016-05-14b)</h2></dc:Title>
                <dc:Language>pl-PL</dc:Language>
        </dc-metadata>
        <x-metadata>
                <DictionaryInLanguage>pl-PL</DictionaryInLanguage>
                <DictionaryOutLanguage>pl-PL</DictionaryOutLanguage>
        </x-metadata>
    </metadata>
    <!-- list of all the files needed to produce the .prc file -->
    <manifest>
        <item id="dictionary0" href="slo0.html" media-type="text/x-oeb1-document"/>
(...)
        <item id="dictionary25" href="slo25.html" media-type="text/x-oeb1-document"/>
    </manifest>
        <!-- list of the html files in the correct order  -->
    <spine>
            <itemref idref="dictionary0"/>
            <itemref idref="dictionary1"/>
(...)
            <itemref idref="dictionary25"/>
    </spine>
    <guide>
        <reference type="search" title="Dictionary Search" onclick= "index_search()"/>
    </guide>
</package>

and łaska sample.

Code:

<?xml version="1.0" encoding="utf-8"?>
<html xmlns:idx="www.mobipocket.com" xmlns:mbp="www.mobipocket.com" xmlns:xlink="http://www.w3.org/1999/xlink">
    <body>
        <mbp:pagebreak/>
        <mbp:frameset>
            <mbp:slave-frame display="bottom" device="all" breadth="auto" leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0">
                <div align="center" bgcolor="yellow"/>
                    <a onclick="index_search()">Dictionary Search</a>
                </div>
            </mbp:slave-frame>
            <mbp:pagebreak/>
(...)
<idx:entry name="word" scriptable="yes">
                        <h2>
                            <idx:orth>
                                łaska
                                <idx:infl inflgrp="odmiany">
                                    <idx:iform name="odmiana" value="łasce" />
                                    <idx:iform name="odmiana" value="łask" />
                                    <idx:iform name="odmiana" value="łaskach" />
                                    <idx:iform name="odmiana" value="łaskami" />
                                    <idx:iform name="odmiana" value="łaską" />
                                    <idx:iform name="odmiana" value="łaskę" />
                                    <idx:iform name="odmiana" value="łaski" />
                                    <idx:iform name="odmiana" value="łasko" />
                                    <idx:iform name="odmiana" value="łaskom" />
</idx:infl>
                            </idx:orth>
                            <idx:key key="łaska">
                        </h2>
                        <br/>
                        łaskawość, miłość, przychylność<br/>
ssak, mały drapieżnik z rodziny łasicowatych; łasica<br/>
przymiotnik od: Łask, rzadziej od: Łazy<br/>
miasto w Polsce<br/>
nazwisko
                    </idx:entry>
                    <hr />

(...)
<idx:entry name="word" scriptable="yes">
                        <h2>
                            <idx:orth>
                                laska
                                <idx:infl inflgrp="odmiany">
                                    <idx:iform name="odmiana" value="lasce" />
                                    <idx:iform name="odmiana" value="lasek" />
                                    <idx:iform name="odmiana" value="laskach" />
                                    <idx:iform name="odmiana" value="laskami" />
                                    <idx:iform name="odmiana" value="laską" />
                                    <idx:iform name="odmiana" value="laskę" />
                                    <idx:iform name="odmiana" value="laski" />
                                    <idx:iform name="odmiana" value="lasko" />
                                    <idx:iform name="odmiana" value="laskom" />

                                </idx:infl>
                            </idx:orth>
                            <idx:key key="laska">
                        </h2>
                        <br/> 
                        rodzaj kijka używanego przez osoby starsze oraz niepełnosprawne do podpierania się w czasie chodzenia$
książkowo: symbol niektórych godności i dostojeństw;<br/>
długi i cienki pręt czego;<br/>
potocznie: członek męski;<br/> 
środowiskowo: ocena niedostateczna;<br/>
młodzieżowo o bardzo zgrabnej, atrakcyjnej dziewczynie; dziunia, lacha, lachon<br/>
gwary laskie - mieszane gwary polsko-czeskie (w rejonie Raciborza)<br/>
nazwisko<br/>
nazwisko
                    </idx:entry>
                    <hr />

        </mbp:frameset>
    </body>
</html>


Viewing all articles
Browse latest Browse all 47812

Trending Articles