{"id":15571031,"url":"https://github.com/netromdk/annoycode","last_synced_at":"2026-04-29T03:07:10.021Z","repository":{"id":32842007,"uuid":"36435469","full_name":"netromdk/annoycode","owner":"netromdk","description":"Annoy people by converting unicode characters to other characters that looks the same.","archived":false,"fork":false,"pushed_at":"2015-06-07T23:44:41.000Z","size":356,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T21:12:42.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/netromdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-28T11:59:48.000Z","updated_at":"2017-02-05T04:11:49.000Z","dependencies_parsed_at":"2022-08-31T22:22:51.604Z","dependency_job_id":null,"html_url":"https://github.com/netromdk/annoycode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/netromdk/annoycode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netromdk%2Fannoycode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netromdk%2Fannoycode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netromdk%2Fannoycode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netromdk%2Fannoycode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netromdk","download_url":"https://codeload.github.com/netromdk/annoycode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netromdk%2Fannoycode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32408467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-02T17:53:28.790Z","updated_at":"2026-04-29T03:07:10.006Z","avatar_url":"https://github.com/netromdk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# annoycode\n\nAnnoy people in a friendly fashion by converting Unicode characters to other\ncharacters that looks the same. It could be symbols like 'V' and the Roman\nliteral five 'V'. Imagine a path with unicode characters where an \"å\" is not\nU+00E5 but an \"a\" (U+0061) with a circle over it (U+030A). That of course means\nthat the path doesn't exist even though it looks exactly like the original one.\n\nThe project was born due to a similar path/Unicode bug at the office.\n\n# Usage\n\nThe main program _annoycode_ is used in the following way:\n```\nUsage: annoycode [options] \u003cinput file\u003e \u003coutput file\u003e\nSubstitues Unicode symbols that look similar.\n\nOptions:\n  -h, --help              Displays this help.\n  -f, --file \u003cdata file\u003e  Use substitutions from \u003cdata file\u003e. Will use\n                          \"data.json\" otherwise.\n\nArguments:\n  input file              File to read values from.\n  output file             File to write results to.\n```\n\nSince the idea is to find symbols that look similar, then I have also\nimplemented _inspect_ to be able to visualize the substituted results:\n\n```\nUsage: inspect [options] \u003cinput file\u003e\nInspects Unicode file contents.\n\nOptions:\n  -h, --help  Displays this help.\n\nArguments:\n  input file  File to read values from.\n```\n\n# Examples\n\n```\n% ./annoycode test.txt test.out.txt\nLoaded 23919 substitutions from data.json\n3 substitutions applied, 5 -\u003e 8 bytes, +60%\n\n% ./inspect test.txt\n=== 5 raw bytes ===\nABC!\n\n=== 5 rendered symbols ===\nABC!\n\n% ./inspect test.out.txt\n=== 8 raw bytes ===\n\\u913\\u914\\u1057!\n\n=== 5 rendered symbols ===\nΑΒС!\n\n```\n\n# Dependencies\n\nIt is required to have the following installed:\n- C++11 compliant compiler: Clang or GCC preferebly\n- Cmake 3+\n- Qt 5+ framework\n\n# Training data\n\nData must be in hand in order to be able to substitute symbols and that is done\nusing the _trainer_. I have already included a file with some substitutions\nin _data.json_ that will be implicitly used by _annoycode_ and _inspect_ if run\nin the same folder.\n\n```\nUsage: trainer [options]\nTrains data by finding pairs of Unicode symbols that renders to similar text.\n\nOptions:\n  -h, --help              Displays this help.\n  -f, --file \u003cdata file\u003e  Use substitutions from \u003cdata file\u003e. Will use\n                          \"data.json\" otherwise.\n  -t, --threads \u003cnum\u003e     Use \u003cnum\u003e of threads to search for mathes. Defaults\n                          to using all available ones, with value \"0\".\n  -i, --inc-save          Incrementally save results to disk.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetromdk%2Fannoycode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetromdk%2Fannoycode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetromdk%2Fannoycode/lists"}