Re: [NTG-context] Windows ConTeXt shows crappy font metrics and font size

2013-10-10 Thread Hans Hagen

On 10/10/2013 6:58 AM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \usemodule[simplefonts]
 \setmainfont[Gill Sans MT]
 \setsansfont[Arial Narrow]
 \starttext
 \input knuth\par
 \ss\input knuth
 \stoptext

It works right in Linux (http://www.ousia.tk/gs-linux.pdf and
http://www.ousia.tk/gs-linux.log), but it shows crappy font metrics and
size in Windows (http://www.ousia.tk/gs-win.pdf and
http://www.ousia.tk/gs-win.log).

Both use a beta from 07/10/2013 and the Windows version was downloaded
in Linux.

Isn”t this a bug?


Normally that's an indication that the units are unknown. They are 
different fontfiles so you cannot compare their behaviour. You can try 
renaming the wrong ttf to otf.


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] fighting fonts

2013-10-10 Thread Hans Hagen

On 10/10/2013 1:15 AM, Ciro A. Soto wrote:

Hi everyone,
I am trying to reproduce a novel I wrote with context years ago. This
time is spanish.
I use context only for books, not daily, so now I can't figure out how
to use fonts.
I have been going around and around for days avoiding to look for help
here for such a simple thing, but I surrendered. My last attempt was
using the simplefonts module.
Here is what I get (linux-64 ubuntu):

* texexec --pdf novel.tex*


you mix up old an new (mkii an dmkiv)

run this:

 context novel.tex

-
  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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
Hi,

I have this error:

))
structuresectioning  title @ level 2 : 0.0 - Funció quadràtica
structuresectioning  section @ level 3 : 0.0.1 - Seccions còniques
structuresectioning  section @ level 3 : 0.0.2 - Construcció 
geomètrica d'una paràbola
structuresectioning  subsection @ level 4 : 0.0.2.1 - Definició
! Undefined control sequence.

system   tex  error on line 57 in file 
/home/xan/SYNC/cepasud-raw-mercurial/classe/ESPA4/planificació/Tema1-Funció-quadràtica/97-Quadràtica-a-la-realitat.conTeXt:
 Undefined control sequence ...

47 {\framed[frame=off]{
48 \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={
49   markings,% switch on markings
50   mark=% actually add a mark
51   between positions 0 and 1 step 0.5
52   with
53   {
54\draw[color=gray] (0,-2pt) -- (0,2pt);
55   }
56 }]
57   \coordinate (F) at (0,0.25);
58 \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$};
59 \draw[color=blue, very thick] plot (\x,{(\x)^2});
60 
61 \foreach \x in {1,0.5,0.75}
62 {
63\draw[very thick,color=green, loosely dashed,postaction={decorate}] 
(\x, -0.25) -- (\x , {(\x)^2});
64\draw[very thick,color=green, loosely dashed,postaction={decorate}] 
(\x , {(\x)^2}) -- (F);
65 }
66 \filldraw[color=red] (F) circle (0.5pt);
67 \draw (F) node[anchor=north] {$F$};


\tikz@nlt ^^@-\pgfapproximatenonlineartranslation 

\tikz@fig@continue ...e@transformations \tikz@nlt 
  \setbox \tikz@whichbox =\h...
to be read again 
;
l.57 \coordinate (F) at (0,0.25);
   
? 


with this code:


% Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25)
\placefigure[here]
[taula:construcció-paràbola-1]
{Paràbola amb directriu $r$ i focus $F$}
{\framed[frame=off]{
\starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={
  markings,% switch on markings
  mark=% actually add a mark
  between positions 0 and 1 step 0.5
  with
  {
   \draw[color=gray] (0,-2pt) -- (0,2pt);
  }
}]
\coordinate (F) at (0,0.25);
\draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$};
\draw[color=blue, very thick] plot (\x,{(\x)^2});

\foreach \x in {1,0.5,0.75}
{
   \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, 
-0.25) -- (\x , {(\x)^2});
   \draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , 
{(\x)^2}) -- (F);
}
\filldraw[color=red] (F) circle (0.5pt);
\draw (F) node[anchor=north] {$F$};
\stoptikzpicture}}



this happens when I updated to the latest version:
$ sh ./first-setup.sh --context=beta --modules=all --engine=luatex

What happens there?

Thanks,
Xan
___
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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Hans Hagen

On 10/10/2013 10:33 AM, Xan wrote:


\tikz@nlt ^^@-\pgfapproximatenonlineartranslation


maybe you need to load some more tikz files

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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

 with this code:
 
 
 % Paràbola amb Focus = (0,0.25) i Directriu (x,-0.25)
 \placefigure[here]
 [taula:construcció-paràbola-1]
 {Paràbola amb directriu $r$ i focus $F$}
 {\framed[frame=off]{
 \starttikzpicture[domain=(-1):1, scale=4, smooth,decoration={
   markings,% switch on markings
   mark=% actually add a mark
   between positions 0 and 1 step 0.5
   with
   {
\draw[color=gray] (0,-2pt) -- (0,2pt);
   }
 }]
 \coordinate (F) at (0,0.25);
 \draw[very thick] (-2.2,-0.25) -- (2.2,-0.25) node[right] {$r$};
 \draw[color=blue, very thick] plot (\x,{(\x)^2});
 
 \foreach \x in {1,0.5,0.75}
 {
\draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x, 
 -0.25) -- (\x , {(\x)^2});
\draw[very thick,color=green, loosely dashed,postaction={decorate}] (\x , 
 {(\x)^2}) -- (F);
 }
 \filldraw[color=red] (F) circle (0.5pt);
 \draw (F) node[anchor=north] {$F$};
 \stoptikzpicture}}
 
 
 
 this happens when I updated to the latest version:
 $ sh ./first-setup.sh --context=beta --modules=all --engine=luatex
 
 What happens there?

Hard to tell. Please provide a minimal example next time. I tried to
condense your example, but I'm getting a different error than you
do. Maybe I deleted too much or my syntax is invalid. I don't really
know TikZ.

\usemodule [tikz]
\usetikzlibrary [decorations]

\starttext
  \starttikzpicture
[decoration={
   mark= between positions 0 and 1 step 0.5
   with { \draw (0,-2pt) -- (0,2pt);}}]
\draw node {foo};
  \stoptikzpicture
\stoptext

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Setting colour in \processisolatedwords sometimes fails

2013-10-10 Thread Marco Patzer
Hi,

setting the colour in \processisolatedwords doesn't always work.

\defineframed
  [myframe]
  [foregroundstyle=italic,
   foregroundcolor=blue]

\def\mycmd{\blue}

\starttext
  %% frame works
  \myframe{foo bar}

  %% colour works
  \processisolatedwords{foo bar}\mycmd

  %% style is applied, colour is ignored
  \processisolatedwords{foo bar}\myframe
\stoptext

Why is the style applied but not the colour?

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
Minimal example:

% Regime
\enableregime[utf]

% Choose a language, and associated hyphenation rules.
\mainlanguage[ca]

\usemodule [tikz]
\usetikzlibrary [decorations]
\usetikzlibrary[decorations.markings]



\starttext



\starttext
  \starttikzpicture
[decoration={
   markings,
   mark=
   between positions 0 and 1 step 0.5
   with {
\draw (0,-2pt) -- (0,2pt);
   }
 }
]
\coordinate (F) at (0,0);
\draw[very thick,color=green, loosely dashed,postaction={decorate}] (0,1) 
-- (F);
  \stoptikzpicture
\stoptext

\stoptext


does not work.

Without \coordinate it works. What fails?

Thanks in advance,
Xan.
___
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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

 Minimal example:
 
 % Regime
 \enableregime[utf]

Not required if you use MkIV

 does not work.

It works here with 2013.10.09 10:36 using MkIV and MkII. At least I
don't get an error and a PDF with a few green blots is created.
What's the error message you get for that minimal example? Are you
running MkII or MkIV?

 Without \coordinate it works. What fails?

If you remove \coordinate it should fail actually, since the
coordinate for (F) is unknown. Or did you mean you replaced (F) with
a coordinate like (0,2)?

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
 On 2013–10–10 Xan wrote:
 
  Minimal example:
  
  % Regime
  \enableregime[utf]
 
 Not required if you use MkIV
 
  does not work.
 
 It works here with 2013.10.09 10:36 using MkIV and MkII. At least I
 don't get an error and a PDF with a few green blots is created.
 What's the error message you get for that minimal example? Are you
 running MkII or MkIV?
 

MKIV (read above)

[xan@rulot proves-context]$ context prova.tex 

mtx-context | run 1: luatex 
--fmt=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=prova 
--lua=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --c:currentrun=1 --c:fulljobname=./prova.tex 
--c:input=./prova.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) 
 \write18 enabled.
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.10.09 10:36 MKIV beta  fmt: 2013.10.10  int: english/english

system   'cont-new.mkiv' loaded
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'prova', input './prova', result 'prova'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/home/xan/fems/proves-context/prova.tex
resolversmodules  'tikz' is loaded
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex
loading  ConTeXt User Module / tikz
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex
loading  ConTeXt User Module / pgf
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex
loading  ConTeXt User Module / pgfcor
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex
loading  ConTeXt User Module / pgfsys
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex
loading  ConTeXt User Module / pgfrcs
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex
loading  ConTeXt User Module / pgfmodules
) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex))
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
 (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
 (prova.pgf)) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code!
 .tex)) (/
usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex
fontsbeware: no fonts are loaded yet, using 'lm mono' in box
) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)))
 (/usr/local/bin/!
 context/t
ex/texmf-modules/tex/generic/pgf/math/pgfmathfloat.code.tex)) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
 

Re: [NTG-context] Setting colour in \processisolatedwords sometimes fails

2013-10-10 Thread Hans Hagen

On 10/10/2013 11:29 AM, Marco Patzer wrote:

Hi,

setting the colour in \processisolatedwords doesn't always work.

\defineframed
   [myframe]
   [foregroundstyle=italic,
foregroundcolor=blue]

\def\mycmd{\blue}

\starttext
   %% frame works
   \myframe{foo bar}

   %% colour works
   \processisolatedwords{foo bar}\mycmd

   %% style is applied, colour is ignored
   \processisolatedwords{foo bar}\myframe
\stoptext

Why is the style applied but not the colour?


because we operate on snippets of boxes (so that one can have whatever 
arguments)


I'll add this:

  \applytosplitstringchar  \myframe{eleven twelve}\par
  \applytosplitstringword  \myframe{eleven twelve}\par
  \applytosplitstringline  \myframe{eleven twelve}\par
  \applytosplitstringcharspaced\myframe{eleven twelve}\par
  \applytosplitstringwordspaced\myframe{eleven twelve}\par
  \applytosplitstringlinespaced\myframe{eleven twelve}\par

which operates on strings. Less robust but ok for simple strings like 
your foo bar.


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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

 ! Undefined control sequence.
 
 system   tex  error on line 28 in file 
 /home/xan/fems/proves-context/prova.tex: Undefined control sequence ...
 
 18   \starttikzpicture
 19 [decoration={
 20markings,
 21mark=
 22between positions 0 and 1 step 0.5
 23with {
 24 \draw (0,-2pt) -- (0,2pt);
 25}
 26  }
 27 ]
 28   \coordinate (F) at (0,0);

I can reproduce it now. Funnily it works on my regular installation
(same version). When I run it on a clean minimal installation I get
the same error. No clue what's going on and I don't have much time
to check at the moment.

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Windows ConTeXt shows crappy font metrics and font size

2013-10-10 Thread Hans Hagen

On 10/10/2013 9:18 AM, Hans Hagen wrote:

On 10/10/2013 6:58 AM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \usemodule[simplefonts]
 \setmainfont[Gill Sans MT]
 \setsansfont[Arial Narrow]
 \starttext
 \input knuth\par
 \ss\input knuth
 \stoptext

It works right in Linux (http://www.ousia.tk/gs-linux.pdf and
http://www.ousia.tk/gs-linux.log), but it shows crappy font metrics and
size in Windows (http://www.ousia.tk/gs-win.pdf and
http://www.ousia.tk/gs-win.log).

Both use a beta from 07/10/2013 and the Windows version was downloaded
in Linux.

Isn”t this a bug?


Normally that's an indication that the units are unknown. They are
different fontfiles so you cannot compare their behaviour. You can try
renaming the wrong ttf to otf.


thanks to luigi testing to the extreme with these files we figured out 
that we can catch the issue (more checking at the context end, maybe 
some day some better checking at the luatex backend end)


so, the upcoming beta might work beta, which doesn't mean that one 
should be sloppy with filenames (as mixed usage of foo.TTF FOO.TTF 
FOO.ttf foo.ttf will for sure have side effects) .. one reason why i 
often lowercase font filenames and keep 'm all in texmf-fonts


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] Windows ConTeXt shows crappy font metrics and font size

2013-10-10 Thread luigi scarso
On Thu, Oct 10, 2013 at 5:51 PM, Hans Hagen pra...@wxs.nl wrote:

 On 10/10/2013 9:18 AM, Hans Hagen wrote:

 On 10/10/2013 6:58 AM, Pablo Rodriguez wrote:

 Dear list,

 I have the following sample:

  \usemodule[simplefonts]
  \setmainfont[Gill Sans MT]
  \setsansfont[Arial Narrow]
  \starttext
  \input knuth\par
  \ss\input knuth
  \stoptext

 It works right in Linux 
 (http://www.ousia.tk/gs-linux.**pdfhttp://www.ousia.tk/gs-linux.pdfand
 http://www.ousia.tk/gs-linux.**log http://www.ousia.tk/gs-linux.log),
 but it shows crappy font metrics and
 size in Windows 
 (http://www.ousia.tk/gs-win.**pdfhttp://www.ousia.tk/gs-win.pdfand
 http://www.ousia.tk/gs-win.log**).

 Both use a beta from 07/10/2013 and the Windows version was downloaded
 in Linux.

 Isn”t this a bug?


 Normally that's an indication that the units are unknown. They are
 different fontfiles so you cannot compare their behaviour. You can try
 renaming the wrong ttf to otf.


 thanks to luigi testing to the extreme with these files we figured out
 that we can catch the issue (more checking at the context end, maybe some
 day some better checking at the luatex backend end)

 so, the upcoming beta might work beta, which doesn't mean that one should
 be sloppy with filenames (as mixed usage of foo.TTF FOO.TTF FOO.ttf foo.ttf
 will for sure have side effects) .. one reason why i often lowercase font
 filenames and keep 'm all in texmf-fonts

This is also my way.
In this case I rename ARIALN.TTF in arialn.ttf, put it into the mkiv
standalone, and  keep ARIALN.TTF in a separate folder of the project. If
someone ask me for the font , I give
ARIALN.TTF, but I used arialn.ttf in the pdf.
The reason is that I keep separate OS fonts from the fonts of the projects
--- I can move the projects in different machines, I can update OS etc.
Of course there are also licensing issues to consider, but I consider it a
robust way.


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

[NTG-context] Simplefonts

2013-10-10 Thread Wolfgang Schuster
Hi all,

I’m happy to announce a new version of the simplefonts code. Thew new version 
of the code
is a complete rewrite and brings many changes.

1. The module is now part of the core and no external module is needed anymore.

2. The commands to select a font have changed to commands which fit better to 
context normal syntax.

3. I removed the keys to enable font expansion and protrusion, when you need 
them use \definefontfeature.


To use a font with the simplefonts code two ways are available. The first 
method is to create
one or more typefaces and load it with \setupbodyfont. A complete example for 
this is:

\definefontfamily [mainface] [serif] [DejaVu Serif]
\definefontfamily [mainface] [sans]  [DejaVu Sans]
\definefontfamily [mainface] [mono]  [DejaVu Sans Mono] [feature=none]
\definefontfamily [mainface] [math]  [TeX Gyre Pagella Math]

\setupbodyfont[mainface]

\starttext
\startlines
\rm DejaVu Serif
\ss DejaVu Sans
\tt DejaVu Sans Mono
\m{c^2 = a^2 + b^2}
\stoplines
\stoptext


The second method is similar to the old commands of the simplefonts module 
(e.g. \setmainfont)
where the font is enabled after it was set and no \setupbodyfont is necessary. 
Below is a example
for this method but I recommend to avoid this method because it’s slow when you 
set font a font
for each style in your document.

\setupfontfamily [serif] [DejaVu Serif]
\setupfontfamily [sans]  [DejaVu Sans]
\setupfontfamily [mono]  [DejaVu Sans Mono] [feature=none]
\setupfontfamily [math]  [TeX Gyre Pagella Math]

\starttext
\startlines
\rm DejaVu Serif
\ss DejaVu Sans
\tt DejaVu Sans Mono
\m{c^2 = a^2 + b^2}
\stoplines
\stoptext


Another feature of simplefonts is the ability to set a fallback font when you 
need certain glyphs
from a different font (e.g. for cyrillic ) which aren’t available in the 
mainfont of the document.
To set such a fallback font the code provides the \definefallbackfamily command 
where you
can set in the fourth argument the range for the replacement characters.

\definefallbackfamily [mainface] [serif] [DejaVu Serif] 
[range=cyrillic,force=yes]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]

\setupbodyfont[mainface]

\starttext

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

Re: [NTG-context] fighting fonts

2013-10-10 Thread Ciro A. Soto
Thank you Hans, it worked perfectly.

Ciro


ciro


Books you should read:

[image: Lead, Follow  Suceed] http://www.kavyata.com/lfs.html  [image:
The Guitar Maker] http://www.kavyata.com/tgm.html  [image: La Vida, El
Amor, La Mujer] http://www.kavyata.com/vam.html
My social profile: [image:
Facebook]http://www.facebook.com/profile.php?id=752641627 [image:
Twitter] http://www.twitter.com/CASotoAguirre


On Thu, Oct 10, 2013 at 3:20 AM, Hans Hagen pra...@wxs.nl wrote:

 On 10/10/2013 1:15 AM, Ciro A. Soto wrote:

 Hi everyone,
 I am trying to reproduce a novel I wrote with context years ago. This
 time is spanish.
 I use context only for books, not daily, so now I can't figure out how
 to use fonts.
 I have been going around and around for days avoiding to look for help
 here for such a simple thing, but I surrendered. My last attempt was
 using the simplefonts module.
 Here is what I get (linux-64 ubuntu):

 * texexec --pdf novel.tex*


 you mix up old an new (mkii an dmkiv)

 run this:

  context novel.tex

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

[NTG-context] Bug: Reloading Font

2013-10-10 Thread Thangalin
Hi,

A font causes mtxrun to hang upon reloading. Replicate:

mkdir $HOME/.fonts
cd $HOME/.fonts
wget http://whitemagicsoftware.com/Copperplate-ThirtyThreeBC.ttf
export OSFONTDIR=$HOME/.fonts
mtxrun --script fonts --reload

Expected Results

All the fonts in $HOME/.fonts and subdirectories are globbed and
imported, within a few seconds.

Actual Results

The program hangs at Copperplate 33BC font with the CPU locked at
100%. The process must be killed.

Kind regards.
___
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] graphictext bug?

2013-10-10 Thread Thangalin
Hi,

From the October 8, 2010 context mkiv MetaFun manual (section 8.6),
the following example does not produce any output beyond the caption:

\startuseMPgraphic{quotation}
  picture one ;
  one := image(
graphictext \MPstring{inputtext}
  scaled 1.5
  withdrawcolor .625blue
  withfillcolor .625white
  withpen pencircle scaled 1pt;
);
  picture two ;
  two := image(
graphictext \MPstring{author}
  scaled 2
  withdrawcolor .625red
  withfillcolor .625white
  withpen pencircle scaled 2pt ;
) ;
  currentpicture := one ;
  addto currentpicture also two
shifted lrcorner one
shifted - 1.125 lrcorner two
shifted (0, - 1.250 * ypart urcorner two) ;
  setbounds currentpicture to boundingbox currentpicture enlarged 3pt ;
\stopuseMPgraphic

\starttext
  \setMPtext{inputtext} {\vbox{\hsize 8.5cm \input zapf }}
  \setMPtext{author}{\hbox{\sl Hermann Zapf}}

  \placefigure{A text does not need to be an outline in order to be
typeset in an outline font.}
  {\useMPgraphic{quotation}}
\stoptext

Expected Results

Outlined text, as presented in section 8.6.

Actual Results

Mostly blank page. (Note, I changed text to inputtext to make sure
I wasn't using a keyword. The manual uses text.)

Environment

$ context --version

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file:
/home/username/bin/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2013.10.10 17:47

64-bit Linux

Kindest regards.
___
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
___