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

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

bug#57072: [BUG] update-glyphless-char-display and variation selectors


From: Axel Svensson
Subject: bug#57072: [BUG] update-glyphless-char-display and variation selectors
Date: Tue, 9 Aug 2022 16:56:37 +0200

> You are suggesting an enhancement (which is fine).
Acknowledged.

See new patch attached.

It turns out there are 256 variation selectors, so I've included some fixes for selectors 17-256 as well.
admin/unidata/blocks.awk is an exception; it seems to deal with only VS 1-16, but I have not fixed it.

> Why are the acronyms you propose so long?  Why not use "VS01".."VS16"
You're right, that is better. The attached patch is fixed to have shorter acronyms.
The acronyms I've chosen are "VS-1" through "VS-9", "VS10" through "VS99" and "VS-100" through "VS-256".
Not sure that's optimal, perhaps "VS01" or "VS 1" is better, what do you think?

> Please show a recipe for that starting from "emacs -Q".

To reproduce:
1) Start emacs -Q under X11.
2) Evaluate:

(progn
  (let ((vs-acronyms
         '("VS01" "VS02" "VS03" "VS04"
           "VS05" "VS06" "VS07" "VS08"
           "VS09" "VS10" "VS11" "VS12"
           "VS13" "VS14" "VS15" "VS16")))
    (dotimes (i 16)
      (aset char-acronym-table (+ #xfe00 i) (car vs-acronyms))
      (setq vs-acronyms (cdr vs-acronyms))))
  (update-glyphless-char-display
   'glyphless-char-display-control
   '((format-control . acronym)
     (variation-selectors . acronym)
     (no-font . hex-code)))
  (insert #xfe00 #xfe01 #xfe0e #xfe0f))

Expected:
Four boxes are shown, all of which contain "VS" in the upper half, and in the lower half "01", "02", "15" and "16" respectively.

Actual:
The three first boxes appear as expected, but the fourth is empty.

Througout the codebase, I see U+FE0F sometimes singled out and treated differently than the other variation selectors, so this isn't entirely strange.
in places including:
- admin/unidata/emoji-data.txt:778
- admin/unidata/emoji-zwj.awk:102
- lisp/composite.el:856

Attachment: 0001-Fixes-for-variation-selectors.patch
Description: Text Data


reply via email to

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