ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XeTeX "hangs"
@ 2006-05-23  8:24 Mojca Miklavec
  2006-05-23 21:03 ` Otared Kavian
  2006-05-24  6:24 ` Otared Kavian
  0 siblings, 2 replies; 13+ messages in thread
From: Mojca Miklavec @ 2006-05-23  8:24 UTC (permalink / raw)


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

If I try to compile the folllowing code with XeTeX, it "hangs" (as if
it was waiting for further input):

\catcode`ð=\active \defð{^^f0} % only hangs for "F0", other numbers are OK
\starttext
ð
\stoptext

I didn't manage to test the same example with "plain" XeTeX (tetex is
a bit misconfigured since the standalone ConTeXt is installed), but
Jonathan says that it runs OK on his computer. Is my system broken
again or are some other black forces working anywhere?

Thanks,
    Mojca

[-- Attachment #2: eth.tex --]
[-- Type: application/x-tex, Size: 67 bytes --]

[-- Attachment #3: 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] 13+ messages in thread

* Re: XeTeX "hangs"
  2006-05-23  8:24 XeTeX "hangs" Mojca Miklavec
@ 2006-05-23 21:03 ` Otared Kavian
  2006-05-24  6:24 ` Otared Kavian
  1 sibling, 0 replies; 13+ messages in thread
From: Otared Kavian @ 2006-05-23 21:03 UTC (permalink / raw)


Hi Mojca,

Trying your minimal file on my Mac OS X, with XeConTeXt or with plain  
XeTeX, I observe the same hanging...

However, the following, taken out of an example sent to you by  
Jonathan K., works fine with both (indeed commenting out \starttext  
and \stoptext in plain XeTeX):

\starttext
\font\lmec = ec-lmr10 at 36 pt

\lmec
Testing... ð

Testing... ^^F0

\catcode`č=\active \defč{^^a3}
\catcode`š=\active \defš{^^b2}
\catcode`ž=\active \defž{^^ba}

Testing... čšž

\stoptext

while the following results in a PDF file with "Testing... ° 0"

\starttext
\catcode`ð=\active \defð{^^F0}

Testing... ð

\stoptext

Needless to tell you that all this seems extremely obscure to me...

Best regards: OK


On 23 mai 2006, at 10:24, Mojca Miklavec wrote:

> If I try to compile the folllowing code with XeTeX, it "hangs" (as if
> it was waiting for further input):
>
> \catcode`ð=\active \defð{^^f0} % only hangs for "F0", other  
> numbers are OK
> \starttext
> ð
> \stoptext
>
> I didn't manage to test the same example with "plain" XeTeX (tetex is
> a bit misconfigured since the standalone ConTeXt is installed), but
> Jonathan says that it runs OK on his computer. Is my system broken
> again or are some other black forces working anywhere?
>
> Thanks,
>    Mojca
> <eth.tex>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

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

* Re: XeTeX "hangs"
  2006-05-23  8:24 XeTeX "hangs" Mojca Miklavec
  2006-05-23 21:03 ` Otared Kavian
@ 2006-05-24  6:24 ` Otared Kavian
  2006-05-24  8:07   ` Hans Hagen
  1 sibling, 1 reply; 13+ messages in thread
From: Otared Kavian @ 2006-05-24  6:24 UTC (permalink / raw)


Hi Mojca,

Trying your minimal file on my Mac OS X, with XeConTeXt or with plain  
XeTeX, I observe the same hanging...

However, the following, taken out of an example sent to you by  
Jonathan K., works fine with both (indeed commenting out \starttext  
and \stoptext in plain XeTeX):

\starttext
\font\lmec = ec-lmr10 at 36 pt

\lmec
Testing... ð

Testing... ^^F0

\catcode`č=\active \defč{^^a3}
\catcode`š=\active \defš{^^b2}
\catcode`ž=\active \defž{^^ba}

Testing... čšž

\stoptext

while the following results in a PDF file with "Testing... ° 0"

\starttext
\catcode`ð=\active \defð{^^F0}

Testing... ð

\stoptext

Needless to tell you that all this seems extremely obscure to me...

Best regards: OK


On 23 mai 2006, at 10:24, Mojca Miklavec wrote:

> If I try to compile the folllowing code with XeTeX, it "hangs" (as if
> it was waiting for further input):
>
> \catcode`ð=\active \defð{^^f0} % only hangs for "F0", other  
> numbers are OK
> \starttext
> ð
> \stoptext
>
> I didn't manage to test the same example with "plain" XeTeX (tetex is
> a bit misconfigured since the standalone ConTeXt is installed), but
> Jonathan says that it runs OK on his computer. Is my system broken
> again or are some other black forces working anywhere?
>
> Thanks,
>    Mojca
> <eth.tex>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


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

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

* Re: XeTeX "hangs"
  2006-05-24  6:24 ` Otared Kavian
@ 2006-05-24  8:07   ` Hans Hagen
  2006-05-24 19:20     ` Otared Kavian
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-05-24  8:07 UTC (permalink / raw)


Otared Kavian wrote:
> Hi Mojca,
>
> Trying your minimal file on my Mac OS X, with XeConTeXt or with plain  
> XeTeX, I observe the same hanging...
>
> However, the following, taken out of an example sent to you by  
> Jonathan K., works fine with both (indeed commenting out \starttext  
> and \stoptext in plain XeTeX):
>
> \starttext
> \font\lmec = ec-lmr10 at 36 pt
>
> \lmec
> Testing... ð
>
> Testing... ^^F0
>
> \catcode`č=\active \defč{^^a3}
> \catcode`š=\active \defš{^^b2}
> \catcode`ž=\active \defž{^^ba}
>
> Testing... čšž
>
> \stoptext
>
> while the following results in a PDF file with "Testing... ° 0"
>
> \starttext
> \catcode`ð=\active \defð{^^F0}
>
> Testing... ð
>
> \stoptext
>
> Needless to tell you that all this seems extremely obscure to me...
>   
what do you get when you run that with \tracingall 

\tracingall 

Testing... ð

and what does 

\show ð

return? and what 

Testing... ðaaa

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] 13+ messages in thread

* Re: XeTeX "hangs"
  2006-05-24  8:07   ` Hans Hagen
@ 2006-05-24 19:20     ` Otared Kavian
  2006-05-24 21:55       ` making posters with ContexT batela
  2006-05-26 10:10       ` XeTeX "hangs" Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: Otared Kavian @ 2006-05-24 19:20 UTC (permalink / raw)



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


On 24 mai 2006, at 10:07, Hans Hagen wrote:

> what do you get when you run that with \tracingall
>
> \tracingall
>
> Testing... ð
>
> and what does
>
> \show ð
>
> return? and what
>
> Testing... ðaaa
>
> Hans

Hi Hans,

This file:
%% eth-hans-1.tex
\starttext
what do you get when you run that with \tracingall

Testing... ð

\catcode`ð=\active \defð{^^F0}
\tracingall

Testing... ð

and what does

%\show ð

return? and what

Testing... ðaaa

Hans

\stoptext
%% end eth-hans-1.tex

typeset with XeConTeXt gives a PDF where again one has "Testing... ð"  
in the first occurence, and then "Testing... ° 0", and the process  
takes some 41 seconds...


If the above file is typeset with ConTeXt alone it stops with the  
error message:

! Missing number, treated as zero.
<to be read again>
                    ∞
l.9 \catcode`√∞
                =\active \def√∞{^^F0}
?
Process aborted

If the line \show ð is uncommented in the above file, then XeConTeXt  
stops with this error message:

[]\*12ptrmtf* and what does
@\par via @@0 b=0 p=-10000 d=100
@@1: line 1.2- t=100 -> @@0

{vertical mode: \show}
 > ð=macro:
->^^F0.
l.14 \show ð

?
Process aborted

Best regards: OK

[-- Attachment #1.2.1: Type: text/html, Size: 3338 bytes --]

[-- Attachment #1.2.2: eth-hans.pdf --]
[-- Type: application/pdf, Size: 24630 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 1192 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] 13+ messages in thread

* making posters with ContexT
  2006-05-24 19:20     ` Otared Kavian
