Thread: DR800 StarDict
View Single Post
Old 07-16-2010, 05:18 PM   #1
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
Lightbulb StarDict

Edit 20100804: new release v2.3
To upgrade to v2.3 use the latest binary _stardict/bin/stardict .
Popup window stabilization. Now popup hides *only* when you click outside it.
Previously it became hidden on clicking inside or even on putting the stylus close to DR


Yess! Here's a long awaited software working just fine on the beloved DR800 and for DR1000 users. As usual unpack everything to have
<sdcard>
----/Programs/ <-- this one is important!! will work correctly only from here!!
--------_stardict/
--------stardict.desktop

You can translate individual words during reading a book in FBReader! Open StarDict, then Go back to SD-Card (leave StarDict open!), start FBReader, open your book and do a relatively fast double click on a word. In a second you have a translation.

There's Webster dictionary already inside, so you can check out whether the thing is operable. The dictionaries are available here http://xdxf.revdanica.com/down/index.php . Important! You have to select StarDict format in the combo (upper right corner of the page) and press submit. Extract dictionaries to _stardict/share/stardict/dic/

Tons of dictionaries in the correct format are located here http://www.huzheng.org/stardict-iso/stardict-dic/ Again, extract the needed ones to _stardict/share/stardict/dic/

Occasional non-English input symbols can be substituted with ? sign - StarDict will suggest you several guesses (too bad this trick will not work with Cyrillic input ..). Improved multilingual matchbox keyboard may come out later

Exit button is in the lower left corner, a door with an arrow.

Enjoy!



Details for developers:
Spoiler:
this is version 2.4.8, no plugins, pure StarDict format support. I just had to make it compilable (were missed includes in .hpp files). 3.0.2 from rep compiles without questions but puts the processor into 100% load .. Same with 3.0.1 (required cleaning the compilation). It looks like too many screen updates are generated (seen it with "top" command in rxvt).

To compile the sources execute build_all_from_scratch.sh .
Main changes were introduced to src/stardict.cpp and src/utils.cpp, cleanly seen by comments.


Changes:
v2.3:
  • Popup window stabilization. No hiding on clicking inside popup area
v2.2:
  • Increased selection time from 0.3 sec to 2 sec
  • Several other popup stabilization
  • Can observe much fewer fullscreen updates now
v2.1:
  • A unified binary for DR800 and DR1000.
  • "Dictionary" tabname when running on DR1000
  • Configuration is autosaved to <sdcard>/Programs/_config/.stardict
v2:
  • DR1000 friendly, opens a separate tab.
  • profiling file for gprof is not generated anymore ( oops )
v1:
  • initial release
Attached Thumbnails
Click image for larger version

Name:	sd-format.png
Views:	803
Size:	9.1 KB
ID:	55305   Click image for larger version

Name:	stardict-qemu.png
Views:	934
Size:	144.0 KB
ID:	55311   Click image for larger version

Name:	fbreader+stardict.png
Views:	825
Size:	51.7 KB
ID:	55499  
Attached Files
File Type: zip stardict-2.4.8-src.zip (2.06 MB, 680 views)
File Type: zip stardict-v2.2.zip (2.72 MB, 591 views)
File Type: zip stardict-v2.3.zip (2.72 MB, 719 views)

Last edited by dima_tr; 08-04-2010 at 07:05 PM. Reason: New release 2.3
dima_tr is offline   Reply With Quote