Re: [NTG-context] Should \setupinterlinespace work in \setupmargindata?

2011-08-17 Thread Aditya Mahajan

On Wed, 17 Aug 2011, Raymond LeClair wrote:


The following fails, badly:

\definefont[MarginFont][Serif sa 0.5]
\setupmargindata[style=\MarginFont\setupinterlinespace[line=12pt]]


Enclose the inner brackets [...] in braces.

\setupmargindata[style={\MarginFont\setupinterlinespace[line=12pt]}]


\starttext
\inmargin{abc\\def}\input tufte
\stoptext

Have I got the wrong syntax?


Aditya
___
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
___


[NTG-context] Should \setupinterlinespace work in \setupmargindata?

2011-08-17 Thread Raymond LeClair
The following fails, badly:

\definefont[MarginFont][Serif sa 0.5]
\setupmargindata[style=\MarginFont\setupinterlinespace[line=12pt]]
\starttext
\inmargin{abc\\def}\input tufte
\stoptext

Have I got the wrong syntax?

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.13  int: english/english

___
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
___


Re: [NTG-context] Apple Emoji (was: Smileys)

2011-08-17 Thread Mojca Miklavec
On Wed, Aug 17, 2011 at 18:17, Khaled Hosny wrote:
> On Wed, Aug 17, 2011 at 05:29:43PM +0200, Patrick Gundlach wrote:
>>
>> I'd like to have "my" typesetting system to be capable of what users
>> demands and not what I think is good for them.

If you have a typesetting system, you can still extract all the PNG
images out of the font and replace some unicode letters with
corresponding \externalfigure[...]. You would probably violate the
licence, but you would get the desired result :)

> If one need multicolored fonts there is Type3 (if it is supported) or
> just a virtual font with PDF specials.  AFAIK, emoji is used in Japan in
> SMS and other chat-like stuff, not something luatex is used for (unless
> someone is writing a chat client in luatex).

The font has some nice images that could be used for whatever other
reason, not just SMS.

If you need to quickly find a picture of women with bunny ears for
party invitation for example ...

But joke aside. Even if you need a nice symbol set for horoscope in
the magazine, the font (the symbols, actually) might be handy.

Mojca
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Wolfgang Schuster

Am 17.08.2011 um 16:20 schrieb Cecil Westerhof:

> 2011/8/17 Jaroslav Hajtmar 
> Hello Cecil ...
> Here is my simple tip. All you need is a font set, which are needed emoticons 
> ...
> 
> 
> \def\numcharacter#1{\char#1{}}
> \let\dochar\numcharacter
> 
> \definefont[wingding][wingding.ttf at 12pt]
> 
> \starttext
> 
> {\wingding \dochar{74}\dochar{75}\dochar{76}}
> 
> \stoptext
> 
> That just gives JKL.

The filename of the font is “windings.ttf”.

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
___

Re: [NTG-context] OT: [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]

2011-08-17 Thread Khaled Hosny
On Wed, Aug 17, 2011 at 07:20:31PM +0200, Paul Menzel wrote:
> Just one question. Can you give me the reason why you did not use `git
> am`?

Because you are the first to send me a git patch by mail and `git am`
is not something I use regularly :)

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] OT: [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]

2011-08-17 Thread Paul Menzel
Am Mittwoch, den 17.08.2011, 16:48 +0200 schrieb Khaled Hosny:
> On Wed, Aug 17, 2011 at 12:51:18PM +0200, Paul Menzel wrote:
> > Date: Wed, 17 Aug 2011 12:46:52 +0200
> > 
> > [1] http://www.ntg.nl/maps/37/
> 
> Thanks for both patches, it'd be better to open issues in github

I have no account at GitHub.

> or send me mails directly, to not bother the list with offtopic mails.

I will mark them as off topic next time or send it to you directly.

Just one question. Can you give me the reason why you did not use `git
am`?


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Apple Emoji (was: Smileys)

2011-08-17 Thread Khaled Hosny
On Wed, Aug 17, 2011 at 05:29:43PM +0200, Patrick Gundlach wrote:
> 
> > It is a bitmap format, a sort of quick and dirty hack by Apple to please
> > certain markets and it shouldn't concern a typesetting system
> 
> I think we should leave it up to the users what they think about using
> a font like this in typesetting. "640k ought to be enough for
> anybody"…

