github.com/okitec/beta (go): Package beta implements TypeGreek-flavoured and Standard Betacode parsing.  TypeGreek (www.typegreek.com) is a JavaScript implementation of Betacode that relaxes some rules to ease text entry (and implementation). This implementation is independent, but allows the same:  Uppercase Betacode characters form uppercase Greek characters.  The order of diacritics is unimportant.  The diacritics follow the base character.  Whether a sigma is final or not depends on the next character in streaming mode (beta.Writer). When using beta.Sym, we can't know the next character, so this is moot.  When an asterisk is encountered, the symbol is coerced to uppercase and breathing and accent may appear before the base character, emulating Standard Betacode as used by the Perseus Project.
Keywords: ancient-greek|betacode