unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Converting compositions to strings
@ 2017-01-30  5:13 Clément Pit-Claudel
  2017-01-30 13:34 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Clément Pit-Claudel @ 2017-01-30  5:13 UTC (permalink / raw)
  To: Emacs developers

Hi emacs-devel,

Many compositions can be represented as strings: for example, prettify-symbols-mode composes "lambda" into "λ", and nameless prettifies the name of the current package as ":" or "::".

How can I reconstruct these strings from the value of the 'composition' text property?  Small experiments suggest that for single-character compositions the property has the shape (_ _ [?λ]) and for multi-character compositions (_ _ [?x _ ?y _ …]), but I also found instances of the shape ((_ ?x _ _)), and ((_ . ?x)) (I think).

Is there a recipe that I can use to construct a string representation of a composition? (I realize that many compositions can't adequately be represented as plain strings; I'm only interested in those that can).

Thanks!
Clément.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-01-31 14:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30  5:13 Converting compositions to strings Clément Pit-Claudel
2017-01-30 13:34 ` Stefan Monnier
2017-01-30 16:23   ` Clément Pit-Claudel
2017-01-30 14:24 ` Ted Zlatanov
2017-01-30 16:27   ` Clément Pit-Claudel
2017-01-30 17:48     ` Ted Zlatanov
2017-01-30 15:18 ` Eli Zaretskii
2017-01-30 16:39   ` Clément Pit-Claudel
2017-01-30 16:52     ` Eli Zaretskii
2017-01-31 14:31       ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).