-
1. Re: <Default ¶ Font> vs. </> in Variables
Arnis Gubins Sep 2, 2014 9:43 AM (in response to Error7103)It's mentioned in the "Cross Reference Examples" section going back to at least v.7.
"You can use the </> building block as a substitute for <Default Para Font> in cross-reference definitions."
You can use the </> building block practically anywhere that they are used to turn off (reset) previously applied character tag building blocks: variables, indices, markers, x-refs. (Except in auto-numbers). It's a lot easier and more succinct to enter and was often needed with the 255 character limit in some items.
-
2. Re: <Default ¶ Font> vs. </> in Variables
Error7103 Sep 2, 2014 10:15 AM (in response to Arnis Gubins)> ... they are used to turn off (reset) ...
That's still ambiguous, but in testing it appears that </> is indeed doing what <Default ¶ Font> does; a major reset and not just an end-current-tag.
> ... previously applied character tag building blocks ...
If we think of a one or more formats applied in terms of being stacked, </> and <Default ¶ Font> are not doing a "pop"; they're doing a "flush" - and not just flushing the formats stacked up by the variable expression, but also any overrides previously applied in the para.
> It's a lot easier and more succinct to enter and was often needed with the 255 character limit in some items.
No argument there. I'm almost surprised that FM doesn't do it automatically, as it does for some other elements. For example, the "\xa4" above is instantly converted to a "§" upon entry.
-
3. Re: <Default ¶ Font> vs. </> in Variables
max_drawdown Sep 3, 2014 9:38 AM (in response to Error7103)I think you have identified something important here.
-
4. Re: <Default ¶ Font> vs. </> in Variables
Arnis Gubins Sep 3, 2014 9:58 AM (in response to Error7103)Keep in mind that FM was designed well before structured mark-up came into common use. The nesting of in-line tags within each other is not really recommended for Character formatting, as best practice is to create an explicit tag to cover the combined characteristics, e.g. instead of <Red><emphasis><Bold> have a <Danger> tag instead. The format reset behaviour is hard-wired in the core and tinkering with it would probably lead to unintended consequences (as previous releases have shown us when historical behaviour is "updated").
-
5. Re: <Default ¶ Font> vs. </> in Variables
Error7103 Sep 3, 2014 12:28 PM (in response to Arnis Gubins)> Keep in mind that FM was designed well before structured mark-up came into common use.
We never had these problems with troff
You just couldn't do some things,
unless you wanted to embed PostScript .
> The nesting of in-line tags within each other is not really recommended for Character formatting, as best practice is to create an explicit tag to cover the combined characteristics, e.g. instead of <Red><emphasis><Bold> have a <Danger> tag instead.
And given what I've trialed here, "markups" would include not just multiple nested tags in a Var, but format overrides in the surrounding text, and possibly even a named Character Format applied to the surrounding text.
> The format reset behaviour is hard-wired in the core and tinkering with it would probably lead to unintended consequences (as previous releases have shown us when historical behaviour is "updated").
I'm not asking for a change, as it's pretty clear that changing what </> does would seriously break documents that take advantage (intentionally or not) of how it has worked to date.
What's needed is a new tag, perhaps </last>, which would merely undo the effect of just the most recent <whatever> tag. Or add a setting of "As-Was" to the dialogs.
As things stand, one can craft bookend /tags for the elements on the right side of the Character Format dialog (</Underline> through </Pair_Kern>), by setting everything As-Is except for raising the specific button. But there is no un-do for the attributes on the left side (Family: through Language:); all one could do is guess at what values to return to. And even for the right side stuff, if that decoration were already active prior to the Var, you've now just turned it off.
This is fortunately less of a problem post-FM8, with Unicode fonts having reasonable populations, as one can do many things with native characters that used to require overlay font shifts, subscripts, supers, etc. But even in the Unicode age, not all glyphs made it into the pantheon (a full set of keycaps for example, as u\20e3, KEYCAP, COMBINING ENCLOSING, can only handle one preceding character, and not a string like [Print Screen] ).


