Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-24 Thread Hans Hagen Outside

Patrick Gundlach wrote:


Hi,


 


Just list another one, font files received from the vendor is usually
in capital
letters, such as PJN_.PFB, but the copy_files routine in texfont.pl only
copy *.pfb, then all the type1 files will not be copy to texmf...
   



This, of course, is a problem that should be addressed. But I always
thought that windows doesn't care about case when globbing. But I
don't have access to a windows machine, so I can't try it out.

Patrick
 


guess why there is:

>textools
TeXTools | version 1.2.2 - 2002/2005 - PRAGMA ADE/POD

TeXTools | --downcasefilenames [--recurse] [--force]

I always downcase font files before i install them 

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


[NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-22 Thread Patrick Gundlach

Hi,


> Just list another one, font files received from the vendor is usually
> in capital
> letters, such as PJN_.PFB, but the copy_files routine in texfont.pl only
> copy *.pfb, then all the type1 files will not be copy to texmf...

This, of course, is a problem that should be addressed. But I always
thought that windows doesn't care about case when globbing. But I
don't have access to a windows machine, so I can't try it out.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-22 Thread jjgod

Patrick Gundlach 写道:


Hi,

 


> Then we must have different texfont.pl version. Each time afm2tfm is
> called, it uses either -T or -p. Running afm2tfm without those
> parameters doesn't make very much sense. (Unless you are an english
> speaking person that never typesets foreign languages.)

Accoding to
http://source.contextgarden.net/scripts/context/perl/texfont.pl,
I'm afraid you are wrong, the string "-p" only occured 3 times in this
file,
   



You don't have to be afraid. Let us stop this discussion now. Those
who know texfont.pl know that it should use the switches it uses and
there will not be any change in this respect on the texfont.pl side.
Just believe us that the encoding switches are vital. I have recently
reeimplemented afm2tfm and I think that I know what I am talking
about.

Patrick
 

I'm sorry for bother you guys about all these trival problems, but my 
situation

is that I'm trying to use ConTeXt under Win32, then I found many things not
so ideal like they're under Linux.

Just list another one, font files received from the vendor is usually in 
capital

letters, such as PJN_.PFB, but the copy_files routine in texfont.pl only
copy *.pfb, then all the type1 files will not be copy to texmf...

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


[NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-21 Thread Patrick Gundlach
Hi,

>  > Then we must have different texfont.pl version. Each time afm2tfm is
>  > called, it uses either -T or -p. Running afm2tfm without those
>  > parameters doesn't make very much sense. (Unless you are an english
>  > speaking person that never typesets foreign languages.)
>
> Accoding to
> http://source.contextgarden.net/scripts/context/perl/texfont.pl,
> I'm afraid you are wrong, the string "-p" only occured 3 times in this
> file,

You don't have to be afraid. Let us stop this discussion now. Those
who know texfont.pl know that it should use the switches it uses and
there will not be any change in this respect on the texfont.pl side.
Just believe us that the encoding switches are vital. I have recently
reeimplemented afm2tfm and I think that I know what I am talking
about.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-21 Thread Hans Hagen

jjgod wrote:


Did you contact the MikTeX maintainers about that?
   


It seems the MikTeX maintainer have noticed that, but
no official bugfix release at present. 
 


afaik it is/will-be fixed in the latest release

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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-21 Thread Taco Hoekwater

jjgod wrote:
Well, let's search the script from top to bottom: 
1. afm2pl does NOT invoke afm2tfm, even with "-f afm2tfm" option

(you can check this in the source code of afm2pl by yourself)


You are right, sorry. So only three calls to afm2tfm in total.

Is there an afm2pl executable in miktex, btw? That would nicely
solve the problem.


2. $encstr in the first {} block does NOT affect the $encstr
in the second {} block, poor indention in this code may give
you a wrong idea. 


At this point in the code, $encstr usually has a "-T ..." value
(which implies -p as well, as Patrick tried to explain before).


So, there is just one call here, without -p.

4. my $command = "afm2tfm $file $cleanname.tfm" ;
Obviously, no -p. 


This is the 'panic' call I thought was #4, it is only executed when
you explicitly call texfont with the (hidden) switch --expert.


To summarize above, 3 calls to afm2tfm total, 1 call with -p
only. 


True, but the second call normally has a "-T" in it, and the third
call is only for people that believe they are "smarter than Hans".
Anyway, this is all just silly. There is a bug in afm2tfm in miktex,
period.

Taco
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-21 Thread jjgod
Taco Hoekwater wrote:

> There are in total 4 calls to aftm2tfm in the script, of which the
> second and third use '-p' also (check the value of $encstr). The last
> one is a 'panic response' if nothing else seems appropriate.

Well, let's search the script from top to bottom: 

1. { my $command = "afm2tfm \"$file\" -p texnansi.enc texfont.tfm" 
It's a real call to afm2tfm, with -p. 

2, 3: (deleted inrelevant code, reindented to show the structure)

if ($afmpl)
{
...
$encstr = " -p $encfil" ;
my $command = "afm2pl -f afm2tfm $shape $passon $encstr ...
my $ok = `$command` ;
...
}
else
{
...
my $command = "afm2tfm $file $shape $passon $encstr ...

Please notice 2 thing: 
1. afm2pl does NOT invoke afm2tfm, even with "-f afm2tfm" option
(you can check this in the source code of afm2pl by yourself)
2. $encstr in the first {} block does NOT affect the $encstr
in the second {} block, poor indention in this code may give
you a wrong idea. 

So, there is just one call here, without -p.

4. my $command = "afm2tfm $file $cleanname.tfm" ;
Obviously, no -p. 

To summarize above, 3 calls to afm2tfm total, 1 call with -p
only. 

jjgod.



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-21 Thread Taco Hoekwater

jjgod wrote:

Patrick Gundlach  wrote:

 > Then we must have different texfont.pl version. Each time afm2tfm is
 > called, it uses either -T or -p. Running afm2tfm without those
 > parameters doesn't make very much sense. (Unless you are an english
 > speaking person that never typesets foreign languages.)

Accoding to 
http://source.contextgarden.net/scripts/context/perl/texfont.pl,
I'm afraid you are wrong, the string "-p" only occured 3 times in this 
file,
the first time for 'otfinfo', the second time for 'afm2tfm' and the 
third time
for 'afm2pl'. So the official copy of this script still use -p option 
for afm2tfm

once.


There are in total 4 calls to aftm2tfm in the script, of which the
second and third use '-p' also (check the value of $encstr). The last
one is a 'panic response' if nothing else seems appropriate.

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


[NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-20 Thread jjgod

Patrick Gundlach  wrote:

> Then we must have different texfont.pl version. Each time afm2tfm is
> called, it uses either -T or -p. Running afm2tfm without those
> parameters doesn't make very much sense. (Unless you are an english
> speaking person that never typesets foreign languages.)

Accoding to 
http://source.contextgarden.net/scripts/context/perl/texfont.pl,
I'm afraid you are wrong, the string "-p" only occured 3 times in this 
file,
the first time for 'otfinfo', the second time for 'afm2tfm' and the 
third time
for 'afm2pl'. So the official copy of this script still use -p option 
for afm2tfm

once.

Jjgod.

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


[NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-20 Thread Patrick Gundlach

[...]

>> But then: how do you specify the encoding of the mapfile/psfont? -p is
>> a pretty important switch when using non-ascii encoings. 

> So what output infomation will afm2tfm generate when -p option is
> on? 

The encoding of the fonts in the postscript/pdf file. And an entry for
the mapfile, such as

8r-dolli___-orig Dolly-Italic "TeXBase1Encoding ReEncodeFont" <8r.enc 
 In my copy of texfont.pl, it only use -p option once,

Then we must have different texfont.pl version. Each time afm2tfm is
called, it uses either -T or -p. Running afm2tfm without those
parameters doesn't make very much sense. (Unless you are an english
speaking person that never typesets foreign languages.)

> unlink the tfm file, collect output into $cleanfont variable. So if
> I use non-ascii encoding (8r? texnansi?), $cleanfont will be set to
> what?

That doesn't matter here. afm2tfm needs to get fixed in miktex. Point.
No discussion worth.

Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-20 Thread Taco Hoekwater

jjgod wrote:

So I suggest the maintainer of context avoid using
the -p option, it seems



||afm2tfm \"$file\" texfont.tfm|
|
does the same job in this piece of code.


But then: how do you specify the encoding of the mapfile/psfont? -p is
a pretty important switch when using non-ascii encoings. 


So what output infomation will afm2tfm generate when -p option is on? 
In my copy of texfont.pl, it only use -p option once, unlink the tfm

file, collect output into $cleanfont variable. So if I use non-ascii
encoding (8r? texnansi?), $cleanfont will be set to what?  


If I understand this correctly, afm2tfm uses the -p encoding as the
intrinsic encoding of the pfb file. That is an important bit of
information in "collecting information" phase of afm2tfm.

The entire "don't use this switch because it crashes the program
under miktex" argument is a bit bizarre from my viewpoint.

Surely if the miktex version of afm2tfm crashes when you feed it a
valid  command line, than that indicates a bug in afm2tfm, not in
texfont. So I suggest sending a bug report to the person(s)
maintaining afm2tfm and/or miktex.

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


Re: [NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-20 Thread jjgod
> Hi,
> 
> > I've just updated my MikTeX distribution, which
> > use a 2005-07-12 version of context package. Since
> > then MikTeX could not generate the cont-en format
> > file, when I use texexec --make en, it reports
> > TeX capacity not enough, so I have to modify the
> > localtexmf/miktex/config/miktex.ini file, change
> > |trie_op_size from 2048 to 4096.
> 
> Did you contact the MikTeX maintainers about that?
It seems the MikTeX maintainer have noticed that, but
no official bugfix release at present. 
> 
> 
> [...]
> 
> > So I suggest the maintainer of context avoid using
> > the -p option, it seems
> 
> > ||afm2tfm \"$file\" texfont.tfm|
> > |
> > does the same job in this piece of code.
> 
> But then: how do you specify the encoding of the mapfile/psfont? -p is
> a pretty important switch when using non-ascii encoings. 
So what output infomation will afm2tfm generate when -p option is on? 
In my copy of texfont.pl, it only use -p option once, unlink the tfm
file, collect output into $cleanfont variable. So if I use non-ascii
encoding (8r? texnansi?), $cleanfont will be set to what?  

> 
> 
> 
> Patrick

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


[NTG-context] Re: ConTeXt in MikTeX distribution

2005-08-19 Thread Patrick Gundlach
Hi,

> I've just updated my MikTeX distribution, which
> use a 2005-07-12 version of context package. Since
> then MikTeX could not generate the cont-en format
> file, when I use texexec --make en, it reports
> TeX capacity not enough, so I have to modify the
> localtexmf/miktex/config/miktex.ini file, change
> |trie_op_size from 2048 to 4096.

Did you contact the MikTeX maintainers about that?


[...]

> So I suggest the maintainer of context avoid using
> the -p option, it seems

> ||afm2tfm \"$file\" texfont.tfm|
> |
> does the same job in this piece of code.

But then: how do you specify the encoding of the mapfile/psfont? -p is
a pretty important switch when using non-ascii encoings. 



Patrick
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context