Macro Language Reference > Macros > Text (Frame Level) > tlig
  
tlig
Description
Applies a ligature table to selected text.
 
When electing to load ligature tables with this macro, PTC ALD will only search for files with the extension .3lg. If the required table is of another type, use the tload command.
 
Example 286. Example to show how a ligature table is similar to a search and replace operation
The example code below shows how similar a ligature table is to straightforward 'Search and Replace' operation - in effect, you ask PTC ALD to replace one set of characters in one way, keeping them separate from another set of characters that are to be replaced differently. One of the best examples of how ligatures work is in the final part of the siso.3ad file, where individual f, I and l characters are replaced with typographic fi, fl, ff, ffi and ffl ligatures. Because not all fonts have the these ligatures we divide these into two groups, which can be enabled or disabled using <?tklgp> as required.
'fi and fl ligatures
group 4
ligstart 'f';'i'; draw 174
ligstart 'f';'l'; draw 175
'ff, ffi and ffl ligatures
group 8
replace 'f';'f'; draw 128; label 5
ligstart 5;'i'; draw 129
ligstart 5;'l'; draw 130
Syntax
tlig table_name:t?
[no parameter]
Invoke the Ligatures - table name (user) dialog box
table_name
The name of a valid ligature table
Additional Information
A ligature table applied with this macro will override both PTC ALD default mapping of a font via the siso.3ad ligature table and any ligature table contained in the font itself.