Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Wolfgang Schuster


Am 23.05.2009 um 03:59 schrieb Zhichu Chen:


Awesome, but still, the javascript things are gone :(


I feared something like this will happen, I guess you get also  
problems with hyperlinks etc.



Anyway, I'll try the resolution method.


+1

By the way, is there any chance that I can use a stretched font  
without
disturbing the output routine? I think I can try a narrow font and  
re-draw

my pictures.


AFAIK XeTeX has such a feature but is the presentation worth such  
tricks.


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


Re: [NTG-context] asymptote support

2009-05-22 Thread Aditya Mahajan

On Fri, 22 May 2009, Mojca Miklavec wrote:


Hello,

Just to let you know - thanks to John Bowman (Michail Vidiassov is
also working on it) these are some latest posts from asymptote
developers on their forum - if anyone would like to play with
asymptote, feel free to test.


This is great. However, even simple examples do not work. I will test in 
more detail later. Is there some settings to get a verbose output on what 
asymptote is doing (-v just says Processing filename, which is not too 
informative).



PS: I really really have to avoid the temptation to get distracted in
the next few days/weeks unless I find an excuse that I need to make
3D/movies for my reports (which is not so unlikely to happen after all
:) I have converted asycolors.sty; if anyone wants to take a look at
asymptote.sty feel free to take it over. I might come back to it, but
not right now. My quick first impression is that it does something
similar to t-gnuplot, t-r, t-vim, t-lilypond, etc., that is: it
defines some high-level commands, writes a file, lets asymptote
process it and then includes the resulting graphic back.


It will be better to encapsulate asymptote setup similar to metapost 
(e.g., \startASYenvironment, \startASYinitilizations, etc)


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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
Awesome, but still, the javascript things are gone :(

Anyway, I'll try the resolution method.

By the way, is there any chance that I can use a stretched font without
disturbing the output routine? I think I can try a narrow font and re-draw
my pictures.

On Sat, May 23, 2009 at 1:43 AM, Wolfgang Schuster
 wrote:
>
> Am 22.05.2009 um 16:48 schrieb Zhichu Chen:
>
>> Hi guys,
>>
>> This may sound crazy, but I have to do a presentation with a stretched
>> output.
>>
>> The thing is, I have a laptop with a normal screen, and it'll be plugged
>> to
>> a very big wide screen monitor so that people can see the slides on the
>> big screen. I have to look at my laptop and present for the people, so
>> what I'm thinking is make a stretched output on my 4:3 screen which
>> looks very narrowed and then the effect on the screen will be just as
>> normal.
>>
>> Is there an easy option for this?
>
>
> That was a nice exercise, here is a solution with a rather new mechanism
> Hans wrote for me.
>
> \definepapersize[fake][SW]          [SW]
> \definepapersize[real][A5,landscape][A5,landscape]
>
> \setuppapersize[fake]
>
> \installpagehandler{deform}%
>  {\dowithnextbox
>     {\setuppapersize[real]
>
>  \actualshipout{\scale[width=\paperwidth,height=\paperheight]{\flushnextbox}}
>      \setuppapersize[fake]}
>   \normalhbox}
>
> \setuppaper[method=deform]
>
> \starttext
>
> \subject{Tufte}
>
> \input tufte
>
> \page
>
> \subject{Knuth}
>
> \input knuth
>
> \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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___
>



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] French typography is back

2009-05-22 Thread Arthur Reutenauer
> Not knowing the internals, that's what I tried to say with adding a space 
> after instead of 1em, i.e. "calculated by the engine". If w an em is added 
> after, it is not stretchable and shrinkable, right?

  Right.  But no particular space is added after '?' or '!' in French
punctuation mode, TeX sets the standard inter-word glue, as it should.
The only intervention by ConTeXt is the addition of the unbreakable
space before those marks (and, obviously, after '«').

> Thank you so much for the detailed technical explanation! So, AFAIK, I 
> believe that the space before should be equivalent to thinspace.

  You'd need to take this up with Olivier Guéry, who suggested the 1/4
em value in the first place (refer to his interventions from last Fall,
e.g., http://www.ntg.nl/pipermail/ntg-context/2008/034845.html).  He
wrote up a small proposal on the wiki page for French Punctuation
(http://wiki.contextgarden.net/French_Punctuation).

> Thanks, I'll see that. Maybe I could write some detailled specs in the wiki.

  Yes, please do so by extending the aforementioned page if needed.

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


[NTG-context] sections, subsections, indenting, startnarrower, alignment

2009-05-22 Thread afsmith
Hi again ntg-context.

I have been working on my own CV/Resume module. Up until now I've just
been asking about specific bits of the implementation of this thing I
want to do, but perhaps that was a mistake as it hasn't really helped
progress much, so:
What I am trying to achieve is to define some three-argument command
to give a section/subject header and a date, and then a block of text.
The header and date should be on the same line, but aligned in either
direction (subject aligned left, date aligned right)
This block of text underneath it should be indented and able to
include an instance of the same command. Let me try to explain the
desired output in a little monospaced text diagram..

|(Subject)___(Date)|
|__(Subsubject)__(Date)|
|texttexttexttexttexttexttexttext__|
|textmoretextmoretextmoretexttext__|
|__(Subsubject)__(Date)|
|texttexttexttexttexttextexttext___|
|textmoretextmoretextmoretexttext__|

The "subject" and "subsubject" parts don't need to literally use
"\subject" , for example I also tried to use "\start(description){..."
for this purpose as well but that failed equally. Just something that
works reasonably as a section header.

I promise I have looked in the archives before asking :) for example
http://www.mail-archive.com/ntg-context@ntg.nl/msg2.html
http://www.mail-archive.com/ntg-context@ntg.nl/msg37664.html
http://www.mail-archive.com/ntg-context@ntg.nl/msg11337.html
http://www.mail-archive.com/ntg-context@ntg.nl/msg17276.html

And here is an example of something I was playing with...

---
\definehead[mysubject][subject]

\defineframed[lrframe][
width=\localhsize,
align=normal,
rulethickness=1pt]

\setuphead[mysubject][style={\bf}]
\define[3]\CHRONSUBJ
{\mysubject{\dontleavehmode\lrframe{#1\hfill#2}}
\startnarrower[left]{#3}\stopnarrower}

\showframe[text]
\starttext
\CHRONSUBJ
  {This happened from June 08 to June 09}
  {06/08--06/09}
  {\CHRONSUBJ
{This happened from June 08 to December 08}
{06/08--12/08}
{\input tufte }
  \CHRONSUBJ
{This happened from January 09 to June 09}
{01/09--06/09}
{\input zapf }}
\stoptext
---

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


Re: [NTG-context] defineremapper as default (in style file)

2009-05-22 Thread Hans Hagen

Peter Münster wrote:

Hello,

I would like to activate a remapper in a style or module file. How could
this be done?

I tried this without success:

\defineremapper[filterItem]
\remapcharacter[filterItem][`•]{\item}
\appendtoks \startfilterItem \to \everystarttext
\prependtoks \stopfilterItem  \to \everystoptext


kep in mind that the remapper is just a hack and will not be extended 
etc etc; i'm not going to handle interferences with other mechanisms


Hans


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


[NTG-context] beta (22.05.2009,9:27): textext broken in mkii?

2009-05-22 Thread Peter Rolf

Hi,

I get a ruby script error (and no graphic), if I use the attached 
example with pdftex.


[..]
(./textext.tuo)TeXExec | processing graphic 'textext-mpgraph'
r:/tex/texmf-context/scripts/context/ruby/base/tex.rb:2108:in 
`doruntexmp'TeXExec | option 'batchmode' is set to 'true'

TeXExec | option 'once' is set to 'true'
TeXExec | option 'nomprun' is set to 'true'
TeXExec | option 'output' is set to 'dvips'
TeXExec | option 'randomseed' is set to '217'
TeXExec | option 'filename' is set to 'textext-mpgraph'
TeXExec | option 'mainlanguage' is set to 'standard'
TeXExec | option 'bodyfont' is set to 'standard'
TeXExec | option 'language' is set to 'standard'
TeXExec | option 'engine' is set to 'standard'
TeXExec | option 'distribution' is set to 'web2c'
TeXExec | option 'texformats' is set to 'en nl mptopdf'
TeXExec | option 'mpsformats' is set to 'metafun'
TeXExec | option 'progname' is set to 'standard'
TeXExec | option 'interface' is set to 'standard'
TeXExec | option 'runs' is set to '8'
TeXExec | option 'backend' is set to 'standard'
: undefined local variable or method `data' for # (NameError)
   from r:/tex/texmf-context/scripts/context/ruby/base/tex.rb:1617:in 
`runtexmp'
   from r:/tex/texmf-context/scripts/context/ruby/base/tex.rb:1151:in 
`processmptex'
   from r:/tex/texmf-context/scripts/context/ruby/base/tex.rb:1148:in 
`each'
   from r:/tex/texmf-context/scripts/context/ruby/base/tex.rb:1148:in 
`processmptex'

   from r:/tex/texmf-context/scripts/context/ruby/texexec.rb:73:in `mptex'
   from r:/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in 
`send'
   from r:/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in 
`execute'

   from r:/tex/texmf-context/scripts/context/ruby/texexec.rb:787

systems : begin file textext at line 4
[MP to PDF] (./textext-mpgraph.1 (./textext.tuo)
[..]


Best wishes, Peter
\setupcolors[state=start]
\setuppagenumber[state=stop]

\starttext
\null
\startMPcode
fill unitsquare xyscaled(5cm,5cm) withcolor green;
label(textext("test"),(1cm,1cm));
\stopMPcode
\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
___


Re: [NTG-context] defineremapper as default (in style file)

2009-05-22 Thread Wolfgang Schuster


Am 22.05.2009 um 19:47 schrieb Peter Münster:


Hello,

I would like to activate a remapper in a style or module file. How  
could

this be done?

I tried this without success:

\defineremapper[filterItem]
\remapcharacter[filterItem][`•]{\item}
\appendtoks \startfilterItem \to \everystarttext
\prependtoks \stopfilterItem  \to \everystoptext


Why so complicated!

\catcode`•=\active
\def•{\item}

and of course use ConTeXt’s own commands for the above code.

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


[NTG-context] defineremapper as default (in style file)

2009-05-22 Thread Peter Münster
Hello,

I would like to activate a remapper in a style or module file. How could
this be done?

I tried this without success:

\defineremapper[filterItem]
\remapcharacter[filterItem][`•]{\item}
\appendtoks \startfilterItem \to \everystarttext
\prependtoks \stopfilterItem  \to \everystoptext

TIA for any hints!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Wolfgang Schuster


Am 22.05.2009 um 16:48 schrieb Zhichu Chen:


Hi guys,

This may sound crazy, but I have to do a presentation with a stretched
output.

The thing is, I have a laptop with a normal screen, and it'll be  
plugged to
a very big wide screen monitor so that people can see the slides on  
the

big screen. I have to look at my laptop and present for the people, so
what I'm thinking is make a stretched output on my 4:3 screen which
looks very narrowed and then the effect on the screen will be just as
normal.

Is there an easy option for this?



That was a nice exercise, here is a solution with a rather new mechanism
Hans wrote for me.

\definepapersize[fake][SW]  [SW]
\definepapersize[real][A5,landscape][A5,landscape]

\setuppapersize[fake]

\installpagehandler{deform}%
  {\dowithnextbox
 {\setuppapersize[real]
  \actualshipout{\scale[width=\paperwidth,height=\paperheight] 
{\flushnextbox}}

  \setuppapersize[fake]}
   \normalhbox}

\setuppaper[method=deform]

\starttext

\subject{Tufte}

\input tufte

\page

\subject{Knuth}

\input knuth

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Hans Hagen

Zhichu Chen wrote:

On Sat, May 23, 2009 at 12:54 AM, Wolfgang Schuster
 wrote:

Am 22.05.2009 um 18:47 schrieb Zhichu Chen:


Is there an easy option for this?

\setuppapersize[SM|SW] or a papersize with the the same width/height
ratio
as the projector.

That won't go well. The projector is as stupid as it could be. It will
honestly
send what's shown on my laptop to the screen only stretch it to a special
ratio. If I make a wide screen version. It will be a wide version on my
laptop
with the header and footer cut, I mean it won't fill my laptop screen.
Then
the projector will produce a wide version on a wide ratio. It'll be
256:100
rather than 16:10. Still not what I wanted.

Can't you set the same resolution on your laptop as the projector has,
the layout on your laptop is then deformed but the screen version is
correct.


Well, that's a good idea. But actually, that's not really "my" laptop so
I can't test it right now.

I hope the notebook is not too old (which I assume it can be) to support
a wide screen resolution.


set your laptop at the desired (i.e. projector) resolution before 
connecting it to the beamer i.e. don't let the beamer try to be clever 
and talk to the laptop ... just letting the laptop lie to the beamer 
that it has a matching resolution is often safer; it is seldom a problem 
if the presentation on the your laptop screen is somewhat deformed


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


Re: [NTG-context] French typography is back

2009-05-22 Thread Hans Hagen

luigi scarso wrote:

On Fri, May 22, 2009 at 5:51 PM, Arthur Reutenauer <
arthur.reutena...@normalesup.org> wrote:


   but instead of arbitrary adding a 0.25em
before and 1em after the punctuation mark you should use the real nnbsp
(U+202F) before and real normal space (U+0020) after.

  I don't think so.  Space characters don't mix very well with TeX glue
and should best be avoided, generally speaking.  In particular, all
inter-word spaces that are input in the TeX source as one or more of
U+0020 are simply ignored, and replaced by normal inter-word glue, with
its appropriate stretchability and shrinkability.  This has always been
the case in TeX and is not going to change.  All other types of Unicode
spaces should really, in my opinion, be processed in the same way, while
respecting their additional properties in the case of non-breakable
spaces, for instance.



Maybe one can use
something like this
\defineremapper[filterItem]
\remapcharacter[filterItem][`•]{\item}

for "spaces"  too


as such a remapper is applied on all input eventually you end up in a 
mess and we don't want a mess ... the current mechanism acts upon the to 
be typeset text which is way more safe




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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:55 AM, luigi scarso  wrote:
>
>
> On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen  wrote:
>>
>> Well, since it's a presentation, I really have some "cool" style to
>> show by using
>> javascript. I think including separated pages will jeopardize it.
>
> and what about pdf -> ps ->(some transformations) ps -> pdf ?

I don't know. I hope I can find an easy way. By easy, I mean
simple and comfortable. ;)

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



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:54 AM, Wolfgang Schuster
 wrote:
>
> Am 22.05.2009 um 18:47 schrieb Zhichu Chen:
>
 Is there an easy option for this?
>>>
>>> \setuppapersize[SM|SW] or a papersize with the the same width/height
>>> ratio
>>> as the projector.
>>
>> That won't go well. The projector is as stupid as it could be. It will
>> honestly
>> send what's shown on my laptop to the screen only stretch it to a special
>> ratio. If I make a wide screen version. It will be a wide version on my
>> laptop
>> with the header and footer cut, I mean it won't fill my laptop screen.
>> Then
>> the projector will produce a wide version on a wide ratio. It'll be
>> 256:100
>> rather than 16:10. Still not what I wanted.
>
> Can't you set the same resolution on your laptop as the projector has,
> the layout on your laptop is then deformed but the screen version is
> correct.

Well, that's a good idea. But actually, that's not really "my" laptop so
I can't test it right now.

I hope the notebook is not too old (which I assume it can be) to support
a wide screen resolution.

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



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread luigi scarso
On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen  wrote:

> Well, since it's a presentation, I really have some "cool" style to
> show by using
> javascript. I think including separated pages will jeopardize it.
>
and what about pdf -> ps ->(some transformations) ps -> pdf ?
-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Wolfgang Schuster


Am 22.05.2009 um 18:47 schrieb Zhichu Chen:


Is there an easy option for this?


\setuppapersize[SM|SW] or a papersize with the the same width/ 
height ratio

as the projector.


That won't go well. The projector is as stupid as it could be. It  
will honestly
send what's shown on my laptop to the screen only stretch it to a  
special
ratio. If I make a wide screen version. It will be a wide version on  
my laptop
with the header and footer cut, I mean it won't fill my laptop  
screen. Then
the projector will produce a wide version on a wide ratio. It'll be  
256:100

rather than 16:10. Still not what I wanted.


Can't you set the same resolution on your laptop as the projector has,
the layout on your laptop is then deformed but the screen version is  
correct.


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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:46 AM, luigi scarso  wrote:
>
>
> On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen  wrote:
>>
>> Well, since it's a presentation, I really have some "cool" style to
>> show by using
>> javascript. I think including separated pages will jeopardize it.
>
> Ah, ok
> I don't know  -- I have a little experience with javascript but if you can
> send me your pdf
> I can check if javascripts fail , just for curiosity .
Sure of course. Thank you very much. I'll make a personal mail in case
for the attached file.
>
>
> --
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___
>
>



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
On Sat, May 23, 2009 at 12:08 AM, Wolfgang Schuster
 wrote:
>
> Am 22.05.2009 um 16:48 schrieb Zhichu Chen:
>
>> Hi guys,
>>
>> This may sound crazy, but I have to do a presentation with a stretched
>> output.
>>
>> The thing is, I have a laptop with a normal screen, and it'll be plugged
>> to
>> a very big wide screen monitor so that people can see the slides on the
>> big screen. I have to look at my laptop and present for the people, so
>> what I'm thinking is make a stretched output on my 4:3 screen which
>> looks very narrowed and then the effect on the screen will be just as
>> normal.
>>
>> Is there an easy option for this?
>
> \setuppapersize[SM|SW] or a papersize with the the same width/height ratio
> as the projector.

That won't go well. The projector is as stupid as it could be. It will honestly
send what's shown on my laptop to the screen only stretch it to a special
ratio. If I make a wide screen version. It will be a wide version on my laptop
with the header and footer cut, I mean it won't fill my laptop screen. Then
the projector will produce a wide version on a wide ratio. It'll be 256:100
rather than 16:10. Still not what I wanted.

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



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] French typography is back

2009-05-22 Thread Robert-André Mauchin

Le 22/05/2009 17:51, Arthur Reutenauer a écrit :

but instead of arbitrary adding a 0.25em
before and 1em after the punctuation mark you should use the real nnbsp
(U+202F) before and real normal space (U+0020) after.


   I don't think so.  Space characters don't mix very well with TeX glue
and should best be avoided, generally speaking.  In particular, all
inter-word spaces that are input in the TeX source as one or more of
U+0020 are simply ignored, and replaced by normal inter-word glue, with
its appropriate stretchability and shrinkability.  This has always been
the case in TeX and is not going to change.  All other types of Unicode
spaces should really, in my opinion, be processed in the same way, while
respecting their additional properties in the case of non-breakable
spaces, for instance.



Not knowing the internals, that's what I tried to say with adding a 
space after instead of 1em, i.e. "calculated by the engine". If w an em 
is added after, it is not stretchable and shrinkable, right?



   In addition, characters like U+202F are very badly supported across
fonts, and if you take in account the fact that the most appropriate
width will probably change depending on the language, you're likely to
observe much more arbitrary results if you use the glyph for that
character in font.  I seriously doubt you want to rely on the font for
that.


Why? Let me take your example again:

{\setcharacterspacing[frenchpunctuation]a? aa? aaa? abba?}

a\,? aa\,? aaa\,? abba\,?

Surprise: the first line is longer than the second. It's because sizes of
the U+0020 and U+202F depend on the font design, their size are not exactly
1em and 0.25em.


   That's not the reason.  The reason is simply that \, is defined as a
\kern by one sixth of an em (see core-spa.mkiv: it's equivalent to
\thinspace, which is \kern .16667em).  In the first line, the value of
.25em is defined in core-spa.mkiv; you can redefine it if you want.
In any case, every space is completely controlled by ConTeXt, we don't
let the font mess around.

   For that matter, Latin Modern doesn't have a glyph for U+202F, so if
we'd use it, we'd just see nothing: there would be no space at all, see
attached file.



Thank you so much for the detailed technical explanation! So, AFAIK, I 
believe that the space before should be equivalent to thinspace.




   All this really calls for more coordination in order to produce decent
specifications, in my opinion.  If you think ConTeXt's default should be
different, it's fine and I encourage you to contact Sébastien to discuss
about it.  Report then to Hans and Peter for the implementation.



Thanks, I'll see that. Maybe I could write some detailled specs in the wiki.


Regards,

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread luigi scarso
On Fri, May 22, 2009 at 6:32 PM, Zhichu Chen  wrote:

> Well, since it's a presentation, I really have some "cool" style to
> show by using
> javascript. I think including separated pages will jeopardize it.

Ah, ok
I don't know  -- I have a little experience with javascript but if you can
send me your pdf
I can check if javascripts fail , just for curiosity .


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


Re: [NTG-context] French typography is back

2009-05-22 Thread luigi scarso
On Fri, May 22, 2009 at 5:51 PM, Arthur Reutenauer <
arthur.reutena...@normalesup.org> wrote:

> >but instead of arbitrary adding a 0.25em
> > before and 1em after the punctuation mark you should use the real nnbsp
> > (U+202F) before and real normal space (U+0020) after.
>
>   I don't think so.  Space characters don't mix very well with TeX glue
> and should best be avoided, generally speaking.  In particular, all
> inter-word spaces that are input in the TeX source as one or more of
> U+0020 are simply ignored, and replaced by normal inter-word glue, with
> its appropriate stretchability and shrinkability.  This has always been
> the case in TeX and is not going to change.  All other types of Unicode
> spaces should really, in my opinion, be processed in the same way, while
> respecting their additional properties in the case of non-breakable
> spaces, for instance.
>

Maybe one can use
something like this
\defineremapper[filterItem]
\remapcharacter[filterItem][`•]{\item}

for "spaces"  too

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
Well, since it's a presentation, I really have some "cool" style to
show by using
javascript. I think including separated pages will jeopardize it.

On Fri, May 22, 2009 at 11:55 PM, luigi scarso  wrote:
>
>
> On Fri, May 22, 2009 at 4:48 PM, Zhichu Chen  wrote:
>>
>> Hi guys,
>>
>> This may sound crazy, but I have to do a presentation with a stretched
>> output.
>>
>> The thing is, I have a laptop with a normal screen, and it'll be plugged
>> to
>> a very big wide screen monitor so that people can see the slides on the
>> big screen. I have to look at my laptop and present for the people, so
>> what I'm thinking is make a stretched output on my 4:3 screen which
>> looks very narrowed and then the effect on the screen will be just as
>> normal.
>>
>> Is there an easy option for this?
>
> hmm are you sure that there isn't a way to
> choose a graphic mode for you output that do what you want ?
> Otherwise, maybe you can make a pdf -> ps,
> apply a matrix transformation with ghostscript  to this ps and reconvert to
> pdf
> Or you can use something like
> \starttext
> \starTEXPage
> \externalfigure[slides.pdf][page=1,width=...,height=...]\page
> \externalfigure[slides.pdf][page=2,width=...,height=...]\page
> \externalfigure[slides.pdf][page=3,width=...,height=...]\page
> \externalfigure[slides.pdf][page=4,width=...,height=...]\page
> ...
> \stopTEXPage
> \stoptext
>
>
> --
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___
>
>



-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread Wolfgang Schuster


Am 22.05.2009 um 16:48 schrieb Zhichu Chen:


Hi guys,

This may sound crazy, but I have to do a presentation with a stretched
output.

The thing is, I have a laptop with a normal screen, and it'll be  
plugged to
a very big wide screen monitor so that people can see the slides on  
the

big screen. I have to look at my laptop and present for the people, so
what I'm thinking is make a stretched output on my 4:3 screen which
looks very narrowed and then the effect on the screen will be just as
normal.

Is there an easy option for this?


\setuppapersize[SM|SW] or a papersize with the the same width/height  
ratio as the projector.


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


Re: [NTG-context] How to make a stretched pdf file

2009-05-22 Thread luigi scarso
On Fri, May 22, 2009 at 4:48 PM, Zhichu Chen  wrote:

> Hi guys,
>
> This may sound crazy, but I have to do a presentation with a stretched
> output.
>
> The thing is, I have a laptop with a normal screen, and it'll be plugged to
> a very big wide screen monitor so that people can see the slides on the
> big screen. I have to look at my laptop and present for the people, so
> what I'm thinking is make a stretched output on my 4:3 screen which
> looks very narrowed and then the effect on the screen will be just as
> normal.
>
> Is there an easy option for this?
>
hmm are you sure that there isn't a way to
choose a graphic mode for you output that do what you want ?
Otherwise, maybe you can make a pdf -> ps,
apply a matrix transformation with ghostscript  to this ps and reconvert to
pdf
Or you can use something like
\starttext
\starTEXPage
\externalfigure[slides.pdf][page=1,width=...,height=...]\page
\externalfigure[slides.pdf][page=2,width=...,height=...]\page
\externalfigure[slides.pdf][page=3,width=...,height=...]\page
\externalfigure[slides.pdf][page=4,width=...,height=...]\page
...
\stopTEXPage
\stoptext


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


Re: [NTG-context] French typography is back

2009-05-22 Thread Arthur Reutenauer
>but instead of arbitrary adding a 0.25em 
> before and 1em after the punctuation mark you should use the real nnbsp 
> (U+202F) before and real normal space (U+0020) after.

  I don't think so.  Space characters don't mix very well with TeX glue
and should best be avoided, generally speaking.  In particular, all
inter-word spaces that are input in the TeX source as one or more of
U+0020 are simply ignored, and replaced by normal inter-word glue, with
its appropriate stretchability and shrinkability.  This has always been
the case in TeX and is not going to change.  All other types of Unicode
spaces should really, in my opinion, be processed in the same way, while
respecting their additional properties in the case of non-breakable
spaces, for instance.

  In addition, characters like U+202F are very badly supported across
fonts, and if you take in account the fact that the most appropriate
width will probably change depending on the language, you're likely to
observe much more arbitrary results if you use the glyph for that
character in font.  I seriously doubt you want to rely on the font for
that.

> Why? Let me take your example again:
>
> {\setcharacterspacing[frenchpunctuation]a? aa? aaa? abba?}
>
> a\,? aa\,? aaa\,? abba\,?
>
> Surprise: the first line is longer than the second. It's because sizes of 
> the U+0020 and U+202F depend on the font design, their size are not exactly 
> 1em and 0.25em.

  That's not the reason.  The reason is simply that \, is defined as a
\kern by one sixth of an em (see core-spa.mkiv: it's equivalent to
\thinspace, which is \kern .16667em).  In the first line, the value of
.25em is defined in core-spa.mkiv; you can redefine it if you want.
In any case, every space is completely controlled by ConTeXt, we don't
let the font mess around.

  For that matter, Latin Modern doesn't have a glyph for U+202F, so if
we'd use it, we'd just see nothing: there would be no space at all, see
attached file.

> Moreover, this is true that in french typography we should use a thin space 
> before some punctuation mark, and a thin space in France *was* one fourth 
> of an em. BUT due to modern digital typography, a thin space now correspond 
> to something like one fifth of an em.
> In digital typography, the normal space, i.e. inter-word separation, i.e. 
> "espace justifiante" in French, has generally a size around one fourth of 
> an em, calculated by the engine (you know that better than me). The thin 
> space is a bit more than a half of the inter-word separation, i.e. between 
> 1/8 and 1/6 of an em.

  All this really calls for more coordination in order to produce decent
specifications, in my opinion.  If you think ConTeXt's default should be
different, it's fine and I encourage you to contact Sébastien to discuss
about it.  Report then to Hans and Peter for the implementation.

> So I *really* believe that you should not define space before and after 
> punctuation with "arbitrary" em spacing. There must be a way to do a 
> "search and replace" with the correct glyphs (U+202F and U+0020) before and 
> after punctuation marks.

  As my example file demonstrates, we clearly shouldn't use the glyphs
from the font.

Arthur


frenchpunctuation.pdf
Description: Adobe PDF document


frenchpunctuation.tex
Description: TeX document
___
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
___


[NTG-context] How to make a stretched pdf file

2009-05-22 Thread Zhichu Chen
Hi guys,

This may sound crazy, but I have to do a presentation with a stretched
output.

The thing is, I have a laptop with a normal screen, and it'll be plugged to
a very big wide screen monitor so that people can see the slides on the
big screen. I have to look at my laptop and present for the people, so
what I'm thinking is make a stretched output on my 4:3 screen which
looks very narrowed and then the effect on the screen will be just as
normal.

Is there an easy option for this?

-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


Re: [NTG-context] beta (22.05.2009, late night edition): spurious space when clipping

2009-05-22 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

Hi,

the attached example shows some horizontal shift of the clipped 
object. Mkii works as expected.


meta-ini.mkiv, add percent sign ...

   \else
 \xdef\MPclippath{#5}%
   \fi


that was fast! thank you Hans!




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


Re: [NTG-context] beta (22.05.2009, late night edition): spurious space when clipping

2009-05-22 Thread Hans Hagen

Peter Rolf wrote:

Hi,

the attached example shows some horizontal shift of the clipped object. 
Mkii works as expected.


meta-ini.mkiv, add percent sign ...

   \else
 \xdef\MPclippath{#5}%
   \fi


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


Re: [NTG-context] French typography is back

2009-05-22 Thread Robert-André Mauchin

> Hans Hagen a écrit :
> > Robert-André Mauchin wrote:
> >
> > The best would be to get rid off
> > \setcharacterspacing[frenchpunctuation] and adapt the frenchb Babel
> > module from Daniel Flipo (source and explanation here
> > http://daniel.flipo.free.fr/frenchb/ ), as a module (t-french
> > modification), or when loading the language, but I really
> > don't know how hard it would be since it handles a lot more than
> > just punctuation marks.
>
> no, active chars for such things are no solution and will not be
> supported in mkiv; setcharacterspacing is the way to go (and if it
> breaks that should be fixed instead); language support shoul dbe
> in the kernel anyway
>
> Hans


I don't specifically talk about active chars (I don't really not what 
this is, I'm an user, not a coder), but instead of arbitrary adding a 
0.25em before and 1em after the punctuation mark you should use the real 
nnbsp (U+202F) before and real normal space (U+0020) after.


Why? Let me take your example again:

{\setcharacterspacing[frenchpunctuation]a? aa? aaa? abba?}

a\,? aa\,? aaa\,? abba\,?

Surprise: the first line is longer than the second. It's because sizes 
of the U+0020 and U+202F depend on the font design, their size are not 
exactly 1em and 0.25em.


Moreover, this is true that in french typography we should use a thin 
space before some punctuation mark, and a thin space in France *was* one 
fourth of an em. BUT due to modern digital typography, a thin space now 
correspond to something like one fifth of an em.
In digital typography, the normal space, i.e. inter-word separation, 
i.e. "espace justifiante" in French, has generally a size around one 
fourth of an em, calculated by the engine (you know that better than 
me). The thin space is a bit more than a half of the inter-word 
separation, i.e. between 1/8 and 1/6 of an em.


So I *really* believe that you should not define space before and after 
punctuation with "arbitrary" em spacing. There must be a way to do a 
"search and replace" with the correct glyphs (U+202F and U+0020) before 
and after punctuation marks.


> language support should be in the kernel anyway

I agree of course, but although I believe this would encourage french 
"texers" to use Context, I don't think typography for a specific 
language is the priority for you&Taco right now.


I wish you luck for the next beta release!

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


Re: [NTG-context] MkIV italic correction?

2009-05-22 Thread Taco Hoekwater


Hans Hagen wrote:
> Taco Hoekwater wrote:
>>
>> Khaled Hosny wrote:
>>> Not very helpful in this situation, but FontForge has a non-standard
>>> italic correction (ITLC) table[1], may be TeX related OpenTyp font
>>> projects like Latin Modern and Gyre fonts can use it?
>>
>> That would perhaps not be a bad idea. If that table is there then
>> luatex will automatically use it (it is a subtable of 'TeX ', which
>> also contains height and depth information, and font dimensions).
> 
> so, that data would end up in a regular feature/lookup? of is it an
> entry in the glyph?

They are automatically merged into the glyph, as

glyph.italic_correction
glyph.tex_height
glyph.tex_depth

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
___


[NTG-context] beta (22.05.2009, late night edition): spurious space when clipping

2009-05-22 Thread Peter Rolf

Hi,

the attached example shows some horizontal shift of the clipped object. 
Mkii works as expected.


Best wishes, Peter
\setupcolors[state=start]
\setuppagenumber[state=stop]

\starttext

\framed[offset=overlay,width=5cm,height=1cm]
  {\clip[width=5cm,height=1cm,voffset=0pt,hoffset=0pt]
   {\blackrule[width=10cm,height=1cm,color=red]}}

\stoptext


clip.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] MkIV italic correction?

2009-05-22 Thread Hans Hagen

Taco Hoekwater wrote:


Khaled Hosny wrote:

Not very helpful in this situation, but FontForge has a non-standard
italic correction (ITLC) table[1], may be TeX related OpenTyp font
projects like Latin Modern and Gyre fonts can use it?


That would perhaps not be a bad idea. If that table is there then
luatex will automatically use it (it is a subtable of 'TeX ', which
also contains height and depth information, and font dimensions).


so, that data would end up in a regular feature/lookup? of is it an 
entry in the glyph?


for taco: it would be handy then to have a flag telling so, otherwise we 
would have to check for each glyph a field which for huge fonts is a 
slow downer



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


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-22 Thread Alan Stone
On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny wrote:

> How can I disable page numbers (or header/footer) in empty pages, as
> page 2 in the following example:
>
> \setuppagenumbering[alternative=doublesided]
> \starttext
> \chapter{one}
> \input tufte
> \chapter{two}
> \input tufte
> \stoptext
>
> Regards,
>  Khaled


http://www.ntg.nl/pipermail/ntg-context/2008/030594.html

Alan


> --
>  Khaled Hosny
>  Arabic localiser and member of Arabeyes.org team
>  Free font developer
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkoWc5oACgkQRoqITGOuyPIJ6wCfbz74HEvxBgVSywJehwLPuLeR
> hRUAn05ZvLNTqOqWcwVzemJsSSJz0k/A
> =VnNd
> -END PGP 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to disable page numbers in empty pages

2009-05-22 Thread Khaled Hosny
How can I disable page numbers (or header/footer) in empty pages, as
page 2 in the following example:

\setuppagenumbering[alternative=doublesided]
\starttext
\chapter{one}
\input tufte
\chapter{two}
\input tufte
\stoptext

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


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


Re: [NTG-context] MkIV italic correction?

2009-05-22 Thread Taco Hoekwater


Khaled Hosny wrote:
> 
> Not very helpful in this situation, but FontForge has a non-standard
> italic correction (ITLC) table[1], may be TeX related OpenTyp font
> projects like Latin Modern and Gyre fonts can use it?

That would perhaps not be a bad idea. If that table is there then
luatex will automatically use it (it is a subtable of 'TeX ', which
also contains height and depth information, and font dimensions).


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
___


Re: [NTG-context] MkIV italic correction?

2009-05-22 Thread Taco Hoekwater


Corsair wrote:
> On Thu, May 21, 2009 at 01:59:14PM +0200, Taco Hoekwater wrote:
>> Corsair wrote:
>>> On Thu, May 21, 2009 at 11:55:45AM +0200, Hans Hagen wrote:
 open type fonts have no italic correction info (except in math)
>>> But I notice that using the same fonts in XeTeX produces italic
>>> correction.  Is it fake?
>> I guess it is using the glyph boundingbox.
> 
> Thank you.  This sounds reasonable.  Is there any way I can achieve
> this in MkIV?  I'm currently using \def\/{\kern0.1em}, which is kinda
> dirty...

Hans could implement something like this easily, but whether it does
much good is doubtful (that square box does not actually tell you where
something sticks out, just that it does).

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
___


Re: [NTG-context] asymptote support

2009-05-22 Thread Arthur Reutenauer
> PPS: Recent Asymptote logs say "Updates to facilitate TeXLive builds."
> Sounds promissing.

  Yes, asymptote will be included in TeX Live 2009, this is also latest
news :-)

  See http://tug.org/pipermail/tlbuild/2009q2/000738.html

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