LuaTeX does not support other more widely used and supported bitmap
fonts (not even bitmaps inside SFNT fonts), why this one would be
different?

> I'd like to have "my" typesetting system to be capable of what users
> demands and not what I think is good for them.

If one need multicolored fonts there is Type3 (if it is supported) or
just a virtual font with PDF specials.  AFAIK, emoji is used in Japan in
SMS and other chat-like stuff, not something luatex is used for (unless
someone is writing a chat client in luatex).

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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
___

Re: [NTG-context] Apple Emoji (was: Smileys)

2011-08-17 Thread Patrick Gundlach

> It is a bitmap format, a sort of quick and dirty hack by Apple to please
> certain markets and it shouldn't concern a typesetting system

I think we should leave it up to the users what they think about using a font 
like this in typesetting. "640k ought to be enough for anybody"…

:)


I'd like to have "my" typesetting system to be capable of what users demands 
and not what I think is good for them.



(But this is not a feature request)


Patrick

___
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
___


Re: [NTG-context] Apple Emoji (was: Smileys)

2011-08-17 Thread Khaled Hosny
On Wed, Aug 17, 2011 at 01:08:18PM +0200, Mojca Miklavec wrote:
> As far as LuaTeX support is concerned, here was the latest answer:
> 
> On Mon, Jul 11, 2011 at 20:20, Hartmut Henkel wrote:
> > On Mon, 11 Jul 2011, Hans Hagen wrote:
> >
> >> (Hartmut, if you're interested in this funny font thread Mojca can
> >> send you the font/test file.)
> >
> > thanks, but not now, sorry. I'm stuck too deep in the backlogs.
> >
> > Regards, Hartmut

It is a bitmap format, a sort of quick and dirty hack by Apple to please
certain markets and it shouldn't concern a typesetting system (and you
can get multicolored fonts in ConTeXt/LuaTeX in more clean ways).

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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
___


Re: [NTG-context] [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]

2011-08-17 Thread Khaled Hosny
On Wed, Aug 17, 2011 at 12:51:18PM +0200, Paul Menzel wrote:
> Date: Wed, 17 Aug 2011 12:46:52 +0200
> 
> [1] http://www.ntg.nl/maps/37/

Thanks for both patches, it'd be better to open issues in github or send
me mails directly, to not bother the list with offtopic mails.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Cecil Westerhof
2011/8/17 Jaroslav Hajtmar 

> Hello Cecil ...
> Here is my simple tip. All you need is a font set, which are needed
> emoticons ...
>
>
> \def\numcharacter#1{\char#1{}}
> \let\dochar\numcharacter
>
> \definefont[wingding][**wingding.ttf at 12pt]
>
> \starttext
>
> {\wingding \dochar{74}\dochar{75}\dochar{**76}}
>
> \stoptext
>

That just gives JKL.

-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Jaroslav Hajtmar

Hello Cecil ...
Here is my simple tip. All you need is a font set, which are needed 
emoticons ...



\def\numcharacter#1{\char#1{}}
\let\dochar\numcharacter

\definefont[wingding][wingding.ttf at 12pt]

\starttext

{\wingding \dochar{74}\dochar{75}\dochar{76}}

\stoptext


With greeting Jaroslav Hajtmar



Dne 17.8.2011 14:27, Mojca Miklavec napsal(a):

On Wed, Aug 17, 2011 at 13:26, Cecil Westerhof wrote:
   

2011/8/17 Mojca Miklavec wrote:
 

  \def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]}

Of course you can also use fonts (even marvosym), but they will only
show ugly black-and-white strokes which is probably not what you want.
   

At least originally was it what I wanted. Because when you use fonts they
scale to the fontsize you are using. So I would think that looks the best.
But you make a good point.
 

If you need help with setting up some particular font, feel free to ask.

But you should be able to get automatic scaling of png images based on
line height. If images come in different sizes, you need a bit more
trickery, but it is doable. Just ask again once you find the suitable
images.

