The Kawi alphabet (Aksara Kawi) originated in Java and was first used in the Singhasari Kingdom in eastern Java during the 8th century AD. After that it spread to across parts of south east Asia and was used until the 16th century AD, particularly in Borneo, Java, Bali and Sumatra.
The Kawi alphabet developed from the Pallava script, which was brought to that region by traders from the Pallava dynasty in south India. It was used mainly to write Sanskrit and Old Javanese, and is the ancestral script of Javanese, Balinese, Baybayin and other scripts of Indonesia and the Philippines.
The red letters are ligatures that are used for the second consonant when there are two consonants without a vowel between them. The finals are used at the ends of words.
If you need to type in many different languages, the Q International Keyboard can help. It enables you to type almost any language that uses the Latin, Cyrillic or Greek alphabets, and is free.
Note: all links on this site to Amazon.com, Amazon.co.uk and Amazon.fr are affiliate links. This means I earn a commission if you click on any of them and buy something. So by clicking on these links you can help to support this site.