View Single Post
Old 04-28-2020, 06:36 PM   #11
annoporci
Enthusiast
annoporci began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Oct 2012
Location: Los Angeles
Device: Kindle Paperwhite 2019, Firmware 5.12.4
Thanks jhowell! This is encouraging. I'll see if my regexp skill is sufficient to make a workable lookup dictionary (I'm not looking for perfection).

The OPF file I get from the KindleUnpack plugin, taking the Spanish dictionary provided by Amazon for free, does not contain several lines that I would have expected from the Amazon guidelines you referenced. I re-downloaded this dictionary a couple of days ago to make sure I had the latest version and KindleUnpacked it.

As you can see, it doesn't have '<x-metadata>' around <DictionaryInLanguage>es</DictionaryInLanguage>. In any case, getting the OPF file right will be the easiest part of this endeavour.

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>Real Academia Espaņola el Diccionario de la lengua espaņola</dc:title>
<dc:language>es</dc:language>
<dc:identifier id="uid">737551192</dc:identifier>
<dc:creator>Real Academia Espaņola</dc:creator>
<dc:contributor>calibre (4.13.0) [https://calibre-ebook.com]</dc:contributor>
<dc:publisher>Amazon Dictionary Account</dc:publisher>
<dc:source>calibre:e1734abb-ad6d-48a2-8012-5bd13419fd53</dc:source>
<dc:date opf:event="publication">0101-01-01 00:00:00+00:00</dc:date>
<meta name="cover" content="cover_img" />
<meta name="output encoding" content="utf-8" />
<!-- BEGIN INFORMATION ONLY 
<meta name="Cover ThumbNail Image" content="Images/image32086.jpeg" />
<meta name="ASIN" content="e1734abb-ad6d-48a2-8012-5bd13419fd53" />
<meta name="Updated_Title" content="Real Academia Espaņola el Diccionario de la lengua espaņola" />
<meta name="Creator-Minor-Version" content="9" />
<meta name="StartOffset" content="98947" />
<meta name="Creator-Build-Tag" content="0730-890adc2" />
<meta name="MetadataResourceURI" content="kindle:embed:0001" />
<meta name="Creator-Software" content="202" />
<meta name="HasFakeCover" content="0" />
<meta name="cdeType" content="EBOK" />
<meta name="Metadata-Record-Offset" content="0" />
<meta name="Creator-Major-Version" content="2" />
<meta name="Embedded-Record-Count" content="2" />
<meta name="Content-Language-Tag" content="es" />
<meta name="Creator-Build-Number" content="0" />
END INFORMATION ONLY -->
</metadata>
<manifest>
<item id="item0" media-type="application/xhtml+xml" href="Text/cover_page.xhtml" />
<item id="item1" media-type="application/xhtml+xml" href="Text/part0000.xhtml" />
<item id="item2" media-type="application/xhtml+xml" href="Text/part0001.xhtml" />
<item id="item3" media-type="application/xhtml+xml" href="Text/part0002.xhtml" />
<item id="item4" media-type="application/xhtml+xml" href="Text/part0003.xhtml" />
<item id="item5" media-type="application/xhtml+xml" href="Text/part0004.xhtml" />
<item id="item6" media-type="application/xhtml+xml" href="Text/part0005.xhtml" />
<item id="item7" media-type="application/xhtml+xml" href="Text/part0006.xhtml" />
<item id="item8" media-type="application/xhtml+xml" href="Text/part0007.xhtml" />
<item id="item9" media-type="application/xhtml+xml" href="Text/part0008.xhtml" />
<item id="item10" media-type="application/xhtml+xml" href="Text/part0009.xhtml" />
<item id="item11" media-type="application/xhtml+xml" href="Text/part0010.xhtml" />
<item id="item12" media-type="application/xhtml+xml" href="Text/part0011.xhtml" />
<item id="item13" media-type="application/xhtml+xml" href="Text/part0012.xhtml" />
<item id="item14" media-type="application/xhtml+xml" href="Text/part0013.xhtml" />
<item id="item15" media-type="application/xhtml+xml" href="Text/part0014.xhtml" />
<item id="item16" media-type="application/xhtml+xml" href="Text/part0015.xhtml" />
<item id="item17" media-type="application/xhtml+xml" href="Text/part0016.xhtml" />
<item id="item18" media-type="application/xhtml+xml" href="Text/part0017.xhtml" />
<item id="item19" media-type="application/xhtml+xml" href="Text/part0018.xhtml" />
<item id="item20" media-type="application/xhtml+xml" href="Text/part0019.xhtml" />
<item id="item21" media-type="application/xhtml+xml" href="Text/part0020.xhtml" />
<item id="item22" media-type="application/xhtml+xml" href="Text/part0021.xhtml" />
<item id="item23" media-type="application/xhtml+xml" href="Text/part0022.xhtml" />
<item id="item24" media-type="application/xhtml+xml" href="Text/part0023.xhtml" />
<item id="item25" media-type="application/xhtml+xml" href="Text/part0024.xhtml" />
<item id="item26" media-type="application/xhtml+xml" href="Text/part0025.xhtml" />
<item id="item27" media-type="application/xhtml+xml" href="Text/part0026.xhtml" />
<item id="item28" media-type="application/xhtml+xml" href="Text/part0027.xhtml" />
<item id="item29" media-type="application/xhtml+xml" href="Text/part0028.xhtml" />
<item id="item30" media-type="application/xhtml+xml" href="Text/part0029.xhtml" />
<item id="item31" media-type="application/xhtml+xml" href="Text/part0030.xhtml" />
<item id="item32" media-type="application/xhtml+xml" href="Text/part0031.xhtml" />
<item id="item33" media-type="application/xhtml+xml" href="Text/part0032.xhtml" />
<item id="item34" media-type="application/xhtml+xml" href="Text/part0033.xhtml" />
<item id="item35" media-type="application/xhtml+xml" href="Text/part0034.xhtml" />
<item id="item36" media-type="application/xhtml+xml" href="Text/part0035.xhtml" />
<item id="item37" media-type="application/xhtml+xml" href="Text/part0036.xhtml" />
<item id="item38" media-type="application/xhtml+xml" href="Text/part0037.xhtml" />
<item id="item39" media-type="application/xhtml+xml" href="Text/part0038.xhtml" />
<item id="item40" media-type="application/xhtml+xml" href="Text/part0039.xhtml" />
<item id="item41" media-type="application/xhtml+xml" href="Text/part0040.xhtml" />
<item id="item42" media-type="application/xhtml+xml" href="Text/part0041.xhtml" />
<item id="item43" media-type="application/xhtml+xml" href="Text/part0042.xhtml" />
<item id="item44" media-type="application/xhtml+xml" href="Text/part0043.xhtml" />
<item id="item45" media-type="application/xhtml+xml" href="Text/part0044.xhtml" />
<item id="item46" media-type="application/xhtml+xml" href="Text/part0045.xhtml" />
<item id="item47" media-type="application/xhtml+xml" href="Text/part0046.xhtml" />
<item id="item48" media-type="application/xhtml+xml" href="Text/part0047.xhtml" />
<item id="item49" media-type="application/xhtml+xml" href="Text/part0048.xhtml" />
<item id="item50" media-type="application/xhtml+xml" href="Text/part0049.xhtml" />
<item id="item51" media-type="application/xhtml+xml" href="Text/part0050.xhtml" />
<item id="item52" media-type="application/xhtml+xml" href="Text/part0051.xhtml" />
<item id="item53" media-type="application/xhtml+xml" href="Text/part0052.xhtml" />
<item id="item54" media-type="application/xhtml+xml" href="Text/part0053.xhtml" />
<item id="item55" media-type="application/xhtml+xml" href="Text/part0054.xhtml" />
<item id="item56" media-type="application/xhtml+xml" href="Text/part0055.xhtml" />
<item id="item57" media-type="application/xhtml+xml" href="Text/part0056.xhtml" />
<item id="item58" media-type="application/xhtml+xml" href="Text/part0057.xhtml" />
<item id="item59" media-type="application/xhtml+xml" href="Text/part0058.xhtml" />
<item id="item60" media-type="application/xhtml+xml" href="Text/part0059.xhtml" />
<item id="item61" media-type="application/xhtml+xml" href="Text/part0060.xhtml" />
<item id="item62" media-type="application/xhtml+xml" href="Text/part0061.xhtml" />
<item id="item63" media-type="application/xhtml+xml" href="Text/part0062.xhtml" />
<item id="item64" media-type="application/xhtml+xml" href="Text/part0063.xhtml" />
<item id="item65" media-type="application/xhtml+xml" href="Text/part0064.xhtml" />
<item id="item66" media-type="application/xhtml+xml" href="Text/part0065.xhtml" />
<item id="item67" media-type="application/xhtml+xml" href="Text/part0066.xhtml" />
<item id="item68" media-type="application/xhtml+xml" href="Text/part0067.xhtml" />
<item id="item69" media-type="application/xhtml+xml" href="Text/part0068.xhtml" />
<item id="item70" media-type="application/xhtml+xml" href="Text/part0069.xhtml" />
<item id="item71" media-type="application/xhtml+xml" href="Text/part0070.xhtml" />
<item id="item72" media-type="application/xhtml+xml" href="Text/part0071.xhtml" />
<item id="item73" media-type="application/xhtml+xml" href="Text/part0072.xhtml" />
<item id="item74" media-type="application/xhtml+xml" href="Text/part0073.xhtml" />
<item id="item75" media-type="application/xhtml+xml" href="Text/part0074.xhtml" />
<item id="item76" media-type="application/xhtml+xml" href="Text/part0075.xhtml" />
<item id="item77" media-type="application/xhtml+xml" href="Text/part0076.xhtml" />
<item id="item78" media-type="application/xhtml+xml" href="Text/part0077.xhtml" />
<item id="item79" media-type="application/xhtml+xml" href="Text/part0078.xhtml" />
<item id="item80" media-type="application/xhtml+xml" href="Text/part0079.xhtml" />
<item id="item81" media-type="application/xhtml+xml" href="Text/part0080.xhtml" />
<item id="item82" media-type="application/xhtml+xml" href="Text/part0081.xhtml" />
<item id="item83" media-type="application/xhtml+xml" href="Text/part0082.xhtml" />
<item id="item84" media-type="application/xhtml+xml" href="Text/part0083.xhtml" />
<item id="item85" media-type="application/xhtml+xml" href="Text/part0084.xhtml" />
<item id="item86" media-type="application/xhtml+xml" href="Text/part0085.xhtml" />
<item id="item87" media-type="application/xhtml+xml" href="Text/part0086.xhtml" />
<item id="item88" media-type="application/xhtml+xml" href="Text/part0087.xhtml" />
<item id="item89" media-type="application/xhtml+xml" href="Text/part0088.xhtml" />
<item id="item90" media-type="application/xhtml+xml" href="Text/part0089.xhtml" />
<item id="item91" media-type="application/xhtml+xml" href="Text/part0090.xhtml" />
<item id="item92" media-type="application/xhtml+xml" href="Text/part0091.xhtml" />
<item id="item93" media-type="application/xhtml+xml" href="Text/part0092.xhtml" />
<item id="item94" media-type="application/xhtml+xml" href="Text/part0093.xhtml" />
<item id="item95" media-type="application/xhtml+xml" href="Text/part0094.xhtml" />
<item id="item96" media-type="application/xhtml+xml" href="Text/part0095.xhtml" />
<item id="item97" media-type="application/xhtml+xml" href="Text/part0096.xhtml" />
<item id="item98" media-type="text/css" href="Styles/style0001.css" />
<item id="item99" media-type="text/css" href="Styles/style0002.css" />
<item id="cover_img" media-type="image/jpeg" href="Images/cover32085.jpeg" />
<item id="ncx" media-type="application/x-dtbncx+xml" href="toc.ncx" />
</manifest>
<spine toc="ncx">
<itemref idref="item0" linear="no"/>
<itemref idref="item1"/>
<itemref idref="item2"/>
<itemref idref="item3"/>
<itemref idref="item4"/>
<itemref idref="item5"/>
<itemref idref="item6"/>
<itemref idref="item7"/>
<itemref idref="item8"/>
<itemref idref="item9"/>
<itemref idref="item10"/>
<itemref idref="item11"/>
<itemref idref="item12"/>
<itemref idref="item13"/>
<itemref idref="item14"/>
<itemref idref="item15"/>
<itemref idref="item16"/>
<itemref idref="item17"/>
<itemref idref="item18"/>
<itemref idref="item19"/>
<itemref idref="item20"/>
<itemref idref="item21"/>
<itemref idref="item22"/>
<itemref idref="item23"/>
<itemref idref="item24"/>
<itemref idref="item25"/>
<itemref idref="item26"/>
<itemref idref="item27"/>
<itemref idref="item28"/>
<itemref idref="item29"/>
<itemref idref="item30"/>
<itemref idref="item31"/>
<itemref idref="item32"/>
<itemref idref="item33"/>
<itemref idref="item34"/>
<itemref idref="item35"/>
<itemref idref="item36"/>
<itemref idref="item37"/>
<itemref idref="item38"/>
<itemref idref="item39"/>
<itemref idref="item40"/>
<itemref idref="item41"/>
<itemref idref="item42"/>
<itemref idref="item43"/>
<itemref idref="item44"/>
<itemref idref="item45"/>
<itemref idref="item46"/>
<itemref idref="item47"/>
<itemref idref="item48"/>
<itemref idref="item49"/>
<itemref idref="item50"/>
<itemref idref="item51"/>
<itemref idref="item52"/>
<itemref idref="item53"/>
<itemref idref="item54"/>
<itemref idref="item55"/>
<itemref idref="item56"/>
<itemref idref="item57"/>
<itemref idref="item58"/>
<itemref idref="item59"/>
<itemref idref="item60"/>
<itemref idref="item61"/>
<itemref idref="item62"/>
<itemref idref="item63"/>
<itemref idref="item64"/>
<itemref idref="item65"/>
<itemref idref="item66"/>
<itemref idref="item67"/>
<itemref idref="item68"/>
<itemref idref="item69"/>
<itemref idref="item70"/>
<itemref idref="item71"/>
<itemref idref="item72"/>
<itemref idref="item73"/>
<itemref idref="item74"/>
<itemref idref="item75"/>
<itemref idref="item76"/>
<itemref idref="item77"/>
<itemref idref="item78"/>
<itemref idref="item79"/>
<itemref idref="item80"/>
<itemref idref="item81"/>
<itemref idref="item82"/>
<itemref idref="item83"/>
<itemref idref="item84"/>
<itemref idref="item85"/>
<itemref idref="item86"/>
<itemref idref="item87"/>
<itemref idref="item88"/>
<itemref idref="item89"/>
<itemref idref="item90"/>
<itemref idref="item91"/>
<itemref idref="item92"/>
<itemref idref="item93"/>
<itemref idref="item94"/>
<itemref idref="item95"/>
<itemref idref="item96"/>
<itemref idref="item97"/>
</spine>
<tours>
</tours>
<guide>
<reference type="text" title="Comenzando" href="Text/part0005.xhtml#aid-4OIQ2" />
<reference type="toc" title="Contenido" href="Text/part0000.xhtml#filepos166" />
<reference type="cover" title="Cover" href="Text/cover_page.xhtml" />
</guide>
</package>
NOTE: When I first posted, I included the wrong OPF. That mistake was corrected after about 10 minutes.

Last edited by annoporci; 04-28-2020 at 06:44 PM.
annoporci is offline   Reply With Quote