Re: [NTG-context] Bug in CONTEXT/LuaTeX or just buggy font

2016-08-10 Thread Hans Hagen

On 8/10/2016 5:19 PM, Mohammad Hossein Bateni wrote:



On Wed, Aug 10, 2016 at 11:03 AM, Hans Hagen > wrote:

On 8/9/2016 10:41 PM, Mohammad Hossein Bateni wrote:

Hello,

I have a bunch of simple fonts for Arabic/Persian.  These fonts lack
Latin characters, etc., so I use fallbacks to work with them.

I just noticed that \high does not work with them, and have not been
able to pinpoint the issue.  See the MWE below.


\starttypescript [serif][samim][name]
  \definefontsynonym[Serif][Samim]
\stoptypescript

\definetypeface [myfont][rm] [serif][samim][default]
\setupbodyfont [myfont]

\starttext
%\definedfont[Samim*arabic]
۱۲۳\high{۴}۵۶.
\stoptext


I am using Persian digits because the font lacks Latin digits as I
mentioned.  If I use the \definedfont approach, I don't see the
character ۴ (argument of \high) at all.  With the typescript
approach,
the same character /is/ typeset but is /not/ raised; it appears
on the
baseline but with smaller size.

Any ideas why this is happening?  Could it be that some
parameters, for
instance, \exheight are not properly set/read for this font?
Actually,
I looked at the non-math fontdimens in syst-fnt.mkiv, and everything
except \slantperpoint (expected) and \exheight (awkward) is
non-zero.  I
don't know where \exheight comes from—perhaps from the height of
glyph
for 'x', which the font lacks—however, \emheight is 12pt,
although the
font also lacks a glyph for 'm'.

I am also attaching the font in case that helps.


Normally one sets up a proper bodyfont (and environment if needed)
while you use just a simple font switch and that one is unrelated to
any other font setting.


Thanks!  But what does a `proper' bodyfont contain beside defining rm,
ss, tt and mm for 'myfont' above (with regular, bold, italic, and
bolditalic)?  The above was a MWE but in my real example I am setting up
these things that I mentioned in a larger typescript.  How can I modify
the font or the typescript definitions (or the environment) to get
\exheight right?


at least rm (or ss), mm and tt

x heights and emwidths come from the font (parameters) and as last 
resort are derived from other properties



I'll add two new commands: \sx and \sxx so that you can say:

\setuplow [style=\sx]
\setuphigh[style=\sx]


 If I do this, this will not get attached to the font; right?  For
instance, if I define two bodyfonts 'myfonta' and 'myfontb', and switch
between them in the document, then I have to stick to these two setups
if one font, say 'myfonta', is problematic.  Is that correct?


it's dynamicly calculated (for performance reasons once per font instance)

you can play with these:

\setuplow [down=.48\exheight]
\setuphigh[up=.86\exheight]

e.g. use other values, but if your ex and em are bad you can expect many 
other issues (so best use decent fonts)



for such cases. However, as these are derived relative scales they
are normally not compatible with \tx and txx sizes.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl
 | 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

___




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




--

-
  Hans Hagen | PRAGMA ADE

Re: [NTG-context] Bug in CONTEXT/LuaTeX or just buggy font

2016-08-10 Thread Mohammad Hossein Bateni
On Wed, Aug 10, 2016 at 11:03 AM, Hans Hagen  wrote:

> On 8/9/2016 10:41 PM, Mohammad Hossein Bateni wrote:
>
>> Hello,
>>
>> I have a bunch of simple fonts for Arabic/Persian.  These fonts lack
>> Latin characters, etc., so I use fallbacks to work with them.
>>
>> I just noticed that \high does not work with them, and have not been
>> able to pinpoint the issue.  See the MWE below.
>>
>>
>> \starttypescript [serif][samim][name]
>>   \definefontsynonym[Serif][Samim]
>> \stoptypescript
>>
>> \definetypeface [myfont][rm] [serif][samim][default]
>> \setupbodyfont [myfont]
>>
>> \starttext
>> %\definedfont[Samim*arabic]
>> ۱۲۳\high{۴}۵۶.
>> \stoptext
>>
>>
>> I am using Persian digits because the font lacks Latin digits as I
>> mentioned.  If I use the \definedfont approach, I don't see the
>> character ۴ (argument of \high) at all.  With the typescript approach,
>> the same character /is/ typeset but is /not/ raised; it appears on the
>> baseline but with smaller size.
>>
>> Any ideas why this is happening?  Could it be that some parameters, for
>> instance, \exheight are not properly set/read for this font?  Actually,
>> I looked at the non-math fontdimens in syst-fnt.mkiv, and everything
>> except \slantperpoint (expected) and \exheight (awkward) is non-zero.  I
>> don't know where \exheight comes from—perhaps from the height of glyph
>> for 'x', which the font lacks—however, \emheight is 12pt, although the
>> font also lacks a glyph for 'm'.
>>
>> I am also attaching the font in case that helps.
>>
>
> Normally one sets up a proper bodyfont (and environment if needed) while
> you use just a simple font switch and that one is unrelated to any other
> font setting.
>

Thanks!  But what does a `proper' bodyfont contain beside defining rm, ss,
tt and mm for 'myfont' above (with regular, bold, italic, and bolditalic)?
The above was a MWE but in my real example I am setting up these things
that I mentioned in a larger typescript.  How can I modify the font or the
typescript definitions (or the environment) to get \exheight right?


