New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command line version #37
Comments
I have the same question too. |
+1 |
yeah, it would be great |
Please clarify. GoldenDict supports many different dictionary formats, and they include audio, images, videos, advanced HTML formatting, etc. This is close to impossible to render in the console. Or do you mean that GoldenDict needs console command line interface that launches the UI with appropriate word? This is already implemented, AFAIK. Just invoke |
As a start we could have a cmd line version that allowed to display the results in plain text (no images, videos or links) and a switch to output the raw html. |
Bump. |
Bump. Still relevant. |
Marking as Popular since many users requested. I am still surprised that folks need that. :) |
Some people are just keyboard junkies. They love their CLI. This also makes integration really easy, specially in *nix environment. |
I think what the OP is looking for is a way to exact res from the dictionaries. That sounds more like a parser with look-up interface. How the content is presented is not important at all. |
Bump. |
+1 |
I also want this feature. +1 |
I would like this feature to be able to implement osX dashboard widget for goldendict |
Necrobump!! Actually it's a really good feature so that it could be used in Vim/Emacs. |
Still looking forward to this... |
bump |
👍 🉑 🔥 🆙 🆒 📙 |
I was temped to start filtering |
+1 A benefit of a cli based dictionary implementation is the ability to use shell history and grep to review looked up words. |
+1. Another reason for this that hasn't been mentioned above is that it would allow for accessing goldendict dictionaries through ssh (i.e. remotely). |
Since I actually have a pressing need for this feature on a daily basis, I hacked together a Ruby script called gdcl ("Goldendict Command-Line") that allows me to search my dictionaries over ssh. It has the added benefit that I can also pipe the results to files or other programs and so on. Right now it only works with DSL dictionaries in the Goldendict folder, but there are a bunch of options and a growing list of features, and it would be great to eventually support all the formats that Goldendict does (bgl, dict, etc). Since almost all of my dictionaries are in dictzipped dsl format, this is already quite functional for me, but in the absence of an official command-line version I'll continue to work on expanding options and features for gdcl. In response to @Tvangeste's comment, as @chulai suggested the script currently strips out dsl dictionary markup, and it could easily do the same with html (online dictionaries are the next feature I'd like to include). The result is very clean -- just the content appears in the terminal, suitable for redirecting to a text file or whatever. Hopefully this can serve as a proof-of-concept for the usefulness of this feature that so many above would like to see. What would be particularly great about an official command-line version is that we could leverage the existing index files and other internals that Goldendict uses, but I understand if there is no interest in working on such a feature at the moment. |
👍 🉑 🔥 🆙 🆒 📙 I've added the binary package to my own repository. See https://aur.archlinux.org/packages/gdcl/ for detail. |
Bump! |
+1 |
bump =] |
Bump. |
Bump, as I am a blind Linux user and there are some problems with accessibility of some QT widgets, I would also like to have a cli version. |
as the author hasn't replied, i think the best option is to use sdcv https://en.wikipedia.org/wiki/Sdcv |
need this too |
Definitely need this. I am a newbie in IT. But maybe w3m or browsh could give a little bit inspiration? |
necro bumb |
2020! |
2021! |
+1 |
this is another great temp solution (with emacs interface too!) https://github.com/konstare/gdcv |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Since this was requested back in 2011 and it hasn't yet been implemented, Laplace's rule of succession predicts it is only ~8% likely to happen by the end of 2022. :( |
I got an idea to ease the command line goldendict. now the problem has change from offer a goldendict command line to a more common issue: |
+1 |
bump |
Note that goldendict-ng has a command line version. |
Thanks for the link, benthamite. The linked page does not seem to document a command line version. Instead, it says "You can send word to mainwindow to popup via goldendict .". A command line version would be nice. It would mean you could command 'goldendictcli permutation", and get explanations of the word "permutation" printed on standard output, in the terminal. |
Ah, you are right. Perhaps this could be requested, though? |
in addtion to the gui interface would it be possible to adapt the existing code to provide a cli interface ?
stardict has one, called sdcv, http://en.wikipedia.org/wiki/Sdcv
This is something tremendously useful, for use in scripts, and integrate with text processing utilities (grep, awk sed etc)
The text was updated successfully, but these errors were encountered: