{"id":16196448,"url":"https://github.com/dspinellis/kbd-layout-fix","last_synced_at":"2026-01-19T22:32:22.160Z","repository":{"id":54047501,"uuid":"281380748","full_name":"dspinellis/kbd-layout-fix","owner":"dspinellis","description":"Auto-correct text entered with the wrong keyboard layout","archived":false,"fork":false,"pushed_at":"2021-03-10T01:30:14.000Z","size":15,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T16:51:58.610Z","etag":null,"topics":["autohotkey-script","greek-language","i18n"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dspinellis.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":"2020-07-21T11:37:21.000Z","updated_at":"2021-12-24T09:34:23.000Z","dependencies_parsed_at":"2022-08-13T06:11:14.624Z","dependency_job_id":null,"html_url":"https://github.com/dspinellis/kbd-layout-fix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dspinellis/kbd-layout-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dspinellis%2Fkbd-layout-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dspinellis%2Fkbd-layout-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dspinellis%2Fkbd-layout-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dspinellis%2Fkbd-layout-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dspinellis","download_url":"https://codeload.github.com/dspinellis/kbd-layout-fix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dspinellis%2Fkbd-layout-fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28587241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"last_error":"SSL_read: 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":["autohotkey-script","greek-language","i18n"],"created_at":"2024-10-10T08:47:48.339Z","updated_at":"2026-01-19T22:32:22.144Z","avatar_url":"https://github.com/dspinellis.png","language":"AutoHotkey","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto-correct text entered with the wrong keyboard layout\r\nTo enter text in some languages you press a special key\r\ncombination (e.g. Alt-Shift) to toggle the keyboard layout.\r\nThe keyboard layout context is typically kept separately for each window.\r\nThis is generally good, but forces you to remember (or check) the\r\ncurrent layout every time you switch to another window.\r\nIf you forget to do that, the text you type will come out as gibberish.\r\nThe AutoHotKey script provided here will automatically fix such text.\r\n\r\nFor example, if you have written *Ιτ ςασ α δαρκ ανδ στορμυ νιγητ* it will replace it with\r\n*It was a dark and stormy night*.\r\nIf you have written *Mia for;a ki ;enan kair;o* it will replace it with\r\n*Μια φορά κι έναν καιρό*.\r\n\r\n## Use\r\nTo use a script `#include` the `.ahk` file in your AutoHotKey definitions.\r\nFor example, add a line `#include greek-latin-fix.ahk`.\r\nRemember to reload the AutoHotKey definitions.\r\nTo fix some incorrectly typed text, select it,\r\nand press the corresponding shortcut\r\n(for Greek-Latin mappings Ctrl-Alt-G).\r\n\r\n## Operation\r\nCode in this repository addresses the problem\r\nby programming [AutoHotKey](https://www.autohotkey.com/) with\r\na script that fixes the selected text.\r\nThe script\r\n* copies the selected text to the clipboard,\r\n* obtains a copy of the clipboard (to minimize system calls),\r\n* detects the direction of the desired mapping (Greek to Latin or Latin to Greek),\r\n* converts sequences that include a stress dead key combination,\r\n* converts all other characters,\r\n* sets the clipboard to the mapped text, and\r\n* pastes the text to the current selection.\r\n\r\n## Contributing\r\nThe AHK script's creation is automated with a corresponding Python script.\r\nThis process can also be useful for text that is entered through\r\nother switched keyboard layouts, such as Cyrillic or Hebrew.\r\nContributions through pull requests are welcomed!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdspinellis%2Fkbd-layout-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdspinellis%2Fkbd-layout-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdspinellis%2Fkbd-layout-fix/lists"}