>
> I'll add two new commands: \sx and \sxx so that you can say:
>
> \setuplow [style=\sx]
> \setuphigh[style=\sx]
>

 If I do this, this will not get attached to the font; right?  For
instance, if I define two bodyfonts 'myfonta' and 'myfontb', and switch
between them in the document, then I have to stick to these two setups if
one font, say 'myfonta', is problematic.  Is that correct?

for such cases. However, as these are derived relative scales they are
> normally not compatible with \tx and txx sizes.
>
> Hans
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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/list
> info/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] Bug in CONTEXT/LuaTeX or just buggy font

2016-08-10 Thread Hans Hagen

On 8/9/2016 10:41 PM, Mohammad Hossein Bateni wrote:

Hello,

I have a bunch of simple fonts for Arabic/Persian.  These fonts lack
Latin characters, etc., so I use fallbacks to work with them.

I just noticed that \high does not work with them, and have not been
able to pinpoint the issue.  See the MWE below.


\starttypescript [serif][samim][name]
  \definefontsynonym[Serif][Samim]
\stoptypescript

\definetypeface [myfont][rm] [serif][samim][default]
\setupbodyfont [myfont]

\starttext
%\definedfont[Samim*arabic]
۱۲۳\high{۴}۵۶.
\stoptext


I am using Persian digits because the font lacks Latin digits as I
mentioned.  If I use the \definedfont approach, I don't see the
character ۴ (argument of \high) at all.  With the typescript approach,
the same character /is/ typeset but is /not/ raised; it appears on the
baseline but with smaller size.

Any ideas why this is happening?  Could it be that some parameters, for
instance, \exheight are not properly set/read for this font?  Actually,
I looked at the non-math fontdimens in syst-fnt.mkiv, and everything
except \slantperpoint (expected) and \exheight (awkward) is non-zero.  I
don't know where \exheight comes from—perhaps from the height of glyph
for 'x', which the font lacks—however, \emheight is 12pt, although the
font also lacks a glyph for 'm'.

I am also attaching the font in case that helps.


Normally one sets up a proper bodyfont (and environment if needed) while 
you use just a simple font switch and that one is unrelated to any other 
font setting.


I'll add two new commands: \sx and \sxx so that you can say:

\setuplow [style=\sx]
\setuphigh[style=\sx]

for such cases. However, as these are derived relative scales they are 
normally not compatible with \tx and txx sizes.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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] Wrong hyphenation when using patterns={fr,agr}

2016-08-10 Thread Jean-Pierre Delange

Dears Joseph, Hans, Wolfgang, Arthur (and others),

As a French user of ConTeXt (current version: 2016.07.18 16:46, 
generally on Windows 10, time to time on Ubuntu), I am currently working 
on a book in French, with Greek quotations, and some rare occurences in 
other non-european languages. Before version: 2016.07.18, there were 
conflicts in hyphenations (with '\setuplanguage[fr][patterns={fr,agr}]' 
command) that Hans has fixed. But some disgraceful double dots [:] used 
to stay at the beginning of lines. With the 
'\setcharacterspacing[frenchpunctuation]' command, all end that end 
well. I found no more hyphenation issues, nor punctuation ones, even 
within text defined by \definefallbackfamily setup.


\setuplanguage[fr][patterns={fr,agr}]

\mainlanguage[fr]

\setcharacterspacing[frenchpunctuation]


Le 09/08/2016 à 23:21, josephcan...@gmail.com a écrit :


Dear all,

Combining patterns for french and ancien greek languages, I noticed 
there are wrong hyphenations at quote char as shown in following MWE.


Is this expected behavior by using the patterns= key in such a way ?

Using ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt: 2016.8.9  int: 
english/English




\setuplanguage[fr][patterns={fr, agr}]

\mainlanguage[fr]

\starttext

\hyphenatedword{l'homme}

\stoptext

-

The above prints : l’-homme

If so, what is the alternative to specify hyphenation in a text 
containing both french and ancient greek (the minority) words.


Thanks a lot for advising,

Best regards

Joseph Canedo



___
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] Wrong hyphenation when using patterns={fr,agr}

2016-08-10 Thread Hans Hagen

On 8/10/2016 2:15 PM, Arthur Reutenauer wrote:

I see:

languages   > initialization > language 'fr', patterns 'agr,fr',
discarding conflict (0-9)'(0-9)

so, the ' is used differently between the languages


  As I remember, French has 2'2 while Ancient Greek has 8'8 which are
not exactly contradictory ;-)  We could of course normalise all
languages to the same value (8 is probably sound); in the mean time
Joseph can edit his own copy of, say, the French patterns to replace the
2’s by 8’s.


some harmonization can indeed help there because one never know how the 
weights matter (8'8 vs 7'7 would be interesting indeed)


which remind me that the l/r min values should probably also be adapted 
in such cases


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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] Wrong hyphenation when using patterns={fr,agr}

2016-08-10 Thread Arthur Reutenauer
> I see:
> 
> languages   > initialization > language 'fr', patterns 'agr,fr',
> discarding conflict (0-9)'(0-9)
> 
> so, the ' is used differently between the languages

  As I remember, French has 2'2 while Ancient Greek has 8'8 which are
not exactly contradictory ;-)  We could of course normalise all
languages to the same value (8 is probably sound); in the mean time
Joseph can edit his own copy of, say, the French patterns to replace the
2’s by 8’s.

Best,

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

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

Re: [NTG-context] Wrong hyphenation when using patterns={fr,agr}

2016-08-10 Thread Hans Hagen

On 8/9/2016 11:21 PM, josephcan...@gmail.com wrote:

Dear all,



Combining patterns for french and ancien greek languages, I noticed
there are wrong hyphenations at quote char as shown in following MWE.

Is this expected behavior by using the patterns= key in such a way ?


I see:

languages   > initialization > language 'fr', patterns 'agr,fr', 
discarding conflict (0-9)'(0-9)


so, the ' is used differently between the languages




Using ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt: 2016.8.9  int:
english/English







\setuplanguage[fr][patterns={fr, agr}]

\mainlanguage[fr]



\starttext



\hyphenatedword{l'homme}



\stoptext



-



The above prints : l’-homme



If so, what is the alternative to specify hyphenation in a text
containing both french and ancient greek (the minority) words.



Thanks a lot for advising,

Best regards



Joseph Canedo





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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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] Dotted box in a form

2016-08-10 Thread Wolfgang Schuster

Procházka Lukáš Ing. 
10. August 2016 um 09:04
Hello,

I need to create a double "sign-here" form, with the space for the 
signature underlined with dots.


The code bellow works fine and does exactly what I need.
The potential question is whether there is a simpler way to achieve 
this, even without MP code, e.g. with only \leaders or what.



\installbottomframerenderer{dot}
{
  \startMPcode
picture p; p := dashpattern(on 0.1mm off 0.9mm);
draw (0,0) -- (OverlayWidth,0) dashed p withpen pencircle scaled 
0.1mm;

  \stopMPcode
}

\def\T{\framed[height=15mm,width=.4\textwidth,frame=off,bottomframe=dot]{}} 



\starttext
  Some text

  \noindent
  \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
\NC\T\NC\T\NC\NR
\NC Pepa \NC Depa \NC\NR
  \stoptabulate
\stoptext


\definefiller
  [DotFill]
  [alternative=symbol,
   symbol=.,
   width=.5em,
   style=\txx]

\define\DotFill
  {\simplealignedbox{.4\textwidth}{flushleft}{\filler[DotFill]}}

%\showframe[text][text]

\starttext

\starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
\NC \DotFill \NC \DotFill \NC\NR
\NC Pepa \NC Depa \NC\NR
\stoptabulate

\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 and Slackware

2016-08-10 Thread Thomas A. Schmitz

On 08/10/2016 10:49 AM, Jose Luis Arellano wrote:

Yes, as you can see:

~/context$ export | grep PWD
declare -x OLDPWD="/home/pepe"
declare -x PWD="/home/pepe/context"



Just FYI: I fired up a partition into which I had installed Zenwalk, 
which is pure Slackware with some eye candy, and installed context. 
Everything went as expected. So this is not a problem with slackware, 
but with your particular configuration. Is there any other tex 
installation on your system? How is your PATH variable set? Do you run 
any scripts at login?


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
___

Re: [NTG-context] ConteXt and Slackware

2016-08-10 Thread luigi scarso
Il 10/ago/2016 11:22, "Jose Luis Arellano"  ha
scritto:
>
> Hm. Can you put some echo before and after env PATH=.
>>
sorry, I mean in first-setup.sh
--
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] ConteXt and Slackware

2016-08-10 Thread Jose Luis Arellano
Hm. Can you put some echo before and after env PATH=.

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

Sure,

:~$ env
MANPATH=/usr/local/man:/usr/man
HOSTNAME=slackware.localdomain
TERM=xterm-256color
SHELL=/bin/bash
SSH_CLIENT=127.0.0.1 51874 22
SSH_TTY=/dev/pts/0
USER=pepe
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do
=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43
:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.bat=01;32:*.
BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.
com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.
EXE=01;32:*.7z=01;31:*.ace=01;31:*.ACE=01;31:*.arj=01;31:*.b
z2=01;31:*.cpio=01;31:*.deb=01;31:*.dz=01;31:*.gz=01;31:*.ja
r=01;31:*.lzh=01;31:*.lzma=01;31:*.rar=01;31:*.RAR=01;31:*.r
pm=01;31:*.rz=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tb
z2=01;31:*.tbz=01;31:*.tgz=01;31:*.tlz=01;31:*.trz=01;31:*.t
xz=01;31:*.tz=01;31:*.tz2=01;31:*.xz=01;31:*.z=01;31:*.Z=01;
31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.aac=01;35:*.AAC=01;
35:*.anx=01;35:*.asf=01;35:*.ASF=01;35:*.au=01;35:*.axa=01;3
5:*.axv=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;3
5:*.divx=01;35:*.DIVX=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=
01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPE
G=01;35:*.m2a=01;35:*.M2A=01;35:*.m2v=01;35:*.M2V=01;35:*.m4
a=01;35:*.M4A=01;35:*.m4p=01;35:*.M4P=01;35:*.m4v=01;35:*.M4
V=01;35:*.mid=01;35:*.midi=01;35:*.mka=01;35:*.mkv=01;35:*.M
KV=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.m
p4=01;35:*.MP4=01;35:*.mp4v=01;35:*.mpc=01;35:*.MPC=01;35:*.
mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.nuv=01;35:
*.oga=01;35:*.ogv=01;35:*.ogx=01;35:*.ogg=01;35:*.OGG=01;35:
*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.PNG=01;35:*.ppm=01;35:
*.qt=01;35:*.ra=01;35:*.RA=01;35:*.ram=01;35:*.RAM=01;35:*.r
m=01;35:*.RM=01;35:*.spx=01;35:*.svg=01;35:*.svgz=01;35:*.tg
a=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.tiff=01;35:*.T
IFF=01;35:*.vob=01;35:*.VOB=01;35:*.wav=01;35:*.WAV=01;35:*.
wma=01;35:*.WMA=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.
xcf=01;35:*.xpm=01;35:*.xspf=01;35:*.xwd=01;35:*.XWD=01;35:*
.xvid=01;35:
MINICOM=-c on
MAIL=/var/mail/pepe
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
:/bin
LC_COLLATE=C
INPUTRC=/etc/inputrc
PWD=/home/pepe
LANG=en_US
PS1=\u@\h:\w\$
PS2=>
SHLVL=1
HOME=/home/pepe
LS_OPTIONS=-F -b -T 0 --color=auto
LESS=-M
LOGNAME=pepe
SSH_CONNECTION=127.0.0.1 51874 127.0.0.1 22
LESSOPEN=|lesspipe.sh %s
_=/usr/bin/env
-- 

pp
___
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 and Slackware

2016-08-10 Thread luigi scarso
Il 10/ago/2016 10:49, "Jose Luis Arellano"  ha
scritto:

> Yes, as you can see:
>
> ~/context$ export | grep PWD
> declare -x OLDPWD="/home/pepe"
> declare -x PWD="/home/pepe/context"
>
>
Hm. Can you put some echo before and after env PATH=.
?
--
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] ConteXt and Slackware

2016-08-10 Thread Jose Luis Arellano
>
> On the top of first-setup.sh there is
>
> #!/bin/sh
>
> # Takes the same arguments as mtx-update
>
> # you may change this if you want ...
> CONTEXTROOT="$PWD/tex"
>
> and some lines from the bottom
> env PATH="$PWD/bin:$CONTEXTROOT/texmf-$platform/bin:$PATH"
>
>
> On my linux box I see, given that I'm installing
> under /opt/luatex/standalone-mkiv-test,
> $ export|grep PWD
> declare -x PWD="/opt/luatex/standalone-mkiv-test"
>
>
> Perhaps your box doesn't  set PWD correctly ?
>
>
> --
> 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
> 
> ___
>

Yes, as you can see:

~/context$ export | grep PWD
declare -x OLDPWD="/home/pepe"
declare -x PWD="/home/pepe/context"
___
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 and Slackware

2016-08-10 Thread luigi scarso
On Wed, Aug 10, 2016 at 10:26 AM, Jose Luis Arellano <
jose.4rell...@gmail.com> wrote:

> This:
>
> ~/context$ ls -l $HOME/context/bin
> total 8372
> -rwxr-xr-x 1 pepe pepe 7982820 Aug  6 01:56 luatex*
> -rw-r--r-- 1 pepe pepe   27110 Oct  6  2015 mtx-update.lua
> -rwxr-xr-x 1 pepe pepe  558052 Aug  9 16:00 mtxrun*
> lrwxrwxrwx 1 pepe pepe   6 Jul 26  2014 texlua -> luatex*
>
>
>
On the top of first-setup.sh there is

#!/bin/sh

# Takes the same arguments as mtx-update

# you may change this if you want ...
CONTEXTROOT="$PWD/tex"

and some lines from the bottom
env PATH="$PWD/bin:$CONTEXTROOT/texmf-$platform/bin:$PATH"


On my linux box I see, given that I'm installing
under /opt/luatex/standalone-mkiv-test,
$ export|grep PWD
declare -x PWD="/opt/luatex/standalone-mkiv-test"


Perhaps your box doesn't  set PWD correctly ?


-- 
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] ConteXt and Slackware

2016-08-10 Thread Jose Luis Arellano
This:

~/context$ ls -l $HOME/context/bin
total 8372
-rwxr-xr-x 1 pepe pepe 7982820 Aug  6 01:56 luatex*
-rw-r--r-- 1 pepe pepe   27110 Oct  6  2015 mtx-update.lua
-rwxr-xr-x 1 pepe pepe  558052 Aug  9 16:00 mtxrun*
lrwxrwxrwx 1 pepe pepe   6 Jul 26  2014 texlua -> luatex*

2016-08-10 5:24 GMT-03:00 Mojca Miklavec :

