ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* New release and XeTeX - XeConTeXt
@ 2006-05-10  3:42 Otared KAVIAN
  2006-05-13 21:19 ` Christopher Creutzig
  0 siblings, 1 reply; 6+ messages in thread
From: Otared KAVIAN @ 2006-05-10  3:42 UTC (permalink / raw)


Dear all,

After upgrading to the latest release (that is TeXExec 5.4.3, and
ConTeXt  ver: 2006.05.08 12:59  fmt: 2006.5.9  int: english  mes:
english), when I tried to generate the format with XeTeX (that is to
generate XeConTeXt), with the command

sudo texexec --make --xtx en

I get the folllowing error message:

language        : patterns de for de loaded (n=3,e=texnansi,m=texnansi)
(/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-de.pat
! Bad \patterns.
\unknownchar ->{
                \hbox {\vrule \!!width .5em\!!height 1ex\!!depth \zeropoint }}
l.114 .ge
         s6
?

Has anyone encountered this error? Is there a solution?

Many thanks for your help: Otared K.

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

* Re: New release and XeTeX - XeConTeXt
  2006-05-10  3:42 New release and XeTeX - XeConTeXt Otared KAVIAN
@ 2006-05-13 21:19 ` Christopher Creutzig
  2006-05-14  8:54   ` Otared KAVIAN
  2006-05-14  9:20   ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Christopher Creutzig @ 2006-05-13 21:19 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1918 bytes --]

Otared KAVIAN wrote:

> sudo texexec --make --xtx en

> (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-de.pat
> ! Bad \patterns.
> \unknownchar ->{
>                 \hbox {\vrule \!!width .5em\!!height 1ex\!!depth \zeropoint }}
> l.114 .ge
>          s6
> ?

  Same for me.  The problem is that in line 113, we have
.ge5rö
in Latin-1 encoding, but XeTeX tries reading the file in UTF-8.

> Has anyone encountered this error? Is there a solution?

  I only have a nasty hack:  In the patterns directory, run (in bash)

for file in *.pat *.hyp
   do iconv -f iso-8859-1 -t utf-8 <$file >$file-u
done

and in mult-sys.tex, change the lines reading

\definefileconstant {patternsextension}  {pat}
\definefileconstant {hyphensextension}   {hyp}

to

\doifundefinedelse{XeTeXversion}
{\definefileconstant {patternsextension}  {pat}
  \definefileconstant {hyphensextension}   {hyp}}
{\definefileconstant {patternsextension}  {pat-u}
  \definefileconstant {hyphensextension}   {hyp-u}}

There probably is a much better place for this change, but cont-new.tex, 
afaik, is not read when generating formats and I don't know where the 
code really should go.  It mayalso be possible to fix the behaviour by 
some regime switchting in the .pat and .hyp files, but I know very 
little about those commands and haven't tested it.

  Still, XeConTeXt does not work as expected in the current version:
The plain TeX file

\font\myface="Hiragino Mincho Pro W3"
\myface
こちらはテストです。日本語のテストです。
\bye

works like a charm, but

\definetypeface[myface][rm][Xserif][Hiragino Mincho Pro W3]

\setupbodyfont[myface,14pt]
\starttext
こちらはテストです。日本語のテストです。
\stoptext

produces an output containing only a lot of accented latin characters, 
see attached file.


Best regards,
	Christopher

[-- Attachment #2: jap.pdf --]
[-- Type: application/x-pdf, Size: 28134 bytes --]

[-- Attachment #3: jap.log --]
[-- Type: text/plain, Size: 7844 bytes --]

This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=cont-en 2006.5.9)  13 MAY 2006 22:52
entering extended mode
 (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
**jap.tex emergencyend
(./jap.tex

ConTeXt  ver: 2006.05.08 12:59  fmt: 2006.5.9  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials        : tex,postscript,rokicki loaded
\openout2 = `jap.tui'.