Mojca
___
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
___


___
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
___


Re: [NTG-context] Centering 'clipping' text logo

2011-08-17 Thread Cecil Westerhof
2011/8/17 Peter Rolf 

> Am 17.08.2011 13:50, schrieb Cecil Westerhof:
> > I like the last example on:
> > http://wiki.contextgarden.net/Graphical_text_manipulation
> >
> > This creates a left aligned 'logo'. I would like it to be centered. I
> > tried several things, but until now to no avail. How can I get it
> centered?
> >
> my first guess would be
>
> \midaligned{\vbox{%
> \clip
> \clip
> \clip
> }}
>

I tried a lot, but just this one not. I got one long line with the three
parts beside each-other, a little room between the parts, no effect, …



> untested.. ;-)
>

It does exactly what I want. :-D

Would be a nice one to make a macro from. Have to delve first more deeply
into ConTeXt. I do not know enough about parameter handling. (Named,
variable, …)

I went one step further. Because I found the upper and lower parts to small,
I used:
\midaligned{\vbox{%
\clip[ny=5,y=1]{\color[blue]\MyLogo}
\clip[ny=5,y=2]{\color[blue]\MyLogo}
\clip[ny=5,y=3]{\color[yellow]\MyLogo}
\clip[ny=5,y=4]{\color[red]\MyLogo}
\clip[ny=5,y=5]{\color[red]\MyLogo}
}}

But now the second blue and the second red part become black. Why?

-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Hans Hagen

On 17-8-2011 12:40, Cecil Westerhof wrote:

I am still expanding my knowledge of ConTeXt. At the moment I am playing
with \rotate. When using:
 \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
 \rotate[rotation=-42]{In elke richting die je maar wilt.}

This is displayed as:
 /
 \

I would like it displayed as:
 /\


see other mails

you can also set 'location' to one of

depth fit broad high middle default

an example from the source:

