From: Eli Zaretskii <eliz@gnu.org>
To: "Martin Brüstel" <martin.bruestel@tu-dresden.de>
Cc: 49562@debbugs.gnu.org
Subject: bug#49562: 27.2; Crash with specific mode-line-format in BiDi processing
Date: Thu, 15 Jul 2021 13:06:25 +0300 [thread overview]
Message-ID: <8335sf7uxq.fsf@gnu.org> (raw)
In-Reply-To: <sa6pmvjvs98.fsf@tu-dresden.de> (message from Martin Brüstel on Thu, 15 Jul 2021 11:30:27 +0200)
> From: Martin Brüstel <martin.bruestel@tu-dresden.de>
> CC: <49562@debbugs.gnu.org>
> Date: Thu, 15 Jul 2021 11:30:27 +0200
>
> Is there any built-in functionality to either
>
> 1. "sanitize" a string to remove bidi formatting in a sane way, or
> 2. have `substring` functionality that can somehow deal with these
> formatting controls, or
> 3. restore balance of a possibly broken bidi formatted string?
Not as you describe it, no. You could remove all bidi formatting
controls with subst-char-in-string or with string-match/replace-match,
and then use bidi-string-mark-left-to-right to solve many problems
with bidirectional display of mixed RTL and LTR text. But note that
bidi-string-mark-left-to-right doesn't exactly wrap the string in an
embedding, it does something smarter.
next prev parent reply other threads:[~2021-07-15 10:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-14 16:40 bug#49562: 27.2; Crash with specific mode-line-format in BiDi processing martin.bruestel
2021-07-14 19:10 ` Eli Zaretskii
2021-07-15 9:30 ` Martin Brüstel
2021-07-15 10:06 ` Eli Zaretskii [this message]
2021-07-18 14:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8335sf7uxq.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=49562@debbugs.gnu.org \
--cc=martin.bruestel@tu-dresden.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).