tagainijisho icon indicating copy to clipboard operation
tagainijisho copied to clipboard

CLI interface

Open orionthehunter opened this issue 11 years ago • 4 comments

It would be great if we could access the the program or at least some subset of the featureset through the commandline.

I'd love to be able to pass a search phrase or term into the program via a bash script.

orionthehunter avatar Mar 29 '13 06:03 orionthehunter

There're JMDict and Kanjidict2 which are also used for creating database of tagainijisho. If you're experienced in XML, you can use them to make a cli japanese dictionary. Also, sqlite versions are exist, iirc.

Another option is mecab with edict2. (Works on my archlinux)

Due to databases are ready to use, in my opinion, it's not necessary to code a CLI API right now.

firatakandere avatar Mar 29 '13 13:03 firatakandere

I agree such an option would be nice, but it's still a niche feature and thus I won't make it a priority. Depends on what you want exactly - do you expect the results to also appear in the console, or do you just want to drive the GUI through the command line?

On Fri, Mar 29, 2013 at 6:04 AM, Firat Akandere [email protected]:

There're JMDict http://www.csse.monash.edu.au/%7Ejwb/jmdict.html and Kanjidict http://www.csse.monash.edu.au/%7Ejwb/kanjidic2/ which are also used for creating database of tagainijisho. If you're experienced in XML, you can use them to make a cli japanese dictionary. Also, sqlite versions are exist, iirc.

Another option is mecab http://mecab.sourceforge.net/ with edict2http://www.csse.monash.edu.au/%7Ejwb/edict.html. (Works on my archlinux)

Due to databases are ready to use, in my opinion, it's not necessary to code a CLI API right now,

— Reply to this email directly or view it on GitHubhttps://github.com/Gnurou/tagainijisho/issues/75#issuecomment-15639838 .

Gnurou avatar Mar 29 '13 13:03 Gnurou

The top use case I can imagine scripting for:

Highlight a word in a browser or document, use a key combo to pass that word into a list in tagainijisho

orionthehunter avatar Mar 29 '13 23:03 orionthehunter

I'm sorry for bumping such an ancient issue, but this is pretty much the only feature I feel is missing from this tool. The ability to simply provide the starting query like "tagainijisho steel" | "tagainijisho hagane" | "tagainijisho 鋼" would be sweet for my workflow. A workaround using X automation with clipboard and delayed paste can do the trick but I feel those methods can break any day, so it'd be so nice to be able to do this out of the box.

magpie514 avatar Apr 18 '19 02:04 magpie514