Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
b1410ced
Commit
b1410ced
authored
Nov 15, 2021
by
Tomaz Canabrava
Browse files
Do not group braille characters
Braile characters will break if grouped in bidirectional text mode.
parent
e149c5d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/terminalDisplay/TerminalPainter.cpp
View file @
b1410ced
...
...
@@ -137,7 +137,18 @@ void TerminalPainter::drawContents(Character *image,
}
return
currentScript
==
script
;
};
// returns true if it's a braile char, false otherwise.
const
auto
isBraileChar
=
[
&
](
int
column
)
->
bool
{
char32_t
maybeBraile
=
image
[
display
->
loc
(
column
,
y
)].
character
;
return
maybeBraile
>=
0x2800
&&
maybeBraile
<=
0x28FF
;
};
const
auto
canBeGrouped
=
[
&
](
int
column
)
{
if
(
isBraileChar
(
x
))
{
return
false
;
}
return
image
[
display
->
loc
(
column
,
y
)].
character
<=
0x7e
||
(
image
[
display
->
loc
(
column
,
y
)].
rendition
&
RE_EXTENDED_CHAR
)
||
(
bidiEnabled
&&
!
doubleWidth
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment