{"id":18716584,"url":"https://github.com/timothyye/ydict","last_synced_at":"2025-04-05T12:08:27.591Z","repository":{"id":41001903,"uuid":"102547488","full_name":"TimothyYe/ydict","owner":"TimothyYe","description":"Yet another command-line youdao dictionary for geeks!","archived":false,"fork":false,"pushed_at":"2023-11-01T12:52:21.000Z","size":2102,"stargazers_count":395,"open_issues_count":6,"forks_count":48,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-29T11:09:29.547Z","etag":null,"topics":["command-line","command-line-dictionary","dict","dictionary","translate","ydict","youdao"],"latest_commit_sha":null,"homepage":"https://xiaozhou.net/command-line-tool-ydict-2017-09-11.html","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimothyYe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"TimothyYe","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-09-06T01:24:58.000Z","updated_at":"2025-03-24T11:52:21.000Z","dependencies_parsed_at":"2022-08-10T01:29:29.476Z","dependency_job_id":"7a6fd071-70c2-489b-a4f4-40a6e977e0af","html_url":"https://github.com/TimothyYe/ydict","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyYe%2Fydict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyYe%2Fydict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyYe%2Fydict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyYe%2Fydict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimothyYe","download_url":"https://codeload.github.com/TimothyYe/ydict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332612,"owners_count":20921853,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","command-line-dictionary","dict","dictionary","translate","ydict","youdao"],"created_at":"2024-11-07T13:13:09.083Z","updated_at":"2025-04-05T12:08:27.563Z","avatar_url":"https://github.com/TimothyYe.png","language":"Go","funding_links":["https://github.com/sponsors/TimothyYe"],"categories":[],"sub_categories":[],"readme":"```text\n██╗   ██╗██████╗ ██╗ ██████╗████████╗\n╚██╗ ██╔╝██╔══██╗██║██╔════╝╚══██╔══╝\n ╚████╔╝ ██║  ██║██║██║        ██║   \n  ╚██╔╝  ██║  ██║██║██║        ██║   \n   ██║   ██████╔╝██║╚██████╗   ██║   \n   ╚═╝   ╚═════╝ ╚═╝ ╚═════╝   ╚═╝   \n ```\n\n[![Release][3]][4] [![MIT licensed][5]][6] [![Build Status][1]][2] [![Go Report Card][7]][8]\n\n[1]: https://travis-ci.org/TimothyYe/ydict.svg?branch=master\n[2]: https://travis-ci.org/TimothyYe/ydict\n[3]: http://github-release-version.herokuapp.com/github/timothyye/ydict/release.svg?style=flat\n[4]: https://github.com/TimothyYe/ydict/releases\n[5]: https://img.shields.io/dub/l/vibe-d.svg\n[6]: LICENSE\n[7]: https://goreportcard.com/badge/github.com/timothyye/ydict\n[8]: https://goreportcard.com/report/github.com/timothyye/ydict\n\nYdict, another command-line youdao dictionary for geeks!\n\n![](https://raw.githubusercontent.com/TimothyYe/ydict/master/snapshots/ydict.gif)\n\n([中文介绍文档](https://github.com/TimothyYe/ydict/blob/master/README_CN.md))\n\n## Features\n\n* Chinese -\u003e English\n* English -\u003e Chinese\n* Show hints if word is not found\n* Speech\n* Show example sentences\n* Vim support\n\n## Installation\n\n#### Homebrew\n\n```bash\nbrew tap timothyye/tap\nbrew install timothyye/tap/ydict\n```\n\n#### Using Go\n\n```bash\ngo install github.com/TimothyYe/ydict\n```\n\n#### Manual Installation\n\nDownload it from [releases](https://github.com/TimothyYe/ydict/releases), and extract  it to /usr/bin.\n\n#### Integrate with Vim\n\nTo query words from Vim, you need another Vim plugin: [vim-ydict](https://github.com/TimothyYe/vim-ydict)\n\n## Speech\n\nStarting from V0.9, speech feature is available. You need to install mpg123 to enable this feature.\n\n#### Windows x64\n\n\u003e   Speech Adaptation by [ycrao](https://github.com/ycrao/learning_golang/tree/main/cmd-bass-player) under `Windows` OS.\n\n- Just copy `bass.dll` and `mpg123.exe` (can also with `ydict.exe`) file to `Windows` system path (such as `C:\\Windows\\` or `C:\\Windows\\System32` ) .\n- Or copy `bass.dll` and `mpg123.exe` (can also with `ydict.exe`) file to somewhere in the same directory, and setting that directory in `PATH` System Environment Variables .\n\n#### Mac OS\n\n```bash\nbrew install mpg123\n```\n#### Ubuntu\n\n```bash\nsudo apt-get install mpg123\n```\n\n#### CentOS\n\n```bash\nyum install -y mpg123\n```\n\n## Usage\n\n```text\nydict [flags]\n\nFlags:\n  -c, --cache       Query with local cache, and save the query word(s) into the cache.\n  -d, --delete      Remove word(s) from the cache.\n  -h, --help        help for ydict\n  -l, --list        List all the words from the local cache.\n  -m, --more        Query with more example sentences.\n  -p, --play int    Scan and display all the words in local cache.\n  -q, --quiet       Query with quiet mode, don't show spinner.\n  -r, --reset       Clear all the words from the local cache.\n  -s, --sentence    Translation of sentences.\n  -v, --voice int   Query with voice speech, the default voice play count is 0.\n```\n\n1. Query\n\n```text\nydict \u003cword(s) to query\u003e\n```\n\n2. Query with speech\n\n```text\nydict -v 1 \u003cword(s) to query\u003e\n```\n\n3. Query and show more example sentences\n\n```text\nydict -m \u003cword(s) to query\u003e\n```\n\n4. Query and add this word into local cache, next time when you query the same word, it will be feched from the local cache and be much more faster.\n\n```text\nydict -c \u003cword(s) to query\u003e\n```\n\n5. Query sentence\n\n```text\nydict -s \"你觉得咋样？\"\n```\n\n## SOCKS5 proxy\n\nStarting from V0.5, you can use SOCKS5 proxy. At the same directory of ydict, just create a `.env` file:\n\n```text\nSOCKS5=127.0.0.1:7070\n```\n\nNow all the queries will go through the specified SOCKS5 proxy.\n\n## New words notebook\n\nStarting from ydict V2.0, new words notebook is supported. You can use is to add/delete your new words and play it.\n\n* Add a new word to the notebook\n```bash\nydict -c hello\n```\n\n* Remove a word from the notebook\n```bash\nydict -d hello\n```\n\n* List all the words from the notebook\n```bash\nydict -l\n```\n\n* Display a random word from the notebook for every 10 seconds\n```bash\nydict -p 10\n```\n![](https://raw.githubusercontent.com/TimothyYe/ydict/master/snapshots/play.png)\n\n## Help\n\nJust type \"ydict\" to get help.\n  \n## Licence\n\n[MIT License](https://github.com/TimothyYe/ydict/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothyye%2Fydict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimothyye%2Fydict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothyye%2Fydict/lists"}