[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?

From: Eli Zaretskii
Subject: Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?
Date: Wed, 10 Oct 2018 18:18:11 +0300

> From: Andreas Schwab <address@hidden>
> Date: Tue, 09 Oct 2018 21:18:51 +0200
> Cc: Eli Zaretskii <address@hidden>, address@hidden,
>       address@hidden, address@hidden
> I'm pretty sure you can find many Russian words that are written with
> only Latin-alike letters.

I wrote the following toy program:

  (let ((confusing '(?а ?е ?о ?р ?с ?у ?х))
        (buf (get-buffer-create "*confusing*")))
    (while (not (eobp))
      (let* ((word (buffer-substring (line-beginning-position)
             (chars (append word nil)))
        (if (null (seq-difference chars confusing))
            (with-current-buffer buf
              (insert word ?\n))))

and ran it on a list of 174800 words from a Russian dictionary.  The
result was 60 words that used only Latin-alike letters.  So, not too
many, but not just a few, either.

Of course, there are many more non-word combinations of the above
letters that might look like Latin words.

Also note that "confusability" sometimes depends on letter-case.  For
example, the lower-case "вор" doesn't look like a Latin word, but the
upper-case "ВОР" does.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]