Back to list

Literal {x} patterns

Typinator uses the notation {x} for time and date variables. For example, {M} stands for the current month, and {a} gets replaced by AM or PM.

In some cases, you may want to include such a pattern literally in an expansion and do not want Typinator to make a replacement.

For example, if you are using LaTeX, the notation \'{a} is used for á, and you don't want Typinator to change that to 'AM or 'PM. Another example is a snippet in which you mention that the Typinator tag {M} creates the current month.

To tell Typinator that you do not want it to replace a tag with its special meaning, just insert periods after the opening and before the closing brace. Typinator then removes the periods and leaves everything else intact. In the LaTeX example, use \'{.a.} to produce \'{a} for á.

And what if you want to use \'{.a.} literally in an expansion? Just double the periods \'{..a..}, and Typinator will remove the periods next to the braces.

BTW, you do not need to insert periods for every brace that you mean literally. If the contents of the braces do not have special meaning for Typinator, it will leave them as they are. For example, you can use braces in source code snippets without periods. You need to insert the periods only when you find that Typinator applies some special meaning to the braces.