Scripts with complex text layout have contextual and non-linear requirements to correctly render their typography. These requirements include: ligatures, where two consecutive characters have to be combined into one shape (Latin, Devanagari); reordering, where some characters have to be displayed before the letter they follow in actual pronunciation (Bengali, Sinhala, and other Indic languages); and context-shaping, as in cursive scripts where some letters have to change shape depending on whether they occur in the beginning, middle, or the end of the word (Arabic, Mongolian).