aboutsummaryrefslogtreecommitdiff
path: root/utf82codenumber-help.pd
blob: 293def1a2b1e63a780172065d82da5be741ac157 (plain)
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
#N canvas 499 69 530 396 10;
#X text 44 27 UTF-8 to Unicode code numbers;
#X msg 130 58 64;
#X floatatom 130 219 0 0 0 3 Unicode_code_number - -;
#X text 161 59 ASCII '@';
#X text 284 136 Lydian letter A;
#X msg 148 136 240 \, 144 \, 164 \, 160;
#X obj 130 162 utf82codenumber;
#X msg 144 83 211 \, 153;
#X text 209 85 schwa;
#X msg 147 111 224 \, 188 \, 128;
#X text 248 112 tibetian om;
#X text 47 299 this object converts bytestreams of UTF-8 encoded strings
and outputs the according Unicode code number of the letters (as stream).
;
#X text 51 344 you have to serialize UTF-8 lists as output by e.g.
[binfile] and deserialize the Unicode code number lists for use by
e.g. [text3d];
#N canvas 37 117 450 356 example 0;
#N canvas 0 0 450 437 serialize 0;
#X obj 131 56 inlet list;
#X obj 149 252 list split 1;
#X obj 149 169 until;
#X obj 149 207 list append;
#X obj 149 148 t b l;
#X obj 279 252 bang;
#X obj 126 98 t b l b;
#X obj 149 340 outlet stream;
#X obj 291 161 outlet start;
#X obj 39 158 outlet stop;
#X connect 0 0 6 0;
#X connect 1 0 7 0;
#X connect 1 1 3 1;
#X connect 1 2 5 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 2 0;
#X connect 4 1 3 1;
#X connect 5 0 2 1;
#X connect 6 0 9 0;
#X connect 6 1 4 0;
#X connect 6 2 8 0;
#X restore 109 103 pd serialize;
#N canvas 0 0 450 300 deserialize 0;
#X obj 84 82 inlet done;
#X obj 186 81 inlet stream;
#X obj 324 83 inlet reset;
#X obj 107 260 outlet list;
#X obj 190 138 list prepend;
#X obj 189 160 t l l;
#X obj 107 185 list prepend;
#X obj 299 120 t b b;
#X obj 107 143 t b;
#X connect 0 0 8 0;
#X connect 1 0 4 0;
#X connect 2 0 7 0;
#X connect 4 0 5 0;
#X connect 5 0 6 1;
#X connect 5 1 4 1;
#X connect 6 0 3 0;
#X connect 7 0 4 1;
#X connect 7 1 6 1;
#X connect 8 0 6 0;
#X restore 109 207 pd deserialize;
#X obj 149 158 utf82codenumber;
#X obj 109 230 list prepend set;
#X obj 109 253 list trim;
#X msg 109 80 64 211 153 224 188 128 240 144 164 160;
#X text 112 58 a multibyte UTF-8 encoded string;
#X text 107 300 a string of unicode code numbers;
#X msg 109 276;
#X obj 46 230 loadbang;
#X connect 0 0 1 0;
#X connect 0 1 2 0;
#X connect 0 2 1 2;
#X connect 1 0 3 0;
#X connect 2 0 1 1;
#X connect 3 0 4 0;
#X connect 4 0 8 0;
#X connect 5 0 0 0;
#X connect 9 0 3 0;
#X restore 330 228 pd example;
#X connect 1 0 6 0;
#X connect 5 0 6 0;
#X connect 6 0 2 0;
#X connect 7 0 6 0;
#X connect 9 0 6 0;