View Single Post
Old 07-15-2020, 12:19 PM   #558
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 446
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by favero_ View Post
So just to see if I understand, I need to download from github, extract it, open terminal and type 'cargo install --path' where the path is where the extracted folder is, which is my mac download folder, is this correct?
Not exactly.
  • If you haven't done this already, install Homebrew.
  • Install the dict package: brew install dict.
  • Install sdunpack:
    Code:
    git clone https://github.com/baskerville/sdunpack
    cd sdunpack
    cargo install --path .
  • You can now convert a StarDict dictionary with:
    Code:
    dictzip -d file.dict.dz
    sdunpack file.dict < file.idx > file.txt
    dictfmt --utf8 --index-keep-orig --headword-separator '|' -s "ShortName" -u "URL" -t file2 < file.txt
    dictzip file2.dict
  • Copy the generated files (file2.index and file2.dict.dz) to the dictionaries directory.
baskerville is offline   Reply With Quote