View Single Post
Old 07-01-2016, 03:18 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Since you appear to have the necessary editing skills, I'd recommend that you convert the decompiled dictionary to a Babylon source file (GLS) using regular expressions and/or sed.

For example, you'd need to convert the following English-German sample dictionary:

Code:
<html>
<body>

<idx:entry>
	<b><idx:orth>book
	<idx:infl>
		<idx:iform value="books"/>
	</idx:infl>
	</idx:orth> </b> 
	<i>Subst.</i> <br/>
	Buch (n)
</idx:entry>
<hr/>
<idx:entry>
	<b><idx:orth>go
	<idx:infl>
		<idx:iform value="goes"/>
		<idx:iform value="going"/>
		<idx:iform value="went"/>
		<idx:iform value="gone"/>
	</idx:infl>
	</idx:orth> </b> 
	<i>Verb</i> <br/>
	gehen
</idx:entry>


</body>
</html>
as follows:

Code:
#stripmethod=keep
#sametypesequence=h
#bookname=English-German Dictionary

book|books
<i>Subst.</i><br/>Buch (n)

go|goes|going|went|gone
<i>Verb</i><br/>gehen
You could then generate a StarDict dictionary (DICT & IFO) with StarDict Editor or a Babylon glossary file (BGL) with Babylon Glossary Builder.
Both dictionary types can be used with GoldenDict and many other dictionary apps.
Doitsu is offline   Reply With Quote