[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master ce63f91025: Add textsec functions for verifying email address
From: |
Lars Ingebrigtsen |
Subject: |
Re: master ce63f91025: Add textsec functions for verifying email addresses |
Date: |
Thu, 20 Jan 2022 12:08:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Because strings aren't used in isolation. In this case we're checking
>> the name part of an email address headers, and:
>>
>> (insert "Lars Ingebrigtsen\N{RIGHT-TO-LEFT OVERRIDE}" "larsi@gnus.org")
>>
>> Boom.
>
> Then you must pass the entire concatenated string to the function. Or
> call it on buffer text after inserting the string there. This
> function must see the characters affected by the bidi controls, to
> tell whether the control do any harm.
I see. Perhaps we should have another function in addition -- one that
says "does this string (if inserted into a buffer) possibly affect other
text"? I.e., "does it have dangling directional modifiers"? I think
that's really what we want here (and why the Unicode recommendations are
like they are in this area).
If we had such a function, then textsec-name-suspicious-p use both the
current bidi-find-overridden-directionality and the new predicate as a
filter.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Po Lu, 2022/01/18
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Eli Zaretskii, 2022/01/18
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Lars Ingebrigtsen, 2022/01/20
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Eli Zaretskii, 2022/01/20
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Lars Ingebrigtsen, 2022/01/20
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Eli Zaretskii, 2022/01/20
- Re: master ce63f91025: Add textsec functions for verifying email addresses,
Lars Ingebrigtsen <=
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Eli Zaretskii, 2022/01/20
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Lars Ingebrigtsen, 2022/01/20
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Eli Zaretskii, 2022/01/22
- Re: master ce63f91025: Add textsec functions for verifying email addresses, Lars Ingebrigtsen, 2022/01/22
Re: master ce63f91025: Add textsec functions for verifying email addresses, Lars Ingebrigtsen, 2022/01/20