% \dostepwiserecurse{0}{360}{10}
%   {\startlinecorrection[blank]
%\hbox
%  {\expanded{\setuprotate[rotation=\recurselevel]}%
%   \traceboxplacementtrue
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=depth] 
{\ruledhbox{\bfb  (depth)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=fit] 
{\ruledhbox{\bfb(fit)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=broad] 
{\ruledhbox{\bfb  (broad)%
%   \hbox to 
.2\hsize{\hss\ruledhbox{\rotate[location=normal]{\ruledhbox{\bfb 
(normal)%
%   \hbox to .2\hsize{\hss\ruledhbox{\rotate[location=high] 
{\ruledhbox{\bfb   (high)}

%\stoplinecorrection}

Hans

-
  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
___


Re: [NTG-context] Centering 'clipping' text logo

2011-08-17 Thread Peter Rolf
Am 17.08.2011 13:50, schrieb Cecil Westerhof:
> I like the last example on:
> http://wiki.contextgarden.net/Graphical_text_manipulation
> 
> This creates a left aligned 'logo'. I would like it to be centered. I
> tried several things, but until now to no avail. How can I get it centered?
>
my first guess would be

\midaligned{\vbox{%
\clip
\clip
\clip
}}

untested.. ;-)

> -- 
> Cecil Westerhof
> 
> 
> ___
> 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
> ___

___
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
___


Re: [NTG-context] Smileys

2011-08-17 Thread Mojca Miklavec
On Wed, Aug 17, 2011 at 13:26, Cecil Westerhof wrote:
> 2011/8/17 Mojca Miklavec wrote:
>>
>>  \def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]}
>>
>> Of course you can also use fonts (even marvosym), but they will only
>> show ugly black-and-white strokes which is probably not what you want.
>
> At least originally was it what I wanted. Because when you use fonts they
> scale to the fontsize you are using. So I would think that looks the best.
> But you make a good point.

If you need help with setting up some particular font, feel free to ask.

But you should be able to get automatic scaling of png images based on
line height. If images come in different sizes, you need a bit more
trickery, but it is doable. Just ask again once you find the suitable
images.

Mojca
___
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
___

Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Peter Rolf
Am 17.08.2011 13:30, schrieb Cecil Westerhof:
> 2011/8/17 Peter Rolf mailto:indi...@gmx.net>>
> 
> Am 17.08.2011 12:51, schrieb Peter Rolf:
> > Am 17.08.2011 12:40, schrieb Cecil Westerhof:
> >> I am still expanding my knowledge of ConTeXt. At the moment I am
> playing
> >> with \rotate. When using:
> >> \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
> >> \rotate[rotation=-42]{In elke richting die je maar wilt.}
> >>
> >> This is displayed as:
> >> /
> >> \
> >>
> >> I would like it displayed as:
> >> /\
> >>
> >> How can I do that?
> >>
> >
> > 0° lies on the right (W), rotation is counter clockwise. The rest
> is up
>   
>   East :-D
> 
> > to you :-)
> 
> 
> You lost me. :-{
>

Tried it and now I see the problem. Sorry for confusing you. :-)

> When playing with it, I found that it seems like every rotation wants
> its own vertical space.
> 
> But this is only the case when the rotation is the first thing to be
> printed on the line. So I changed it to:
> \
> \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
> \rotate[rotation=-42]{In elke richting die je maar wilt.}
> 
> and because it is nicer to have it centered:
> \midaligned{
>   \
>   \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
>   \rotate[rotation=-42]{In elke richting die je maar wilt.}
> }
>

\starttext
\showboxes

\midaligned{
  \rotate[location=,rotation=42]{A really loonng text..}
  \rotate[location=,rotation=-42]{Short.}
}

\newbox\MYboxA
\newbox\MYboxB
\newdimen\MYdimA

\setbox\MYboxA\hbox{A really loong text..}
\setbox\MYboxB\hbox{Short.}

\ifdim\wd\MYboxA>\wd\MYboxB
  \MYdimA\wd\MYboxA
\else
  \MYdimA\wd\MYboxB
\fi

\midaligned{
  \rotate[rotation=42]{\hbox to \MYdimA{\box\MYboxA}}
  \rotate[rotation=-42]{\hbox to \MYdimA{\box\MYboxB}}
}

\stoptext


HTH,  Peter


> 
> -- 
> Cecil Westerhof
> 
> 
> ___
> 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
> ___

___
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
___

[NTG-context] Centering 'clipping' text logo

2011-08-17 Thread Cecil Westerhof
I like the last example on:
http://wiki.contextgarden.net/Graphical_text_manipulation

This creates a left aligned 'logo'. I would like it to be centered. I tried
several things, but until now to no avail. How can I get it centered?

-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Cecil Westerhof
2011/8/17 Peter Rolf 

> Am 17.08.2011 12:51, schrieb Peter Rolf:
> > Am 17.08.2011 12:40, schrieb Cecil Westerhof:
> >> I am still expanding my knowledge of ConTeXt. At the moment I am playing
> >> with \rotate. When using:
> >> \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
> >> \rotate[rotation=-42]{In elke richting die je maar wilt.}
> >>
> >> This is displayed as:
> >> /
> >> \
> >>
> >> I would like it displayed as:
> >> /\
> >>
> >> How can I do that?
> >>
> >
> > 0° lies on the right (W), rotation is counter clockwise. The rest is up
>
>   East :-D
>
> > to you :-)
>

You lost me. :-{

When playing with it, I found that it seems like every rotation wants its
own vertical space.

But this is only the case when the rotation is the first thing to be printed
on the line. So I changed it to:
\
\rotate[rotation=42]{Tekst kan ook worden geroteerd.}
\rotate[rotation=-42]{In elke richting die je maar wilt.}

and because it is nicer to have it centered:
\midaligned{
  \
  \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
  \rotate[rotation=-42]{In elke richting die je maar wilt.}
}


-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Cecil Westerhof
2011/8/17 Mojca Miklavec 

> >>> Is it possible to work with smileys in ConTeXt?
> > Instead of using something like ;-}, what looks nice, but is not the
> > highpoint of typography, I would like to use something like \smiley,
> \grin,
> > \cool, …
>
> My suggestion would be to find a set of PNG (or other) images that you
> like, put them all into some subfolder and then define a list in the
> spirit of:
>\def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]}
>
> Of course you can also use fonts (even marvosym), but they will only
> show ugly black-and-white strokes which is probably not what you want.
>

At least originally was it what I wanted. Because when you use fonts they
scale to the fontsize you are using. So I would think that looks the best.
But you make a good point.


(If you want auto-replacement to work, you need a few more hacks, but
> I would personally not like smilies to be inserted automatically.)
>

Neither do I. ;-}

-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Wolfgang Schuster

Am 17.08.2011 um 13:14 schrieb Mojca Miklavec:

> On Tue, Aug 16, 2011 at 22:55, Cecil Westerhof wrote:
>> 2011/8/16 Henning Hraban Ramm wrote
 
 Is it possible to work with smileys in ConTeXt?
>> 
>> Instead of using something like ;-}, what looks nice, but is not the
>> highpoint of typography, I would like to use something like \smiley, \grin,
>> \cool, …
> 
> My suggestion would be to find a set of PNG (or other) images that you
> like, put them all into some subfolder and then define a list in the
> spirit of:
>\def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]}
> 
> Of course you can also use fonts (even marvosym), but they will only
> show ugly black-and-white strokes which is probably not what you want.
> Well, you can of course colour them, but it will still be plain
> single-colour vector image. If you want your documents to look nice,
> you should fetch nice images from somewhere.


You can also use color when you have a font with different layers: 
http://www.ntg.nl/pipermail/ntg-context/2011/057859.html

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
___


Re: [NTG-context] Smileys

2011-08-17 Thread Mojca Miklavec
On Tue, Aug 16, 2011 at 22:55, Cecil Westerhof wrote:
> 2011/8/16 Henning Hraban Ramm wrote
>>>
>>> Is it possible to work with smileys in ConTeXt?
>
> Instead of using something like ;-}, what looks nice, but is not the
> highpoint of typography, I would like to use something like \smiley, \grin,
> \cool, …

My suggestion would be to find a set of PNG (or other) images that you
like, put them all into some subfolder and then define a list in the
spirit of:
\def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]}

Of course you can also use fonts (even marvosym), but they will only
show ugly black-and-white strokes which is probably not what you want.
Well, you can of course colour them, but it will still be plain
single-colour vector image. If you want your documents to look nice,
you should fetch nice images from somewhere.

(If you want auto-replacement to work, you need a few more hacks, but
I would personally not like smilies to be inserted automatically.)

Mojca
___
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
___

[NTG-context] Apple Emoji (was: Smileys)

2011-08-17 Thread Mojca Miklavec
On Wed, Aug 17, 2011 at 09:12, Patrick Gundlach wrote:
> Hello Wolfgang,
>
>> Apples new emoji font is also very interesting but you can’t use it with 
>> ConTeXt.
>
> Why is that? Is this a ConTeXt or a LuaTeX limitation?

LuaTeX. Actually, it is a limitation of 99.9% of software out there. I
wasn't able to display the font with any single font editor, including
FontForge and XeTeX (maybe XeTeX would work if somebody would port it
to 64-bit and corresponding new Apple libraries).

As far as LuaTeX support is concerned, here was the latest answer:

On Mon, Jul 11, 2011 at 20:20, Hartmut Henkel wrote:
> On Mon, 11 Jul 2011, Hans Hagen wrote:
>
>> (Hartmut, if you're interested in this funny font thread Mojca can
>> send you the font/test file.)
>
> thanks, but not now, sorry. I'm stuck too deep in the backlogs.
>
> Regards, Hartmut

But even if the font was supported, it might be illegal to use it on
Windows (I'm not sure, I didn't read the licence).

Mojca
___
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
___

Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Peter Rolf
Am 17.08.2011 12:51, schrieb Peter Rolf:
> Am 17.08.2011 12:40, schrieb Cecil Westerhof:
>> I am still expanding my knowledge of ConTeXt. At the moment I am playing
>> with \rotate. When using:
>> \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
>> \rotate[rotation=-42]{In elke richting die je maar wilt.}
>>
>> This is displayed as:
>> /
>> \
>>
>> I would like it displayed as:
>> /\
>>
>> How can I do that?
>>
> 
> 0° lies on the right (W), rotation is counter clockwise. The rest is up
   
   East :-D

> to you :-)
> 
> Peter
> 
>> -- 
>> Cecil Westerhof
>>
>>
>> ___
>> 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
>> ___
> 
> ___
> 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
> ___

___
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
___

Re: [NTG-context] Two rotates on the same line

2011-08-17 Thread Peter Rolf
Am 17.08.2011 12:40, schrieb Cecil Westerhof:
> I am still expanding my knowledge of ConTeXt. At the moment I am playing
> with \rotate. When using:
> \rotate[rotation=42]{Tekst kan ook worden geroteerd.}
> \rotate[rotation=-42]{In elke richting die je maar wilt.}
> 
> This is displayed as:
> /
> \
> 
> I would like it displayed as:
> /\
> 
> How can I do that?
>

0° lies on the right (W), rotation is counter clockwise. The rest is up
to you :-)

Peter

> -- 
> Cecil Westerhof
> 
> 
> ___
> 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
> ___

___
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
___

[NTG-context] [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]

2011-08-17 Thread Paul Menzel
Date: Wed, 17 Aug 2011 12:46:52 +0200

[1] http://www.ntg.nl/maps/37/
---
Somehow the README on CTAN [2] is not converted to HTML. So the links which 
would be created by Markdown cannot be used usable.

[2] 
http://sunsite.informatik.rwth-aachen.de/ftp/pub/mirror/ctan/fonts/punknova/README
---
 README.md |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index b4ab2e8..8cecb0d 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ The MetaPost source has the following notice:
 
 2008, Taco Hoekwater & Hans Hagen
 
-
+The MAPS article is [available online](http://www.ntg.nl/maps/37/).
 
 
 Khaled Hosny
-- 
1.7.5.4



signature.asc
Description: This is a digitally signed message part
___
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
___

[NTG-context] [punknova][PATCH] README.md: Fix typos

2011-08-17 Thread Paul Menzel
Date: Wed, 17 Aug 2011 12:41:03 +0200

1. No dots are used for »et al« according to Merriam Webster [1].
2. Use capitalization consitently.

[1] http://www.merriam-webster.com/dictionary/et%20al
---
You can apply this patch saving this message as an mbox file and using `git am 
savedfilename.mbox`.
---
 README.md |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index bf1a465..b4ab2e8 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,8 @@ The Punk Nova font
 This is an OpenType implementation of Donald Knuth's
 [Punk font](http://tug.org/TUGboat/Articles/tb09-2/tb21knut.pdf).
 
-The Original Metafont sources were adapted to a more Metapost friendly
-form by Taco Hoekwater et. al.
+The original Metafont sources were adapted to a more MetaPost friendly
+form by Taco Hoekwater et al.
 
 Punk is a dynamic font, every time a glyph is requested Matafont draws
 a unique instance of it. On the other hand, OpenType is static, glyph
@@ -17,13 +17,13 @@ Alternate shapes are mapped to the base character using 
OpenType
 feature (rand), which tells the renderer to select glyphs randomly from
 the list of alternate shapes.
 
-The PostScript outlines of the glyphs are generated by Matapost, a
-Python script then used FontForge to import the glyphs into an OpenType
+The PostScript outlines of the glyphs are generated by MetaPost, a
+Python script then uses FontForge to import the glyphs into an OpenType
 CFF font. Since this year is the 2^5 anniversary of TeX, each lower case
 letter have 2^5 variants, 2^4 for each upper case and 2^3 for the rest.
 
 This font is free software, you can do whatever you want with it as long
-as you use different font and file name. The exact copyright statement is:
+as you use different font and file names. The exact copyright statement is:
 
  "Unlimited copying and redistribution of this file are permitted as long
   as this file is not modified. Modifications are permitted, but only if
@@ -38,7 +38,7 @@ The MetaPost source has the following notice:
   Font inspired by Gerard and Marjan Unger's lectures,
   Feb 1985
 
-The regular punk files are part of TeXLive and in metafont format. All
+The regular punk files are part of TeXLive and in Metafont format. All
 errors introduced are ours. We also changed the encoding to unicode. In
 due time we might add a few more more characters. We still need to
 improve some of the metrics which involves a bit of trial and error. The
-- 
1.7.5.4


signature.asc
Description: This is a digitally signed message part
___
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
___

[NTG-context] Two rotates on the same line

2011-08-17 Thread Cecil Westerhof
I am still expanding my knowledge of ConTeXt. At the moment I am playing
with \rotate. When using:
\rotate[rotation=42]{Tekst kan ook worden geroteerd.}
\rotate[rotation=-42]{In elke richting die je maar wilt.}

This is displayed as:
/
\

I would like it displayed as:
/\

How can I do that?

-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] punk is dead

2011-08-17 Thread Hans Hagen

On 17-8-2011 1:26, Khaled Hosny wrote:


BTW, the latest release of the fonts have slanted versions, so no need
for auto-slanting. Attached a patch for type-otf.mkiv.


ok, patched


Mojca, can we have the fonts in minimals (they are on CTAN), I think
Hans likes them ;)