system          : jap.top loaded
(./jap.top
specials        : loading definition file tpd
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
\openout0 = `jap-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems         : system commands are disabled
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) (./jap.tuo)
(./jap.tuo) (./jap.tuo) (./jap.tuo) (./jap.tuo) (./jap.tuo) (./jap.tuo)
(./jap.tuo) (./jap.tuo) (./jap.tuo) (./jap.tuo) (./jap.tuo)
systems         : begin file jap at line 6

Overfull \hbox (78.33672pt too wide) in paragraph at lines 7--8
[]\*myface14ptrmtf*: こちらはテストです。日本語のテストですã
€‚ 

\hbox(12.866+2.7222)x426.78743
.\hbox(0.0+0.0)x0.0
.\*myface14ptrmtf*: ã
.\*myface14ptrmtf*: 
.\*myface14ptrmtf*: “
.\*myface14ptrmtf*: ã
.etc.

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: 8r-base
fonts           : using map file: t5-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-ams-euler
fonts           : using map file: original-public-lm
[1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-empty
.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-base
.map}{/Users/ccr/Library/texmf/fonts/map/pdftex/context/ec-public-lm.map}{/usr/
local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base.map}{/usr/local/
teTeX/share/texmf.local/fonts/map/pdftex/context/8r-base.map}{/usr/local/teTeX/
share/texmf.local/fonts/map/pdftex/context/t5-base.map}{/usr/local/teTeX/share/
texmf.local/fonts/map/pdftex/context/original-ams-base.map}{/usr/local/teTeX/sh
are/texmf.local/fonts/map/pdftex/context/original-ams-euler.map}{/Users/ccr/Lib
rary/texmf/fonts/map/pdftex/context/original-public-lm.map}]
systems         : end file jap at line 8
system          : cont-err loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-err.tex

> User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <

) ) 
Here is how much of TeX's memory you used:
 1769 strings out of 58872
 34766 string characters out of 563686
 4592778 words of memory out of 6037082
 40167 multiletter control sequences out of 10000+50000
 125374 words of font info for 64 fonts, out of 2000000 for 2000
 192 hyphenation exceptions out of 5000
 51i,18n,77p,290b,485s stack positions out of 5000i,500n,6000p,200000b,40000s
PDF statistics:
 8 PDF objects out of 300000
 0 named destinations out of 131072
 5 words of extra memory for PDF output out of 10000
{/Users/ccr/Library/texmf/fonts/enc/dvips/lm/ec-lm.enc}</Users/ccr/Library/t
exmf/fonts/type1/public/lm/lmr10.pfb>
Output written on jap.pdf (1 page, 28134 bytes).

[-- Attachment #4: jap.tex --]
[-- Type: application/x-tex, Size: 313 bytes --]

[-- Attachment #5: Type: text/plain, Size: 139 bytes --]

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

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

* Re: New release and XeTeX - XeConTeXt
  2006-05-13 21:19 ` Christopher Creutzig
@ 2006-05-14  8:54   ` Otared KAVIAN
  2006-05-14  9:20   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Otared KAVIAN @ 2006-05-14  8:54 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1043 bytes --]

On 5/13/06, Christopher Creutzig <christopher@creutzig.de> wrote:
>
>
>
>   Still, XeConTeXt does not work as expected in the current version:
>
>

Hi Christopher,

I tried the file you suggest with the latest version of ConTeXt and
generated a new XeConTeXt (ConTeXt  ver: 2006.05.11 10:30  fmt: 2006.5.13,
on MacOS X 10.4.6) and I didn't have any trouble with the following

%% begin japanese.tex
\starttext

\font\Myface="Hiragino Mincho Pro W3" at 14 pt
\Myface
こちらはテストです。日本語のテストです。
%\bye
\blank

works like a charm, and so does the ConTeXt way of defining a typeface:

\definetypeface[myface][rm][Xserif][Hiragino Mincho Pro W3]

\setupbodyfont[myface,14pt]

こちらはテストです。日本語のテストです。

\stoptext
%% end japanese.tex

the japanese text is typeset identically with \Myface (defined with the good
old Plain TeX way) and \myface (defined in ConTeXt way).

Nevertheless still I encounter other problems with the new version of
ConTeXt and I am reporting them in another thread.

Best regards: OK

[-- Attachment #1.2: Type: text/html, Size: 1471 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

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

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

* Re: New release and XeTeX - XeConTeXt
  2006-05-13 21:19 ` Christopher Creutzig
  2006-05-14  8:54   ` Otared KAVIAN
@ 2006-05-14  9:20   ` Hans Hagen
  2006-05-14 13:52     ` Christopher Creutzig
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2006-05-14  9:20 UTC (permalink / raw)


Christopher Creutzig wrote:
>> (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-de.pat
>> ! Bad \patterns.
>> \unknownchar ->{
>>                 \hbox {\vrule \!!width .5em\!!height 1ex\!!depth 
>> \zeropoint }}
>> l.114 .ge
>>          s6
>> ?
>
>  Same for me.  The problem is that in line 113, we have
> .ge5rö
> in Latin-1 encoding, but XeTeX tries reading the file in UTF-8.
>
>> Has anyone encountered this error? Is there a solution?
how old is your context

the latest version uses utf patterns for both pdftex and xetex so no 
special tricks are needed

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

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

* Re: New release and XeTeX - XeConTeXt
  2006-05-14  9:20   ` Hans Hagen
@ 2006-05-14 13:52     ` Christopher Creutzig
  2006-05-14 20:37       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Creutzig @ 2006-05-14 13:52 UTC (permalink / raw)


Hans Hagen wrote:

>>  Same for me.  The problem is that in line 113, we have
>> .ge5rö
>> in Latin-1 encoding, but XeTeX tries reading the file in UTF-8.

> how old is your context

  Indeed, that was stone age: 2006.05.08 12:59 - more than five days 
old.  :-)

> the latest version uses utf patterns for both pdftex and xetex so no 
> special tricks are needed

  Thanks for the pointer.  Strangely enough, I still can't typeset 
simple Japanese, but right now I don't have the time to investigate this 
further.


Best regards,
	Christopher

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

* Re: New release and XeTeX - XeConTeXt
  2006-05-14 13:52     ` Christopher Creutzig
@ 2006-05-14 20:37       ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2006-05-14 20:37 UTC (permalink / raw)


Christopher Creutzig wrote:
> Hans Hagen wrote:
>
>   
>>>  Same for me.  The problem is that in line 113, we have
>>> .ge5r�
>>> in Latin-1 encoding, but XeTeX tries reading the file in UTF-8.
>>>       
>
>   
>> how old is your context
>>     
>
>   Indeed, that was stone age: 2006.05.08 12:59 - more than five days 
> old.  :-)
>   
for xetex indeed, but if we proceed in the way we do now, we will have reasoable stable xetex support soon 

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

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

end of thread, other threads:[~2006-05-14 20:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-10  3:42 New release and XeTeX - XeConTeXt Otared KAVIAN
2006-05-13 21:19 ` Christopher Creutzig
2006-05-14  8:54   ` Otared KAVIAN
2006-05-14  9:20   ` Hans Hagen
2006-05-14 13:52     ` Christopher Creutzig
2006-05-14 20:37       ` 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).