Re: [NTG-context] \textbar in texnansi

2006-11-26 Thread Hans Hagen
Taco Hoekwater wrote:
 Thomas A. Schmitz wrote:
   
 Hi,

 is there a reason why

 \definecharacter textbar 124

 is not in enco-ans.tex? It's part of the texnansi encoding.
 

 The probably just missed it because the file is not in glyph
 order.

 Cheers, taco

 @@ -114,6 +114,7 @@
   \definecharacter textasciitilde   158
   \definecharacter textbackslash 92
   \definecharacter textbraceleft123
 +\defiencharacter textbar  124
   \definecharacter textbraceright   125
   \definecharacter textunderscore95

   
ok, added 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] enco-ffr ?

2006-11-26 Thread Hans Hagen
Renaud Aubin wrote:
 An idea...
   
active chars ... always problematic
 Renaud (too tired this night to investigate, but tomorrow is another day)
   
so i'll wait for the test file before i look into it 

Hans 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Why must I move frame to center it?

2006-11-26 Thread Hans Hagen
John R. Culleton wrote:
 I am using some old code that Hans provided to create a pretty frame around 
 some text, for purposes of a Part  header page. Here is my current test 
 file:
 --
 \setupoutput[pdftex]
 \definepapersize[bok][width=6.0in,height=9.0in]
 \setuppapersize[bok][letter]
 \setuplayout[marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle]
 \setupcolors[state=start]
 \starttext
 %\startstandardmakeup
 \noheaderandfooterlines
 \startuseMPgraphic{bg}
 StartPage ;
   path p ; p := Page enlarged  -10mm ;
   path q ; q := Page enlarged -15mm ;
   drawoptions(withcolor .85white) ;
   fill reverse topboundaryq -- topboundaryp -- cycle ;
   fill reverse bottomboundary q -- bottomboundary p -- cycle ;
   drawoptions(withcolor .65white) ;
   fill reverse leftboundary   q -- leftboundary   p -- cycle ;
   fill reverse rightboundary  q -- rightboundary  p -- cycle ;
   
add setbounds currentpicture to Page ;
 StopPage ;
 \stopuseMPgraphic
   
hm, inches ...
 \vglue -1.55in  %???
 \hglue -.75in%??? 
 \useMPgraphic{bg}
 \vglue -6.5in
 \hglue .2in
 \centerline{\bf Here is some text}
 %\stopstandardmakeup
 \stoptext
 -

 Now here is my question: why must I use the negative \vglue and \hglue lines 
 (arrived at by experimentation) to place the frame properly on the page? Did 
 I mess something up?
   


-- 

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] enco-ffr ?

2006-11-26 Thread Renaud Aubin
Hans Hagen a écrit :
 so i'll wait for the test file before i look into it
\useencoding[ffr]
\mainlanguage[fr]

\starttext

\section{\type{enco-ffr.tex} related issue}

\startuseMPgraphic{mymptest}
numeric u;
u:=1cm;
draw origin--(10u,10u);
\stopuseMPgraphic

\placefigure[here]{none}{\useMPgraphic{mymptest}}

test:\blank
test;\blank
test!\blank
test?\blank

\stoptext

leads to

! Illegal suffix of declared variable will be flushed.
to be read again
   {
l.148 numeric u\directdiscretionary {
 ;}



Renaud
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Custom itemization broken by the new release

2006-11-26 Thread Renaud Aubin
Hi all,

The following code

  % frenchitemize
  \setbox0=\hbox{--~}
  \def\indenteddash#1{\hskip\parindent--~}
  \definesymbol[indentdash][\indenteddash]
  \defineitemgroup[frenchitemize]
  \setupitemgroup[frenchitemize]
 [each]
 [indentdash,packed,joinedup]%,intext] % commenté le 2611
 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]

  % testitemize
  \defineitemgroup[testitemize]
  \setupitemgroup[testitemize]
 [each]
 [indentdash,packed,joinedup,intext] % commenté le 2611
 [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]


\starttext

\input knuth
\startfrenchitemize
\item \input tufte
\item \input tufte
\stopfrenchitemize
\input knuth

\page
\input knuth
\starttestitemize
\item \input tufte
\item \input tufte
\stoptestitemize
\input knuth

\stoptext


demonstrates (?) the fact that [indentdash,packed,joinedup,intext] 
options don't lead to the expected result, i.e. the intext option break 
the packed one in the definition of testitemize.

Renaud

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context