* Slanted, double-quoted quotations
@ 2014-10-15 13:06 Sander Maijers
2014-10-15 14:58 ` Rik Kabel
0 siblings, 1 reply; 9+ messages in thread
From: Sander Maijers @ 2014-10-15 13:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 524 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1208 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-15 13:06 Slanted, double-quoted quotations Sander Maijers
@ 2014-10-15 14:58 ` Rik Kabel
2014-10-15 17:38 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Rik Kabel @ 2014-10-15 14:58 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1521 bytes --]
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.
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.
\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
--
rik
[-- Attachment #1.2: Type: text/html, Size: 3344 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-15 14:58 ` Rik Kabel
@ 2014-10-15 17:38 ` Hans Hagen
2014-10-15 19:03 ` Rik Kabel
0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2014-10-15 17:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-15 17:38 ` Hans Hagen
@ 2014-10-15 19:03 ` Rik Kabel
2014-10-15 21:06 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Rik Kabel @ 2014-10-15 19:03 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 3243 bytes --]
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
[-- Attachment #1.2.1: Type: text/html, Size: 5264 bytes --]
[-- Attachment #1.2.2: hacaddjd.png --]
[-- Type: image/png, Size: 3924 bytes --]
[-- Attachment #1.2.3: fageaehi.png --]
[-- Type: image/png, Size: 3650 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-15 19:03 ` Rik Kabel
@ 2014-10-15 21:06 ` Wolfgang Schuster
2014-10-16 1:14 ` Rik
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2014-10-15 21:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.10.2014 um 21:03 schrieb Rik Kabel <context@rik.users.panix.com>:
> 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:
> <hacaddjd.png>
> 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
> <fageaehi.png>
> 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”?
When you use “location=text” context checks the value of the style key, when the value of the key is “normal”
the left and right arguments are used but when you use a different value (e.g. slanted) context applies only
the style and color values.
Another way to create quotation command is to use the annotation module:
\usemodule[annotation]
\defineannotation
[quotationsl]
[style=slanted,
leftsymbol={\symbol[leftquotation]},
rightsymbol={\symbol[rightquotation]},
alternative=quotation]
\starttext
\quotationsl{This should be slanted and double-quoted.}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-15 21:06 ` Wolfgang Schuster
@ 2014-10-16 1:14 ` Rik
2014-10-20 14:08 ` Sander Maijers
0 siblings, 1 reply; 9+ messages in thread
From: Rik @ 2014-10-16 1:14 UTC (permalink / raw)
To: ntg-context
On 2014-10-15 17:06, Wolfgang Schuster wrote:
> Am 15.10.2014 um 21:03 schrieb Rik Kabel <context@rik.users.panix.com>:
>
>> 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:
>> <hacaddjd.png>
>> 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
>> <fageaehi.png>
>> 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”?
> When you use “location=text” context checks the value of the style key, when the value of the key is “normal”
> the left and right arguments are used but when you use a different value (e.g. slanted) context applies only
> the style and color values.
>
Thank you, Wolfgang, for that explanation of what is being done.
Can you explain why this is done? It would seem, given the name of the
command, that the delimiter is more important than the styling, and so I
suspect that there is some historical reason that this behavior was
chosen. Styling can be done within the text, as can delimiters, but the
benefit of the command is that it should be able to manage multiple
levels automatically.
--
Rik Kabel
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-16 1:14 ` Rik
@ 2014-10-20 14:08 ` Sander Maijers
2014-10-20 15:42 ` Rik
0 siblings, 1 reply; 9+ messages in thread
From: Sander Maijers @ 2014-10-20 14:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2419 bytes --]
I am wondering likewise.
Sander Maijers
On Thu, Oct 16, 2014 at 3:14 AM, Rik <rik@panix.com> wrote:
> On 2014-10-15 17:06, Wolfgang Schuster wrote:
>
>> Am 15.10.2014 um 21:03 schrieb Rik Kabel <context@rik.users.panix.com>:
>>
>> 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:
>>> <hacaddjd.png>
>>> 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
>>> <fageaehi.png>
>>> 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”?
>>>
>> When you use “location=text” context checks the value of the style key,
>> when the value of the key is “normal”
>> the left and right arguments are used but when you use a different value
>> (e.g. slanted) context applies only
>> the style and color values.
>>
>>
> Thank you, Wolfgang, for that explanation of what is being done.
>
> Can you explain why this is done? It would seem, given the name of the
> command, that the delimiter is more important than the styling, and so I
> suspect that there is some historical reason that this behavior was chosen.
> Styling can be done within the text, as can delimiters, but the benefit of
> the command is that it should be able to manage multiple levels
> automatically.
>
> --
> Rik Kabel
> ____________________________________________________________
> _______________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/
> listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ____________________________________________________________
> _______________________
[-- Attachment #1.2: Type: text/html, Size: 3642 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-20 14:08 ` Sander Maijers
@ 2014-10-20 15:42 ` Rik
2014-10-21 7:50 ` Sander Maijers
0 siblings, 1 reply; 9+ messages in thread
From: Rik @ 2014-10-20 15:42 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 245 bytes --]
On 2014-10-20 10:08, Sander Maijers wrote:
> I am wondering likewise.
>
Sander,
The question has been mooted. The first beta (of two) on 2014-10-16
resolved the issue, and the result of your example is what the text in
it describes.
--
rik
[-- Attachment #1.2: Type: text/html, Size: 797 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Slanted, double-quoted quotations
2014-10-20 15:42 ` Rik
@ 2014-10-21 7:50 ` Sander Maijers
0 siblings, 0 replies; 9+ messages in thread
From: Sander Maijers @ 2014-10-21 7:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 883 bytes --]
Great, thanks for reporting.
Sander Maijers
On Mon, Oct 20, 2014 at 5:42 PM, Rik <rik@panix.com> wrote:
> On 2014-10-20 10:08, Sander Maijers wrote:
>
> I am wondering likewise.
>
> Sander,
>
> The question has been mooted. The first beta (of two) on 2014-10-16
> resolved the issue, and the result of your example is what the text in it
> describes.
>
> --
> rik
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2132 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-10-21 7:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-15 13:06 Slanted, double-quoted quotations Sander Maijers
2014-10-15 14:58 ` Rik Kabel
2014-10-15 17:38 ` Hans Hagen
2014-10-15 19:03 ` Rik Kabel
2014-10-15 21:06 ` Wolfgang Schuster
2014-10-16 1:14 ` Rik
2014-10-20 14:08 ` Sander Maijers
2014-10-20 15:42 ` Rik
2014-10-21 7:50 ` Sander Maijers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).