File: t3.1.ot

package info (click to toggle)
klayout 0.30.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 292,204 kB
  • sloc: cpp: 2,068,428; ruby: 47,823; xml: 26,924; python: 14,404; sh: 1,812; tcl: 212; perl: 170; makefile: 112; ansic: 42
file content (308 lines) | stat: -rw-r--r-- 10,575 bytes parent folder | download | duplicates (2)
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
# <test>
#   <name>t3.1.ot</name>
#   <content-description>A single cell with several text object</content-description>
#   <test-intention>Geometrical objects reader capabilities</test-intention>
#   <test-intention>TEXT record reading</test-intention>
#   <test-intention>Text string specification by string directly</test-intention>
#   <test-intention>Modal variables for text objects</test-intention>
#   <test-intention>Various repetition types for text objects</test-intention>
#   <content>
#     begin_lib 0.001
#     begin_cell {ABC}
#     text 1 2 0 0 {100 -200} {TEXT_ABC}
#     text 2 1 0 0 {200 -400} {TEXT_ABC}
#     text 2 1 0 0 {300 -400} {TEXT_ABC}
#     text 2 1 0 0 {300 -300} {TEXT_ABC}
#     text 2 1 0 0 {300 -500} {TEXT_ABC}
#     text 2 1 0 0 {310 -500} {TEXT_ABC}
#     text 2 1 0 0 {320 -500} {TEXT_ABC}
#     text 2 1 0 0 {300 -488} {TEXT_ABC}
#     text 2 1 0 0 {310 -488} {TEXT_ABC}
#     text 2 1 0 0 {320 -488} {TEXT_ABC}
#     text 2 1 0 0 {300 -476} {TEXT_ABC}
#     text 2 1 0 0 {310 -476} {TEXT_ABC}
#     text 2 1 0 0 {320 -476} {TEXT_ABC}
#     text 2 1 0 0 {300 -464} {TEXT_ABC}
#     text 2 1 0 0 {310 -464} {TEXT_ABC}
#     text 2 1 0 0 {320 -464} {TEXT_ABC}
#     text 2 1 0 0 {300 -700} {TEXT_ABC}
#     text 2 1 0 0 {310 -700} {TEXT_ABC}
#     text 2 1 0 0 {320 -700} {TEXT_ABC}
#     text 2 1 0 0 {300 -688} {TEXT_ABC}
#     text 2 1 0 0 {310 -688} {TEXT_ABC}
#     text 2 1 0 0 {320 -688} {TEXT_ABC}
#     text 2 1 0 0 {300 -676} {TEXT_ABC}
#     text 2 1 0 0 {310 -676} {TEXT_ABC}
#     text 2 1 0 0 {320 -676} {TEXT_ABC}
#     text 2 1 0 0 {300 -664} {TEXT_ABC}
#     text 2 1 0 0 {310 -664} {TEXT_ABC}
#     text 2 1 0 0 {320 -664} {TEXT_ABC}
#     text 2 1 0 0 {300 -900} {TEXT_ABC}
#     text 2 1 0 0 {310 -900} {TEXT_ABC}
#     text 2 1 0 0 {320 -900} {TEXT_ABC}
#     text 2 1 0 0 {300 -1100} {TEXT_ABC}
#     text 2 1 0 0 {300 -1088} {TEXT_ABC}
#     text 2 1 0 0 {300 -1076} {TEXT_ABC}
#     text 2 1 0 0 {300 -1064} {TEXT_ABC}
#     text 2 1 0 0 {300 -1300} {TEXT_ABC}
#     text 2 1 0 0 {312 -1300} {TEXT_ABC}
#     text 2 1 0 0 {325 -1300} {TEXT_ABC}
#     text 2 1 0 0 {339 -1300} {TEXT_ABC}
#     text 2 1 0 0 {300 -1500} {TEXT_ABC}
#     text 2 1 0 0 {312 -1500} {TEXT_ABC}
#     text 2 1 0 0 {327 -1500} {TEXT_ABC}
#     text 2 1 0 0 {345 -1500} {TEXT_ABC}
#     text 2 1 0 0 {300 -1700} {TEXT_ABC}
#     text 2 1 0 0 {300 -1690} {TEXT_ABC}
#     text 2 1 0 0 {300 -1679} {TEXT_ABC}
#     text 2 1 0 0 {300 -1900} {TEXT_ABC}
#     text 2 1 0 0 {300 -1890} {TEXT_ABC}
#     text 2 1 0 0 {300 -1875} {TEXT_ABC}
#     text 2 1 0 0 {300 -2100} {TEXT_ABC}
#     text 2 1 0 0 {310 -2100} {TEXT_ABC}
#     text 2 1 0 0 {320 -2100} {TEXT_ABC}
#     text 2 1 0 0 {289 -2112} {TEXT_ABC}
#     text 2 1 0 0 {299 -2112} {TEXT_ABC}
#     text 2 1 0 0 {309 -2112} {TEXT_ABC}
#     text 2 1 0 0 {278 -2124} {TEXT_ABC}
#     text 2 1 0 0 {288 -2124} {TEXT_ABC}
#     text 2 1 0 0 {298 -2124} {TEXT_ABC}
#     text 2 1 0 0 {267 -2136} {TEXT_ABC}
#     text 2 1 0 0 {277 -2136} {TEXT_ABC}
#     text 2 1 0 0 {287 -2136} {TEXT_ABC}
#     text 2 1 0 0 {300 -2300} {TEXT_ABC}
#     text 2 1 0 0 {311 -2288} {TEXT_ABC}
#     text 2 1 0 0 {322 -2276} {TEXT_ABC}
#     text 2 1 0 0 {290 -2290} {TEXT_ABC}
#     text 2 1 0 0 {301 -2278} {TEXT_ABC}
#     text 2 1 0 0 {312 -2266} {TEXT_ABC}
#     text 2 1 0 0 {280 -2280} {TEXT_ABC}
#     text 2 1 0 0 {291 -2268} {TEXT_ABC}
#     text 2 1 0 0 {302 -2256} {TEXT_ABC}
#     text 2 1 0 0 {270 -2270} {TEXT_ABC}
#     text 2 1 0 0 {281 -2258} {TEXT_ABC}
#     text 2 1 0 0 {292 -2246} {TEXT_ABC}
#     text 2 1 0 0 {300 -2500} {TEXT_ABC}
#     text 2 1 0 0 {311 -2488} {TEXT_ABC}
#     text 2 1 0 0 {322 -2476} {TEXT_ABC}
#     text 2 1 0 0 {300 -2700} {TEXT_ABC}
#     text 2 1 0 0 {290 -2690} {TEXT_ABC}
#     text 2 1 0 0 {280 -2680} {TEXT_ABC}
#     text 2 1 0 0 {270 -2670} {TEXT_ABC}
#     text 2 1 0 0 {300 -2900} {TEXT_ABC}
#     text 2 1 0 0 {310 -2900} {TEXT_ABC}
#     text 2 1 0 0 {310 -2890} {TEXT_ABC}
#     text 2 1 0 0 {300 -2890} {TEXT_ABC}
#     text 2 1 0 0 {300 -2930} {TEXT_ABC}
#     text 2 1 0 0 {310 -2920} {TEXT_ABC}
#     text 2 1 0 0 {300 -2910} {TEXT_ABC}
#     text 2 1 0 0 {290 -2920} {TEXT_ABC}
#     text 2 1 0 0 {310 -2940} {TEXT_ABC}
#     text 2 1 0 0 {300 -3100} {TEXT_ABC}
#     text 2 1 0 0 {289 -3088} {TEXT_ABC}
#     text 2 1 0 0 {299 -3098} {TEXT_ABC}
#     text 2 1 0 0 {300 -3300} {TEXT_ABC}
#     text 2 1 0 0 {310 -3300} {TEXT_ABC}
#     text 2 1 0 0 {310 -3290} {TEXT_ABC}
#     text 2 1 0 0 {300 -3290} {TEXT_ABC}
#     text 2 1 0 0 {300 -3330} {TEXT_ABC}
#     text 2 1 0 0 {310 -3320} {TEXT_ABC}
#     text 2 1 0 0 {300 -3310} {TEXT_ABC}
#     text 2 1 0 0 {290 -3320} {TEXT_ABC}
#     text 2 1 0 0 {310 -3340} {TEXT_ABC}
#     text 2 1 0 0 {300 -3500} {TEXT_ABC}
#     text 2 1 0 0 {288 -3488} {TEXT_ABC}
#     text 2 1 0 0 {297 -3497} {TEXT_ABC}
#     end_cell
#     end_lib
#   </content>
# </test>

