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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384 | {
"metadata": {
"title": "Text that keeps to a shape"
},
"drawings": [
{
"name": "shapes",
"box": {
"llx": 0.0,
"lly": 0.0,
"urx": 595.0,
"ury": 842.0
},
"items": [
{
"type": "shaped_text",
"shape": {
"rect": {
"llx": 63.0,
"lly": 427.0,
"urx": 279.0,
"ury": 733.0
}
},
"around": [
{
"llx": 166.0,
"lly": 620.0,
"urx": 286.0,
"ury": 740.0,
"gap": 8.0
}
],
"content": "A column of text with a note set into its top right-hand corner. The lines beside the note are shorter: each one stops eight points before the note's edge, and the line under it takes the whole width again. Nothing here was measured by hand. The flow is told where the column is and where the note stands, and it works out, line by line, how much room each line has. The same text in another language runs to a different number of lines, and the note still sits where it was placed, with the text going round it.",
"font": "DejaVuSans",
"font_size": 10.5
},
{
"type": "shaped_text",
"shape": {
"ellipse": {
"llx": 316.0,
"lly": 517.0,
"urx": 532.0,
"ury": 733.0
}
},
"content": "Inside a circle, every line is as wide as the circle is at the height of its letters, measured where the circle is narrowest along that line, so no letter crosses the edge. The lines grow longer towards the middle and shorter towards the bottom, and each one is set flush left inside its own width.",
"font": "DejaVuSans",
"font_size": 10.5
},
{
"type": "shaped_text",
"shape": {
"polygon": [
[
121.0,
367.0
],
[
474.0,
367.0
],
[
530.0,
255.0
],
[
474.0,
143.0
],
[
121.0,
143.0
],
[
65.0,
255.0
]
]
},
"around": [
{
"llx": 237.0,
"lly": 265.0,
"urx": 358.0,
"ury": 345.0,
"gap": 8.0
}
],
"content": "A six-sided shape with a picture box in its middle. Where a line meets the box, it is set in two parts: the text fills the stretch to the left of the box, then carries on in the stretch to its right, and only then goes down to the next line. A word never sits in a stretch too narrow for it. Above and below the box, the lines take the whole width the shape gives them, and along the slanted sides they grow shorter, so the block follows the outline from its top to its bottom. The shape is given as a list of corners, and any outline whose sides do not cross can be filled the same way.",
"font": "DejaVuSans",
"font_size": 10.5
}
]
}
],
"items": [
{
"type": "text",
"rect": {
"llx": 56.0,
"lly": 790.0,
"urx": 595.0,
"ury": 809.2
},
"content": [
"Text that keeps to a shape"
],
"font": "DejaVuSans",
"font_size": 16.0,
"pages": [
1
]
},
{
"type": "text",
"rect": {
"llx": 56.0,
"lly": 766.0,
"urx": 595.0,
"ury": 777.4
},
"content": [
"Each block below is one text set line by line: a line stands only where the shape holds it"
],
"font": "DejaVuSans",
"font_size": 9.5,
"pages": [
1
]
},
{
"type": "text",
"rect": {
"llx": 56.0,
"lly": 753.0,
"urx": 595.0,
"ury": 764.4
},
"content": [
"whole, and where a rectangle sits in its way, the line goes round it or carries on beyond it."
],
"font": "DejaVuSans",
"font_size": 9.5,
"pages": [
1
]
},
{
"type": "rect",
"rect": {
"llx": 56.0,
"lly": 420.0,
"urx": 286.0,
"ury": 740.0
},
"stroke": {
"width": 0.5,
"color": [
0.6,
0.6,
0.6
]
},
"pages": [
1
]
},
{
"type": "path",
"segments": [
{
"ellipse": {
"centre": {
"x": 424.0,
"y": 625.0
},
"rx": 115.0,
"ry": 115.0
}
}
],
"stroke": {
"width": 0.5,
"color": [
0.6,
0.6,
0.6
]
},
"pages": [
1
]
},
{
"type": "path",
"segments": [
{
"move_to": {
"x": 116.0,
"y": 375.0
}
},
{
"line_to": {
"x": 479.0,
"y": 375.0
}
},
{
"line_to": {
"x": 539.0,
"y": 255.0
}
},
{
"line_to": {
"x": 479.0,
"y": 135.0
}
},
{
"line_to": {
"x": 116.0,
"y": 135.0
}
},
{
"line_to": {
"x": 56.0,
"y": 255.0
}
},
"close"
],
"stroke": {
"width": 0.5,
"color": [
0.6,
0.6,
0.6
]
},
"pages": [
1
]
},
{
"type": "rect",
"rect": {
"llx": 166.0,
"lly": 620.0,
"urx": 286.0,
"ury": 740.0
},
"fill": [
1.0,
0.97,
0.85
],
"stroke": {
"width": 0.5,
"color": [
0.6,
0.5,
0.2
]
},
"pages": [
1
]
},
{
"type": "rect",
"rect": {
"llx": 237.0,
"lly": 265.0,
"urx": 358.0,
"ury": 345.0
},
"fill": [
0.85,
0.85,
0.85
],
"pages": [
1
]
},
{
"type": "flow",
"rect": {
"llx": 172.0,
"lly": 626.0,
"urx": 280.0,
"ury": 734.0
},
"content": "A note set into the column. The text keeps eight points clear of it.",
"font": "DejaVuSans",
"font_size": 8.5,
"pages": [
1
]
},
{
"type": "text",
"rect": {
"llx": 245.0,
"lly": 302.0,
"urx": 595.0,
"ury": 313.4
},
"content": [
"Picture"
],
"font": "DejaVuSans",
"font_size": 9.5,
"pages": [
1
]
},
{
"type": "drawing",
"drawing": "shapes",
"x": 0.0,
"y": 0.0,
"pages": [
1
]
},
{
"type": "text",
"rect": {
"llx": 56.0,
"lly": 406.0,
"urx": 595.0,
"ury": 417.4
},
"content": [
"Around a note"
],
"font": "DejaVuSans",
"font_size": 9.5,
"pages": [
1
]
},
{
"type": "text",
"rect": {
"llx": 309.0,
"lly": 496.0,
"urx": 595.0,
"ury": 507.4
},
"content": [
"Inside a circle"
],
"font": "DejaVuSans",
"font_size": 9.5,
"pages": [
1
]
},
{
"type": "text",
"rect": {
"llx": 56.0,
"lly": 118.0,
"urx": 595.0,
"ury": 129.4
},
"content": [
"Inside a polygon, around a picture box"
],
"font": "DejaVuSans",
"font_size": 9.5,
"pages": [
1
]
}
]
}
|