Goal:
to build:
1) a mobi pocket dictionary containing text and images
2) a GoldenDict compatible dictionary containing text and images
starting situation:
The starting file to create the dictionary is in html format.
In the starting file "MedicalDic " and the tags "<P><SMALL><B>" are preciding each headword.
The explanation for the headword follows in the next line.
As an example for the structure I added two entries ("aberrant" and "Abduzensparese"). The second entry contains an image.
Code:
<HTML>
<HEAD>
<TITLE>Test</TITLE>
</HEAD>
<BODY bgcolor="white">
<P><SMALL><B>MedicalDic aberrant</B></SMALL></P>
<P>(lat. aberrare abweichen): abweichend; z.·B. aberrantes Gefäß.</P>
<P><SMALL><B>MedicalDic Abduzensparese</B></SMALL></P>
<P>(; <FONT COLOR="#0000ff">Parese*) </FONT>f: (engl.) abducens nerve palsy; Form der <FONT COLOR="#0000ff">Augenmuskellähmung* </FONT>inf.
Schädigung des N. abducens (VI. Hirnnerv) mit Lähmung des M. rectus lateralis, der
das Auge horizontal nach außen bewegt; bei der A. bleibt das betr. Auge beim Blick
nach außen medial stehen od. weicht nach innen ab (s. Abb.). Klin.: ungekreuzte
Doppelbilder, die um so weiter auseinandertreten, je stärker der Pat. zur Seite
schaut; Urs.: Gefäßveränderungen (z.·B. Hirnstamminfarkte, Ischämie des N.
abducens bei Diabetes mellitus, Hypertonie, Aneurysma), Tumoren der
Schädelbasis (s. Behr-Syndrom II, Gradenigo-Syndrom, Garcin-Syndrom),
retrobulbäre Tumoren (s. Fissura-orbitalis-superior-Syndrom), Entz. (basale
Meningitis, Multiple Sklerose, Borreliose), para- od. postinfektiös (z.·B. Diphtherie,
<FONT COLOR="#0000ff">Fisher*-</FONT>Syndrom), Kavernosusthrombose, Carotis-Sinus-cavernosus-Fistel,
<FONT COLOR="#0000ff">Tolosa*-</FONT>Hunt-Syndrom, Kompl. nach Liquorpunktion, Shunt-Anlage od. anderen
neurochir. Eingriffen, i.·R. einer <FONT COLOR="#0000ff">Myasthenia* </FONT>gravis pseudoparalytica od.
<FONT COLOR="#0000ff">Ophthalmoplegia* </FONT>chronica progressiva.</P>
<P><CENTER><IMG SRC="images/414202-00.jpg" WIDTH="141.00" HEIGHT="140.00" BORDER=0 ALT=" images/414202-00.jpg 391x388 (pixels)"></CENTER></P>
<P><B><a name="t2">Abduzenzparese:</a> <a name="t3">oben:</a> Geradeausblick; linkes Auge fixiert, leichte
Einwärtsstellung des rechten Auges; Mitte: Blickwendung nach links
ungestört; unten: Blickwendung nach rechts, fehlende Abduktion des rechten
Auges [362]</B></P>
</BODY></HTML>
Question: What is the best course of action, to convert this to mobipocket?
I found to ways to build a mobi file.
1) using the tab2opf script described
here.
2) using
this dsl2mobi script
I think the first way does not support images (correct me if I'm wrong) so I plan this conversion route:
html -> DSL -> OPF -> MOBI
Do you agree with this route or is there an easier way?
The hardest part is the "html -> DSL" conversion. I think html to XDXF would be much easier, but I did not found a way to convert XDXF to DSL (only DSL to XDXF).