header
  real 0 1000.0
  uint 0 ;# offset table is in start record
  for { set i 0 } { $i < 12 } { incr i } { uint 0 }

# Cell ABC
record CELL_STR
  str ABC

record TEXT
  bits 01011011 ;# 0CNXYRTL
  str TEXT_ABC  ;# text-string
  uint 1        ;# text-layer
  uint 2        ;# text-datatype
  int 100       ;# text-x (abs)
  int -200      ;# text-y (abs)

record XYRELATIVE

record TEXT
  bits 01011011 ;# 0CNXYRTL
  str TEXT_ABC  ;# text-string
  uint 2        ;# text-layer
  uint 1        ;# text-datatype
  int 100       ;# text-x (relative)
  int -200      ;# text-y (relative)

record XYABSOLUTE

record TEXT
  bits 00010000 ;# 0CNXYRTL
  int 300       ;# text-x (abs)

record TEXT
  bits 00001000 ;# 0CNXYRTL
  int -300      ;# text-y (abs)

record XYRELATIVE

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 1        ;# repetition (3x4 matrix)
    uint 1
    uint 2
    uint 10
    uint 12

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 0        ;# repetition (reuse matrix)

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 2        ;# repetition (3 columns)
    uint 1
    uint 10

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 3        ;# repetition (4 columns)
    uint 2
    uint 12

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 4        ;# repetition (4 columns, arbitrary spacing)
    uint 2
    uint 12
    uint 13
    uint 14

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 5        ;# repetition (4 columns, arbitrary spacing, grid 3)
    uint 2
    uint 3
    uint 4
    uint 5
    uint 6

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 6        ;# repetition (3 columns, arbitrary spacing)
    uint 1
    uint 10
    uint 11

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 7        ;# repetition (3 columns, arbitrary spacing, grid 5)
    uint 1
    uint 5
    uint 2
    uint 3

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 8        ;# repetition (3x4 matrix, arbitrary displacement vectors)
    uint 1      ;# n-dimension
    uint 2      ;# m-dimension
    uint [ expr 16*10 ]      ;# n-displacement (g-delta: 10-east=10,0)
    uint [ expr 4*11+3 ]     ;# m-displacement (g-delta: -11,-12)
    int -12

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 8        ;# repetition (3x4 matrix, arbitrary displacement vectors)
    uint 1      ;# n-dimension
    uint 2      ;# m-dimension
    uint [ expr 4*11+1 ]     ;# n-displacement (g-delta: 11,12)
    int 12
    uint [ expr 16*10+10 ]   ;# n-displacement (g-delta: 10-northwest=-10,10)

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 9        ;# repetition (3 times, arbitrary displacement vectors)
    uint 1      ;# dimension
    uint [ expr 4*11+1 ]     ;# n-displacement (g-delta: 11,12)
    int 12

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 9        ;# repetition (4 times, arbitrary displacement vectors)
    uint 2      ;# dimension
    uint [ expr 16*10+10 ]   ;# n-displacement (g-delta: 10-northwest=-10,10)

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 10       ;# repetition (9 times, once in the middle, others displaced)
    uint 7      ;# dimension
    uint [ expr 16*10+0 ]    ;# n-displacement (g-delta: 10-east=10,0)
    uint [ expr 16*10+2 ]    ;# n-displacement (g-delta: 10-north=0,10)
    uint [ expr 16*10+4 ]    ;# n-displacement (g-delta: 10-west=-10,0)
    uint [ expr 16*40+6 ]    ;# n-displacement (g-delta: 10-south=0,-40)
    uint [ expr 16*10+8 ]    ;# n-displacement (g-delta: 10-northeast=10,10)
    uint [ expr 16*10+10 ]   ;# n-displacement (g-delta: 10-northwest=-10,10)
    uint [ expr 16*10+12 ]   ;# n-displacement (g-delta: 10-southwest=-10,-10)
    uint [ expr 16*20+14 ]   ;# n-displacement (g-delta: 10-southeast=20,-20)

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 10       ;# repetition (3 times, once in the middle, two displaced)
    uint 1      ;# dimension
    uint [ expr 4*11+3 ]     ;# n-displacement (g-delta: -11,12)
    int 12
    uint [ expr 16*10+14 ]   ;# n-displacement (g-delta: 10-southeast=10,-10)

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 11       ;# repetition (9 times, grid 2, once in the middle, others displaced)
    uint 7      ;# dimension (9)
    uint 2      ;# grid
    uint [ expr 16*5+0 ]    ;# n-displacement (g-delta: 10-east=10,0)
    uint [ expr 16*5+2 ]    ;# n-displacement (g-delta: 10-north=0,10)
    uint [ expr 16*5+4 ]    ;# n-displacement (g-delta: 10-west=-10,0)
    uint [ expr 16*20+6 ]   ;# n-displacement (g-delta: 10-south=0,-40)
    uint [ expr 16*5+8 ]    ;# n-displacement (g-delta: 10-northeast=10,10)
    uint [ expr 16*5+10 ]   ;# n-displacement (g-delta: 10-northwest=-10,10)
    uint [ expr 16*5+12 ]   ;# n-displacement (g-delta: 10-southwest=-10,-10)
    uint [ expr 16*10+14 ]  ;# n-displacement (g-delta: 10-southeast=20,-20)

record TEXT
  bits 00001100 ;# 0CNXYRTL
  int -200      ;# text-y (relative)
  uint 11       ;# repetition (3 times, once in the middle, two displaced)
    uint 1      ;# dimension
    uint 3      ;# grid (3)
    uint [ expr 4*4+3 ]     ;# n-displacement (g-delta: -12,12)
    int 4
    uint [ expr 16*3+14 ]   ;# n-displacement (g-delta: 9-southeast=9,-9)

tail