ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* dvipdfmx
@ 2005-08-18 21:14 Idris Samawi Hamid
  2005-08-18 22:19 ` dvipdfmx Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Idris Samawi Hamid @ 2005-08-18 21:14 UTC (permalink / raw)


Dear crew,
Ok, I've got things working so far on the upgrade; the engine path works and I 
can use one command for both aleph and pdfetex; hooray!

but...

Default dvipdfmx configuration is not right. Consider the following three 
scenarios:

1.
==============test-upgrade.tex================
% output=dvipdfmx

\starttext

Test

\stoptext
==============================================

gives

==============================================
texexec test-upgrade

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

fixing engine variable : pdfetex
            executable : pdfetex
                format : cont-en
             inputfile : test-upgrade
                output : dvipdfmx
             interface : en
          current mode : none
               TeX run : 1

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2c 7.5.3)
:
test-upgrade.dvi -> test-upgrade.pdf
[1
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: rsfs7  rsfs5                       
<rs
fs7.pfb
** WARNING ** -- Reading fontmap file stopped at: file="original-base.map", 
line
=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ec-lmb10    LMRomanDemi10-Regular
   <ec-lm.enc <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="ec-public-lm.map", 
line=
1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ucrb8t  NimbusMonL-Bold          
<ec.e
nc <ucrb8a.pfb
** WARNING ** -- Reading fontmap file stopped at: file="ec-base.map", line=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: lasy5      LASY5      <lasy5.pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-ams-base.map",
line=1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: cmb10     CMB10     <cmrm.enc  
<lmb10.
pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-public-lm.map",
 line=68.
** WARNING ** Could not locate a virual/physical font for TFM "ec-lmr12".
** WARNING ** There are no valid font mapping entry....
** ERROR ** Cannot continue...

Output file removed.
==============================================

2. Now if I use the following

DVIPDFMX.EXE  -f context-base.map.dvipdfmx test-upgrade

I get a pdf file but still

===============================================
C:\docs\Projects\Introislam\test>DVIPDFMX.EXE  -f context-base.map.dvipdfmx 
test
-upgrade
test-upgrade.dvi -> test-upgrade.pdf
[1
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: rsfs7  rsfs5                       
<rs
fs7.pfb
** WARNING ** -- Reading fontmap file stopped at: file="original-base.map", 
line
=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ec-lmb10    LMRomanDemi10-Regular
   <ec-lm.enc <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="ec-public-lm.map", 
line=
1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ucrb8t  NimbusMonL-Bold          
<ec.e
nc <ucrb8a.pfb
** WARNING ** -- Reading fontmap file stopped at: file="ec-base.map", line=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: lasy5      LASY5      <lasy5.pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-ams-base.map",
line=1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: cmb10     CMB10     <cmrm.enc  
<lmb10.
pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-public-lm.map",
 line=68.
]
2927 bytes written
===============================================

3. Finally, even compiling a total arabic document with no lmr at all gives me 
an ok arabic pdf, but I still get

===============================================
testarabic.dvi -> testarabic.pdf
[1
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: rsfs7  rsfs5                       
<rs
fs7.pfb
** WARNING ** -- Reading fontmap file stopped at: file="original-base.map", 
line
=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ec-lmb10    LMRomanDemi10-Regular
   <ec-lm.enc <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="ec-public-lm.map", 
line=
1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ucrb8t  NimbusMonL-Bold          
<ec.e
nc <ucrb8a.pfb
** WARNING ** -- Reading fontmap file stopped at: file="ec-base.map", line=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: qcrb  <qcr.enc <qcrb.pfb
** WARNING ** -- Reading fontmap file stopped at: file="qx-base.map", line=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ucrr8v  VnNimbusMonL-Regu
             "T5Encoding ReEncodeFont" <t5.enc <ucrr8v.pfb
** WARNING ** -- Reading fontmap file stopped at: file="t5-base.map", line=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: ucrb8r  NimbusMonL-Bold          
<8r.e
nc <ucrb8a.pfb
** WARNING ** -- Reading fontmap file stopped at: file="8r-base.map", line=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: lasy5      LASY5      <lasy5.pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-ams-base.map",
line=1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: euex10 EUEX10 <euex10.pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-ams-euler.map",
 line=1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: cmb10     CMB10     <cmrm.enc  
<lmb10.
pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="original-public-lm.map",
 line=68.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: texnansi-lmb10    
LMRomanDemi10-Regula
r        <texnansi-lm.enc <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: 
file="texnansi-public-lm.map",
 line=1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: qx-lmb10    LMRomanDemi10-Regular
   <qx-lm.enc   <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="qx-public-lm.map", 
line=
1.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: vnb10    LMRomanDemi10-Regular
  <t5-lm.enc <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="t5-public-lm.map", 
line=
3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: plb10    LMRomanDemi10-Regular
<plrm.enc  <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="pl0-public-lm.map", 
line
=3.
** WARNING ** This .map file looks like using dvips format.
** WARNING ** -- Current input buffer is: csb10    LMRomanDemi10-Regular
<csrm.enc <lmb10.pfb
** WARNING ** -- Reading fontmap file stopped at: file="il2-public-lm.map", 
line
=3.
]
3151 bytes written
===============================================

Advice please-)

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dvipdfmx
  2005-08-18 21:14 dvipdfmx Idris Samawi Hamid
@ 2005-08-18 22:19 ` Hans Hagen
  2005-08-19  5:28   ` dvipdfmx Jin-Hwan Cho
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2005-08-18 22:19 UTC (permalink / raw)


Idris Samawi Hamid wrote:

>Dear crew,
>Ok, I've got things working so far on the upgrade; the engine path works and I 
>can use one command for both aleph and pdfetex; hooray!
>
>but...
>
>Default dvipdfmx configuration is not right. Consider the following three 
>scenarios:
>  
>
ctxtools --dpxmapfiles --force texmf 
ctxtools --dpxmapfiles --force texmf-local 
ctxtools --dpxmapfiles --force texmf-fonts 

will generate them, don't forget to mktexlsr 

btw, (new)texexec will automatically run dvipdfmx 

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dvipdfmx
  2005-08-18 22:19 ` dvipdfmx Hans Hagen
