-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO.txt
257 lines (245 loc) · 8.69 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
Describe the site (automatically translated charater names and other info into Polish)
https://unicode-table.com/
https://www.facebook.com/unicodetable/
https://twitter.com/unicodetable
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32599
To: Lars Ingebrigtsen <[email protected]>
Subject: Re: bug#32599: 25.2; Feature request: input PUA characters by name
From: "Janusz S. Bień" <[email protected]>
Gcc: nnfolder+archive:sent.2022-04
Reply-to: [email protected]
Bcc: [email protected]
--text follows this line--
On Tue, Apr 26 2022 at 15:09 +02, Lars Ingebrigtsen wrote:
> [email protected] (Janusz S. Bień) writes:
>
>> You are missing "PUA" in the topic and in the text of my feature
>> request. PUA is Private Use Area. Cf. e.g.
>
> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)
>
> If I understand correctly, you just want to be able to extend the range
> of characters you get when saying `C-x 8 RET TAB'? That can be done
> today by just adding elements to the `ucs-names' hash table.
>
> Is that not sufficient for your needs?
On Tue, Apr 26 2022 at 15:30 +02, Janusz S. Bień wrote:
> On Tue, Apr 26 2022 at 15:09 +02, Lars Ingebrigtsen wrote:
>> [email protected] (Janusz S. Bień) writes:
>>
>>> You are missing "PUA" in the topic and in the text of my feature
>>> request. PUA is Private Use Area. Cf. e.g.
>>
>> (I'm going through old bug reports that unfortunately weren't resolved
>> at the time.)
>>
>> If I understand correctly, you just want to be able to extend the range
>> of characters you get when saying `C-x 8 RET TAB'?
>
> Yes. I've solved it in a quick and dirty way, but it was very cumbersome
> and usable only in a specific verion of Emacs:
> https://github.com/jsbien/unicode4polish/tree/master/Emacs-MUFI
>
>
>> That can be done today by just adding elements to the `ucs-names' hash
>> table.
>
> Which Emacs version do you mean by "today"?
>
> What do you mean by "just adding"?
>
> What about an example, e.g. U+F159 LATIN ABBREVIATION SIGN SMALL DE?
>
>> Is that not sufficient for your needs?
>
> Perhaps, but I'm not sure yet.
>
> Best regards
>
> Janusz
On Tue, Apr 26 2022 at 15:37 +02, Lars Ingebrigtsen wrote:
> Janusz S. Bień <[email protected]> writes:
>
>>> That can be done today by just adding elements to the `ucs-names' hash
>>> table.
>>
>> Which Emacs version do you mean by "today"?
>
> Since about 2008.
>
>> What do you mean by "just adding"?
>>
>> What about an example, e.g. U+F159 LATIN ABBREVIATION SIGN SMALL DE?
>
> (unless ucs-names
> (ucs-names))
> (setf (gethash "LATIN ABBREVIATION SIGN SMALL DE" ucs-names) #xF159)
On Tue, Apr 26 2022 at 15:44 +02, Janusz S. Bień wrote:
> On Tue, Apr 26 2022 at 15:37 +02, Lars Ingebrigtsen wrote:
>> Janusz S. Bień <[email protected]> writes:
>>
>>>> That can be done today by just adding elements to the `ucs-names' hash
>>>> table.
>>>
>>> Which Emacs version do you mean by "today"?
>>
>> Since about 2008.
>>
>>> What do you mean by "just adding"?
>>>
>>> What about an example, e.g. U+F159 LATIN ABBREVIATION SIGN SMALL DE?
>>
>> (unless ucs-names
>> (ucs-names))
>> (setf (gethash "LATIN ABBREVIATION SIGN SMALL DE" ucs-names) #xF159)
>
> Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
> puthash("LATIN ABBREVIATION SIGN SMALL DE" 61785 nil)
> (let* ((v ucs-names)) (puthash "LATIN ABBREVIATION SIGN SMALL DE" 61785 v))
> (progn (let* ((v ucs-names)) (puthash "LATIN ABBREVIATION SIGN SMALL DE" 61785 v)))
> eval((progn (let* ((v ucs-names)) (puthash "LATIN ABBREVIATION SIGN SMALL DE" 61785 v))) t)
> elisp--eval-last-sexp(t)
> eval-last-sexp(t)
> eval-print-last-sexp(nil)
> funcall-interactively(eval-print-last-sexp nil)
> call-interactively(eval-print-last-sexp nil nil)
> command-execute(eval-print-last-sexp)
>
> GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24,
> cairo version 1.16.0) compiled locally.
>
> JSB
On Tue, Apr 26 2022 at 15:45 +02, Lars Ingebrigtsen wrote:
> Janusz S. Bień <[email protected]> writes:
>
>>> (unless ucs-names
>>> (ucs-names))
>>> (setf (gethash "LATIN ABBREVIATION SIGN SMALL DE" ucs-names) #xF159)
>>
>> Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
>> puthash("LATIN ABBREVIATION SIGN SMALL DE" 61785 nil)
>
> Did you eval the `unless' form first?
On Tue, Apr 26 2022 at 17:33 +02, Janusz S. Bień wrote:
> On Tue, Apr 26 2022 at 15:45 +02, Lars Ingebrigtsen wrote:
>> Janusz S. Bień <[email protected]> writes:
>>
>>>> (unless ucs-names
>>>> (ucs-names))
>>>> (setf (gethash "LATIN ABBREVIATION SIGN SMALL DE" ucs-names) #xF159)
>>>
>>> Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
>>> puthash("LATIN ABBREVIATION SIGN SMALL DE" 61785 nil)
>>
>> Did you eval the `unless' form first?
>
> I thought I did but I used the wrong command :-(
>
> Thank you very much for your solution.
>
> So yes, my original problem is solved and you can close the bug report.
>
> This is however not the end of the story. I would like describe-char to
> produce the correct name of the PUA character instead of "the
> character’s canonical name and other properties defined by the Unicode
> Data Base;". I understand this should posted as a separate feature
> request.
>
> Best regards
>
> Janusz
On Tue, Apr 26 2022 at 17:49 +02, Robert Pluim wrote:
>>>>>> On Tue, 26 Apr 2022 17:33:37 +0200, Janusz S. Bień <[email protected]> said:
>
> Janusz> On Tue, Apr 26 2022 at 15:45 +02, Lars Ingebrigtsen wrote:
> >> Janusz S. Bień <[email protected]> writes:
> >>
> >>>> (unless ucs-names
> >>>> (ucs-names))
> >>>> (setf (gethash "LATIN ABBREVIATION SIGN SMALL DE" ucs-names) #xF159)
> >>>
> >>> Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
> >>> puthash("LATIN ABBREVIATION SIGN SMALL DE" 61785 nil)
> >>
> >> Did you eval the `unless' form first?
>
> Janusz> I thought I did but I used the wrong command :-(
>
> Janusz> Thank you very much for your solution.
>
> Janusz> So yes, my original problem is solved and you can close the bug report.
>
> Janusz> This is however not the end of the story. I would like describe-char to
> Janusz> produce the correct name of the PUA character instead of "the
> Janusz> character’s canonical name and other properties defined by the Unicode
> Janusz> Data Base;". I understand this should posted as a separate feature
> Janusz> request.
>
> (put-char-code-property #xf159 'name "LATIN ABBREVIATION SIGN SMALL DE")
>
> (PUA characters donʼt have canonical names).
>
> Robert
On Tue, Apr 26 2022 at 18:09 +02, Janusz S. Bień wrote:
> On Tue, Apr 26 2022 at 17:49 +02, Robert Pluim wrote:
>
> [...]
>
>> Janusz> This is however not the end of the story. I would like describe-char to
>> Janusz> produce the correct name of the PUA character instead of "the
>> Janusz> character’s canonical name and other properties defined by the Unicode
>> Janusz> Data Base;". I understand this should posted as a separate feature
>> Janusz> request.
>>
>> (put-char-code-property #xf159 'name "LATIN ABBREVIATION SIGN SMALL DE")
>
> Great, thank you very much!
>
>> (PUA characters donʼt have canonical names).
>
> I know, I'm interested only in Medieval Unicode Font Initiative names.
>
> But this is not the end of the story :-)
>
> What is needed to treat the character as a letter? To be precise, I
> would forward-word to go to the end of ahb, now it stops after a.
>
> Best regards
>
> Janusz
On Tue, Apr 26 2022 at 19:44 +03, Eli Zaretskii wrote:
>> From: Janusz S. Bień <[email protected]>
>> Date: Tue, 26 Apr 2022 18:09:53 +0200
>> Cc: [email protected], Lars Ingebrigtsen <[email protected]>
>>
>> What is needed to treat the character as a letter? To be precise, I
>> would forward-word to go to the end of ahb, now it stops after a.
>
> You need to manually assign that character its properties. See
> characters.el. You may also need to manually assign some Unicode
> properties using put-char-code-property.
On Tue, Apr 26 2022 at 20:22 +02, Janusz S. Bień wrote:
> On Tue, Apr 26 2022 at 19:44 +03, Eli Zaretskii wrote:
>>> From: Janusz S. Bień <[email protected]>
>>> Date: Tue, 26 Apr 2022 18:09:53 +0200
>>> Cc: [email protected], Lars Ingebrigtsen <[email protected]>
>>>
>>> What is needed to treat the character as a letter? To be precise, I
>>> would forward-word to go to the end of ahb, now it stops after a.
>>
>> You need to manually assign that character its properties. See
>> characters.el. You may also need to manually assign some Unicode
>> properties using put-char-code-property.
>
> Thanks for the advice.
>
> Best regards
>
> Janusz
--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien