Norbert
Norbert

Reputation: 765

Text substitution in AsciiDoc

I have an asciidoc document that uses a very technical and long term over and over again. It is very important that the term is written exactly like this. Now, I am looking for a possibility to use an acronym/shortcut instead while writing the document. The shortcut text should then be expanded to a fixed value (best case a value that I can define elsewhere in the doc) while translating the document.

I read a lot about macros in asciidoc but did not yet find the right solution. Can anybody help and point me into the right direction?

Upvotes: 2

Views: 436

Answers (1)

eskwayrd
eskwayrd

Reputation: 4521

The easiest solution is to use an attribute:

:mla: MYVERYLONGACRONYM

{mla} is a very long term.

Upvotes: 1

Related Questions