all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pietru@caramail.com
To: pietru@caramail.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Changing into greek glyphs in texinfo-mode
Date: Sun, 31 Jan 2021 22:03:54 +0100	[thread overview]
Message-ID: <trinity-50f6ffb2-488a-4ba7-943a-1a50c9067f7f-1612127034438@3c-app-mailcom-bs14> (raw)
In-Reply-To: <trinity-864a09f0-3918-4aff-8f24-8b85c4b59e7b-1612099092160@3c-app-mailcom-bs16>

I want to make the glyph substitution when next character is any of 
" ", "-", "+", "\", ",", ":", ";", ".", "_", "^".

This targets every \something construct on its own or followed by
another one:

"\\\\\\<[a-z]+\\>\\([\s+\,:;._^-]\\\\\\<[a-z]+\\>\\)?"

This matches \alpha and \alpha followed by another construct like
\alpha-\thing:

"\\\\\\<alpha+\\>\\([\s+\,:;._^-]\\\\\\<[a-z]+\\>\\)?"

But I need help on to do the actual substitution.

> Sent: Monday, February 01, 2021 at 1:18 AM
> From: pietru@caramail.com
> To: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Changing into greek glyphs in texinfo-mode
>
> I want to change \alpha and \beta in texinfo files to show the 
> appropriate glyph.  How can I do it?
> 
> (defvar glyph-list
>   '(;; Greek
>     ("\\alpha" . ?α)
>     ("\\beta" . ?β))
>   "A list of glyph marks.")
> 
> 
> 
> 
>



  reply	other threads:[~2021-01-31 21:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31 13:18 Changing into greek glyphs in texinfo-mode pietru
2021-01-31 21:03 ` pietru [this message]
2021-01-31 22:08 ` Stefan Monnier
2021-01-31 22:17   ` pietru
2021-02-01 13:35     ` pietru
2021-02-01 13:51       ` Gregory Heytings
2021-02-01 14:02         ` pietru
2021-02-01 14:01       ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-01 14:59         ` pietru
2021-02-01 17:30           ` pietru
2021-02-02  4:10             ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-02  5:04               ` pietru
2021-02-02 12:56                 ` pietru
2021-02-02 13:26                   ` pietru

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=trinity-50f6ffb2-488a-4ba7-943a-1a50c9067f7f-1612127034438@3c-app-mailcom-bs14 \
    --to=pietru@caramail.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.