{"id":20194514,"url":"https://github.com/hulufei/anki-connect-dict","last_synced_at":"2026-04-16T18:03:45.821Z","repository":{"id":146945353,"uuid":"455790341","full_name":"hulufei/anki-connect-dict","owner":"hulufei","description":"Anki-Connect Dictionary.app helper","archived":false,"fork":false,"pushed_at":"2022-04-07T01:42:39.000Z","size":327,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T10:53:01.765Z","etag":null,"topics":["anki","anki-connect","macos"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hulufei.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null}},"created_at":"2022-02-05T06:05:58.000Z","updated_at":"2022-02-06T10:33:24.000Z","dependencies_parsed_at":"2023-06-03T00:20:25.124Z","dependency_job_id":null,"html_url":"https://github.com/hulufei/anki-connect-dict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hulufei/anki-connect-dict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulufei%2Fanki-connect-dict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulufei%2Fanki-connect-dict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulufei%2Fanki-connect-dict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulufei%2Fanki-connect-dict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hulufei","download_url":"https://codeload.github.com/hulufei/anki-connect-dict/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hulufei%2Fanki-connect-dict/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268883500,"owners_count":24323148,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["anki","anki-connect","macos"],"created_at":"2024-11-14T04:10:05.124Z","updated_at":"2026-04-16T18:03:45.772Z","avatar_url":"https://github.com/hulufei.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Anki Dictionary.app Helper\n\nA small tool help to add vocabulary from **Dictionary.app** as Anki card more convenient.\n\n## Requirement\n\n- [Anki-Connect](https://foosoft.net/projects/anki-connect/)\n- Keep Anki running\n\nTo copy from **Dictionary.app** with styles, first open **TextEdit.app**, click\n`Services \u003e Services Preferences`, check `New TextEdit With Selected Contents`,\nassign a shortcut like `Command + Alt + t`.\n\n## Usage\n\nNow, you can open **Dictionary.app**, query some words, select the definition\nor just press `Command + a` to select all, then press `Command + Alt + t` will\nopen the **TextEdit.app** with the selected contents and reserved styles. Press\n`Command + s` to save the contents as html file and use the query word as filename.\n\nRun this tool: `cargo run -- html_file` will open Anki add card GUI filled with\ncontents.\n\nThere is also a watch mode: `cargo run -- dir` will watch `dir`, once a new file\nadded to `dir`, add card trigger automatically. Under watch mode, processed html\nfile will move to an `imported/` sub directory.\n\nThe last step is to add card styling in Anki, you can tweak yourself from html \nfile, or just use mine:\n\n```css\n.card {\n    font-family: arial;\n    font-size: 20px;\n    text-align: center;\n    color: black;\n    background-color: white;\n}\np.p1 {margin: 0 0 0 0; font: 16.1px 'Helvetica Neue'; color: #000000; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: rgba(0, 0, 0, 0.5)}\np.p2 {margin: 0 0 0 0; font: 16.1px 'Helvetica Neue'; -webkit-text-stroke: #000000}\np.p3 {margin: 0 0 0 0; font: 13.4px 'Helvetica Neue'; -webkit-text-stroke: #000000}\np.p4 {margin: 0 0 0 0; font: 12.6px 'Helvetica Neue'; -webkit-text-stroke: #000000}\np.p5 {margin: 0 0 0 0; font: 12.1px 'Helvetica Neue'; color: #000000; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: rgba(0, 0, 0, 0.5)}\np.p6 {margin: 0 0 0 0; font: 15.2px 'Helvetica Neue'; color: #000000; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: rgba(0, 0, 0, 0.5)}\np.p7 {margin: 0 0 0 0; font: 22.8px 'Helvetica Neue'; -webkit-text-stroke: #000000}\nspan.s1 {font: 22.8px 'Helvetica Neue'; font-kerning: none; color: #000000; -webkit-text-stroke: 0px #000000}\nspan.s2 {font: 16.0px 'Helvetica Neue'; font-kerning: none}\nspan.s3 {font-kerning: none}\nspan.s4 {font: 12.6px 'Helvetica Neue'; font-kerning: none; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: 0px rgba(0, 0, 0, 0.5)}\nspan.s5 {font-kerning: none; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: 0px rgba(0, 0, 0, 0.5)}\nspan.s6 {font: 13.4px 'Helvetica Neue'; font-kerning: none; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: 0px rgba(0, 0, 0, 0.5)}\nspan.s7 {font: 13.4px 'Helvetica Neue'; font-kerning: none}\nspan.s8 {font: 16.1px 'Helvetica Neue'; font-kerning: none; color: #000000; -webkit-text-stroke: 0px #000000}\nspan.s9 {font: 16.1px 'Helvetica Neue'; font-kerning: none; color: rgba(0, 0, 0, 0.5); -webkit-text-stroke: 0px rgba(0, 0, 0, 0.5)}\n\n.front { font-size: 1.5em; }\n.back { text-align: left; }\n.context { text-align: left; }\np.p1 { font-size: 1em; margin: 0.4em 0; }\np.p2 { font-size: 1em; margin: 0.2em 0; }\np.p3 { font-size: 0.85em; margin: 0.3em 0 0.3em 0.7em; }\np.p4 { font-size: 0.8em; margin: 0.4em 0; }\np.p5 { font-size: 0.75em; margin-top: 1em; border-bottom: 1px dashed #ccc; padding-bottom: 0.2em; }\np.p6 { font-size: 1em; margin: 0.2em 0; }\np.p7 { font-size: 1.375em; margin: 0.5em 0; }\nspan.s1 { font-size: 1.375em; }\nspan.s2, span.s8, span.s9 { font-size: 1em; }\nspan.s4 { font-size: 0.8em; }\nspan.s6, span.s7 { font-size: 0.85em; }\n```\n\n## Resources\n\n- [Word frequency data](https://www.wordfrequency.info/samples.asp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhulufei%2Fanki-connect-dict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhulufei%2Fanki-connect-dict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhulufei%2Fanki-connect-dict/lists"}