rablermorna Spec: Webpage / PDF
Beyond the spec, this tool also transliterate: .i as إ , ni'o as ئ, . as ء.
Source Code: GitHub