all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>,
	"'Chong Yidong'" <cyd@gnu.org>
Cc: 'Eli Zaretskii' <eliz@gnu.org>, emacs-devel@gnu.org
Subject: RE: non-breaking hyphens
Date: Tue, 18 Oct 2011 10:43:59 -0700	[thread overview]
Message-ID: <C94D889D884049248669A733EC510433@us.oracle.com> (raw)
In-Reply-To: <jwvlisitptv.fsf-monnier+emacs@gnu.org>

> I believe the general solution is along the lines of what the GNU ELPA
> packae "markchars" does.  The current solution was a simple 
> solution for
> the sub-cases that can happen commonly in programming languages.
> 
> The reason why it's important to handle programming languages is that
> visual similarity is not understood by compilers ;-)
> In contrast for text buffers (or even LaTeX and HTML), it's much
> less problematic.
> 
> Also the significant cases are the ones where the similarity 
> is between a "plain ASCII" char and some other one.

FWIW, I suggest adding simple search and search-and-replace commands to check
for such groups of "false friends".  This would be in addition to the display
changes that you are discussing.

IOW, make it easy not only to spot such chars when you come across them, but to
search for and optionally replace them.

And this should be without needing to know what their code points or Unicode
names are.  The search commands would be specific to such easily
indistinguisable/confusable "false friends", and would be driven off of a
customizable "false-friends" list that calls out the preferred replacement for
each such group of "false friends".




  reply	other threads:[~2011-10-18 17:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 13:56 non-breaking hyphens Chong Yidong
2011-10-17 14:45 ` Eli Zaretskii
2011-10-18  3:39   ` Chong Yidong
2011-10-18  4:00     ` Eli Zaretskii
2011-10-18 12:08       ` Chong Yidong
2011-10-18 13:11         ` Stefan Monnier
2011-10-18 17:43           ` Drew Adams [this message]
2011-10-19  8:28             ` Juri Linkov
2011-10-19 13:59               ` Drew Adams
2011-10-19 14:37                 ` Stefan Monnier
2011-10-18 13:41         ` Eli Zaretskii
2011-10-19  8:27         ` Juri Linkov
2011-10-19  8:39           ` Eli Zaretskii
2011-10-19 13:59             ` Drew Adams
2011-10-19 15:12               ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C94D889D884049248669A733EC510433@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=cyd@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.