[NTG-context] Error when using external fonts

2010-01-07 Thread Vladimir Lomov
Hi.
Consider small example:

\usetypescriptfile[type-dejavu]
\usetypescript[dejavu]
%\usetypescript[cambria]

\setupbodyfont[dejavu,12pt]
%\setupbodyfont[cambria,12pt]
\starttext
This is default sample text.

Текст для пробы.
\stoptext


I run context from context-minimals but get error:
...skipped...
!load otf   : loading: /usr/share/fonts/TTF/DejaVuSerif.ttf (hash:
dejavuserif)
!load otf   : file size: 328908
!load otf   : enhancing ...
! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-otf.lua:1243:
attempt to get length of local 'splt' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/font-otf.lua:1243: in
function 'enhancer'
...text/tex/texmf-context/tex/context/base/font-otf.lua:198: in
function 'enhance'
...text/tex/texmf-context/tex/context/base/font-otf.lua:260: in 
function 'load'
...text/tex/texmf-context/tex/context/base/font-otf.lua:1565: in
function 'otf_to_tfm'
...text/tex/texmf-context/tex/context/base/font-otf.lua:1781: in
function 'read_from_open_type'
...text/tex/texmf-context/tex/context/base/font-def.lua:476: in
function <...text/tex/texmf-context/tex/context/base/font-def.lua:456>
(tail call): ?
(tail call): ?
...text/tex/texmf-context/tex/context/base/font-def.lua:308: in 
function 'read'
...text/tex/texmf-context/tex/context/base/font-def.lua:585: in 
function 'read'
...text/tex/texmf-context/tex/context/base/font-ctx.lua:360: in
function 'command_2'
:1: in main chunk.
\lowleveldefinefont ...dimexpr \textface \relax )}
  \edef \somefontspec {at \s...
\xxdododefinefont ...efont {#4}\newfontidentifier
  \fi \csname \newfontidenti...
\applyfontclassstrategies ...\fontsize \endcsname
  \else \expandafter \fontcl...
\synchronizefont ...lse \applyfontclassstrategies
  \fi \autofontsizefalse \if...
\rm ->\ifmmode \mathrm \else \normalrm
   \fi
\doswitchstyle ...e \csname \...@style@ #1\endcsname
  \edef \fontstyle {#1}\ifmm...
...
l.5 \setupbodyfont[dejavu,12pt]

?
...skipped...
(log file produced by context --nonstopmode sample1.tex is attached).
Same for Cambria.

When I run context from TL2009 all works fine (I got pdf file with dejavu font).

---
WBR, Vladimir Lomov
(sample1.tex

ConTeXt  ver: 2010.01.05 16:47 MKIV  fmt: 2010.1.8  int: english/english

system  : cont-new loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-lua.tex) (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-tmf.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-tmf.mkiv)) (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-siz.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-otf.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : sample1.top loaded
%
%	begin of optionfile
%
%	% runtime options files (command line driven)
%	\unprotect
%	% special commands, mostly for the ctx development team
%	% feedback and basic job control
%	\nonstopmode
%	% handy for special styles
%	\startluacode
%	document = document or { }
%	document.arguments={
%	 ["nonstopmode"]=true,
%	}
%	document.files={
%	 "sample1.tex",
%	}
%	\stopluacode
%	% process info
%	\setupsystem[inputfile=sample1.tex]
%	\setupsystem[\c!n=1,\c!m=1]
%	% modes
%	% options (not that important)
%	\startsetups *runtime:options
%	\setupoutput[pdftex]
%	\stopsetups
%	% styles and modules
%	\startsetups *runtime:modules
%	\stopsetups
%	% done
%	\protect \endinput
%
%	end of optionfile
%
(sample1.top
)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
(/usr/local/opt/texlive/context/tex/texmf-context/tex/context/third/typescripts/type-dejavu.tex (/usr/local/opt/texlive/context/tex/texmf-context/tex/context/third/typescripts/type-dejavu.mkiv))
!load otf   : loading: /usr/share/fonts/TTF/DejaVuSerif.ttf (hash: dejavuserif)
!load otf   : file size: 328908
!load otf   : enhancing ...
! LuaTeX error ...text/tex/texmf-context/

Re: [NTG-context] TeX Gyre and (no) Cyrillic

2010-01-07 Thread Vladimir Lomov
Hi.

2010/1/8 Vyatcheslav Yatskovsky :
> Dear Mojca
>>
>> Did you read the message about TeX Gyre?
>>
>
> O! I overlooked it.
>
> This will not affect me much since I use standard Windows fonts and
> sometimes Adobe. But the poor thing is that ConTeXt will not work with
> Cyrillic "out of the box" anymore.
Nevertheless, as I already mentioned, wiki.contextgarden.net/Russian
shows examples with TeX Gyre fonts and it is worth to update them (I'm
now working on that).

> However, since we count Cyrillic users using fingers of one hand :), I think
> you can drop old Gyre fonts and don't bother yourself with it. Anyone will
> seek another solution, and Gyre fonts never was of top quality, IMHO.
I doubt that quality appears with beginning of a font.

Don't forget about many another users which what to use Cyrillic
script but doesn't have MS or Adobe fonts (like me, I don't have any
product from MS so don't have they fonts or Adobe ones, Yes I took MS
fonts from machines with MS OS installed but this is illegal, Yes I
could download Adobe fonts from internet using P2P but this is illegal
too).

I prefer fonts what were used in my country (Russia) to print science
books in 70-80 yy of XX cent.

---
WBR, Vladimir Lomov
___
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] TeX Gyre and (no) Cyrillic

2010-01-07 Thread Vyatcheslav Yatskovsky

Dear Mojca

Did you read the message about TeX Gyre?
   

O! I overlooked it.

This will not affect me much since I use standard Windows fonts and 
sometimes Adobe. But the poor thing is that ConTeXt will not work with 
Cyrillic "out of the box" anymore.


However, since we count Cyrillic users using fingers of one hand :), I 
think you can drop old Gyre fonts and don't bother yourself with it. 
Anyone will seek another solution, and Gyre fonts never was of top 
quality, IMHO.


Thank you for caring about us!
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
___


[NTG-context] sectionstopper

2010-01-07 Thread Wolfgang Schuster
Hi Hans,

how I can i put symbols at both sides of a header, with sectionstopper
i can get only on at the right side of the number but not at the left
and tricks like numbercommand or setuplabeltext do not affect references
and the content entries.

In the following example i want the chapter number to be printed as

1) Chaptertitle -> sectionsegments=2:2

and the section number as

(1) Sectiontitle -> sectionsegments=3:3

but a reference in the test should show the complete number in the form '1)(1)'
and the same should appear in the table of contents.

Best regards,
Wolfgang


\setuphead[chapter][sectionsegments=2:2,sectionstopper=)]
\setuphead[section][sectionsegments=3:3,sectionstopper=),numbercommand=(]

% How can I print the section number as '1) (1)' in the toc?

%\setuplist[section][sectionsegments=2:3,numbercommand=(]

\setupreferencestructureprefix[default][prefixsegments=2:100]
% uncomment to get the correct result for references in the text, brr
%\definestructureseparatorset  [default][,(][]

\starttext

\completecontent

\chapter[sec:knuth]{Knuth}

\input knuth

\section[sec:ward]{Ward}

\input ward

\page

see \in{section}[sec:ward] at \at{page}[sec:ward]

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


Re: [NTG-context] problem with url in \setupexternalfigures

2010-01-07 Thread Hans Hagen

On 7-1-2010 10:14, Peter Münster wrote:

Hello,

This used to work:

\setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
\starttext
\externalfigure[hacker-test]
\stoptext

But with the latest version, the figure is not found...


hm, i didn't realize that one would put an url there ... i'll look into it

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


Re: [NTG-context] mkII tabulate midline bug

2010-01-07 Thread Hans Hagen

On 7-1-2010 9:45, Thomas Floeren wrote:



there seems to be a typo in the recent versions of tabl-tbl.mkii:

line 1225: \vskip1\topskip\allowbreak1\vskip-\topskip

(should probably read: \vskip1\topskip\allowbreak\vskip-\topskip)


  \vskip1\topskip\allowbreak\vskip-1\topskip


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


[NTG-context] problem with url in \setupexternalfigures

2010-01-07 Thread Peter Münster
Hello,

This used to work:

\setupexternalfigures[directory={\currentvalue, http://pmrb.free.fr/tmp/}]
\starttext
\externalfigure[hacker-test]
\stoptext

But with the latest version, the figure is not found...

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


[NTG-context] mkII tabulate midline bug

2010-01-07 Thread Thomas Floeren
 
there seems to be a typo in the recent versions of tabl-tbl.mkii:

line 1225: \vskip1\topskip\allowbreak1\vskip-\topskip

(should probably read: \vskip1\topskip\allowbreak\vskip-\topskip)


example:

\starttabulate [|l|]
\NC text \NC\NR\FL
\NC midline ok \NC\NR\ML
\NC midline messed up \NC\NR\ML
\NC text \NC\NR\LL
\stoptabulate



ConTeXt  ver: 2010.01.05 16:47 MKII  fmt: 2010.1.7  int: english/english

best wishes
Thomas

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