> On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
> > Hi luigi,
> > No, the issue appears when i try to install ConTeXt, specifically after
> the
> > following line:
> >
> > $ sh ./first-setup.sh --modules=all --engine=luatex
> > receiving incremental file list
> >
> > sent 29 bytes  received 155 bytes  40.89 bytes/sec
> > total size is 8,567,988  speedup is 46,565.15
> > /usr/bin/env: 'texlua': No such file or directory
>
> What does
>
> ls -l $HOME/context/bin
>
> return?
>
> Mojca
> 
> ___
> 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] ConteXt and Slackware

2016-08-10 Thread Mojca Miklavec
On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
> Hi luigi,
> No, the issue appears when i try to install ConTeXt, specifically after the
> following line:
>
> $ sh ./first-setup.sh --modules=all --engine=luatex
> receiving incremental file list
>
> sent 29 bytes  received 155 bytes  40.89 bytes/sec
> total size is 8,567,988  speedup is 46,565.15
> /usr/bin/env: 'texlua': No such file or directory

What does

ls -l $HOME/context/bin

return?

Mojca
___
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 and Slackware

2016-08-10 Thread Jose Luis Arellano
Thanks luigi, but that doesn't works for me. Anyway am sure using bash:

pepe@localhost:~/context$ echo $0

-bash

2016-08-10 5:14 GMT-03:00 luigi scarso :

>
> On Wed, Aug 10, 2016 at 10:08 AM, Jose Luis Arellano <
> jose.4rell...@gmail.com> wrote:
>
>> Hi Mojca am running bash:
>>
>> pepe@localhost:~/context$ cat /etc/passwd | grep pepe
>> pepe:x:5000:5000::/home/pepe:/bin/bash
>>
>> 2016-08-10 5:01 GMT-03:00 Mojca Miklavec 
>> :
>>
>>> On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
>>> > Hi luigi,
>>> > No, the issue appears when i try to install ConTeXt, specifically
>>> after the
>>> > following line:
>>> >
>>> > $ sh ./first-setup.sh --modules=all --engine=luatex
>>> > receiving incremental file list
>>>
>>
>
> $> bash ./first-setup.sh
> looks ok here on ubuntu 16.04
>
>
>
> --
> 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] ConteXt and Slackware

2016-08-10 Thread luigi scarso
On Wed, Aug 10, 2016 at 10:08 AM, Jose Luis Arellano <
jose.4rell...@gmail.com> wrote:

> Hi Mojca am running bash:
>
> pepe@localhost:~/context$ cat /etc/passwd | grep pepe
> pepe:x:5000:5000::/home/pepe:/bin/bash
>
> 2016-08-10 5:01 GMT-03:00 Mojca Miklavec :
>
>> On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
>> > Hi luigi,
>> > No, the issue appears when i try to install ConTeXt, specifically after
>> the
>> > following line:
>> >
>> > $ sh ./first-setup.sh --modules=all --engine=luatex
>> > receiving incremental file list
>>
>

$> bash ./first-setup.sh
looks ok here on ubuntu 16.04



-- 
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] ConteXt and Slackware

2016-08-10 Thread Jose Luis Arellano
Hi Mojca am running bash:

pepe@localhost:~/context$ cat /etc/passwd | grep pepe
pepe:x:5000:5000::/home/pepe:/bin/bash

2016-08-10 5:01 GMT-03:00 Mojca Miklavec :

> On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
> > Hi luigi,
> > No, the issue appears when i try to install ConTeXt, specifically after
> the
> > following line:
> >
> > $ sh ./first-setup.sh --modules=all --engine=luatex
> > receiving incremental file list
> >
> > sent 29 bytes  received 155 bytes  40.89 bytes/sec
> > total size is 8,567,988  speedup is 46,565.15
> > /usr/bin/env: 'texlua': No such file or directory
>
> It could be a problem with the shell you are using (or maybe there are
> some bashisms used).
>
> What exactly is "sh" on your machine? Can you try to run this with bash?
>
> Mojca
> 
> ___
> 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] ConteXt and Slackware

2016-08-10 Thread Mojca Miklavec
On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
> Hi luigi,
> No, the issue appears when i try to install ConTeXt, specifically after the
> following line:
>
> $ sh ./first-setup.sh --modules=all --engine=luatex
> receiving incremental file list
>
> sent 29 bytes  received 155 bytes  40.89 bytes/sec
> total size is 8,567,988  speedup is 46,565.15
> /usr/bin/env: 'texlua': No such file or directory

