help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Changing into greek glyphs in texinfo-mode


From: pietru
Subject: Re: Changing into greek glyphs in texinfo-mode
Date: Sun, 31 Jan 2021 22:03:54 +0100

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 via email to

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