Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2021, 05:08 PM   #1
FrankJH
Member
FrankJH began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2021
Location: Stuttgart, Germany
Device: Galaxy Tab S7+
Dictionary as Epub

Dear All,

so far, my Google researches concerning this subject haven't been successful, so I took the liberty to ask a question here.

I'd like to create my own dictionaries.

I developped some Java-routines which are able to download specific sections from the English and French Wiktionary, process them and are able to output them in HTML.

Using CSS-Stylesheets, one can achieve a very good readability, but there's one problem.

I made a test with approximately 6000 entries ... these entries are linked via the table of contents to the explanations - this mean: a lot of href's.

It turned out to very slow ... anyway, it is also slow if I open my self-compiled dictionary page in a browser.

Obviously, using href's is not the best way to handle this ...

Has anyone of you experiences with a dictionary as an epub?

I guess one has to use a database ... but is this possible within an epub?

I think we have to use Javascript for these purposes ... but maybe I'm wrong ...

I'd also like to implement an index search ... this means: I use an input prompt, while typing the search term, proposals/term completions will be shown, e.g. if I type in the search term "for", proposals like "for", "forbidden", "foresake" will be shown.

If anybody has solved this problem, it would be very nice if he (or she) would share these experiences with me.

Best wishes, and thank you in advance, Frank

P.S. Please feel free to tell me that my ideas are wrong or if something of this kind won't work ...
FrankJH is offline   Reply With Quote
Old 10-12-2021, 06:58 PM   #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,289
Karma: 19618507
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by FrankJH View Post
I guess one has to use a database ... but is this possible within an epub?
I think we have to use Javascript for these purposes ... but maybe I'm wrong
I experimented with this some time ago and found out that it's theoretically possible to embed a sqlite database in an epub and query it using a sqlite JavaScript library.
If you open my proof-of-concept epub3 file with Calibre Editor or Apple Books you should get single-word German definitions, if you click on book, house or mouse in the second paragraph.
However, if you look at the source files, you'll notice that the size of the 6 word demo database is already 164KB, which makes this approach impractical.

BTW, there's an IDPF dictionary proposal that nobody seems to be interested in.

You might want to look into creating Stardict dictionaries. They're supported by many Android epub apps and KOReader.

You could also simply convert your epubs to Kindle books and read them with one of the free Kindle apps, which come with excellent free dictionaries.

(You could also convert HTML source files (with custom markup) to Kindle dictionaries with KindleGen.)
Attached Files
File Type: epub Click_test_epub3.epub (412.2 KB, 59 views)
Doitsu is offline   Reply With Quote
Old 10-19-2021, 09:48 AM   #3
FrankJH
Member
FrankJH began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2021
Location: Stuttgart, Germany
Device: Galaxy Tab S7+
Hello Doitsu, thanks a lot for answering!

I see: I have to experiment a little ...

Kind regards, Frank
FrankJH is offline   Reply With Quote
Old 10-19-2021, 12:54 PM   #4
Sarmat89
Addict
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 312
Karma: 2145408
Join Date: Nov 2015
Device: none
That's just another example of inadequacy of EPUB "standard" for real-life applications.
Sarmat89 is offline   Reply With Quote
Old 10-19-2021, 01:17 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 5,929
Karma: 4217884
Join Date: Nov 2009
Device: many
Given their size and need for direct or indexed access, dictionaries should really be provided as a system level service or networked resource and not as an epub (IMHO), and this really has nothing to do with the epub standard and more to do with inadequate or non-expandable e-reading devices.
KevinH is offline   Reply With Quote
Reply

Tags
dictionary


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.epub dictionary to .mobi dictionary ssaahh Amazon Kindle 1 10-02-2020 11:17 AM
dictionary in epub varad General Discussions 1 08-29-2012 01:35 PM
Creating Dictionary in Epub Krystl Workshop 8 04-13-2012 10:58 AM
ePUB English dictionary & ePUB Bible Sabrina Introduce Yourself 7 08-30-2010 11:30 PM


All times are GMT -4. The time now is 09:22 PM.


MobileRead.com is a privately owned, operated and funded community.