[Qgis-user] Looking for assistance with fixing RTL label bugs

Nyall Dawson nyall.dawson at gmail.com
Tue May 28 01:34:42 PDT 2024


Hi Micha,


On Tue, 28 May 2024, 6:28 pm Micha Silver, <tsvibar at gmail.com> wrote

> Thanks for following up on this.
>
> The few details (that are mentioned in the issue tracker) that might help
> track down the root of the problem:
>
>
> 1- There was no issue up to 3.28. The reports appeared only on 3.30 and
> above.
>
> 2- I'm pretty sure that it occurs only on Windows, and only Win 11. Just
> now checked again on my Debian machine, with 3.36, and the problem does not
> appear, and never has.
>
> 3- Somehow I think this might be a Qt problem. Do you know if there were
> any Qt changes in Win installs between 3.28 and 3.30.x?
>

Actually, if it works on a given platform, it's by accident and not design
😁. There's no tests covering this and I don't think it's been actually
thought out by design.

So my questions related to high level design decisions, like:

- should the switch to rtl layout determined by the content of a label
alone? Or is it determined by the font choice? Or the users locale? Or
should it be an explicit choice set per layer, so that the project will
appear identical when shared with a user using a different locale for their
qgis?
- how should mixed ltr and rtl string work? Should users be required to
manually insert rtl / ltr unicode markers?
- how should rtl be handled with respect to multiline text alignment?
- is rtl placement of characters determined by graphemes? Ie do we split
the string to graphemes and then lay these out right to left? Or is it done
on individual characters?

Nyall

>
> If I can be of any further help testing, let me know. i.e. I can update a
> colleague's machine, and prepare a very simple test project...
>
>
> Best, Micha
>
>
> On 28/05/2024 5:56, Nyall Dawson via QGIS-User wrote:
>
> Hi lists,
>
> I'm looking for some assistance in fixing the right-to-left labeling
> issues described in https://github.com/qgis/QGIS/issues/54098 . While
> I can fix the code issues, I don't have the linguistic understanding
> to know how right-to-left text SHOULD behave in QGIS labels!
>
> Is there anyone out there from a RTL language background who can add
> the missing information to the above ticket and help get this bug
> fixed?
>
> Nyall
> _______________________________________________
> QGIS-User mailing listQGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> --
> Micha Silver
> Ben Gurion Univ.
> Sde Boker, Remote Sensing Lab
> cell: +972-523-665918
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240528/132e11b9/attachment.htm>


More information about the QGIS-User mailing list