-
Notifications
You must be signed in to change notification settings - Fork 1
/
rm_v5.ksy
71 lines (71 loc) · 1.26 KB
/
rm_v5.ksy
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
meta:
id: rm_v5
title: reMarkable .lines file, version=5
file-extension: rm
endian: le
seq:
- id: header
type: str
size: 33
encoding: ASCII
- id: header_padding
type: str
size: 10
encoding: ASCII
# before version 3, num_pages (s4) bytes here
- id: pages
type: rm_page
repeat: expr
repeat-expr: 1
types:
rm_page:
seq:
- id: num_layers
type: s4
- id: layers
type: rm_layer
repeat: expr
repeat-expr: num_layers
rm_layer:
seq:
- id: num_lines
type: s4
- id: lines
type: rm_line
repeat: expr
repeat-expr: num_lines
rm_line:
seq:
- id: brush_type
type: s4
- id: color
type: s4
- id: unknown_line_attribute
type: s4
doc: suspected to be 'selected' flag
- id: brush_base_size
type: f4
doc: width
# only in version 5:
- id: unknown_line_attribute_2
type: s4
- id: num_points
type: s4
- id: points
type: rm_point
repeat: expr
repeat-expr: num_points
rm_point:
seq:
- id: x
type: f4
- id: y
type: f4
- id: speed
type: f4
- id: direction
type: f4
- id: width
type: f4
- id: pressure
type: f4