EDIT Oh wait, I understand. When I converted the mobi file to azw, the lookup dictionary features were lost. Silly me. So the relevant OPF is indeed the one below, taken from the mobi file, which contains the <DictionaryInLanguage> and <DictionaryOutLanguage> declarations in the preamble. Apologies for the noise.
Quote:
Originally Posted by jhowell
Something is wrong with your revised post. The OPF shown does not include <DictionaryInLanguage> or <DictionaryOutLanguage> at all.
|
The OPF shown above was created from the original azw file via the KindleUnpack plugin. Only the <dc:language>es</dc:language> declaration appears (inside the mobi8/OEBPS directory).
I also converted the azw to mobi via calibre and used KindleUnpack to obtain another OPF. There the <DictionaryInLanguage>es</DictionaryInLanguage> and <DictionaryOutLanguage>es</DictionaryOutLanguage> declarations appear (inside the mobi7 directory). But not inside x-metadata tags.
For completeness, below is the OPF associated with the unpacked mobi (exact same dictionary file to begin with):
Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="uid">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:title>Diccionario de la lengua espaņola</dc:title>
<dc:language>es</dc:language>
<dc:identifier id="uid">3172006083</dc:identifier>
<dc:creator>Real Academia Espaņola</dc:creator>
<dc:contributor>Amazon Kindle Special Conversions</dc:contributor>
<dc:publisher>Amazon Dictionary Account</dc:publisher>
<dc:date opf:event="publication"> </dc:date>
<meta name="cover" content="cover_img" />
<meta name="output encoding" content="utf-8" />
<DictionaryInLanguage>es</DictionaryInLanguage>
<DictionaryOutLanguage>es</DictionaryOutLanguage>
<meta name="primary-writing-mode" content="horizontal-lr" />
<!-- BEGIN INFORMATION ONLY
<meta name="Cover ThumbNail Image" content="Images/image16934.jpeg" />
<meta name="Drm Ebookbase Book Id" content="0000000449033" />
<meta name="ASIN" content="B005064LTK" />
<meta name="Content-Language-Tag" content="es" />
<meta name="Creator-Build-Number" content="0" />
<meta name="Metadata-Record-Offset" content="0" />
<meta name="Unknown_(407)_(hex)" content="0000000000000000" />
<meta name="Ownership-Type_(hex)" content="00" />
<meta name="Container_Id" content="1waE" />
<meta name="cdeType" content="EBOK" />
<meta name="HasFakeCover" content="0" />
<meta name="Text-to-Speech-Disabled" content="0" />
<meta name="Dictionary_In_Langague" content="es" />
<meta name="Creator-Minor-Version" content="9" />
<meta name="Embedded-Record-Count" content="3" />
<meta name="Font-Signature_(hex)" content="ff0000e052600000000000000000008000200000000000000000000000000000f4edecbe01ed01fa01e901e102eb02cd028102ab03e703f003d003dd04e905e3068c06810684068607bd07b907bf07ba3ca53c973cd33ce33ef53efb3ef93efd40924094409340964098409940a240a641ac42e042ee449a44e544e444924ba14bba4bcb4ba04ced" />
<meta name="Updated_Title" content="Real Academia Espaņola el Diccionario de la lengua espaņola" />
<meta name="Creator-Major-Version" content="2" />
<meta name="CDEContentKey" content="B005064LTK" />
<meta name="Rental-Expiration-Time" content="0000000000000000" />
<meta name="Creator-Build-Tag" content="1029-0897292" />
<meta name="Creator-Software" content="200" />
<meta name="Tamper-Proof-Keys_(hex)" content="01000000d000000001940000000191000000019500000001960000000197" />
<meta name="Watermark_(hex)" content="6174763a6b696e3a323a37495831337a5a4b4638516445323738777438716f364f7a6464427659717655346b65353763332f4c3658786f7161315154624f526c677667487166566a77454848545738596d4a6575494350674169614c345a30714c7830655265574f4d4e31454e384579454d67306e477871366237762b5932386f4a5a42616245482b7143776d3174335a6d534a2f3175334f6b4769556c7669422b6a5853316f4268315675394c355a4e5857687a514e3854435470453961445764456b316f54675a593a5968476163366b717337482b38436143685937434e52716e4f41633d" />
<meta name="Clipping-Limit" content="100" />
<meta name="override-kindle-fonts" content="false" />
<meta name="Unknown_(403)_(hex)" content="00" />
<meta name="sample" content="0" />
<meta name="547 (hex)" content="49006e004d0065006d006f0072007900" />
<meta name="Dictionary_Out_Language" content="es" />
<meta name="StartOffset" content="4294967295" />
END INFORMATION ONLY -->
</metadata>
<manifest>
<item id="item0" media-type="text/html" href="book.html" />
<item id="cover_img" media-type="image/jpeg" href="Images/cover16933.jpeg" />
<item id="ncx" media-type="application/x-dtbncx+xml" href="toc.ncx" />
</manifest>
<spine toc="ncx">
<itemref idref="item0"/>
</spine>
<tours>
</tours>
<guide>
<reference title="Contenido" type="toc" href="book.html#filepos166" /><reference title="Comenzando" type="text" href="book.html#filepos63413" />
<reference type="text" href="book.html#filepos0" />
</guide>
</package>
I prefer the structure obtained from the azw file because the text is broken down into multiple, smaller files (partXXXX.xhtml), rather than a single file ('book.html'), which is easier to handle.