@ 2006-05-24 21:55       ` batela
  2006-05-25  5:51         ` David Antos
  2006-05-26 10:10       ` XeTeX "hangs" Hans Hagen
  1 sibling, 1 reply; 13+ messages in thread
From: batela @ 2006-05-24 21:55 UTC (permalink / raw)


Hi

I am trying to making a scientifique poster in Context. I need some 
suggestions,
foreground an example, to start. Somebody has a nice example to share?
What is the correct scales for the fonts?

Have a nice day/night

Thanks to all

Jorge

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

* Re: making posters with ContexT
  2006-05-24 21:55       ` making posters with ContexT batela
@ 2006-05-25  5:51         ` David Antos
  2006-05-25 18:58           ` batela
  0 siblings, 1 reply; 13+ messages in thread
From: David Antos @ 2006-05-25  5:51 UTC (permalink / raw)


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

On Wed, May 24, 2006 at 10:55:58PM +0100, batela wrote:
> I am trying to making a scientifique poster in Context. I need some 
> suggestions,
> foreground an example, to start. Somebody has a nice example to share?
> What is the correct scales for the fonts?

Hi,

I always start tasks like that by setting the paper size and switching
\showframe ;). About the font size: the poster should be readable from 1.5
meter distance. It's good to start from at least 24 pt. You surely realise
that you have to be extremely concise in your texts, so you may end up at
something like 21 pt (which is suboptimal but acceptable).

Attached you find an example (figures not included). Feel free to modify
it, share and enjoy.

> Jorge

BTW, we'd appreciate if you used your real name in the From: header.

Have a nice towel day,
D.A.

-- 
Science is what happens when preconception meets verification.

