-
Notifications
You must be signed in to change notification settings - Fork 0
/
syntax-examples.tagml
60 lines (45 loc) · 1.27 KB
/
syntax-examples.tagml
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
[!-- comments --]
[!-- comments
can
contain
multiple
lines
--]
[!-- namespace --]
[!ns tag http://tag.di.huc.knaw.nl/ns/tag]
[!-- simple start/end tags --]
[tag>some text<tag]
[!-- add layers --]
[tag|+A>some text<tag|A]
[!-- milestone tag --]
[x|A>This is a [milestone|A] tag<x]
[!-- markup annotations: boolean --]
[tag b=true]
[!-- markup annotations: number --]
[tag pi=3.14]
[!-- markup annotations: single-quoted string --]
[tag s1='string']
[!-- markup annotations: double-quoted string --]
[tag s2="string"]
[!-- markup annotations: list --]
[tag odd=[1,3,5,7,9]]
[!-- markup annotations: map --]
[tag map={a=1 b=false c='something'}]
[!-- markup annotations: map, formatted over several lines--]
[tag map={a=1
b=false
c='something'}]
[!-- non-linearity --]
Programming is <|[del>frustrating<del]|[add>rewarding<add]|>
[!-- escaped characters in main text --]
[t>These characters need to be escaped: \\< \\[ \\| \\! \\' \\" \\\\<t]
[!-- escaped characters in string annotation --]
[t s="It read: \"NO ENTRY\" on the door.">some text<t]
[!-- example tagml --]
[TAGML|+M,+N>
[text|M,N>
[l|M>
[s|N>Une [del|M>[add|M>jolie<add]<del][add|M>belle<add] main de femme, élégante et fine.<l]<s] [l|M>[s|N>Malgré l'agrandissement du close-up.
<s]
<l]
<text]<TAGML]