It could be a problem with the shell you are using (or maybe there are
some bashisms used).

What exactly is "sh" on your machine? Can you try to run this with bash?

Mojca
___
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 and Slackware

2016-08-10 Thread Jose Luis Arellano
Hi luigi,
No, the issue appears when i try to install ConTeXt, specifically after the
following line:

$ sh ./first-setup.sh --modules=all --engine=luatex
receiving incremental file list

sent 29 bytes  received 155 bytes  40.89 bytes/sec
total size is 8,567,988  speedup is 46,565.15
/usr/bin/env: 'texlua': No such file or directory

2016-08-10 4:19 GMT-03:00 luigi scarso :

>
>
> On Wed, Aug 10, 2016 at 5:36 AM, Jose Luis Arellano <
> jose.4rell...@gmail.com> wrote:
>
>> Hi guys, am trying to install ConTeXt on this distribution, but when try
>> to install it i get this:
>>
>> /usr/bin/env: 'texlua': No such file or directory
>>
>> Suggestions?
>>
>> Thanks in advance.
>>
>>
> hm,
> do you have
> tex/texmf-linux-64/bin/texlua -> luatex
> ?
>
> If yes, ca you try with
> $> . setuptex
>
> (setuptex is into the tex folder)
>
>
> --
> 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] ConteXt and Slackware

2016-08-10 Thread luigi scarso
On Wed, Aug 10, 2016 at 5:36 AM, Jose Luis Arellano  wrote:

> Hi guys, am trying to install ConTeXt on this distribution, but when try
> to install it i get this:
>
> /usr/bin/env: 'texlua': No such file or directory
>
> Suggestions?
>
> Thanks in advance.
>
>
hm,
do you have
tex/texmf-linux-64/bin/texlua -> luatex
?

If yes, ca you try with
$> . setuptex

(setuptex is into the tex folder)


-- 
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] Dotted box in a form

2016-08-10 Thread Procházka Lukáš Ing .

Hello,

I need to create a double "sign-here" form, with the space for the signature 
underlined with dots.

The code bellow works fine and does exactly what I need.
The potential question is whether there is a simpler way to achieve this, even 
without MP code, e.g. with only \leaders or what.


\installbottomframerenderer{dot}
{
  \startMPcode
picture p; p := dashpattern(on 0.1mm off 0.9mm);
draw (0,0) -- (OverlayWidth,0) dashed p withpen pencircle scaled 0.1mm;
  \stopMPcode
}

\def\T{\framed[height=15mm,width=.4\textwidth,frame=off,bottomframe=dot]{}}

\starttext
  Some text

  \noindent
  \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
\NC\T\NC\T\NC\NR
\NC Pepa \NC Depa \NC\NR
  \stoptabulate
\stoptext


Best regards,

Lukas


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

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

DotLi2.mkiv
Description: Binary data


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

Re: [NTG-context] ConteXt and Slackware

2016-08-10 Thread Jose Luis Arellano
Hi Tom, I'm using the method from wiki:

mkdir $HOME/context && cd $HOME/context
rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --modules=all --engine=luatex

On Wed, Aug 10, 2016, 02:11 Schmitz Thomas A. 
wrote:

>
> > On 10 Aug 2016, at 05:36, Jose Luis Arellano 
> wrote:
> >
> > Hi guys, am trying to install ConTeXt on this distribution, but when try
> to install it i get this:
> >
> > /usr/bin/env: 'texlua': No such file or directory
> >
> > Suggestions?
> >
>
> Hi,
>
> fancy telling us how you’re installing? We have absolutely no information
> to go on.
>
> 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
>
> ___

-- 

pp
___
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 and Slackware

2016-08-10 Thread Schmitz Thomas A.

> On 10 Aug 2016, at 05:36, Jose Luis Arellano  wrote:
> 
> Hi guys, am trying to install ConTeXt on this distribution, but when try to 
> install it i get this:
> 
> /usr/bin/env: 'texlua': No such file or directory 
> 
> Suggestions?
> 

Hi,

fancy telling us how you’re installing? We have absolutely no information to go 
on.

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
___