# finl-charsub ## Purpose This is a Rust library for doing character replacement on strings. A standard character substitution definition file have a string of characters for the input substitution, followed by white space and then the replacement text. For example, the standard TeX input conventions can be reproduced using: ``` ` ‘ `` “ ' ’ '' ” -- – --- — !` ¡ ?` ¿ ~ \u{a0} ``` Escaping is handled following Rust conventions. If white space is to be used in the source or replacement text, it should be entered using escape codes (so `\u{20}`) to get a space. I wouldn't recommend that, however. Another example showing Sylvio Levy's scheme for input of classical Greek with ASCII input:¹ ``` a α 'a ά `a ὰ ~a ᾶ >a ἀ >'a ἄ >`a ἂ >~a ἆ a| \u{1f80} >'a| \u{1f84} >`a| \u{1f82} >~a| \u{1f86}