Before Unicode, a lot of Indian-language text was typed in "font hacks". The file stores plain English letters, and a special font draws them as Tamil or Hindi. Open such a file without the font and you see Hkkjr ljdkj dk;kZy; instead of भारत सरकार कार्यालय. Millions of government, newspaper and archive documents are still like this. You can't search them, index them or have a screen reader read them.
For Kiroween 2026 (Resurrection category) I built Encoding Exorcist, a tool that revives that text. It converts Bamini (Tamil) and Kruti Dev (Hindi) text to Unicode in the browser, detects the encoding for you, and shows which legacy glyph became which character. Nothing leaves your machine.
What makes it different
- It says "ambiguous" or "none" instead of guessing. A short word can be valid in more than one encoding, and plain English is never touched.
- It handles mixed text. In
Dear Ram, Hkkjr ljdkj dk dk;kZy; is open.it converts only the Hindi words and leaves the English alone. - The same engine runs as an MCP server, so an agent can call
detect_encodingandconvert_legacy_textdirectly.
How I used Kiro
- Specs: I wrote 13 requirements, a design and a task list before any code, and Kiro worked through them. Because the spec kept the engine generic, later features (the glyph trace, mixed text, the MCP server) extended it instead of forking it.
- Steering: files fixed the stack, the layout and one key rule: never invent mapping data.
- Hook: the test suite runs whenever a mapping file changes.
- Property-based tests: fast-check checks the converter on generated inputs. They guard that conversion never throws on arbitrary input, that output is normalised, and that detection confidence stays in bounds.
- MCP: I exposed the engine as an MCP server and called it from Kiro itself.
What went wrong
Kiro's first Hindi tables were written from memory and failed on real words like हिन्दी and कार्यालय. The real-word tests caught it, so I had the tables ported from MIT-licensed open-source projects and credited them. Later, adding mixed-text support made plain English like "The meeting is at 5:30; bring tea." get converted, and a probe with sentences nobody had tested found one more bug that a green test suite had missed. The lesson: AI-generated lookup tables and heuristics need ground truth, and tests only measure the cases you thought of.
Limits, honestly
Kruti Dev support is partial, and a capitalised name that isn't on the name list can be converted when it sits next to legacy Hindi text.
Try it
- Live demo: https://vigneshwarankbgv.github.io/encoding-exorcist/
- Code (MIT): https://github.com/VigneshwaranKbgv/encoding-exorcist
- Video: https://youtu.be/lpxMY8tFKog
Built for #KiroweenHackathon26.