[-- Attachment #2: fpl2003-poster.tex --]
[-- Type: text/x-tex, Size: 7387 bytes --]

% vim: set ft=context syn=tex:
% This is FPL 2003 poster
% $Id: fpl2003-poster.tex,v 1.6 2003/08/26 11:36:49 antos Exp $

% General setup

\setupoutput[pdftex]
\setuppapersize[A1][A1]
\mainlanguage[en]
\setupcolors[state=start]
\setuppagenumbering[location=]

% Layout, backgrounds, graphical elements
\setuplayout
  [grid=yes,
   backspace=4cm,
   width=middle,
   topspace=4cm,
   header=0cm,
   footer=1cm,
   footerdistance=23mm,
   bottom=0pt,
   bottomdistance=0pt,
   height=0.94\paperheight]

\setupbackgrounds
  [text]
  [frame=on,
   rulethickness=2mm,
   frameoffset=2cm,
   framecorner=round,
   frameradius=2cm,
   framecolor=darkblue]

\setupthinrules
  [rulethickness=2mm,
   color=darkblue]

% Other style settings
\setupwhitespace[big]

\setupbodyfont[sans,21pt]

\setupitemize
  [each]
  [packed,joinedup]

\setuphead
  [chapter]
  [number=no,
   style=\tfa\bf,
   page=no,
   after=,
   color=darkblue]

\widowpenalty=10000
\clubpenalty=10000

\setupfootertexts[\hfill\x Typeset with \ConTeXt\quad\quad
Designed by David Anto\v s, 2003]

%\showframe
%\showgrid

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\starttext

\startalignment[middle]
\startlinecorrection
{\tfd\bf Project of IPv6 Router with FPGA Hardware Accelerator}
\stoplinecorrection

\startcolumns[n=3]

{\bf Ji\v r\'{\i} Novotn\'y}\crlf
Institute of Computer Science\crlf
Masaryk University Brno\crlf
Botanick\'a~68a, Brno 602\thinspace00\crlf
Czech Republic\crlf
\type{novotny@liberouter.org}
\column

{\bf Otto Fu\v c\'{\i}k}\crlf
Faculty of Information Technology\crlf
Brno University of Technology\crlf
Bo\v{z}et\v{e}chova~2, Brno 612\thinspace66\crlf
Czech Republic\crlf
\type{fucik@liberouter.org}
\column

{\bf David Anto\v{s}}\crlf
Faculty of Informatics\crlf
Masaryk University Brno\crlf
Botanick\'a~68a, Brno 602\thinspace00\crlf
Czech Republic\crlf 
\type{antos@liberouter.org}

\stopcolumns

\stopalignment

% Logos and rule

\noindent
\thinrule
\kern0.03\textwidth
\lower0.039\textwidth\hbox{\externalfigure[cesnet-logo][width=0.16\textwidth]}
\kern0.03\textwidth
\thinrule
\kern0.03\textwidth
\lower0.01\textwidth\hbox{\externalfigure[liberouter][width=0.2\textwidth]}
\kern0.03\textwidth
\thinrule

% Text itself starts here

\startcolumns[n=2]

\chapter{Introduction}

Personal Computer (PC) as a router is
\startitemize
\item Reliable and highly functional
\item Comparable to middle-class routers (e.g., CISCO~7500)
\stopitemize
But\dots
\startitemize
\item Configurable with difficulties (via \type{/etc} files)
\item Limited mainly by PCI system bus (up to 2~Gbps with 64bit/66MHz bus)
\stopitemize

The goal of the \externalfigure[liberouter][height=0.5\baselineskip]{}
project: IPv6 router solving
those limitations. How?
\startitemize
\item Hardware accelerator {\em Combo6}
\item XML based configuration system {\em Netopeer}
\stopitemize

\chapter{Router Architecture}

Combo6 is a PCI card containing FPGA, memories (SSRAMs and DRAM), expansion
connectors, and supporting logic. Network interfaces are mounted on an
expansion daughter card for interfaces to be changed easily.

\startlinecorrection
\midaligned{\externalfigure[combo6][height=12\baselineskip]}
\stoplinecorrection

Design rules (just pure instance of {\em hardware/software codesign}
principles):
\startitemize
\item Packet switching and filtering will be performed by Combo6
\item PC can do the rest; routing path calculations, configuration,
statistics computation
\item Communication through PCI is limited to configuration, routing table
updates, statistics collection, and exception handling
\item Usual Operating System tools can be used, like \type{ifconfig} and
routing daemons
\stopitemize

\chapter{Packet Processing in Hardware}

Key idea: Packet processing in FPGA is done by a chain of dedicated
processors with simple, specialized instruction sets designed for their
particular purposes. We call them {\em nanoprocessors}---they are
interpreted by FPGA's microcode. Instruction sets are \quotation{between
FSMs and RISC processors.}

\startitemize
\item Changing nanoprograms in runtime is possible (with no need of VHDL
compilation)---this differs from Partial Reconfiguration
\item VHDL tools are not needed to change nanoprograms, our free
development environment can be employed
\item New features can be added step-by-step
\item On the contrary, Partial Reconfiguration may produce more efficient
designs
\stopitemize

Packet processing is pipelined. A packet flows through the FPGA and
memories. An incoming packet is received by the Input Packet Buffer and
passed to the Header Field Extractor. The HFE pushes the body of the packet
into the dynamic memory. Meanwhile, it parses its headers and creates a
{\em Unified-header} and a structure reflecting actual arrangement of the
headers. The Unified-header is a fixed structure containing information
relevant for routing and filtering decisions.

The Lookup Processor (LUP) processes the Unified-header performing a lookup
nanoprogram. The lookup nanoprogram is kept in CAM and SRAM. Using CAM is
fast, unfortunately, IPv6 requires nearly 600~bits to check. Widest
available CAMs have less than 300~bits, therefore a combination of CAM
search and lookup instructions (conditional jumps) is used.

\startlinecorrection
\midaligned{\externalfigure[combo.1][height=8\baselineskip]}
\stoplinecorrection

Packet Replicator and Block of Output Queues (RQU) replicates the packet ID
to queues computed by LUP. Output Packet Editor modifies headers of the
packet before it is sent out. Operating system is one of the output
interfaces. It allows to deliver packets to the host computer as well as
handling packets hardware is not able to process.

\chapter{Software Support}

Software drivers are developed for NetBSD (and FreeBSD) and ported to
Linux. Driver operations include FPGA chip configuration, accessing
memories in the card, and hardware/software interface operations.

Other part of router software {\em hides presence of Combo6 in the host
computer}. The card should perform the same routing and filtering
functionality as the host computer itself, only faster. Host computer uses
routing table, configuration of interfaces, and firewall setting, Combo6
has to run the LUP nanoprocessor just once to make a decision how to handle
a packet.

To be able to combine routing table and firewall setting into one lookup
operation, we developed a concept of {\em routing/firewalling
table}---firewall rules are applied on routing table rows a-priori.

\chapter{Netopeer Configuration System}

PC based routers are running under various operating systems with various
configuration files causing problems to network administrators. To
overcome this we are working on a unified configuration environment {\em
Netopeer}. The primary configuration is kept in an XML repository. User
interfaces implement Command Line Interface, web interface, and SNMP.
Configurations for several operating systems and commercial routers can be
generated from the XML, also allowing to convert among the representations.

\startlinecorrection
\midaligned{\externalfigure[xmlconf-david][height=11\baselineskip]}
\stoplinecorrection

\chapter{Acknowledgements}

This research is supported by the FP5 project {\em 6NET} (IST-2001-32603)
and CESNET project {\em IPv6 implementation in the CESNET2 network}
(02/2003).

\stopcolumns

\stoptext


[-- Attachment #3: 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] 13+ messages in thread

* Re: making posters with ContexT
  2006-05-25  5:51         ` David Antos
@ 2006-05-25 18:58           ` batela
  0 siblings, 0 replies; 13+ messages in thread
From: batela @ 2006-05-25 18:58 UTC (permalink / raw)


David

This is a great example. Many thanks. Another question: why only two 
columns?

Thanks a lot

Jorge


Em 25/05/2006, às 6:51, David Antos escreveu:

> On Wed, May 24, 2006 at 10:55:58PM +0100, batela wrote:
>> I am trying to making a scientifique poster in Context. I need some
>> suggestions,
>> foreground an example, to start. Somebody has a nice example to share?
>> What is the correct scales for the fonts?
>
> Hi,
>
> I always start tasks like that by setting the paper size and switching
> \showframe ;). About the font size: the poster should be readable from 
> 1.5
> meter distance. It's good to start from at least 24 pt. You surely 
> realise
> that you have to be extremely concise in your texts, so you may end up 
> at
> something like 21 pt (which is suboptimal but acceptable).
>
> Attached you find an example (figures not included). Feel free to 
> modify
> it, share and enjoy.
>
>> Jorge
>
> BTW, we'd appreciate if you used your real name in the From: header.
>
> Have a nice towel day,
> D.A.
>
> -- 
> Science is what happens when preconception meets verification.
> <fpl2003-poster.tex>_______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

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

* Re: XeTeX "hangs"
  2006-05-24 19:20     ` Otared Kavian
  2006-05-24 21:55       ` making posters with ContexT batela
@ 2006-05-26 10:10       ` Hans Hagen
  2006-05-26 19:43         ` Otared Kavian
  1 sibling, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-05-26 10:10 UTC (permalink / raw)


Otared Kavian wrote:
>
> On 24 mai 2006, at 10:07, Hans Hagen wrote:
>
>> what do you get when you run that with \tracingall�
>>
>>
>> \tracingall�
>>
>>
>> Testing... �
>>
>>
>> and what does�
>>
>>
>> \show �
>>
>>
>> return? and what�
>>
>>
>> Testing... �aaa
>>
>>
>> Hans�
>>
>
> Hi Hans,
>
> This file:
> %% eth-hans-1.tex
> \starttext
> what do you get when you run that with \tracingall
>
> Testing... �
>
> \catcode`�=\active \def�{^^F0}
> \tracingall
>
> Testing... �
>
> and what does
>
> %\show �
>
> return? and what
>
> Testing... �aaa
>
> Hans
>
> \stoptext
> %% end eth-hans-1.tex
>
> typeset with XeConTeXt gives a PDF where again one has "Testing...��" 
> in the first occurence, and then "Testing... � 0", and the process 
> takes some 41 seconds...
>
>
> ------------------------------------------------------------------------
>
>
> If the above file is typeset with ConTeXt alone it stops with the 
> error message:
>
> ! Missing number, treated as zero.
> <to be read again>
>                    ∞
> l.9 \catcode`√∞
>                =\active \def√∞{^^F0}
so, it looks like the `<char><char> is not seen as a combination 

how did the complete test file look?  what does  the following say: 

\bgroup
\let\unicodechar\unicodenumber
\catcode`�=\active \def�{^^F0}
\egroup 

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] 13+ messages in thread

* Re: XeTeX "hangs"
  2006-05-26 10:10       ` XeTeX "hangs" Hans Hagen
@ 2006-05-26 19:43         ` Otared Kavian
  2006-05-26 20:09           ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: Otared Kavian @ 2006-05-26 19:43 UTC (permalink / raw)



On 26 mai 2006, at 12:10, Hans Hagen wrote:

> Otared Kavian wrote:
>>
>> On 24 mai 2006, at 10:07, Hans Hagen wrote:
>>
>>> what do you get when you run that with \tracingall�
>>>
>>>
>>> \tracingall�
>>>
>>>
>>> Testing... �
>>>
>>>
>>> and what does�
>>>
>>>
>>> \show �
>>>
>>>
>>> return? and what�
>>>
>>>
>>> Testing... �aaa
>>>
>>>
>>> Hans�
>>>
>>
>> Hi Hans,
>>
>> This file:
>> %% eth-hans-1.tex
>> \starttext
>> what do you get when you run that with \tracingall
>>
>> Testing... �
>>
>> \catcode`�=\active \def�{^^F0}
>> \tracingall
>>
>> Testing... �
>>
>> and what does
>>
>> %\show �
>>
>> return? and what
>>
>> Testing... �aaa
>>
>> Hans
>>
>> \stoptext
>> %% end eth-hans-1.tex
>>
>> typeset with XeConTeXt gives a PDF where again one has  
>> "Testing...��"
>> in the first occurence, and then "Testing... � 0", and the process
>> takes some 41 seconds...
>>
>>
>> --------------------------------------------------------------------- 
>> ---
>>
>>
>> If the above file is typeset with ConTeXt alone it stops with the
>> error message:
>>
>> ! Missing number, treated as zero.
>> <to be read again>
>>                    ∞
>> l.9 \catcode`√∞
>>                =\active \def√∞{^^F0}
> so, it looks like the `<char><char> is not seen as a combination
>
> how did the complete test file look?  what does  the following say:
>
> \bgroup
> \let\unicodechar\unicodenumber
> \catcode`�=\active \def�{^^F0}
> \egroup

Hi Hans,

Typesetting the following with XeConTeXt:

%% eth-hans-2.tex
\starttext

Testing... ð

\bgroup
\let\unicodechar\unicodenumber
\catcode`ð=\active \defð{^^F0}
\egroup

Testing... ð
\stoptext

gives what is intended, that is a PDF with twice "Testing... ð".
However the above cannot be typeset with ConTeXt alone, since an  
error is diagnosed saying

! Missing number, treated as zero.
<to be read again>
                    ∞
l.11 \catcode`√∞
                 =\active \def√∞{^^F0}
?

Best regards: OK




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

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

* Re: XeTeX "hangs"
  2006-05-26 19:43         ` Otared Kavian
@ 2006-05-26 20:09           ` Hans Hagen
       [not found]             ` <1030CD03-6EEC-451E-9D57-0C3FA6794C30@gmail.com>
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-05-26 20:09 UTC (permalink / raw)


Otared Kavian wrote:
> On 26 mai 2006, at 12:10, Hans Hagen wrote:
>
>   
>> Otared Kavian wrote:
>>     
>>> On 24 mai 2006, at 10:07, Hans Hagen wrote:
>>>
>>>       
>>>> what do you get when you run that with \tracingall�
>>>>
>>>>
>>>> \tracingall�
>>>>
>>>>
>>>> Testing... �
>>>>
>>>>
>>>> and what does�
>>>>
>>>>
>>>> \show �
>>>>
>>>>
>>>> return? and what�
>>>>
>>>>
>>>> Testing... �aaa
>>>>
>>>>
>>>> Hans�
>>>>
>>>>         
>>> Hi Hans,
>>>
>>> This file:
>>> %% eth-hans-1.tex
>>> \starttext
>>> what do you get when you run that with \tracingall
>>>
>>> Testing... �
>>>
>>> \catcode`�=\active \def�{^^F0}
>>> \tracingall
>>>
>>> Testing... �
>>>
>>> and what does
>>>
>>> %\show �
>>>
>>> return? and what
>>>
>>> Testing... �aaa
>>>
>>> Hans
>>>
>>> \stoptext
>>> %% end eth-hans-1.tex
>>>
>>> typeset with XeConTeXt gives a PDF where again one has  
>>> "Testing...��"
>>> in the first occurence, and then "Testing... � 0", and the process
>>> takes some 41 seconds...
>>>
>>>
>>> --------------------------------------------------------------------- 
>>> ---
>>>
>>>
>>> If the above file is typeset with ConTeXt alone it stops with the
>>> error message:
>>>
>>> ! Missing number, treated as zero.
>>> <to be read again>
>>>                    ∞
>>> l.9 \catcode`√∞
>>>                =\active \def√∞{^^F0}
>>>       
>> so, it looks like the `<char><char> is not seen as a combination
>>
>> how did the complete test file look?  what does  the following say:
>>
>> \bgroup
>> \let\unicodechar\unicodenumber
>> \catcode`�=\active \def�{^^F0}
>> \egroup
>>     
>
> Hi Hans,
>
> Typesetting the following with XeConTeXt:
>
> %% eth-hans-2.tex
> \starttext
>
> Testing... ð
>
> \bgroup
> \let\unicodechar\unicodenumber
> \catcode`ð=\active \defð{^^F0}
> \egroup
>
> Testing... ð
> \stoptext
>
> gives what is intended, that is a PDF with twice "Testing... ð".
> However the above cannot be typeset with ConTeXt alone, since an  
> error is diagnosed saying
>
> ! Missing number, treated as zero.
> <to be read again>
>                     ∞
> l.11 \catcode`√∞
>                  =\active \def√∞{^^F0}
> ?
>
>   
i need a bit more info:

= the file eth-hans2.tex (zipped!)

= how you call it, yopu say that it works ok with xecontext, so what do 
you mean with 'context alone'

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] 13+ messages in thread

* Re: XeTeX "hangs"
       [not found]             ` <1030CD03-6EEC-451E-9D57-0C3FA6794C30@gmail.com>
@ 2006-05-27 12:36               ` Hans Hagen
  2006-05-27 12:56                 ` Mojca Miklavec
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-05-27 12:36 UTC (permalink / raw)


Otared Kavian wrote:
>
> As told above, ConTeXt is called from within TeXShop, but doing
> texexec eth-hans-2.tex --pdf
> in a Terminal window gives the same result (I apologize for not being 
> still up dto date with texmfstart... :-) )
>
> I wanted to let you know that I am gathering a number of issues or 
> ConTeXt things which do not work properly when ConTeXt is used 
> together with XeTeX. Should I send them directly to you and Taco or 
> post each problem separately on the list?
>
>
>
ok, what you see happen in 'non xetex context' is ok,

