View Single Post
Old 05-24-2016, 03:59 AM   #16
San Zamoyski
Enthusiast
San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.San Zamoyski is an enigma wrapped up in a mystery.
 
Posts: 48
Karma: 41612
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
Ok, i made something like this:

OPF:
Code:
<?xml version="1.0" encoding="utf-8"?>
    <package unique-identifier="uid">
        <metadata>
            <dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core" xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/">
            <dc:identifier id="uid">Dictionary test (es)</dc:identifier>
            <dc:Title><h2>Dictionary test (es)</h2></dc:Title>
    		<dc:language>es</dc:language>
        </dc-metadata>
        <x-metadata>
                <DictionaryInLanguage>es</DictionaryInLanguage>
                <DictionaryOutLanguage>es</DictionaryOutLanguage>
        </x-metadata>
    </metadata>
    <!-- list of all the files needed to produce the .prc file -->
    <manifest>
        <item id="dictionary11" href="slo11.html" media-type="text/x-oeb1-document"/>
    </manifest>
	<!-- list of the html files in the correct order  -->
    <spine>
	    <itemref idref="dictionary11"/>
    </spine>
    <guide> 
        <reference type="search" title="Dictionary Search" onclick= "index_search()"/> 
    </guide>
</package>
slo11.html
Code:
<html xmlns:idx="http://www.mobipocket.com/idx" xmlns:mbp="www.mobipocket.com">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>

    <body>
        <mbp:frameset>
		<idx:entry name="spanish" scriptable="yes" spell="yes">
			<a id="12345"></a>
			<idx:orth value="uņa"><b>uņa</b>
				<idx:infl>
					<idx:iform value="uņas" exact="yes" />
				</idx:infl>
			</idx:orth><br/>
			Definition for <b>uņas</b>.
		</idx:entry>
		<idx:entry name="spanish" scriptable="yes" spell="yes">
			<a id="12345"></a>
			<idx:orth value="una"><b>una</b>
				<idx:infl>
					<idx:iform value="unas" exact="yes" />
				</idx:infl>
			</idx:orth><br/>
			Definition for <b>unas</b>.
		</idx:entry>
	 </mbp:frameset>
    </body>
</html>
It finds uņa but not una.
(tested on some polish book with changed lang's to es and added paragraph with those two - testbook2 - go to "Testowanie słownika" and next page)
Attached Files
File Type: mobi slo-1.mobi (129.4 KB, 209 views)
File Type: mobi testbook2.mobi (990.2 KB, 200 views)

Last edited by San Zamoyski; 05-24-2016 at 04:03 AM.
San Zamoyski is offline   Reply With Quote