all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Hitt <dan.hitt@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: manipulating (capitalize, lower case) unicode bold and italic characters
Date: Mon, 8 Jul 2019 11:50:07 -0700	[thread overview]
Message-ID: <CAOphizL+X009MDTseuS+8a0T4vfDAVuB0Joyc+JzJrkMRrvrOQ@mail.gmail.com> (raw)
In-Reply-To: <838st87hyo.fsf@gnu.org>

On Mon, Jul 8, 2019 at 6:51 AM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Marcin Borkowski <mbork@mbork.pl>
> > Cc: help-gnu-emacs@gnu.org
> > Date: Mon, 08 Jul 2019 15:11:44 +0200
> >
> ......
>
> > >> It would also be good to be able to change case easily (and i guess
> > >> this should work whether the characters are greek or latin, and work
> > >> with arabic digits as well).
> > >
> > > This already does work with any character for which Unicode defines
> > > the upper-case or lower-case pair.  Use M-l and M-u.
> >
> > A quick test shows that this won't work in the current state of affairs.
>
> ??? Where doesn't it work, and why?
>

Thanks Eli, Marcin, and Stefan for your help.

Here's an example of what doesn't work, i think.

If you enter a mathematical italic small w (0x1D464) and a mathematical
italic capital w (0x1D44A) and do 'describe-char' for each, the small one
has the Lowercase general category, while the capital has the Uppercase
general category.  I did not know about the concept of 'case pair' in
unicode, so i guess it is possible that even though emacs knows one is
Lowercase and one is Uppercase, it is possible that it does not know that
they are in a pair.  (How would i find out, from emacs?)  The commands
downcase-region and upcase-region do not work on them, at least for me
(emacs 24.5.1, on debian 9).  (I guess what i'd want to do in that case is
keep some kind of file in .emacs.d that defines custom case-pairs.  ??)

Regarding markdown, i do like markdown, and i'm glad there's a markdown
mode.  However, for commenting code, i'm not sure how it would fit in: the
code file would have to be in two modes?  And also, even though i might be
able to convince emacs to recognize the markdown, cat would not, nor would
vi or other programs.   (I don't want to be too inauthentic here, because
normally i don't use vi for anything, but i did read some sample files with
vi, and it can pick up the unicode stuff without missing a beat.  Likewise
cat and more also have no issue with it, at least using the xfce4-terminal
in debian.)

Thanks again everybody for your help, and for educating me about case pairs
in unicode!!

dan


  parent reply	other threads:[~2019-07-08 18:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-07 19:13 manipulating (capitalize, lower case) unicode bold and italic characters Dan Hitt
2019-07-08  2:29 ` Eli Zaretskii
2019-07-08 13:11   ` Marcin Borkowski
2019-07-08 13:51     ` Eli Zaretskii
2019-07-08 17:07       ` Stefan Monnier
2019-07-08 17:19         ` Eli Zaretskii
2019-07-08 18:50       ` Dan Hitt [this message]
2019-07-08 19:21         ` Eli Zaretskii
2019-07-08 22:32           ` Dan Hitt

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=CAOphizL+X009MDTseuS+8a0T4vfDAVuB0Joyc+JzJrkMRrvrOQ@mail.gmail.com \
    --to=dan.hitt@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.