\catcode`ð=\active \defð{^^F0}

will fail because pdftex is *not* utf and only sees 8 bit characters, so 
you can only set the catcodes 0-255

\catcode `<number>=<number>

and in your case `Ã will become a number ° but ° not

\bgroup
\let\unicodechar\unicodenumber
\catcodeð=\active \defð{^^F0}
\egroup

could work (watch out: no `) but again, \catcode<16 bit number> is not 
accepted by regular 8 bit tex

so, a the moment, what you observe is ok; at the end of this year, in a 
32 bit pdftex, things may work different

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] 13+ messages in thread

* Re: XeTeX "hangs"
  2006-05-27 12:36               ` Hans Hagen
@ 2006-05-27 12:56                 ` Mojca Miklavec
  0 siblings, 0 replies; 13+ messages in thread
From: Mojca Miklavec @ 2006-05-27 12:56 UTC (permalink / raw)


On 5/27/06, Hans Hagen wrote:
> Otared Kavian wrote:
> >
> > As told above, ConTeXt is called from within TeXShop, but doing
> > texexec eth-hans-2.tex --pdf
> > in a Terminal window gives the same result (I apologize for not being
> > still up dto date with texmfstart... :-) )
> >
> > I wanted to let you know that I am gathering a number of issues or
> > ConTeXt things which do not work properly when ConTeXt is used
> > together with XeTeX. Should I send them directly to you and Taco or
> > post each problem separately on the list?
> >
> >
> >
> ok, what you see happen in 'non xetex context' is ok,
>
> \catcode`ð=\active \defð{^^F0}
>
> will fail because pdftex is *not* utf and only sees 8 bit characters, so
> you can only set the catcodes 0-255

That's true for pdftex, but XeTeX should handle them OK (assuming that
you're using the proper encoding in your file). If you change ^^f0 to
^^f1 or whatever other number, it works without any problems. It's
just ^^f0 that's causing problems for some weird reason. I don't know
if this is XeTeX or ConTeX bug (or the wrong usage perhaps, but it was
Jonathat who sent this example, only for other letters).

> \catcode `<number>=<number>
>
> and in your case `Ã will become a number ° but ° not
>
> \bgroup
> \let\unicodechar\unicodenumber
> \catcodeð=\active \defð{^^F0}
> \egroup
>
> could work (watch out: no `) but again, \catcode<16 bit number> is not
> accepted by regular 8 bit tex

Hans, in what encoding are you sending/using this? Seems like UTF-8
file opened as if it was "latin1" (might be the same).

You should use utf-8-encoded "eth" literally, not two different character
   \catcode`ð=\active \defð{^^f0}  ð

Mojca

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

end of thread, other threads:[~2006-05-27 12:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-23  8:24 XeTeX "hangs" Mojca Miklavec
2006-05-23 21:03 ` Otared Kavian
2006-05-24  6:24 ` Otared Kavian
2006-05-24  8:07   ` Hans Hagen
2006-05-24 19:20     ` Otared Kavian
2006-05-24 21:55       ` making posters with ContexT batela
2006-05-25  5:51         ` David Antos
2006-05-25 18:58           ` batela
2006-05-26 10:10       ` XeTeX "hangs" Hans Hagen
2006-05-26 19:43         ` Otared Kavian
2006-05-26 20:09           ` Hans Hagen
     [not found]             ` <1030CD03-6EEC-451E-9D57-0C3FA6794C30@gmail.com>
2006-05-27 12:36               ` Hans Hagen
2006-05-27 12:56                 ` Mojca Miklavec

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