Skip to content

nemo-view.c: Isolate the selected file name in the status text - #3903

Open
dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/3542-statusbar-rtl-isolate
Open

dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/3542-statusbar-rtl-isolate

Conversation

@dualfroz

Copy link
Copy Markdown
Contributor

the "%s" selected status text took its direction from the file name, so a hebrew name flipped the whole line, and an english name did the same in an RTL locale. the name is now wrapped in FSI/PDI as suggested in the issue, plus an LRM or RLM for the UI direction in front, because from what i can tell pango still takes the first strong char inside the isolate when it picks the paragraph direction. Fixes #3542

With a single item selected the status text starts with its name, so a
name beginning with an RTL character made the whole line RTL (and an
LTR name did the same in an RTL locale). Wrap the name in FSI...PDI and
lead with an LRM/RLM for the UI direction, since Pango picks the
paragraph direction from the first strong character even inside an
isolate.
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

Successfully merging this pull request may close these issues.

Filenames starting with RTL characters cause incorrect rendering in the status bar

1 participant