On 2014-10-15 13:38, Hans Hagen wrote: > On 10/15/2014 4:58 PM, Rik Kabel wrote: >> On 2014-10-15 09:06, Sander Maijers wrote: >>> Hi, >>> >>> I'm using beta 2014.09.27. The code below produces a slanted, unquoted >>> quotation, whereas I intend to produce a slanted, double-quoted >>> quotation. How can I fix it? >>> >>> \definedelimitedtext[quotationsl][ >>> style=slanted, >>> left={\symbol[leftquotation]}, >>> right={\symbol[rightquotation]}, >>> location=text, >>> ] >>> >>> \setupdelimitedtext[quotationsl][style=slanted,left={\symbol[leftquotation]},right={\symbol[rightquotation]}] >>> >>> >>> \starttext >>> \quotationsl{This should be slanted and double-quoted.} >>> \stoptext >>> >>> Best, >>> Sander Maijers >>> >> Looks like a bug. > > it's deliberate and has always been the case in mkiv > >> Modifying the parenthesis example at >> http://wiki.contextgarden.net/Command/setupdelimitedtext demonstrates >> that when a style other than normal is specified, the left and right >> settings are ignored and style settings in deeper levels ignored as >> well. (There may be other keys that are ignored as well, and others that >> set this off.) I tried a number of combinations. The following is one >> that shows the problem. Without the style settings, it works as >> described in the wiki. > > well, i can do a different check (in next beta) but you deal with > questions about incompatible behaviour ... > >> \definedelimitedtext[parenthesis][location=text] >> \setupdelimitedtext [parenthesis:1] [left={(}, right={)}] >> \setupdelimitedtext [parenthesis:2] [style=slanted, left={[}, >> right={]}] >> \setupdelimitedtext [parenthesis:3] [style=normal, left={\{}, >> right={\}}] >> \starttext >> \parenthesis{My outer layer \parenthesis{my inner layer >> \parenthesis{my innermost layer}}} >> \stoptext > > i'll add symstyle/color: > > \definedelimitedtext[parenthesis] [location=text] > \setupdelimitedtext [parenthesis:1] [left={(}, right={)}] > \setupdelimitedtext [parenthesis:2] > [symcolor=red,symstyle=boldslanted,style=slanted, left={[}, right={]}] > \setupdelimitedtext [parenthesis:3] > [symcolor=blue,symstyle=bold,style=normal, left={\{}, right={\}}] > > \starttext > \parenthesis{My outer layer \parenthesis{my inner layer > \parenthesis{my innermost layer}}} > \stoptext > Hans, I am not sure I understand the need for symstyle and symcolor. The issue is not that the symbols are not styled/colored, but that they do not appear at all when a non-normal style is specified. What I see with the example I posted is: and I assume that Sander saw a similar issue. Note that there are no square brackets present as defined for layer 2. I realize that style=normal for level 3 should perhaps be style=\tf, since normal is redefined to slanted within the scope of layer 2. With that change to my example, I get This still has the lack of square brackets, and now in addition lacks curly braces for level 3. If your fix is meant to repair that, all is well. If not, could you explain why “it's deliberate and has always been the case in mkiv”? -- Rik Kabel