Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Malayalam (ml) Language - Hyphenation #8

Open
gcafepgdi opened this issue Jul 19, 2023 · 3 comments
Open

Support for Malayalam (ml) Language - Hyphenation #8

gcafepgdi opened this issue Jul 19, 2023 · 3 comments

Comments

@gcafepgdi
Copy link

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:

@laurmaedje
Copy link
Member

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?

@tilman-schieber
Copy link

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

@gcafepgdi
Copy link
Author

I can confirm that the latest version of Typst (Version 0.12.0) significantly improves the rendering of Malayalam text. While there is still some minor extra spacing between certain words, this issue is negligible. Additionally, the Unicode rendering of Malayalam text is now nearly identical to that of Scribus, and likely comparable to other renderers utilizing the Harfbuzz engine.

For reference, the same sample text shared in the initial post of this thread has been re-rendered using Typst v0.12.0 and is included here to demonstrate the substantial improvements.

image

Thank you to the Typst team for their efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants