# Recommended text variable format

**URL:** <https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934>\
**Category:** Scrivener\
**Tags:** support, compile, placeholders\
**Created:** [October 23, 2026, 3:47pm UTC](https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934 "2026-10-23T15:47:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptram](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/p/49beb7/32.png) [@ptram](https://forum.literatureandlatte.com/u/ptram)\
**Post date:** [October 23, 2026, 3:47pm UTC](https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934/1 "2026-10-23T15:47:44Z")

</div>

Hi,

I would like to use text variables in a project to be localized in multiple languages. There are technical terms that have to carefully adhere to a glossary, and I would like to make this glossary once forever for each language.

So, I will have a compile format for French where ‘Quit’ is replaced with ‘Quitter’, and one for Italian where it is replaced with ‘Esci’.

But ‘Quit’ shouldn’t be an ordinary word. It must be a text variable, not to be confused with ordinary text strings. So, I must make it a text variable, with a precise format.

What can I do? I was thinking to something simple like ‘$Quit’, but will it interfere with some other reserved word?

Paolo

---

<div class="post-metadata">

**Author:** ![kewms](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/kewms/32/15720_2.png) [@kewms](https://forum.literatureandlatte.com/u/kewms)\
**Post date:** [October 23, 2026, 4:19pm UTC](https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934/2 "2026-10-23T16:19:08Z")

</div>

I wouldn’t use a ‘$,’ since that’s what Scrivener’s placeholders use, but almost any other string would work. TVQuit, say. (For Text Variable Quit.)

---

<div class="post-metadata">

**Author:** ![ptram](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/p/49beb7/32.png) [@ptram](https://forum.literatureandlatte.com/u/ptram)\
**Post date:** [October 23, 2026, 4:42pm UTC](https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934/3 "2026-10-23T16:42:28Z")

</div>

To preserve readability, I would maybe use an underscore before the word; something like ‘\_Quit’. Is this already a reserved symbol used somewhere?

Paolo

---

<div class="post-metadata">

**Author:** ![AmberV](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/amberv/32/13021_2.png) [@AmberV](https://forum.literatureandlatte.com/u/AmberV)\
**Post date:** [October 23, 2026, 5:17pm UTC](https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934/4 "2026-10-23T17:17:09Z")

</div>

Scrivener only uses the `<$...>` pattern, so you’d really only have to worry about collisions using that, and can check against the placeholder list in the Help menu if so.\[1\]

I tend to use something with delimiters like that as well (e.g. `{{word}}`), as it makes regex matching safer—but for ones that I type in a lot, I’ll use `!word`, as that’s very unlikely to happen naturally. Underscore I would be a little concerned with if you have a lot of plain-text URLs or source code samples.

* * *

1. Some of the non-fiction templates do have some example Replacements in their compile Formats, but they will only match on a more complex input like `!fig(figure_handle)`, where the part in the parentheses establishes the cross-referencing handle you can use to refer to its number from elsewhere, with `#fig(figure_handle)`.

---

<div class="post-metadata">

**Author:** ![gr](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/gr/32/38680_2.png) [@gr](https://forum.literatureandlatte.com/u/gr)\
**Post date:** [October 23, 2026, 9:40pm UTC](https://forum.literatureandlatte.com/t/recommended-text-variable-format/154934/5 "2026-10-23T21:40:29Z")

</div>

+1 on using a terminal marker, not just a starter.

I am partial to square brackets for this sort of use, and unique-r characters that don’t require Shift. (Maybe if I was a touch typist I wouldn’t care.)

Something like `[.phrase.]` or `[-phrase-]` seems to me very appealing.
