[NTG-context] No header and no page-number on empty pages

2012-11-30 Thread H. Özoguz

Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:

\definepagebreak
   [mychapterpagebreak]
  % [yes,header,right]
  %[yes,header,left]
  [yes,header,footer,right]

\setuphead
   [chapter]
   [page=mychapterpagebreak]
  %[page=Mychapterpagebreak,header=empty,footer=empty]

%\setupsectionblock[frontpart][page=chapter]
%\setupsectionblock[bodypart][page=chapter]
%\setupsectionblock[backpart][page=chapter]
%\setupsectionblock[appendix][page=chapter]

\setuppagenumbering[alternative=doublesided,location={header,margin}]
\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]
%\setupbackgrounds[header][text][bottomframe=on]

\starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
\stoptext
test-

Thanks Luigi, Wolfgang. But this does not work if I use
\page~\page
(I need that in some cases for manually inserting a empty page). So the 
question is how to insert empty pages – but of course respect them in 
page numbering, I mean that the number is not shown on the page, but the 
page is counted, s.t. the next pages have the correct numbers).


Huseyin
___
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] request for a few volunteers to test distribution on new server

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 3:22 AM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 Dear ConTeXters,

 we will point the distribution to the new server later today (for a
 moment without any significant changes). Before we do that I would
 like to ask some of you to try out
./first-install.sh --server=distribution.contextgarden.net
./first-setup.sh --server=distribution.contextgarden.net
is ok and
status-mkiv.tex compiles ok.




--
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] No header and no page-number on empty pages

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 9:05 AM, H. Özoguz h.oezo...@mmnetz.de wrote:
 Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:

 \definepagebreak
[mychapterpagebreak]
   % [yes,header,right]
   %[yes,header,left]
   [yes,header,footer,right]

 \setuphead
[chapter]
[page=mychapterpagebreak]
   %[page=Mychapterpagebreak,header=empty,footer=empty]

 %\setupsectionblock[frontpart][page=chapter]
 %\setupsectionblock[bodypart][page=chapter]
 %\setupsectionblock[backpart][page=chapter]
 %\setupsectionblock[appendix][page=chapter]

 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]
 %\setupbackgrounds[header][text][bottomframe=on]

 \starttext
\chapter{testA} \dorecurse{10}{\input tufte }
\chapter{testB} \dorecurse{10}{\input tufte }
\chapter{testC} \dorecurse{10}{\input tufte }
 \stoptext
 test-

 Thanks Luigi, Wolfgang. But this does not work if I use
 \page~\page
 (I need that in some cases for manually inserting a empty page). So the
 question is how to insert empty pages – but of course respect them in page
 numbering, I mean that the number is not shown on the page, but the page is
 counted, s.t. the next pages have the correct numbers).

 Huseyin
something like this ?
(I'm sure that there are other solutions)

\starttext
\input tufte\page %% force a pagebreak
\vbox to\textheight{}\page[blank,yes] % empty page
\vbox to\textheight{}\page[blank]
\vbox to\textheight{}\page
\input tufte\page
\input tufte
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Hans Hagen

On 11/30/2012 8:06 AM, Pablo Rodríguez wrote:

Hi there,

sorry for bothering again with this issue, but I need to be sure in
order to properly report to the font developer of FreeSerif.

I have the following file:

\usemodule[simplefonts][size=25pt]
\definefontfeature[latins][default][script=latn]
\setmainfont[FreeSerif]
\starttext
\showfontkerns
dadedidodufafefifofufrflftlalelilolutatetitotu\par
\addfs{latins}
dadedidodufafefifofufrflftlalelilolutatetitotu\par
\stoptext

The first line has no GPOS kern enabled and the second line has it.

In order to report it to the font developer (I have the problem not with
ConTeXt, but with my ereader [I used ConTeXt to check the font
features), I have the following questions:

-In the example above, is the old TrueType kern enabled on the first line?

-If not, how can I enable it, without enabling the liga or kern OpenType
features?

I need this to see the actual kerning form the old TrueType kern table
(I suspect it hasn't the same values as the OpenType kern feature).


We don't really make a distinction. Kerns are either a property of a 
character (truetype method) or are organized as lookups. Both are driven 
by 'kern' and it's not possible to choose a specific method as it's font 
driven. In the first case, enabling the kern feature will also enable 
the kerns and there is no dependency on language and script. In the 
second case a language script combination drives the injection of kerns. 
So, for each combination there can be different kerns (won't happen often).


Now, if a font designer decides to group kerns according to languages 
(makes less sense than for instance grouping ligatures which do have a 
dependency on languages) he/she has to make sure that it's done in such 
a way that it doesn't lock out.


For instance, you can have kerns (optionally in your font organized in 
classes) that kerns latin characters and group them in latn/dflt and do 
something similar for latn/anylanguage  but then you expect the user 
to choose the right combination. So, choosing latn/dflt can lock out 
greek or whatever. This means that when one defines kerns for say 
devanagari but also wants to have mixed in latin/* scripts supported, 
one could best also enable latn/* kerns there (just add lookups to the 
feature specification).


As the serif font you use has support for many scripts, extra care has 
to be taken for mixed usage. Also, normally a dflt/dflt combination is 
defined (read: no script or language chosen) which should work out okay 
for most cases. Anyhow, in the serif font (1) a dflt/dflt combination 
has to be supported (added) and (2) you/someone needs to check if when 
you choose greek, you still got kerning for latin.


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
___


[NTG-context] \not\in doesn't work properly

2012-11-30 Thread Jeong Dal
Hi,

After updating ConTeXt, math command '\not\in' is not shown properly.

For example,

$a \not\eq b$ is good.

but $a \not\in A$ shows two symbols separately. 


I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are

This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english

Thank you.

Best regards,

Dalyoung
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi Hans, Pablo, et al.

I'm the admin of GNU FreeFont.  I'll respond to some of these points.

1) I have yet to reproduce Pablo's output PDF on either of two systems.  As
I am unfamiliar with ConTeXt, I can only guess how it was built.  I tried
the file quoted here as input to the 'context' command, but it chokes on
the \showfontkerns line.  It would help very much to have a working example
with the proper command line to build it.

2) I understood that ConTeXt only uses the old-style TrueType 'kern' table,
rather than the OpenType 'kern' GPOS lookup.  If that is the case, I would
suggest that you consider to change the  logic to first use the OpenType
lookup, and if it doesn't exist, fall back to the TrueType table. Several
applications are already complaining that both exist; the plan is to drop
support for the TrueType table in FreeFont.

3) In most applications, the script of a run of text is determined from the
Unicode.  This is the assumption made in FreeFont.  The GNU FreeFont policy
starts from its essence as a Unicode font, in which no particular script is
default. (Some generic features that are not specific to any script, are in
{dflt,dflt}.)

There was a suggestion that Latin kerns should be activated by
{script,lang}={dflt,dflt}.  Let me ask, should Devanagari kerns also be
activated by {dflt, dflt}?  If not, why?

It appears that there maybe some conflict her with TeX implementaions.  I
don't completely understand this.  Maybe we can find a solution.

4) I have written something like Pablo's test using XeTeX and fontspec.
Kerning works very well with GNU FreeFont.  Find attached.

5) There was also a report that OpenType kerning doesn't work in some
E-Book readers (I know this isn't the forum for that, but ...) .  My iriver
Story kerns very nicely text in FreeSerif.  Can I get an example of an
E-reader for which kerning fails?  (I really don't doubt that they exist!)

Cheers!



On Fri, Nov 30, 2012 at 10:13 AM, Hans Hagen pra...@wxs.nl wrote:

 On 11/30/2012 8:06 AM, Pablo Rodríguez wrote:

 Hi there,

 sorry for bothering again with this issue, but I need to be sure in
 order to properly report to the font developer of FreeSerif.

 I have the following file:

 \usemodule[simplefonts][size=**25pt]
 \definefontfeature[latins][**default][script=latn]
 \setmainfont[FreeSerif]
 \starttext
 \showfontkerns
 dadedidodufafefifofufrflftlale**lilolutatetitotu\par
 \addfs{latins}
 dadedidodufafefifofufrflftlale**lilolutatetitotu\par
 \stoptext

 The first line has no GPOS kern enabled and the second line has it.

 In order to report it to the font developer (I have the problem not with
 ConTeXt, but with my ereader [I used ConTeXt to check the font
 features), I have the following questions:

 -In the example above, is the old TrueType kern enabled on the first line?

 -If not, how can I enable it, without enabling the liga or kern OpenType
 features?

 I need this to see the actual kerning form the old TrueType kern table
 (I suspect it hasn't the same values as the OpenType kern feature).


 We don't really make a distinction. Kerns are either a property of a
 character (truetype method) or are organized as lookups. Both are driven by
 'kern' and it's not possible to choose a specific method as it's font
 driven. In the first case, enabling the kern feature will also enable the
 kerns and there is no dependency on language and script. In the second case
 a language script combination drives the injection of kerns. So, for each
 combination there can be different kerns (won't happen often).

 Now, if a font designer decides to group kerns according to languages
 (makes less sense than for instance grouping ligatures which do have a
 dependency on languages) he/she has to make sure that it's done in such a
 way that it doesn't lock out.

 For instance, you can have kerns (optionally in your font organized in
 classes) that kerns latin characters and group them in latn/dflt and do
 something similar for latn/anylanguage  but then you expect the user to
 choose the right combination. So, choosing latn/dflt can lock out greek or
 whatever. This means that when one defines kerns for say devanagari but
 also wants to have mixed in latin/* scripts supported, one could best also
 enable latn/* kerns there (just add lookups to the feature specification).

 As the serif font you use has support for many scripts, extra care has to
 be taken for mixed usage. Also, normally a dflt/dflt combination is defined
 (read: no script or language chosen) which should work out okay for most
 cases. Anyhow, in the serif font (1) a dflt/dflt combination has to be
 supported (added) and (2) you/someone needs to check if when you choose
 greek, you still got kerning for latin.

 Hans

 --**--**-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 

Re: [NTG-context] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 10:58 AM, Steve White stevan.wh...@gmail.com wrote:
 Hi Hans, Pablo, et al.

 I'm the admin of GNU FreeFont.  I'll respond to some of these points.

 1) I have yet to reproduce Pablo's output PDF on either of two systems.  As
 I am unfamiliar with ConTeXt, I can only guess how it was built.  I tried
 the file quoted here as input to the 'context' command, but it chokes on the
 \showfontkerns line.  It would help very much to have a working example with
 the proper command line to build it.
it's ok with freefont-ttf-20120503.zip
and the latest context.
You can install it from
http://wiki.contextgarden.net/ConTeXt_Standalone
and it's better to put into a separated folder than texlive .


--
luigi


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

[NTG-context] Underlined section

2012-11-30 Thread H. Özoguz
How to define a new title - like section, but aligned in the center and 
underlined?


So far I got:

\definehead[mysection][section]
\setuphead[mysection][alternative=middle]

How to get the underlining in that?

Thanks!
Huseyin
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi Luigi,

I am lacking still

* a working input (*.tex) file
* the command line to build it with ConTeXt

There are already two ConTeXt installations on different machines here.
The most recent is 2012.05.30 MKIV, on Ubuntu.
Are you saying I have to install the latest version of ConTeXt to see the
effects being discussed?

I see vertical lines in your attached PDF... is this a new complaint?
I thought the problem was that sometimes kerning isn't activated.

Thanks!


On Fri, Nov 30, 2012 at 11:18 AM, luigi scarso luigi.sca...@gmail.comwrote:

 On Fri, Nov 30, 2012 at 10:58 AM, Steve White stevan.wh...@gmail.com
 wrote:
  Hi Hans, Pablo, et al.
 
  I'm the admin of GNU FreeFont.  I'll respond to some of these points.
 
  1) I have yet to reproduce Pablo's output PDF on either of two systems.
  As
  I am unfamiliar with ConTeXt, I can only guess how it was built.  I tried
  the file quoted here as input to the 'context' command, but it chokes on
 the
  \showfontkerns line.  It would help very much to have a working example
 with
  the proper command line to build it.
 it's ok with freefont-ttf-20120503.zip
 and the latest context.
 You can install it from
 http://wiki.contextgarden.net/ConTeXt_Standalone
 and it's better to put into a separated folder than texlive .


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

 ___

___
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] Underlined section

2012-11-30 Thread Marco Patzer
2012-11-30 H. Özoguz:

 How to define a new title - like section, but aligned in the center and 
 underlined?
 
 So far I got:
 
 \definehead[mysection][section]
 \setuphead[mysection][alternative=middle]
 
 How to get the underlining in that?

The following code is quite verbose, but it's the most flexible way
of implementing a structure head design. See also:

http://wiki.contextgarden.net/Titles

\definehead
  [mysection]
  [section]

\setuphead
  [mysection]
  [alternative=mysection]

\defineheadalternative
  [mysection]
  [renderingsetup=setup:mysection]

\defineframedtext
  [mysectionframe]
  [width=broad,
   align=middle,
   frame=off,
   bottomframe=on]

\startsetups [setup:mysection]
  \headsetupspacing
  \startmysectionframe
\ifconditional\headshownumber
  \headnumbercontent
  \hskip\headnumberdistance
\fi
\headtextcontent
  \stopmysectionframe
\stopsetups

\starttext
  \startmysection [title=Foo]
\input knuth
  \stopmysection
\stoptext


Marco

___
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] Start\Stop with Wolfgangs Annotation Module

2012-11-30 Thread H. Özoguz

Hi,

Im using Wolfgangs annotation module and have defined an annotation:

\defineannotation[bigquote]

with some setups.

Now \bigquote{...} works correctly. But I want for big annotations 
\startbigquote \stopbigquote, how to do that? I tried it with 
\definestartstop, but failed.


Thanks
Huseyin
___
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] Start\Stop with Wolfgangs Annotation Module

2012-11-30 Thread Marco Patzer
2012-11-30 H. Özoguz:

 Hi,
 
 Im using Wolfgangs annotation module and have defined an annotation:
 
 \defineannotation[bigquote]
 
 with some setups.
 
 Now \bigquote{...} works correctly. But I want for big annotations 
 \startbigquote \stopbigquote, how to do that?

First: Create a minimal running example. Then we can just mark the
code in the email, press a button and have the PDF opened. You'll
more likely get responses if you make it as easy as possible to deal
with your problem.

This works here:

\usemodule [annotation]
\defineannotation [bigquote] [style=bold]

\starttext
  \bigquote{Foo}
  \startbigquote
Bar
  \stopbigquote
\stoptext


Marco

___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 12:40 PM, Steve White stevan.wh...@gmail.com wrote:
 Hi Luigi,

 I am lacking still

 * a working input (*.tex) file
%% test.tex
\usemodule[simplefonts][size=25pt]
\definefontfeature[latins][default][script=latn]
\setmainfont[FreeSerif]
\starttext
\showfontkerns
dadedidodufafefifofufrflftlalelilolutatetitotu\par
\addfs{latins}
dadedidodufafefifofufrflftlalelilolutatetitotu\par
\stoptext





 * the command line to build it with ConTeXt
$ context test.tex


 There are already two ConTeXt installations on different machines here.
 The most recent is 2012.05.30 MKIV, on Ubuntu.
 Are you saying I have to install the latest version of ConTeXt to see the
 effects being discussed?
Quick how-to
$##  install latest minimals under  /opt/luatex/standalone-new
$## and run the test
$mkdir -p /opt/luatex/standalone-new
$cd /opt/luatex/standalone-new
$wget http://minimals.contextgarden.net/setup/first-setup.sh
$bash /first-setup.sh --modules=simplefonts
$## wait a little
$cd tex
$source setuptex
$## ok we shoudl have context mkiv now
$context --version
$cd texmf-project
$mkdir fonts   cd fonts
$wget http://ftp.gnu.org/gnu/freefont/freefont-src-20120503.zip
$unzip freefont-src-20120503.zip
$cd freefont-20120503
$mv *.ttf  ../
$cd ..
$mtxrun --script font --reload
$## let's see if they are installed
$mtxrun --script fonts --list --all|grep free
$cd ..
$## put the test.tex here
$context test.tex




 I see vertical lines in your attached PDF... is this a new complaint?
vertical bars are the result of \showkerns
 I thought the problem was that sometimes kerning isn't activated.
could be.

--
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] No header and no page-number on empty pages

2012-11-30 Thread Wolfgang Schuster

Am 30.11.2012 um 09:05 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 29.11.2012 19:09, schrieb ntg-context-requ...@ntg.nl:
 \definepagebreak
   [mychapterpagebreak]
  % [yes,header,right]
  %[yes,header,left]
  [yes,header,footer,right]
 
 \setuphead
   [chapter]
   [page=mychapterpagebreak]
  %[page=Mychapterpagebreak,header=empty,footer=empty]
 
 %\setupsectionblock[frontpart][page=chapter]
 %\setupsectionblock[bodypart][page=chapter]
 %\setupsectionblock[backpart][page=chapter]
 %\setupsectionblock[appendix][page=chapter]
 
 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]
 %\setupbackgrounds[header][text][bottomframe=on]
 
 \starttext
   \chapter{testA} \dorecurse{10}{\input tufte }
   \chapter{testB} \dorecurse{10}{\input tufte }
   \chapter{testC} \dorecurse{10}{\input tufte }
 \stoptext
 test-
 Thanks Luigi, Wolfgang. But this does not work if I use
 \page~\page
 (I need that in some cases for manually inserting a empty page). So the 
 question is how to insert empty pages – but of course respect them in page 
 numbering, I mean that the number is not shown on the page, but the page is 
 counted, s.t. the next pages have the correct numbers).

You can add a empty page in your document with \page[empty].

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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Khaled Hosny
On Fri, Nov 30, 2012 at 10:58:25AM +0100, Steve White wrote:
 There was a suggestion that Latin kerns should be activated by
 {script,lang}={dflt,dflt}.  Let me ask, should Devanagari kerns also be
 activated by {dflt, dflt}?  If not, why?

My own policy is, unless a feature must be restricted to a specific
script/language (e.g. a locale-specific feature), all features should be
assigned to *all* scripts in the font, including DFLT/dflt, because
there is technical reason for doing otherwise and it would help
applications not doing automatic script/language itemisation (both
OpenType-enabled TeX engines, for example).

Regards,
 Khaled
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi Luigi,

As I said, this example does not produce a PDF file for me.  I will attach
the output.

Undefined control sequence ...
...and it points to \showfontkerns

In previous attempts to load a font file directly, I used a command
structures something like
 [file:FreeSerif.otf*default],
but these never worked for me either,
and you seem to be using some other method.
How should one load the file for this example?

You didn't answer the question: to investigate this behaviour, must I
install a second, newer version of context, or can I use the disro
version?  What is the reason for installing the latest version of ConTeXt?
Is this \showfontkerns only in versions newer than 2012.05.30 11:26 MKIV ?

This \showfontkerns may be interesting to me, generally.  (So I have a
further incentive to get this going!)



On Fri, Nov 30, 2012 at 1:24 PM, luigi scarso luigi.sca...@gmail.comwrote:

 On Fri, Nov 30, 2012 at 12:40 PM, Steve White stevan.wh...@gmail.com
 wrote:
  Hi Luigi,
 
  I am lacking still
 
  * a working input (*.tex) file
 %% test.tex
 \usemodule[simplefonts][size=25pt]
 \definefontfeature[latins][default][script=latn]
 \setmainfont[FreeSerif]
 \starttext
 \showfontkerns
 dadedidodufafefifofufrflftlalelilolutatetitotu\par
 \addfs{latins}
 dadedidodufafefifofufrflftlalelilolutatetitotu\par
 \stoptext





  * the command line to build it with ConTeXt
 $ context test.tex

 
  There are already two ConTeXt installations on different machines here.
  The most recent is 2012.05.30 MKIV, on Ubuntu.
  Are you saying I have to install the latest version of ConTeXt to see the
  effects being discussed?
 Quick how-to
 $##  install latest minimals under  /opt/luatex/standalone-new
 $## and run the test
 $mkdir -p /opt/luatex/standalone-new
 $cd /opt/luatex/standalone-new
 $wget http://minimals.contextgarden.net/setup/first-setup.sh
 $bash /first-setup.sh --modules=simplefonts
 $## wait a little
 $cd tex
 $source setuptex
 $## ok we shoudl have context mkiv now
 $context --version
 $cd texmf-project
 $mkdir fonts   cd fonts
 $wget http://ftp.gnu.org/gnu/freefont/freefont-src-20120503.zip
 $unzip freefont-src-20120503.zip
 $cd freefont-20120503
 $mv *.ttf  ../
 $cd ..
 $mtxrun --script font --reload
 $## let's see if they are installed
 $mtxrun --script fonts --list --all|grep free
 $cd ..
 $## put the test.tex here
 $context test.tex



 
  I see vertical lines in your attached PDF... is this a new complaint?
 vertical bars are the result of \showkerns
  I thought the problem was that sometimes kerning isn't activated.
 could be.

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

 ___



context-kern1.log
Description: Binary data
___
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] Start\Stop with Wolfgangs Annotation Module

2012-11-30 Thread H. Özoguz

Am 30.11.2012 13:52, schrieb ntg-context-requ...@ntg.nl:

First: Create a minimal running example. Then we can just mark the
code in the email, press a button and have the PDF opened. You'll
more likely get responses if you make it as easy as possible to deal
with your problem.

This works here:

\usemodule [annotation]
\defineannotation [bigquote] [style=bold]

\starttext
   \bigquote{Foo}
   \startbigquote
 Bar
   \stopbigquote
\stoptext


I have no idea, why it did not work, now it works! Sorry, must be a 
small mistake by me.


I know you opinion on Minexamples, and in most cases you are right, but 
not for every question, I think. But nevertheless I will add one of 
course, if it might help.

Thanks you.
Huseyin
___
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] ConTeXt Minimal Installer for Windows

2012-11-30 Thread Vyatcheslav Yatskovsky

New version of ConTeXt Installer for Windows is available (v1.4).

It is a GUI wizard of small size ( 2MB), which downloads latest context 
distribution, sets PATH for binaries, and generates format files. Then 
ConTeXt works out-of-the-box.


Together with TeXWorks tool, it takes a few minutes from beginning of 
installation to writing your first document.


Works fine for all Windows versions.

Known issues:
On my Windows 8 machine, post-install 'make' fails, but it can be run 
manually then.


Thanks to Mojca for her help.

Regards,
Vaytcheslav
___
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] ConTeXt Minimal Installer for Windows

2012-11-30 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

On Fri, 30 Nov 2012 16:05:08 +0100, Vyatcheslav Yatskovsky 
yatskov...@gmail.com wrote:


New version of ConTeXt Installer for Windows is available (v1.4).


good news;



It is a GUI wizard of small size ( 2MB), which downloads latest context
distribution, sets PATH for binaries,


is it possible to add an option to NOT add path to Ctx binaries to PATH?

This may collide with TeXLive users, and also when one switches among more Ctx 
versions.

BTW: Where the new installer is available?

Best regards,

Lukas



and generates format files. Then
ConTeXt works out-of-the-box.

Together with TeXWorks tool, it takes a few minutes from beginning of
installation to writing your first document.

Works fine for all Windows versions.

Known issues:
On my Windows 8 machine, post-install 'make' fails, but it can be run
manually then.

Thanks to Mojca for her help.

Regards,
Vaytcheslav



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 3:25 PM, Steve White stevan.wh...@gmail.com wrote:
 Hi Luigi,

 As I said, this example does not produce a PDF file for me.  I will attach
 the output.

 Undefined control sequence ...
 ...and it points to \showfontkerns

 In previous attempts to load a font file directly, I used a command
 structures something like
  [file:FreeSerif.otf*default],
 but these never worked for me either,
 and you seem to be using some other method.
 How should one load the file for this example?

 You didn't answer the question: to investigate this behaviour, must I
 install a second, newer version of context, or can I use the disro version?
 What is the reason for installing the latest version of ConTeXt?  Is this
 \showfontkerns only in versions newer than 2012.05.30 11:26 MKIV ?


1) install a new version ,as I said in my prev. email under Quick how-to

2) save this
%% test.tex
\usemodule[simplefonts][size=25pt]
\definefontfeature[latins][default][script=latn]
\setmainfont[FreeSerif]
\starttext
\showfontkerns
dadedidodufafefifofufrflftlalelilolutatetitotu\par
\addfs{latins}
dadedidodufafefifofufrflftlalelilolutatetitotu\par
\stoptext
into test.tex, and then see the last lines of Quick how-to


 This \showfontkerns may be interesting to me, generally.  (So I have a
 further incentive to get this going!)
there are many other details to discover


--
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Hans Hagen

On 11/30/2012 4:30 PM, luigi scarso wrote:


What is the reason for installing the latest version of ConTeXt?  Is this
\showfontkerns only in versions newer than 2012.05.30 11:26 MKIV ?


in that version it was an add-on module, but in the meantime it's in the 
core


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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Hans Hagen

On 11/30/2012 3:13 PM, Khaled Hosny wrote:

On Fri, Nov 30, 2012 at 10:58:25AM +0100, Steve White wrote:

There was a suggestion that Latin kerns should be activated by
{script,lang}={dflt,dflt}.  Let me ask, should Devanagari kerns also be
activated by {dflt, dflt}?  If not, why?


My own policy is, unless a feature must be restricted to a specific
script/language (e.g. a locale-specific feature), all features should be
assigned to *all* scripts in the font, including DFLT/dflt, because
there is technical reason for doing otherwise and it would help
applications not doing automatic script/language itemisation (both
OpenType-enabled TeX engines, for example).


That makes much sense (unless a font has hundreds of different lookups 
for multiple features which could slow down basic processing).


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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Hans Hagen

On 11/30/2012 12:40 PM, Steve White wrote:


I see vertical lines in your attached PDF... is this a new complaint?


that's just the visual debugger in action


I thought the problem was that sometimes kerning isn't activated.


indeed (well, it is activated by default but also script/language driven)

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
___


[NTG-context] Localization

2012-11-30 Thread Vyatcheslav Yatskovsky

Hi

I want figure names to be 'Рисунок #' instead of 'Figure #'.

If I remember right, it was
\language[ru]
that did the localization. But I get 'Figure'.

How to localize figure names?

Regards,
Vaytcheslav
___
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] Localization

2012-11-30 Thread Wolfgang Schuster

Am 30.11.2012 um 17:14 schrieb Vyatcheslav Yatskovsky yatskov...@gmail.com:

 Hi
 
 I want figure names to be 'Рисунок #' instead of 'Figure #'.
 
 If I remember right, it was
 \language[ru]
 that did the localization. But I get 'Figure'.
 
 How to localize figure names?

Use \mainlnaguage[ru].


The commands are supposed to be used in this form:

\mainlanguage[…] % changes labels and global hyphenation patterns

\starttext
text in main language {\language[…]Text in another language} and again main 
language
\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt Minimal Installer for Windows

2012-11-30 Thread Vyatcheslav Yatskovsky

Hi again,

 is it possible to add an option to NOT add path to Ctx binaries to PATH?
This may collide with TeXLive users, and also when one switches among 
more Ctx versions.


There is such an option, uncheck Set environment variables globally.

BTW: Where the new installer is available?

I hope it will be added to new server distribution folder. (I asked 
Mojca for that).


Meanwhile, use this temporary link
http://www.sendspace.com/file/051tea

Regards,
Vyatcheslav
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Bill Meahan

On 11/30/2012 11:05 AM, Hans Hagen wrote:

On 11/30/2012 10:58 AM, Steve White wrote:


5) There was also a report that OpenType kerning doesn't work in some
E-Book readers (I know this isn't the forum for that, but ...) .  My
iriver Story kerns very nicely text in FreeSerif.  Can I get an example
of an E-reader for which kerning fails?  (I really don't doubt that they
exist!)


Natively I suppose? If a pdf file is viewed on an ebook reader it's 
not the ereader's issue.


Hans


PDF preserves typography IF the fonts are on the machine or embedded in 
the document. That includes kerning.


EPUB and Kindle are based on XHTML and pay no attention to any 
typography or kerning set by the creator. The *user* chooses the 
typeface and line-spacing while the text width is either the width of 
the screen or the width of the window if run on PC,Mac al. Any kerning 
is strictly a function of the E-reader and the particular typeface 
(font) chosen by the user.


The EPUB3 spec alleviates this somewhat as it allows font embedding.


--
Bill Meahan
Westland, Michigan USA

___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi Hans, Bill,

Yes, I'm personally aware of how PDF works.

This came from Pablo, who has since told me he was *not* referring to PDF
files, but EPUB books.  So he is referring to the native font renderer.

That's all I know about it, except that kerning works on my own reader.

Anyway, this really isn't a question for this forum.


On Fri, Nov 30, 2012 at 5:39 PM, Bill Meahan subscribed_li...@meahan.netwrote:

 On 11/30/2012 11:05 AM, Hans Hagen wrote:

 On 11/30/2012 10:58 AM, Steve White wrote:

  5) There was also a report that OpenType kerning doesn't work in some
 E-Book readers (I know this isn't the forum for that, but ...) .  My
 iriver Story kerns very nicely text in FreeSerif.  Can I get an example
 of an E-reader for which kerning fails?  (I really don't doubt that they
 exist!)


 Natively I suppose? If a pdf file is viewed on an ebook reader it's not
 the ereader's issue.

 Hans


 PDF preserves typography IF the fonts are on the machine or embedded in
 the document. That includes kerning.

 EPUB and Kindle are based on XHTML and pay no attention to any typography
 or kerning set by the creator. The *user* chooses the typeface and
 line-spacing while the text width is either the width of the screen or the
 width of the window if run on PC,Mac al. Any kerning is strictly a
 function of the E-reader and the particular typeface (font) chosen by the
 user.

 The EPUB3 spec alleviates this somewhat as it allows font embedding.


 --
 Bill Meahan
 Westland, Michigan USA


 __**__**
 ___
 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 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/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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi Hans,


On Fri, Nov 30, 2012 at 4:38 PM, Hans Hagen pra...@wxs.nl wrote:

 On 11/30/2012 4:30 PM, luigi scarso wrote:

  What is the reason for installing the latest version of ConTeXt?  Is this
 \showfontkerns only in versions newer than 2012.05.30 11:26 MKIV ?


 in that version it was an add-on module, but in the meantime it's in the
 core


That would explain part of my problems.

If possible, I would like to get the distro version working, before moving
to the latest version.

Is this add-on module in some Debian package, or must one install it by
hand?
If the latter, what would be involved?

Thanks!
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Hans Hagen

On 11/30/2012 7:12 PM, Steve White wrote:

Hi Hans,


On Fri, Nov 30, 2012 at 4:38 PM, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:

On 11/30/2012 4:30 PM, luigi scarso wrote:

What is the reason for installing the latest version of
ConTeXt?  Is this
\showfontkerns only in versions newer than 2012.05.30 11:26
MKIV ?


in that version it was an add-on module, but in the meantime it's in
the core


That would explain part of my problems.

If possible, I would like to get the distro version working, before
moving to the latest version.

Is this add-on module in some Debian package, or must one install it by
hand?
If the latter, what would be involved?


I think it was part of a set of modules we used for testing (some ended 
up in the distribution, some didn't) so i fear that you need a recent 
context; handy anyway, as things might have been improved and I wonder 
if there are many context users using an old version, given that luatex 
/ mkiv / mplib / gyre fonts are progressing.




-
  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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi, Hans,

Sorry about the accidental post

I'm struggling with gmail's new input interface...very hard not to top-post.


On Fri, Nov 30, 2012 at 7:15 PM, Steve White stevan.wh...@gmail.com wrote:

 Hi Hans,

 On Fri, Nov 30, 2012 at 5:05 PM, Hans Hagen pra...@wxs.nl wrote:

 On 11/30/2012 10:58 AM, Steve White wrote:


  3) In most applications, the script of a run of text is determined from
 the Unicode.  This is the assumption made in FreeFont.  The GNU FreeFont
 policy starts from its essence as a Unicode font, in which no particular
 script is default. (Some generic features that are not specific to any
 script, are in {dflt,dflt}.)

 There was a suggestion that Latin kerns should be activated by
 {script,lang}={dflt,dflt}.  Let me ask, should Devanagari kerns also be
 activated by {dflt, dflt}?  If not, why?


 because one text can contain multiple scripts



 This is interesting.

There are different notions of text here, depending on point of view.

Certainly a sentence could contain a mixture of scripts.

When I said run of text I meant it from the point of view of how font
featues are applied to text.  Usually it is a small chunk of text, with
chunks separated by white space or other delimiters.

In web browsers, etc, if a run of text is, say, from the Armenian Unicode
range, the script is judged to be Armenian for the purposes of matching
OpenType lookups.
(The information of what *language* is meant by the text must be supplied
otherwise, in this case, in a 'lang' attribute).

Now, you could imgaine applying an OpenType lookup to, say, a Malayalam
letter immediately followed by an Arabic letter, but this is .. I think...
really pointless.

Even in text containing very mixed scripts, at least the words from the
different scripts are separated by white space (or other punctuation etc).

So the mechanism of determining the script of a run of text does
typically make good sense.

That all said:

It's not clear to me how this is implemented in ConTeXt.  I'll play with it
once I have some examples working.  My guess is, the author has to
explicitly indicate the script each run of text (by specifying the
attributes of the font to apply to the run).
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread luigi scarso
On Fri, Nov 30, 2012 at 7:12 PM, Steve White stevan.wh...@gmail.com wrote:

 If possible, I would like to get the distro version working, before moving
 to the latest version.
hm, hard and useless
 Is this add-on module in some Debian package, or must one install it by
 hand?
 If the latter, what would be involved?
no *deb package, as far I know.
We usually  have the latest  context mkiv beta as reference, plus some
currents.
It's quite common that mkiv from texlive is too old (and those ones
form the distro too). but it's not a problem because installation is
easy.


--
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] problems with units

2012-11-30 Thread Romain Diss
Le jeudi 29 novembre 2012, Andreas Mang a écrit :
 Hi there,
 
 I encountered some problems with the built in units command in MKIV. I
 provide a minimal example which should demonstrate my problems. Maybe I am
 doing something wrong...

 \setupbodyfont[pagella]
 \starttext
 \unit{11,1e-1 micro mol per second} \par 
 $\unit{11,1e-1 micro mol per second}$ \par
 \unit{11,1e-1 per second} \par
 \unit{11,1e-1 / second} \par
 \stoptext
Don't know for the first two, but the last two should be replaced by:
\unit{11,1e-1 inverse second}

All the best.


-- 
Romain Diss
romain.d...@yahoo.fr
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Hi


On Fri, Nov 30, 2012 at 8:07 PM, Bill Meahan subscribed_li...@meahan.netwrote:

 On 11/30/2012 01:08 PM, Steve White wrote:

 Hi Hans, Bill,




 That's all I know about it, except that kerning works on my own reader.


 That's entirely up to the reader. It's nice when the reader does as it's
  not part of the EPUB2 specification which is what most current systems
 use. EPUB3 is very new and hasn't been widely implemented yet.


 Anyway, this really isn't a question for this forum.


 Actually, it is. ConTeXt is capable of generating EPUB2 as well as PDF (no
 conversion program required) so behavior of the entire system is germane

 Aha.  That throws some light on some things Pablo was saying...
I did not know this.  I'm interested and want to experiment.
I have always made E-Books by hand (well, with vi, and other command-line
tools).
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Steve White
Luigi,

OK, I get it. (I have wasted a couple of hours, it seems.)

I'll do as you first recommeded.


On Fri, Nov 30, 2012 at 8:37 PM, luigi scarso luigi.sca...@gmail.comwrote:

 On Fri, Nov 30, 2012 at 7:12 PM, Steve White stevan.wh...@gmail.com
 wrote:
 
  If possible, I would like to get the distro version working, before
 moving
  to the latest version.
 hm, hard and useless
  Is this add-on module in some Debian package, or must one install it by
  hand?
  If the latter, what would be involved?
 no *deb package, as far I know.
 We usually  have the latest  context mkiv beta as reference, plus some
 currents.
 It's quite common that mkiv from texlive is too old (and those ones
 form the distro too). but it's not a problem because installation is
 easy.


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

 ___

___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Hans Hagen

On 11/30/2012 10:25 PM, Steve White wrote:

Luigi,

OK, I get it. (I have wasted a couple of hours, it seems.)

I'll do as you first recommeded.


When you have a working context, you can also try the update process: 
just run the first-setup script again and it will sync. Normally the 
minimals are synced every 30 minutes (or nowadays maybe 15). Keep in 
mind that these days Mojca is moving the whole setup to a new server.


I've uploaded a beta that supports this:

\starttext

\enabletrackers[visualizers.fontkern]
\setupscripts[features=auto]
\definedfont[freeserif*default]

\language[en]Whereas recognition of the inherent dignity and of the 
equal and inalienable
rights of all members of the human family is the foundation of freedom, 
justice

and peace in the world.

\language[gr]Επειδή η αναγνώριση της αξιοπρέπειας, που είναι σύμφυτη σε 
όλα τα μέλη της ανθρώπινης
οικογένειας, καθώς και των ίσων και αναπαλλοτρίωτων δικαιωμάτων τους 
αποτελεί

το θεμέλιο της ελευθερίας, της δικαιοσύνης και της ειρήνης στον κόσμο.

\language[en]Whereas disregard and contempt for human rights have 
resulted in barbarous acts
which have outraged the conscience of mankind, and the advent of a world 
in which
human beings shall enjoy freedom of speech and belief and freedom from 
fear and

want has been proclaimed as the highest aspiration of the common people.

\language[gr]Επειδή η παραγνώριση και η περιφρόνηση των δικαιωμάτων του 
ανθρώπου οδήγησαν σε
πράξεις βαρβαρότητας, που εξεγείρουν την ανθρώπινη συνείδηση, και η 
προοπτική ενός
κόσμου όπου οι άνθρωποι θα είναι ελεύθεροι να μιλούν και να πιστεύουν, 
λυτρωμένοι από
τον τρόμο και την αθλιότητα, έχει διακηρυχθεί ως η πιο υψηλή επιδίωξη 
του ανθρώπου.


\stoptext

Here

  \enabletrackers[visualizers.fontkern]

is actually the official way to trigger the kern tracker (we keep some 
\commands around for old times sake) as it's part of more visual 
debugging features.


  \setupscripts[features=auto]

This one is new and will do an analysis pass and set triggers for the so 
called dynamic feature handler (already present, so it was not that much 
work). One has to explicitly enable this trick and one can never depend 
on such things. Contrary to other tricks it does not obey grouping 
(could be done but adds overhead.)


  \definedfont[freeserif*default]

This triggers the font. One can comment the \setupscripts line to see 
kerns go away.


I only defined latn and grek:

\definefontfeature[latn][script=latn]
\definefontfeature[grek][script=grek]

so it uses the regular feature definition mechanism. If this is 
considered useful we can add more and also think about a namespace (i.e. 
several predefined setups). In that case I will add the code that obeys 
grouping. But in order to do that we need tests and that's up to users.


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
___

[NTG-context] Including movies in pdf files

2012-11-30 Thread Aditya Mahajan

Hi,

I was updating the wiki entry on \externalfigures 
(http://wiki.contextgarden.net/Command/externalfigure) and noticed that I 
cannot get ConTeXt to include a movie.


I tried the following

\starttext
\externalfigure[clip.mov]
\stoptext

(where clip.mov is a quicktime movie distributed with Mathematica, which I 
copied to the current directory).


The movie file is 16K and the resultant PDF file is 4.5K, which means that 
the movie is not embedded in the PDF (which in itself is not a problem, 
because, IIUC, context does not embed the movie in the pdf file anyways). 
However, when I open the file in acroread 9.5.1 (on Linux), and no movie 
is shown in the pdf file.


So, does ConTeXt support including movies in pdf files, and if so, can 
someone provide a minimal working example.


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
___


Re: [NTG-context] Localization

2012-11-30 Thread Vyatcheslav Yatskovsky

\mainlanguage[…] % changes labels and global hyphenation patterns

\starttext
text in main language {\language[…]Text in another language} and again main 
language
\stoptext



Thank you, Wolfgang!

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] 'kern': TrueType table and GPOS lookup feature

2012-11-30 Thread Pablo Rodríguez
Thanks for all replies Hans, Steve, Bill and Luigi.

Sorry for the confusion generated by my questions. I'll try to summarize
the whole thing as brief as I can.

I happen to have an Sony PRS-T1 reader in which I noticed that the
FreeSerif fonts where wrong kerned. I thought it might be something
wrong in the fonts and I used ConTeXt to check that.

Until this morning I asked whether TrueType kerning was enabled when all
OpenType features were disabled, I took for granted that that old
TrueType kerning was enabled when the modern OpenType kerning wasn't.

Now I know I was wrong. But I reported a bug at
https://savannah.gnu.org/projects/freefont/ and posted the PDF output
from ConTeXt.

ConTeXt is perfectly fine with FreeSerif, FreeSerif has valid kerning
and the problem is in the Sony PRS-T1 reader that cannot read the
kerning and ligature information.

I have even discovered that the Sony PRS-T1 ereader has a bug that
prevents the display of the FreeSerif bold font.

So, I knew that the ereader had some limitations, but I couldn't imagine
it was so buggy.

The annoying issue here is that reporting the bug may fix the issue and
Adobe might release a new version of the reader. But unless Sony
releases a new firmware, those bugs are there to stay.

Many thanks for your help and apologies for the confusion,



Pablo
-- 
http://www.ousia.tk
___
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
___