You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,10 +97,10 @@ All of the options below default to an empty text which means no output is gener
97
97
### Segment formatting
98
98
`gwrite` uses `.format()` encoding which means that data elements must be encapsulated in `{}` brackets. This provides a particular syntax token which differs from between elements.
99
99
For example every element except `layer_join` and `segment_join` accepts the value of `index`. You would encode that in the text as `{index:d}` the d denotes an integer value. If you need to have a `{` value in your text you would encode that as `{{` likewise you would encode a `}` as `}}`.
100
-
-`layer_start`: Accepts `index` the current layer number and `layer_id` as vpype layer ID.
101
-
-`layer_end`: Accepts `index` the current layer number and `layer_id` as vpype layer ID.
102
-
-`line_start`: Accepts `index` the current line number.
103
-
-`line_end`: Accepts `index` the current line number.
100
+
-`layer_start`: Accepts `index` the current layer index starting from 0, `index1` the current layer number starting from 1, and `layer_id` as vpype layer ID.
101
+
-`layer_end`: Accepts `index` the current layer index starting from 0, `index1` the current layer number starting from 1, and `layer_id` as vpype layer ID.
102
+
-`line_start`: Accepts `index` the current line number starting from 0, `index1` the current line number starting from 1, and `layer_index`, `layer_index1`, and `layer_id` values for the current layer this line is within.
103
+
-`line_end`: Accepts `index` the current line number starting from 0, `index1` the current line number starting from 1, and `layer_index`, `layer_index1`, and `layer_id` values for the current layer this line is within.
104
104
105
105
The segments accept a lot of values that may be useful statistics for various formats:
106
106
*`index`: index of the particular coordinate pair. eg `{index:d}`
0 commit comments