ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* rotate bug?
@ 2007-11-08 13:27 Peter Rolf
  2007-11-13 21:36 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rolf @ 2007-11-08 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

This morning I used \rotate to correct some slightly sloped graphics and
noticed a weird behavior. In case of the rotation angle interval (-1,0)
the negative sign is simply ignored, so the rotation goes to the
opposite direction.

Donno if negative values for the rotation angle are allowed (they
normally work). But it's easier to handle it this way (sign for
direction of rotation).

@Wolfgang: as workaround, only use positive values or add -360 ;)
 (and sorry for my wrong interpretation of your table mail)
@Taco: are you still collecting the ConTeXt bugs?

Best wishes, Peter


\setuplayout[grid=yes]

\starttext
\showgrid

\def\Foobar{\blackrule[width=\textwidth,height=0.5\lineheight]}

\framed{\rotate[rotation=-0.5]{\Foobar}} % -0.x is not working (sign is
ignored)
\snaptogrid\hbox\bgroup
\framed{\rotate[rotation=359.5]{\Foobar}} % ok
\egroup

\snaptogrid\hbox\bgroup
\framed{\rotate[rotation=0.5]{\Foobar}} % ok
\egroup
\snaptogrid\hbox\bgroup
\framed{\rotate[rotation=-359.5]{\Foobar}} % ok
\egroup

\stoptext
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rotate bug?
  2007-11-08 13:27 rotate bug? Peter Rolf
@ 2007-11-13 21:36 ` Hans Hagen
  2007-11-14  8:13   ` Taco Hoekwater
  2007-11-14 12:33   ` Peter Rolf
  0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2007-11-13 21:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Rolf wrote:
> Hi,
> 
> This morning I used \rotate to correct some slightly sloped graphics and
> noticed a weird behavior. In case of the rotation angle interval (-1,0)
> the negative sign is simply ignored, so the rotation goes to the
> opposite direction.
> 
> Donno if negative values for the rotation angle are allowed (they
> normally work). But it's easier to handle it this way (sign for
> direction of rotation).
> 
> @Wolfgang: as workaround, only use positive values or add -360 ;)
>  (and sorry for my wrong interpretation of your table mail)
> @Taco: are you still collecting the ConTeXt bugs?

i sent you a patch ... was a tricky side effect

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rotate bug?
  2007-11-13 21:36 ` Hans Hagen
@ 2007-11-14  8:13   ` Taco Hoekwater
  2007-11-14 13:04     ` Peter Rolf
  2007-11-14 12:33   ` Peter Rolf
  1 sibling, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2007-11-14  8:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen wrote:
> Peter Rolf wrote:
>> Hi,
>>
>> This morning I used \rotate to correct some slightly sloped graphics and
>> noticed a weird behavior. In case of the rotation angle interval (-1,0)
>> the negative sign is simply ignored, so the rotation goes to the
>> opposite direction.
>>
>> Donno if negative values for the rotation angle are allowed (they
>> normally work). But it's easier to handle it this way (sign for
>> direction of rotation).
>>
>> @Wolfgang: as workaround, only use positive values or add -360 ;)
>>  (and sorry for my wrong interpretation of your table mail)
>> @Taco: are you still collecting the ConTeXt bugs?
> 

Right now not really, I have no time. That does not mean that people
cannot add bugs at the tracker themselves, though:

  http://foundry.supelec.fr/tracker/?atid=161&group_id=21&func=browse

Best wishes,
Taco

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rotate bug?
  2007-11-13 21:36 ` Hans Hagen
  2007-11-14  8:13   ` Taco Hoekwater
@ 2007-11-14 12:33   ` Peter Rolf
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Rolf @ 2007-11-14 12:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen schrieb:
> Peter Rolf wrote:
>> Hi,
>>
>> This morning I used \rotate to correct some slightly sloped graphics and
>> noticed a weird behavior. In case of the rotation angle interval (-1,0)
>> the negative sign is simply ignored, so the rotation goes to the
>> opposite direction.
>>
>> Donno if negative values for the rotation angle are allowed (they
>> normally work). But it's easier to handle it this way (sign for
>> direction of rotation).
>>
>> @Wolfgang: as workaround, only use positive values or add -360 ;)
>>  (and sorry for my wrong interpretation of your table mail)
>> @Taco: are you still collecting the ConTeXt bugs?
> 
> i sent you a patch ... was a tricky side effect
>

Thanks Hans, patch works fine. Also we have another 'brrr' (\realnumber)
in the source :D

Peter

> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: rotate bug?
  2007-11-14  8:13   ` Taco Hoekwater
@ 2007-11-14 13:04     ` Peter Rolf
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Rolf @ 2007-11-14 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Taco Hoekwater schrieb:
> Hans Hagen wrote:
>> Peter Rolf wrote:
>>> Hi,
>>>
>>> This morning I used \rotate to correct some slightly sloped graphics and
>>> noticed a weird behavior. In case of the rotation angle interval (-1,0)
>>> the negative sign is simply ignored, so the rotation goes to the
>>> opposite direction.
>>>
>>> Donno if negative values for the rotation angle are allowed (they
>>> normally work). But it's easier to handle it this way (sign for
>>> direction of rotation).
>>>
>>> @Wolfgang: as workaround, only use positive values or add -360 ;)
>>>  (and sorry for my wrong interpretation of your table mail)
>>> @Taco: are you still collecting the ConTeXt bugs?
> 
> Right now not really, I have no time. That does not mean that people
> cannot add bugs at the tracker themselves, though:
> 
>   http://foundry.supelec.fr/tracker/?atid=161&group_id=21&func=browse
>
ok, will do so. But this time Hans was faster ;)

> Best wishes,
> Taco
> 
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-14 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-08 13:27 rotate bug? Peter Rolf
2007-11-13 21:36 ` Hans Hagen
2007-11-14  8:13   ` Taco Hoekwater
2007-11-14 13:04     ` Peter Rolf
2007-11-14 12:33   ` Peter Rolf

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).