@ 2005-08-19  5:28   ` Jin-Hwan Cho
  2005-08-19  7:14     ` dvipdfmx Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Jin-Hwan Cho @ 2005-08-19  5:28 UTC (permalink / raw)


On Aug 19, 2005, at 7:19 AM, Hans Hagen wrote:

> ctxtools --dpxmapfiles --force texmf ctxtools --dpxmapfiles --force  
> texmf-local ctxtools --dpxmapfiles --force texmf-fonts
> will generate them, don't forget to mktexlsr
> btw, (new)texexec will automatically run dvipdfmx

ctxtools does not make right font mapping files. Especially for slanted
fonts, it ignores "-s" slant option. For example, in
texnansi-urw-palatino.map,

texnansi-raw-uplr8a-slanted-167 URWPalladioL-Roma "0.167 SlantFont" 4  
< uplr8a.pfb texnansi.enc

is converted to

texnansi-raw-uplr8a-slanted-167 texnansi uplr8a

But the right one is

texnansi-raw-uplr8a-slanted-167 texnansi uplr8a -s .167

Does ctxtool use the same technique as updmap? Or, my teTeX (fink  
version)
is old?

Best, ChoF.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dvipdfmx
  2005-08-19  5:28   ` dvipdfmx Jin-Hwan Cho
@ 2005-08-19  7:14     ` Hans Hagen
  2005-08-19 14:05       ` dvipdfmx Jin-Hwan Cho
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2005-08-19  7:14 UTC (permalink / raw)


Jin-Hwan Cho wrote:

> On Aug 19, 2005, at 7:19 AM, Hans Hagen wrote:
>
>> ctxtools --dpxmapfiles --force texmf ctxtools --dpxmapfiles --force  
>> texmf-local ctxtools --dpxmapfiles --force texmf-fonts
>> will generate them, don't forget to mktexlsr
>> btw, (new)texexec will automatically run dvipdfmx
>
>
> ctxtools does not make right font mapping files. Especially for slanted
> fonts, it ignores "-s" slant option. For example, in
> texnansi-urw-palatino.map,
>
> texnansi-raw-uplr8a-slanted-167 URWPalladioL-Roma "0.167 SlantFont" 4  
> < uplr8a.pfb texnansi.enc
>
> is converted to
>
> texnansi-raw-uplr8a-slanted-167 texnansi uplr8a
>
> But the right one is
>
> texnansi-raw-uplr8a-slanted-167 texnansi uplr8a -s .167
>
> Does ctxtool use the same technique as updmap? Or, my teTeX (fink  
> version)
> is old?

i dunno about updmap, never used it; currently i load map files 
automatically in dvipdfmx (i could get the mapline special working)

i didn't know the exact dvipdfmx mapfile syntax -)

we can add a slant as follows:

encoding = if line =~ /([a-z0-9\-]+)\.enc/io        then $1 else ''  end
fontfile = if line =~ /([a-z0-9\-]+)\.(pfb|ttf)/io  then $1 else nil end
metrics  = if line =~ /^([a-z0-9\-]+)[\s\<]+/io     then $1 else nil end
slant    = if line =~ /\"([\d\.]+)\s+SlantFont\"/io then "-s "#{$1}" else '' end

if metrics && encoding && fontfile then
  n += 1
  "#{metrics} #{encoding} #{fontfile} #{slant}"
else
  ''
end


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dvipdfmx
  2005-08-19  7:14     ` dvipdfmx Hans Hagen
@ 2005-08-19 14:05       ` Jin-Hwan Cho
  2005-08-21 16:46         ` dvipdfmx Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Jin-Hwan Cho @ 2005-08-19 14:05 UTC (permalink / raw)


On Aug 19, 2005, at 4:14 PM, Hans Hagen wrote:

> i dunno about updmap, never used it; currently i load map files  
> automatically in dvipdfmx (i could get the mapline special working)
>
> i didn't know the exact dvipdfmx mapfile syntax -)
>
> we can add a slant as follows:
>
> encoding = if line =~ /([a-z0-9\-]+)\.enc/io        then $1 else  
> ''  end
> fontfile = if line =~ /([a-z0-9\-]+)\.(pfb|ttf)/io  then $1 else  
> nil end
> metrics  = if line =~ /^([a-z0-9\-]+)[\s\<]+/io     then $1 else  
> nil end
> slant    = if line =~ /\"([\d\.]+)\s+SlantFont\"/io then "-s "# 
> {$1}" else '' end
>
> if metrics && encoding && fontfile then
>  n += 1
>  "#{metrics} #{encoding} #{fontfile} #{slant}"
> else
>  ''
> end

My ctxtools.rb does not have the line for slant. Just three lines for
encoding, fontfile, and metrics. The version is 1.2.2. (Jul 29)

Have you updated ctxtools.rb recently?

Best, ChoF.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dvipdfmx
  2005-08-19 14:05       ` dvipdfmx Jin-Hwan Cho
@ 2005-08-21 16:46         ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2005-08-21 16:46 UTC (permalink / raw)


Jin-Hwan Cho wrote:

> On Aug 19, 2005, at 4:14 PM, Hans Hagen wrote:
>
>> i dunno about updmap, never used it; currently i load map files  
>> automatically in dvipdfmx (i could get the mapline special working)
>>
>> i didn't know the exact dvipdfmx mapfile syntax -)
>>
>> we can add a slant as follows:
>>
>> encoding = if line =~ /([a-z0-9\-]+)\.enc/io        then $1 else  ''  
>> end
>> fontfile = if line =~ /([a-z0-9\-]+)\.(pfb|ttf)/io  then $1 else  nil 
>> end
>> metrics  = if line =~ /^([a-z0-9\-]+)[\s\<]+/io     then $1 else  nil 
>> end
>> slant    = if line =~ /\"([\d\.]+)\s+SlantFont\"/io then "-s "# {$1}" 
>> else '' end
>>
>> if metrics && encoding && fontfile then
>>  n += 1
>>  "#{metrics} #{encoding} #{fontfile} #{slant}"
>> else
>>  ''
>> end
>
>
> My ctxtools.rb does not have the line for slant. Just three lines for

indeed, to consider it a patch

> encoding, fontfile, and metrics. The version is 1.2.2. (Jul 29)
>
> Have you updated ctxtools.rb recently?

a few days ago, (i hope i did it right) 

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: dvipdfmx
  2005-12-04 19:08 dvipdfmx Idris Samawi Hamid
@ 2005-12-04 20:39 ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2005-12-04 20:39 UTC (permalink / raw)


Idris Samawi Hamid wrote:

>Dear Hans, Taco, Chof, and all,
>
>Just installed 051130, and I am happy to report that, so far anyway, dvipdfmx 
>map files work fine-)
>  
>
good, thanks for testing

Hans

^ permalink raw reply	[flat|nested] 9+ messages in thread

* dvipdfmx
@ 2005-12-04 19:08 Idris Samawi Hamid
  2005-12-04 20:39 ` dvipdfmx Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Idris Samawi Hamid @ 2005-12-04 19:08 UTC (permalink / raw)


Dear Hans, Taco, Chof, and all,

Just installed 051130, and I am happy to report that, so far anyway, dvipdfmx 
map files work fine-)

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: dvipdfmx
@ 2005-08-18 22:10 Idris Samawi Hamid
  0 siblings, 0 replies; 9+ messages in thread
From: Idris Samawi Hamid @ 2005-08-18 22:10 UTC (permalink / raw)


During processing, I get

fonts           : resetting map file list
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: texnansi-base
fonts           : using map file: qx-base
fonts           : using map file: t5-base
fonts           : using map file: 8r-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
fonts           : using map file: texnansi-public-lm
fonts           : using map file: qx-public-lm
fonts           : using map file: t5-public-lm
fonts           : using map file: pl0-public-lm
fonts           : using map file: il2-public-lm

Is this where dvipdfmx is running into difficulty?

Best
Idris

============================
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-12-04 20:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-18 21:14 dvipdfmx Idris Samawi Hamid
2005-08-18 22:19 ` dvipdfmx Hans Hagen
2005-08-19  5:28   ` dvipdfmx Jin-Hwan Cho
2005-08-19  7:14     ` dvipdfmx Hans Hagen
2005-08-19 14:05       ` dvipdfmx Jin-Hwan Cho
2005-08-21 16:46         ` dvipdfmx Hans Hagen
2005-08-18 22:10 dvipdfmx Idris Samawi Hamid
2005-12-04 19:08 dvipdfmx Idris Samawi Hamid
2005-12-04 20:39 ` dvipdfmx Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).