That would be nice indeed.

Hans


-
  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
___


Re: [NTG-context] Smileys

2011-08-17 Thread luigi scarso
On Wed, Aug 17, 2011 at 9:49 AM, Cecil Westerhof  wrote:
> I am still quite inexperienced with ConTeXt. I found the following document:
>     http://statweb.calpoly.edu/jdoi/web/reference/symbols-a4.pdf
>
> It is for LaTeX, but I can not find ConTeXt specific stuff. In table 188
> there is a smiley. This brought me to to following:
> \starttext
>
> \usesymbols[wasy]
>
> \symbol[was][smiley]
>
> \symbol[was][qed]
>
> \showsymbolset[general]
> % \showsymbolset[music]
> % \showsymbolset[astronomy]
> % \showsymbolset[astrology]
> % \showsymbolset[geometry]
> % \showsymbolset[physics]
> % \showsymbolset[apl]
>
> \stoptext
>
>
> The smiley does not display, instead I get the text smiley. Also it is not
> shown with the \showsymbolset. Why?
>
> Is there any documentation about how to work –for example– with the dingbats
> font. At the moment I am just feeling like shooting in the dark. :-{
> When knowing how to do it, I could try to make a smiley module. ;-}
you can try Symbola
http://users.teilar.gr/~g1951d/
-- 
luigi
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Cecil Westerhof
2011/8/16 Wolfgang Schuster 

> Instead of using something like ;-}, what looks nice, but is not the
> highpoint of typography, I would like to use something like \smiley, \grin,
> \cool, …
>
>
> You need a font with the symbol, there are also fonts available where you
> can use layers to use different colors for parts of the symbol.
>
> - http://www.ffdingbatsfont.com/
> - http://www.ntg.nl/pipermail/ntg-context/2011/057859.html
>

I am still quite inexperienced with ConTeXt. I found the following document:
http://statweb.calpoly.edu/jdoi/web/reference/symbols-a4.pdf

It is for LaTeX, but I can not find ConTeXt specific stuff. In table 188
there is a smiley. This brought me to to following:
\starttext

\usesymbols[wasy]

\symbol[was][smiley]

\symbol[was][qed]

\showsymbolset[general]
% \showsymbolset[music]
% \showsymbolset[astronomy]
% \showsymbolset[astrology]
% \showsymbolset[geometry]
% \showsymbolset[physics]
% \showsymbolset[apl]

\stoptext


The smiley does not display, instead I get the text smiley. Also it is not
shown with the \showsymbolset. Why?

Is there any documentation about how to work –for example– with the dingbats
font. At the moment I am just feeling like shooting in the dark. :-{
When knowing how to do it, I could try to make a smiley module. ;-}

By the way: do I understand correctly that with \showsymbolset the second
column shows how the character is displayed and the third columns shows the
used space for the character?

-- 
Cecil Westerhof
___
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
___

Re: [NTG-context] Smileys

2011-08-17 Thread Patrick Gundlach
Hello Wolfgang,

> Apples new emoji font is also very interesting but you can’t use it with 
> ConTeXt.

Why is that? Is this a ConTeXt or a LuaTeX limitation?

Patrick


___
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
___