When adding a new game, you may also wish to define a default table of abbreviations so that users can insert stock phrases with a few keystrokes. This not only speeds up component development, but it helps ensure consistent wording and styling.
When an abbreviation table is required, Strange Eons uses the AbbreviationTableManager class to load it. This first looks for a custom table defined by the user. If none is found, it looks for a default table in the abbrev
resource folder, under the name game-XX.settings
, where XX
is the code of the relevant game.
Abbreviation tables use the same format as other settings files: the keys are the abbreviations and the values are their matching expansions. For example:
ho = Make a <b>Horror ($|-1|$) check</b>.
ip = If you pass, $|effect|$
See the main article for Abbreviations for an explanation of the special codes used in abbreviation expansions.
To use the abbreviation table editor to create your default table, open the editor (choose the Markup/Abbreviations) and select your game. Changes that you make here will be saved to the abbrev
subfolder of the user folder, using the same file naming convention. This means that when you are done editing you can simply copy this file into your plug-in’s abbrev
folder.