-
Notifications
You must be signed in to change notification settings - Fork 35
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
Tibetan line breaks #291
Comments
Please, don’t ask new questions in closed issues, even if related. I can overlook them easily. As to the line breaking, you can make spaces in shads and tshegs more flexible with, for example: \directlua{
Babel.tibetan.shad = {.5, .5, 0, false}
Babel.tibetan.tsheg = {0, .001, 0, false}
} See https://latex3.github.io/babel/news/whats-new-in-babel-3.81.html I’ll modify the rules so that closing characters are dealt with. In the meanwhile, you can modify \babelprehyphenation{tibetan}{^^^^0f0b[^ ^^^^0f0d^^^^0f0e]}%
{ {insert, penalty=10000}, {insert, space=\bbl@tempe, data=1}, {},
{insert, space=\bbl@tempe, data=1}, {} }} with \babelprehyphenation{tibetan}{^^^^0f0b[^ {)}^^^^0f0d^^^^0f0e]}%
{ {insert, penalty=10000}, {insert, space=\bbl@tempe, data=1}, {},
{insert, space=\bbl@tempe, data=1}, {} }}
Very likely it's possible with
The rendering of characters depends, in principle, on the renderer or the font. Try with HarfBuzz. |
I hesitated, but you said "If you need further help, just continue this thread.", but after some days without any news, I started this new issue! Thanks for the help, in LuaLaTeX, the line break, the management of the closing parenthesis and the rendering by Harfbuzz worked! Do you have any idea of the unexpected behavior in XeLaTeX with
Thank you! |
Quite true. But 8 months have passed! 🙂 Line breaking in |
Hello,
(Related to #250 but I can’t reopen this issue, so I moved messages here.)
I've noticed another problem , involving Tibetan word breaks especially when there is another language on the same line.
This affects both XeLaTeX and LuaLaTeX, but with variations...
Changing the geometry (the margins) or even deactivating it is interesting.
It seems that LuaLaTeX has some general difficulties cutting Tibetan (but this is more or less visible depending on the geometry configuration).
The behavior seems to be improved with XeLaTeX if language changes are made with
selectlanguage
and not withforeignlanguage
.I am using the latest version of Texlive 2024 (updated 2 days ago).
Here is the MWE:
Here are the screenshots:
LuaLaTeX:
XeLaTeX:
The other issue concerns LuaLaTeX, with a line break problem when adding a parenthesis.
The MWE:
With LuaLaTeX:
With XeLaTeX:
As you can see in LuaLaTeX, a tsheg followed by a closing parenthesis will break the line right between them, instead of breaking the line after the closing parenthesis, as can be seen in XeLaTeX…
Another question: is there a simple way to prevent a single syllable from being alone on its line (beginning – in the case where the line incorporates other languages just before – or end)?
A last one: བོུ། seems to be rendered as བོ◌ུ།, how to correct that?
Thanks a lot!
The text was updated successfully, but these errors were encountered: