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: devDocs/developerGuide.t2t
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ Subsequent lines contain a textual identifier used to identify the symbol, a tab
72
72
For example:
73
73
```
74
74
. sentence ending (?<=[^\s.])\.(?=[\"')\s]|$)
75
+
dates . \b(\d\d)\.(\d\d)\.(\d{2}|\d{4})\b
75
76
```
76
77
77
78
Again, the English symbols are inherited by all other locales, so you need not include any complex symbols already defined for English.
@@ -98,6 +99,8 @@ Certain characters cannot be typed into the file, so the following special seque
98
99
- \f: form feed
99
100
- \#: # character (needed because # at the start of a line denotes a comment)
100
101
- replacement: The text which should be spoken for the symbol.
102
+
If the symbol is a complex symbol, \1, \2, etc. can be used to refer to the groups matches, which will be inlined in the replacement, allowing for simpler rules.
103
+
This also means that to get a \ character in the replacement, one has to type \\.
101
104
- level: The symbol level at which the symbol should be spoken.
102
105
The symbol level is configured by the user and specifies the amount of symbols that should be spoken.
103
106
This field should contain one of the levels "none", "some", "most", "all" or "char", or "-" to use the default.
@@ -133,6 +136,13 @@ It means that the ". sentence ending" complex symbol should be spoken as "point"
133
136
Level and preserve are not specified, so they will be taken from English.
134
137
A display name is provided so that French users will know what the symbol represents.
135
138
139
+
```
140
+
dates . \1 \2 \3 all always # point de date
141
+
```
142
+
This line appears in the French symbols.dic file.
143
+
It means that the first, second, and third groups of the match will be included, separated by spaces.
144
+
The effect is thus to remove the dots from the date.
145
+
136
146
Please see the file locale\en\symbols.dic for the English definitions which are inherited for all locales.
0 commit comments