Hello again, Stefan.

I'm not exactly sure why I'm doing this, but I'm learning a lot in the
process...

Stefan Wachter said this at Thu, 1 Apr 2004 11:50:31 +0200:

>>
>> \definesymbol[whatever][\dontleaveh
>mode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}]
>>
>>
>> \symbol[whatever]
>Hi Hans,
>
>thanks for the help. I had to enclose the symbol definition part in
>curly brackets:
>
>\definesymbol[whatever][{\dontleavehm
>ode\rotate[rotation=180]{\getglyph{ZapfDingbats}{234}}}]
>
>Now the symbol is rotated without causing a new line. Yet, the rotated
>symbol appears below the current line:
>
>text     text -> text
>      <-
>
>Is there a possibility to specifiy the center of rotation?

I'm not sure about that, but a bit of trial-and-error gives (building
upon yesterday's posts and my little symb-uzd package):

\usesymbols[uzd]
\setupsymbolset[Unicode Shadowed Arrows]
\definesymbol[left][{%
           \raisebox{0.05em}\normalhbox{\rotate[location={high},rotation=180]
              {\symbol[LeftShadedWhiteRightwardsArrow]}}}]
\definesymbol[right][{\symbol[RightShadedWhiteRightwardsArrow]}]
\starttext
test \symbol[left] \symbol[right] test \crlf

\tfb
test \symbol[left] \symbol[right] test \crlf

\tfd
test \symbol[left] \symbol[right] test \crlf

\stoptext

You can replace the symbol names with your \getglyph{ZapfDingbats}{234}, etc.

From testing (Apple's PDF vs Adobe Viewer), it looks like precise
placement will be difficult, given your other concerns: different viewers
are going to have differently-drawn Dingbat fonts, and alignment, here,
is going to depend a fair bit on the internal structure of these fonts.

(Heh, I just thought of this:)

\definesymbol[left][{%
           \mirror{\symbol[LeftShadedWhiteRightwardsArrow]}}]

The mirrored version works fine, and is what you probably want. That's
ConTeXt for you... sometimes you have to take a step back and realise
that it can be done more simply!

adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      [EMAIL PROTECTED]
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to