hypher icon indicating copy to clipboard operation
hypher copied to clipboard

Support for Malayalam (ml) Language - Hyphenation

Open gcafepgdi opened this issue 2 years ago • 2 comments
trafficstars

This is to request the Malayalam language hyphenation support in Typst.

"Malayalam is one of the main languages spoken (by 40 million people) in South India, with a rich cultural and literary history. It is one of the oldest languages in India with classical language status."

Issue

Malayalam text output by Typst has too much spacing between some words.

Sample in Typst

nicola-tesla-ml-typst

Sample Text in Latex with Proper hyphenation and justification

nicola-tesla-ml-latex

References:

  • https://tex.stackexchange.com/questions/668159/typesetting-malayalam-in-xelatex-lualatex-gives-error
  • https://thottingal.in/blog/2014/07/20/typesetting-malayalam-using-xetex/
  • https://github.com/libindic/hyphenation/blob/master/libindic/hyphenation/rules/hyph_ml_IN.dic

gcafepgdi avatar Jul 19 '23 11:07 gcafepgdi

We excluded Indic languages because we couldn't find any evidence that hyphenation was actually used with them in practice. Perhaps that wasn't true. Do you have any sources of non-TeX related places where Malayalam is hyphenated?

laurmaedje avatar Sep 04 '23 08:09 laurmaedje

If you don't speak the language It is hard to find evidence of hyphenation as hyphens are not commonly used. The words are just broken at end of line without any symbol. Firefox and Chromium have added support for hyphenation in indic languages, see for example here. Here is a blog that documents that indesign, scribus, libreoffice and so on all support hyphenation for indic languages.

The author of this blog also has a repo with all his hyphenation patterns for indic languages: https://github.com/santhoshtr/hyphenation

tilman-schieber avatar Jan 03 '24 11:01 tilman-schieber