First, parsing the character stream of transliterated Malayalam text into sequence of literals. Then generating the glyph sequence corresponding to sequence of literals by looking at the context of each literal. In the model we use, sequence of one or more characters represent each Malayalam letter. Hence there arises the problem of splitting the character stream representing Malayalam text into corresponding literals. We have to choose correct one from these different options.
Next step is to generate the glyph sequence from the sequence of literals obtained.
A rule based algorithm is described below. There will be a number of clauses such that each one has a condition and an expression returning a value. If two clauses satisfy the condition, the first one will be selected lexically. X is null. Last literal of X is not a vocal literal.