User:Benwbrum/Cuneiform Perl Scripts
Goals
editI'm trying to develop some perl or sed scripts for processing transliterated cuneiform, as found on the Old Hittite and Codex Hammurabi articles.
The constraints are as follows:
- Convert input Wikisource to output Wikisource
- Render all output as 7-bit ASCII, with special characters HTML-encoded.
The goals are as follows:
- Convert bad source encodings such as "0xab" to good source encodings like «
- Convert ASCII encodings like $ to standard ANE representation like š (š)
- Convert 2 and 3 signs to the accented forms (e.g. u3 becomes ù)
- Add subscripts to other numbered signs (e.g. ma4 becomes ma4)
- Add superscripts to determinatives (e.g. DINGIR becomes DINGIR or d
Tests
editScripts
edito User:Benwbrum/Cuneiform Perl Scripts/Hittite Cleaning Script o User:Benwbrum/Cuneiform Perl Scripts/Akkadian Consonant Script