{"id":18256594,"url":"https://github.com/honmaple/emacs-maple-translate","last_synced_at":"2025-04-08T22:28:10.314Z","repository":{"id":196653406,"uuid":"696818125","full_name":"honmaple/emacs-maple-translate","owner":"honmaple","description":"Translate word between chinese and english.","archived":false,"fork":false,"pushed_at":"2025-02-08T09:09:49.000Z","size":74,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T17:43:04.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/honmaple.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-09-26T13:42:54.000Z","updated_at":"2025-02-09T01:28:28.000Z","dependencies_parsed_at":"2024-04-22T07:26:49.959Z","dependency_job_id":"e807618b-5333-4964-9dc6-2f0bc45a2897","html_url":"https://github.com/honmaple/emacs-maple-translate","commit_stats":null,"previous_names":["honmaple/emacs-maple-translate"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honmaple%2Femacs-maple-translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honmaple%2Femacs-maple-translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honmaple%2Femacs-maple-translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honmaple%2Femacs-maple-translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honmaple","download_url":"https://codeload.github.com/honmaple/emacs-maple-translate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937699,"owners_count":21021308,"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":[],"created_at":"2024-11-05T10:22:44.065Z","updated_at":"2025-04-08T22:28:10.294Z","avatar_url":"https://github.com/honmaple.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"* emacs-maple-translate\n  Translate words between Chinese and English.\n\n** Installation\n   #+begin_src elisp\n   (use-package maple-translate\n     :quelpa (:fetcher github :repo \"honmaple/emacs-maple-translate\")\n     :commands (maple-translate maple-translate+))\n   #+end_src\n\n   Or alternatively, you can download the repository and install manually by doing:\n   #+begin_src bash\n   git clone https://github.com/honmaple/emacs-maple-translate ~/.emacs.d/site-lisp/maple-translate\n   #+end_src\n\n   #+begin_src elisp\n   (use-package maple-translate\n     :ensure nil\n     :commands (maple-translate maple-translate+))\n   #+end_src\n\n** Usage\n\n   In any buffer, run =M-x maple-translate= to translate the selected text or the\n   word at point. By default, it translates the input to Chinese, as the default\n   backends are for English-Chinese translation. See the Customization section for\n   configuring other backends.\n\n** Customization\n   #+begin_src elisp\n   (setq maple-translate-engine 'youdao)\n   ;; or use multi engines\n   (setq maple-translate-engine '(youdao dictcn))\n   ;; custom result with different section\n   (setq maple-translate-section '(phonetic basic detail morphology phrase sentence))\n\n   ;; with google translate\n   (setq maple-translate-google-url \"https://translate.googleapis.com/translate_a/single\")\n   (setq maple-translate-google-proxies\n         '((\"http\" . \"127.0.0.1:1086\")\n           (\"https\" . \"127.0.0.1:1086\")))\n\n   ;; with offline sdcv\n   (setq maple-translate-sdcv-dir \"~/.stardict/dicts\")\n   (setq maple-translate-sdcv-dicts\n         '((\"lazyworm-ec\" . \"stardict-lazyworm-ec-2.4.2\")\n           (\"lazyworm-ce\" . \"stardict-lazyworm-ce-2.4.2\")))\n   #+end_src\n\n   Custom different engine for special command\n   #+begin_src elisp\n   (setq maple-translate-engine-alist '((maple-translate  . youdao)\n                                        (maple-translate+ . sdcv)))\n   #+end_src\n\n   Custom different section for special command\n   #+begin_src elisp\n   (setq maple-translate-section-alist '((maple-translate  . (phonetic basic detail))))\n   #+end_src\n\n   Custom different display for special command\n   #+begin_src elisp\n   (setq maple-translate-display-alist '((maple-translate  . maple-translate-show-in-posframe)\n                                         (maple-translate+ . maple-translate-show-in-buffer)))\n   #+end_src\n\n   Custom translate engine\n   #+begin_src elisp\n   (defun custom-translate-engine(text \u0026optional callback)\n     (if (string= text \"word\")\n         (list (cons 'basic \"单词\"))\n       (list (cons 'basic \"word\"))))\n\n   (add-to-list 'maple-translate-alist '(custom . custom-translate-engine))\n   (setq maple-translate-engine 'custom)\n   #+end_src\n\n** Offline\n   - [X] Sdcv\n\n** Long sentence\n   - [X] Youdao\n   - [X] Google\n\n** Supported Engines\n   - youdao\n   - dictcn\n   - iciba\n   - bing\n   - google\n   - sdcv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonmaple%2Femacs-maple-translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhonmaple%2Femacs-maple-translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonmaple%2Femacs-maple-translate/lists"}