1 minute read

“Smart Styles” (Dynamically Customisable Styles) [Advanced

Next Article
Configuring Masks

Configuring Masks

- Select the 'Output (display) order' tab at the top - Select the 'Full' style set under 'Style sets' - Select the 'Lemma' element in the list at the left (or 'Sense', or whichever element it was you selected at STEP 3) - Select the 'Exclude' 'Attribute' in the 'Child element/attribute' list - Untick the 'Visible' checkbox

Then, repeat for the 'Pocket' style set: - Select the 'Pocket' style set under 'Style sets' - Select the 'Lemma' element in the list at the left (or 'Sense', or whichever element it was you selected at STEP 3) - Select the 'Exclude' 'Attribute' in the 'Child element/attribute' list - Untick the 'Visible' checkbox

Advertisement

Finally, click the "Close" button at the bottom to close the Styles dialog. You can now start masking out information on a per-edition basis as you edit. Remember the toggle option 'Format / Preview all sets of styles' to enable/disable real-time preview of ALL editions, and you can use the Ctrl+P 'Format / Toggle current styleset' command to switch between edition 'views' (or select the current edition from the top right of the Preview Area).

“Smart Styles” (Dynamically Customisable Styles) [Advanced]

TLex/tlTerm allow you to set up rules (of any possible complexity) that allow the visual appearance (style) of a field to change dynamically in different situations. As a simple example, you might want the automatic punctuation before a usage example to change depending on the field that happens to precede it. Or, you might want to automically generate a fullstop after the example only if it doesn't end on an exclamation or question mark. All of these things can achieved by attaching a “Lua modifier script” to a style. This can be done under the “Advanced” tab in the Styles dialog. There are several samples included with TLex demonstrating the “Smart Styles” functionality. The screenshot below shows one of these samples, in which the top 500 most frequent headwords (based on corpus rank) are highlighted in red and with an asterisk.

This article is from: