Tags order in a style

Build 1501 on 14/Nov/2017  This topic last edited on: 24/Oct/2016, at 14:39

GNML tags, in general, may be entered in a style or in text any order.

However, there are some exceptions:

The tags of the paragraph type must not be inserted after any printable character, e.g. if in your style you have something like this, with a printable letter 'n':

>sav<>f 9101<n>res<

Because of the letter, you cannot place the >ld..< tag after the >res< tag, as it is preceded by the character 'n' and will be disabled. Therefore, you have to place it before the letter 'n', e.g.:

>sav<>ld 10pt<>f 9101<n>res<

The globalization tag >default<, being of a paragraph type, must be used only before any character in a paragraph.

The globalization tag >default< must not follow the >dropc...< tag: the drop capital style must not be globalized.

The tags >h 12pt<>default<>co M< globalize the type size, but not the color, while >co M<>default<>hld 12pt< globalize color and not the size. Have in mind that the globalized value spread across all following text (unless there's another globalized value down the stream), while unglobalized values cease after the paragraph end.

The sequence >h 12pt<>ld 13pt<>h 10pt< defines 10pt type size on 13 pt leading: the repeating of the same tag takes into consideration only the last occurrence.

The top compensation tag >ta CapH< that ensures that the uppercases of the first line of paragraph will touch the top of the frame reads the typographical variable CapH to find out the height of uppercases. Because uppercases have different height in different fonts, it is necessary to specify the font BEFORE the top compensation tag and not after. Therefore:

>f 9011<>ta CapH< 

is correct and:

>ta CapH<>f 9011< 

is wrong, because CapH will be read from default font and not from the font 9011.

The tag for type size >h...< can reset the character width to 100%. If you want to have some different character width, you have to specify type size first and then width. Therefore, >h 12pt<>w 10pt< is correct and >w 12pt<>h 10pt< is wrong, because the width will be set to 10pt and not to 12pt as you would expect. But, you can do >w 12pt<>h 10pt,0< and it will work ok, as the 0 as the second parameter of the >h..< tag prevents the changing of the character width.

The tag for type size >h...< can reset the style variation by tag >small..< to normal. If you want to have some different style, you have to specify type size first and then style. Therefore, >h 12pt<>small 1< is correct and >small 1<>h 10pt< is wrong, because the style will be set to normal and not to small capitals.