You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it doesn't break on zero-width spaces and instead only breaks on visible spaces when rendered as a pdf, e.g.: .
Thai uses spaces like punctuation, not to seperate words, and so inserting spaces to manually induce word wrapping isn't a viable solution as it would impact meaning.
I think it might be a simple fix (allow wrapping on zero-width spaces), or its possible I have misunderstood the problem. I'll wait to hear if anyone has any advice, and if not, i'll attempt to fix in code.
The text was updated successfully, but these errors were encountered:
It took a while, but with guidance of the package maintainers I was finally able to implement this feature in the upstream FPDF software we use (py-pdf/fpdf2#1191). I believe a new release of the software will be made soon, and once availabel on conda-forge, I will update things to make use of it. This will help city teams from countries with the languages and scripts that use spaces or symbols other than " " to break words generate reports for their local audiences (e.g. Thai, Lao, Burmese and other languages).
Once this has been incorporated into our Docker software image and used within an updated version of our software, I'll close this issue.
I have lodged an issue describing this upstream at fpdf2:
py-pdf/fpdf2#1190
In short, instead of Thai text wrapping correctly like it does in browser
it doesn't break on zero-width spaces and instead only breaks on visible spaces when rendered as a pdf, e.g.:
.
Thai uses spaces like punctuation, not to seperate words, and so inserting spaces to manually induce word wrapping isn't a viable solution as it would impact meaning.
I think it might be a simple fix (allow wrapping on zero-width spaces), or its possible I have misunderstood the problem. I'll wait to hear if anyone has any advice, and if not, i'll attempt to fix in code.
The text was updated successfully, but these errors were encountered: