ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in beta: extra \else
@ 2006-10-10 22:05 Vit Zyka
  2006-10-11  7:47 ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Vit Zyka @ 2006-10-10 22:05 UTC (permalink / raw)


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

Hi all,

there is some deep bug that was discovered translating Beginners manual. 
Let take single chapter e.g. ma-cb-cz-alignments.tex

With today beta I got .log attached (error ! Extra \else)
This will appear in both modes screen and normal.

Interesting is that no error appears in context 2006-05-28.

In context 2006-09-10 this error appears only in normal mode. Screen 
mode is OK.

Vit

P.S. Today's beta shows even more problems:
- inside typebuffer: only '\dochar {225}' instead of \'a in latin2
- some metapost graphics is wrong
But I suggest to solve them step by step.


[-- Attachment #2: ma-cb-cz-alignments.log --]
[-- Type: text/plain, Size: 14273 bytes --]

This is pdfTeXk, Version 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5) (format=cont-en 2006.10.10)  10 OCT 2006 23:50
entering extended mode
\write18 enabled.
 %&-line parsing enabled.
 (c:/TeXLive2005/texmf-update/web2c/natural.tcx)
**ma-cb-cz-alignments.tex \emergencyend
(./ma-cb-cz-alignments.tex

ConTeXt  ver: 2006.10.10 22:15 MK II  fmt: 2006.10.10  int: english/english

language        : language en is active
system          : cont-new loaded
(c:/TeXLive2005/texmf-update/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(c:/TeXLive2005/texmf-update/tex/context/base/cont-new.mkii))
system          : cont-old loaded
(c:/TeXLive2005/texmf-update/tex/context/base/cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(c:/TeXLive2005/texmf-update/tex/context/base/cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys loaded
(c:/TeXLive2005/texmf-update/tex/context/user/cont-sys.tex
(c:/TeXLive2005/texmf-update/tex/context/base/type-exa.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-syn.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-enc.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-siz.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-map.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-spe.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:3 fr->
texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3 de->e
c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi:texna
nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl->ec:e
c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk->il2:i
l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 en->ec:e
c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 da->ec:e
c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 deo->ec:ec-
>30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 ro->ec:ec->34
->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded
specials        : tex,postscript,rokicki loaded
\openout3 = `ma-cb-cz-alignments.tui'.

system          : ma-cb-cz-alignments.top loaded
(./ma-cb-cz-alignments.top
specials        : loading definition file tpd
(c:/TeXLive2005/texmf-update/tex/context/base/spec-tpd.tex
specials        : loading definition file fdf
(c:/TeXLive2005/texmf-update/tex/context/base/spec-fdf.tex
(c:/TeXLive2005/texmf-update/tex/context/base/spec-fdf.mkii))
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
\openout0 = `ma-cb-cz-alignments-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems         : system commands are enabled
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
(c:/TeXLive2005/texmf-update/tex/context/base/sort-def.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/sort-lan.tex)
(./ma-cb-cz-alignments.tuo) (./ma-cb-cz-alignments.tuo)
systems         : begin file ma-cb-cz-alignments at line 3
systems         : begin file ma-cb at line 4
systems         : end file ma-cb at line 4
systems         : begin file ma-cb-env-cz at line 7
(./ma-cb-env-cz.tex (../generic/ma-cb.tex
systems         : begin file ../generic/ma-cb-abbreviations at line 11
(./../generic/ma-cb-abbreviations.tex
check           : logo CONTEXT replaces a macro, use CAPITALS!
check           : logo PDFTEX replaces a macro, use CAPITALS!
check           : logo PICTEX replaces a macro, use CAPITALS!
check           : logo TABLE replaces a macro, use CAPITALS!
check           : logo TEX replaces a macro, use CAPITALS!
check           : logo METAPOST replaces a macro, use CAPITALS!
check           : logo METAFUN replaces a macro, use CAPITALS!
)
systems         : end file ../generic/ma-cb-abbreviations at line 11
systems         : begin file ../generic/ma-cb-graphics at line 12
(./../generic/ma-cb-graphics.tex)
systems         : end file ../generic/ma-cb-graphics at line 12
systems         : begin file ../generic/ma-cb-style at line 13
(./../generic/ma-cb-style.tex
system          : module res-trace loaded
(c:/TeXLive2005/texmf-update/tex/context/base/x-res-08.tex)
system          : module units loaded
(c:/TeXLive2005/texmf-update/tex/context/base/m-units.tex
check           : unit Angstrom replaces a macro, use CAPITALS!
)
system          : module chemic loaded
(c:/TeXLive2005/texmf-update/tex/context/base/m-chemic.tex
(c:/TeXLive2005/texmf-dist/tex/generic/pictex/pictex.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/ppchtex.tex
ppchtex         : using PiCTeX and MetaPost
))
system          : module chart loaded
(c:/TeXLive2005/texmf-update/tex/context/base/m-chart.tex
XML             : loading flowchart support
) (c:/TeXLive2005/texmf-update/tex/context/base/type-buy.tex)
(c:/TeXLive2005/texmf-update/tex/context/base/pdfr-ec.tex)
color           : mpcmyk color space is supported
color           : mpspot color space is supported
color           : system rgb is global activated
color           : currentcolor (def) is not defined 
\openout9 = `ma-cb-cz-alignments-mpgraph.mp'.

\openout6 = `ma-cb-cz-alignments-mpgraph.mpb'.

[MP to PDF] (./ma-cb-cz-alignments-mpgraph.1 (./ma-cb-cz-alignments.tuo)))
systems         : end file ../generic/ma-cb-style at line 13
systems         : begin file ../generic/ma-cb-setups at line 14
(./../generic/ma-cb-setups.tex
system          : module setup loaded
(c:/TeXLive2005/texmf-local/tex/context/third/t-setup.tex
system          : module set-02 loaded
(c:/TeXLive2005/texmf-update/tex/context/base/x-set-02.tex
(c:/TeXLive2005/texmf-update/tex/context/base/mult-con.tex
loading         : Context Multilingual Macros / Constants
) (c:/TeXLive2005/texmf-update/tex/context/base/mult-com.tex
loading         : Context Multilingual Macros / Commands
))
debugger        : message:: duplicate tag file in library setup of interface en
glish
debugger        : message:: duplicate tag reference in library setup of interfa
ce english
) (c:/TeXLive2005/texmf-update/tex/context/interface/cont-en.xml)
(./../generic/cont-en-extra.xml
check           : eachtexcommand stp:x:defineinteractionmenu:1 replaces a macro
, use CAPITALS!
check           : texcommand stp:y:defineinteractionmenu:1 replaces a macro, us
e CAPITALS!
))
systems         : end file ../generic/ma-cb-setups at line 14
)
regime          : regime iso-8859-2 is loaded
(c:/TeXLive2005/texmf-update/tex/context/base/regi-iso-8859-2.tex))
systems         : end file ma-cb-env-cz at line 7
color           : currentcolor (def) is not defined 
[MP to PDF] (./ma-cb-cz-alignments-mpgraph.4000)
chapter         : 1 Zarovnání
color           : currentcolor (def) is not defined 
[MP to PDF] (./ma-cb-cz-alignments-mpgraph.3999)
<ma-cb-cz-alignments-ma-cb-cz-alignments.tmp>
\openout5 = `ma-cb-cz-alignments-ma-cb-cz-alignments.tmp'.


Overfull \hbox (11.48785pt too wide) in paragraph at lines 51--51
 [][]\*palatino10pttttftt*: \leftaligned[] [][] []{Hasselt[] []byl[] []vybudov\
dochar[] []{225}n[] []na[] []p\dochar[] []{237}se\dochar[]

\hbox(9.45493+3.6769)x426.79134
.\glue(\leftskip) 15.0
.\hbox(0.0+0.0)x0.0
.\hbox(9.45493+3.6769)x0.0
..\rule(9.45493+3.6769)x0.0
..\glue 0.0 plus 1.0fil minus 1.0fil
.\*palatino10pttttftt*: \
.\*palatino10pttttftt*: l
.etc.


Overfull \hbox (50.99391pt too wide) in paragraph at lines 51--51
 [][]\*palatino10pttttftt*: \midaligned[] [][] [][] []{Hasselt[] []byl[] []vybu
dov\dochar[] []{225}n[] []na[] []soutoku[] []dvou[] []\dochar[] []{176}ek.} 

\hbox(9.45493+3.6769)x426.79134
.\glue(\leftskip) 15.0
.\hbox(0.0+0.0)x0.0
.\hbox(9.45493+3.6769)x0.0
..\rule(9.45493+3.6769)x0.0
..\glue 0.0 plus 1.0fil minus 1.0fil
.\*palatino10pttttftt*: \
.\*palatino10pttttftt*: m
.etc.


Overfull \hbox (45.35019pt too wide) in paragraph at lines 51--51
 [][]\*palatino10pttttftt*: \rightaligned[] []{Ko\dochar[] []{176}en[] []jm\doc
har[] []{233}na[] []Hasselt[] []je[] []odvozen[] []od[] []d\dochar[]

\hbox(9.45493+3.6769)x426.79134
.\glue(\leftskip) 15.0
.\hbox(0.0+0.0)x0.0
.\hbox(9.45493+3.6769)x0.0
..\rule(9.45493+3.6769)x0.0
..\glue 0.0 plus 1.0fil minus 1.0fil
.\*palatino10pttttftt*: \
.\*palatino10pttttftt*: r
.etc.

(./ma-cb-cz-alignments-ma-cb-cz-alignments.tmp)
color           : currentcolor (def) is not defined 
[MP to PDF] (./ma-cb-cz-alignments-mpgraph.3998)
Underfull \hbox (badness 2435) in paragraph at lines 66--73
[]\*palatino10ptrmscrm*: Zarovnání m·ºete up-°es-nit zadáním sm¥ru ([]\*palatin
o10pttttftt*: direction\*palatino10ptrmscrm*: ) a tol-er-ance pruºných vý-pl¬k·


\hbox(9.45493+3.6769)x426.79134, glue set 2.90163
.\hbox(0.0+0.0)x0.0
.\*palatino10ptrmscrm*: Z
.\*palatino10ptrmscrm*: a
.\*palatino10ptrmscrm*: r
.\kern-0.17993
.etc.

</rl:library>
fonts           : resetting map file list
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/original-empty.map}
fonts           : using map file: texnansi-public-lm
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/texnansi-public-lm.map}
fonts           : using map file: original-base
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/original-base.map}
fonts           : using map file: ec-public-lm
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/ec-public-lm.map}
fonts           : using map file: ec-base
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/ec-base.map}
fonts           : using map file: 8r-base
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/8r-base.map}
fonts           : using map file: t5-base
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/t5-base.map}
fonts           : using map file: original-ams-base
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/original-ams-base.map}
fonts           : using map file: original-ams-euler
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/original-ams-euler.map}
fonts           : using map file: original-public-lm
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/original-public-lm.map}
fonts           : using map file: ec-urw-palatino
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/ec-urw-palatino.map}
fonts           : using map file: original-youngryu-px
{c:/TeXLive2005/texmf-update/fonts/map/pdftex/context/original-youngryu-px.map}
[MP to PDF] (./ma-cb-cz-alignments-mpgraph.3997) [MP to PDF]
(./ma-cb-cz-alignments-mpgraph.3996) [MP to PDF]
(./ma-cb-cz-alignments-mpgraph.3995) [MP to PDF]
(./ma-cb-cz-alignments-mpgraph.3994) [1.1]
! Extra \else.
\actualshipout ...\postponedcontent \box 0}}\else 
                                                  \message {[\ifarrangingpag...

\myshipout ... \fi {\thisisrealpage \realfolio #1}
                                                  \gotonextrealpage \aftersh...

\dofinaloutput ...agebody #1#2\setpagecounters }}}
                                                  \fi \the \everyaftershipou...

\finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
                                                  \resetselectiepagina \incr...

\sidefloatoutput ...e \else \finalsidefloatoutput 
                                                  \global \sidefloatvsize \n...
<argument> ...\fi \else \the \defaultstreamoutput 
                                                  \fi 
...
l.78 \stopcomponent
                   
? 
[page 1 not flushed] [MP ma-cb-cz-alignments-mpgraph.3993]
[MP ma-cb-cz-alignments-mpgraph.3992] [MP ma-cb-cz-alignments-mpgraph.3991]
[MP ma-cb-cz-alignments-mpgraph.3990]
! Extra \else.
\dopagebreak ...xecutepagebreakhandlers {#1}\else 
                                                  \flushnotes \executepagebr...
<inserted text> ...rrentpositions \page [\v!last ]
                                                   \page \ifarrangingpages \...

\finalend ...vel >\zerocount \else \the \everybye 
                                                  \the \everygoodbye \global...
l.78 \stopcomponent
                   
? 
! Extra \fi.
\dopagebreak ...xecutepagebreakhandler \v!yes \fi 
                                                  \ifnum \prevrealpageno <\r...
<inserted text> ...rrentpositions \page [\v!last ]
                                                   \page \ifarrangingpages \...

\finalend ...vel >\zerocount \else \the \everybye 
                                                  \the \everygoodbye \global...
l.78 \stopcomponent
                   
? 
systems         : end file ma-cb-cz-alignments at line 78
[flush and process ma-cb-cz-alignments-mpgraph.mp afterwards]
! Extra \fi.
\finalend ...mptytoks \expandafter \normalend \fi 
                                                  
l.78 \stopcomponent
                   
? 
 ) 
Here is how much of TeX's memory you used:
 7930 strings out of 219677
 138873 string characters out of 1291908
 3220527 words of memory out of 4653321
 47195 multiletter control sequences out of 10000+100000
 134976 words of font info for 135 fonts, out of 2000000 for 2000
 416 hyphenation exceptions out of 8191
 55i,29n,76p,380b,2620s stack positions out of 10000i,500n,6000p,200000b,50000s
{c:/TeXLive2005/texmf-update/fonts/enc/dvips/lm/lm-ec.enc}<c:/TeXLive2005/tex
mf-update/fonts/type1/public/lm/lmtto10.pfb><c:/TeXLive2005/texmf-update/fonts/
type1/public/lm/lmtt10.pfb>{c:/TeXLive2005/texmf-dist/fonts/enc/dvips/base/8r.e
nc}<c:/TeXLive2005/texmf-dist/fonts/type1/urw/palatino/uplb8a.pfb><c:/TeXLive20
05/texmf-dist/fonts/type1/urw/palatino/uplr8a.pfb>
Output written on ma-cb-cz-alignments.pdf (1 page, 86458 bytes).
PDF statistics:
 33 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 29 words of extra memory for PDF output out of 10000 (max. 10000000)


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

* Re: bug in beta: extra \else
  2006-10-10 22:05 bug in beta: extra \else Vit Zyka
@ 2006-10-11  7:47 ` Hans Hagen
  2006-10-11 10:42   ` Vit Zyka
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2006-10-11  7:47 UTC (permalink / raw)


Vit Zyka wrote:
> Hi all,
>
> there is some deep bug that was discovered translating Beginners 
> manual. Let take single chapter e.g. ma-cb-cz-alignments.tex
>
> With today beta I got .log attached (error ! Extra \else)
> This will appear in both modes screen and normal.
>
> Interesting is that no error appears in context 2006-05-28.
quite some code is being rewritten / adapted to context mkiv so there 
could be low level differences

can you make a small example, since this else problem can come from 
other places than reported
>
> In context 2006-09-10 this error appears only in normal mode. Screen 
> mode is OK.
>
> Vit
>
> P.S. Today's beta shows even more problems:
> - inside typebuffer: only '\dochar {225}' instead of \'a in latin2
hm, sample ... maybe some pre-expansion problem
> - some metapost graphics is wrong
example ...
> But I suggest to solve them step by step.
sure 

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

* Re: bug in beta: extra \else
  2006-10-11  7:47 ` Hans Hagen
@ 2006-10-11 10:42   ` Vit Zyka
  2006-10-11 19:40     ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Vit Zyka @ 2006-10-11 10:42 UTC (permalink / raw)


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

Hans Hagen wrote:
> Vit Zyka wrote:
>> Hi all,
>>
>> there is some deep bug that was discovered translating Beginners 
>> manual. Let take single chapter e.g. ma-cb-cz-alignments.tex
>>
>> With today beta I got .log attached (error ! Extra \else)
>> This will appear in both modes screen and normal.
>>
>> Interesting is that no error appears in context 2006-05-28.
> quite some code is being rewritten / adapted to context mkiv so there 
> could be low level differences
> 
> can you make a small example, since this else problem can come from 
> other places than reported

There are demonstrative files. Please, run
   texmfstart texexec --pdf ma-cb-cz-test.tex
and
   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex

Vit

>> In context 2006-09-10 this error appears only in normal mode. Screen 
>> mode is OK.
>>
>> Vit
>>
>> P.S. Today's beta shows even more problems:
>> - inside typebuffer: only '\dochar {225}' instead of \'a in latin2
> hm, sample ... maybe some pre-expansion problem
>> - some metapost graphics is wrong
> example ...
>> But I suggest to solve them step by step.
> sure 
> 
> Hans 


[-- Attachment #2: ma-cb-cz-test.zip --]
[-- Type: application/x-zip-compressed, Size: 13584 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] 16+ messages in thread

* Re: bug in beta: extra \else
  2006-10-11 10:42   ` Vit Zyka
@ 2006-10-11 19:40     ` Hans Hagen
  2006-10-13 21:45       ` Vit Zyka
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2006-10-11 19:40 UTC (permalink / raw)


Vit Zyka wrote:
> Hans Hagen wrote:
>> Vit Zyka wrote:
>>> Hi all,
>>>
>>> there is some deep bug that was discovered translating Beginners 
>>> manual. Let take single chapter e.g. ma-cb-cz-alignments.tex
>>>
>>> With today beta I got .log attached (error ! Extra \else)
>>> This will appear in both modes screen and normal.
>>>
>>> Interesting is that no error appears in context 2006-05-28.
>> quite some code is being rewritten / adapted to context mkiv so there 
>> could be low level differences
>>
>> can you make a small example, since this else problem can come from 
>> other places than reported
>
> There are demonstrative files. Please, run
>   texmfstart texexec --pdf ma-cb-cz-test.tex
> and
>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex

this file: ma-cb-env-cz.tex refers to itself and probably should be : 


\startenvironment ma-cb-env-cz

\environment ma-cb.tex

\mainlanguage[cz]
\language[en]
\enableregime[latin2]

\stopenvironment

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

* Re: bug in beta: extra \else
  2006-10-11 19:40     ` Hans Hagen
@ 2006-10-13 21:45       ` Vit Zyka
  2006-10-13 23:16         ` Aditya Mahajan
  0 siblings, 1 reply; 16+ messages in thread
From: Vit Zyka @ 2006-10-13 21:45 UTC (permalink / raw)


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

Hans Hagen wrote:
> Vit Zyka wrote:
>> Hans Hagen wrote:
>>> Vit Zyka wrote:
>>>> Hi all,
>>>>
>>>> there is some deep bug that was discovered translating Beginners 
>>>> manual. Let take single chapter e.g. ma-cb-cz-alignments.tex
>>>>
>>>> With today beta I got .log attached (error ! Extra \else)
>>>> This will appear in both modes screen and normal.
>>>>
>>>> Interesting is that no error appears in context 2006-05-28.
>>> quite some code is being rewritten / adapted to context mkiv so there 
>>> could be low level differences
>>>
>>> can you make a small example, since this else problem can come from 
>>> other places than reported
>> There are demonstrative files. Please, run
>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>> and
>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
> 
> this file: ma-cb-env-cz.tex refers to itself and probably should be : 
> 
> 
> \startenvironment ma-cb-env-cz
> 
> \environment ma-cb.tex
> 
> \mainlanguage[cz]
> \language[en]
> \enableregime[latin2]
> 
> \stopenvironment

Sorry, my fault but it does not solve the problem. I obtain the same 
error with fresh context and corrected version of this file:

-----------------------------------------
\startenvironment ma-cb-env-cz

\mainlanguage[cz]
\language[en]
\enableregime[latin2]

\stopenvironment
-----------------------------------------

Vit

[-- Attachment #2: ma-cb-cz-test.zip --]
[-- Type: application/x-zip-compressed, Size: 13614 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] 16+ messages in thread

* Re: bug in beta: extra \else
  2006-10-13 21:45       ` Vit Zyka
@ 2006-10-13 23:16         ` Aditya Mahajan
  2006-10-14 15:35           ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Aditya Mahajan @ 2006-10-13 23:16 UTC (permalink / raw)


On Fri, 13 Oct 2006, Vit Zyka wrote:

> Hans Hagen wrote:
>> Vit Zyka wrote:
>>> Hans Hagen wrote:
>>>> Vit Zyka wrote:
>>>>> Hi all,
>>>>> 
>>>>> there is some deep bug that was discovered translating Beginners manual. 
>>>>> Let take single chapter e.g. ma-cb-cz-alignments.tex
>>>>> 
>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>> This will appear in both modes screen and normal.
>>>>> 
>>>>> Interesting is that no error appears in context 2006-05-28.
>>>> quite some code is being rewritten / adapted to context mkiv so there 
>>>> could be low level differences
>>>> 
>>>> can you make a small example, since this else problem can come from other 
>>>> places than reported
>>> There are demonstrative files. Please, run
>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>> and
>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>> 
>> this file: ma-cb-env-cz.tex refers to itself and probably should be : 
>> 
>> \startenvironment ma-cb-env-cz
>> 
>> \environment ma-cb.tex
>> 
>> \mainlanguage[cz]
>> \language[en]
>> \enableregime[latin2]
>> 
>> \stopenvironment
>
> Sorry, my fault but it does not solve the problem. I obtain the same error 
> with fresh context and corrected version of this file:
>
> -----------------------------------------
> \startenvironment ma-cb-env-cz
>
> \mainlanguage[cz]
> \language[en]
> \enableregime[latin2]
>
> \stopenvironment
> -----------------------------------------

There is something wrong with ma-cb environment files. The file 
ma-cb-en does not compile. I get an error

! Undefined control sequence.
\@@olbackground ->\StatusAchtergrond

\doifvaluesomething ...inga {\csname #1\endcsname
                                                   }\ifx \!!stringa 
\empty \e...

\stoplocalframed ...ing {\@@framed \c!background }
                                                   \dobackedbox 
\handleframed...

\PlaatschapterStatus ... [\v!chapter \v!number ]}}
                                                    \vskip 0pt plus 
\scratchc...
<argument> \PlaatschapterStatus
                                 {}{}{}
\firstoftwoarguments #1#2->#1

...
l.19     \Introduction   {Introduction}


I tried making minimal example of the file that you posted, but always 
get the same error. I am pretty certain that ma-cb-en.tex used to 
compile in the past.

Aditya

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

* Re: bug in beta: extra \else
  2006-10-13 23:16         ` Aditya Mahajan
@ 2006-10-14 15:35           ` Wolfgang Schuster
  2006-10-14 17:58             ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2006-10-14 15:35 UTC (permalink / raw)


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

On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
Aditya Mahajan <adityam@umich.edu> wrote:

> On Fri, 13 Oct 2006, Vit Zyka wrote:
> 
> > Hans Hagen wrote:
> >> Vit Zyka wrote:
> >>> Hans Hagen wrote:
> >>>> Vit Zyka wrote:
> >>>>> Hi all,
> >>>>> 
> >>>>> there is some deep bug that was discovered translating Beginners manual. 
> >>>>> Let take single chapter e.g. ma-cb-cz-alignments.tex
> >>>>> 
> >>>>> With today beta I got .log attached (error ! Extra \else)
> >>>>> This will appear in both modes screen and normal.
> >>>>> 
> >>>>> Interesting is that no error appears in context 2006-05-28.
> >>>> quite some code is being rewritten / adapted to context mkiv so there 
> >>>> could be low level differences
> >>>> 
> >>>> can you make a small example, since this else problem can come from other 
> >>>> places than reported
> >>> There are demonstrative files. Please, run
> >>>   texmfstart texexec --pdf ma-cb-cz-test.tex
> >>> and
> >>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
> >> 
> >> this file: ma-cb-env-cz.tex refers to itself and probably should be : 
> >> 
> >> \startenvironment ma-cb-env-cz
> >> 
> >> \environment ma-cb.tex
> >> 
> >> \mainlanguage[cz]
> >> \language[en]
> >> \enableregime[latin2]
> >> 
> >> \stopenvironment
> >
> > Sorry, my fault but it does not solve the problem. I obtain the same error 
> > with fresh context and corrected version of this file:
> >
> > -----------------------------------------
> > \startenvironment ma-cb-env-cz
> >
> > \mainlanguage[cz]
> > \language[en]
> > \enableregime[latin2]
> >
> > \stopenvironment
> > -----------------------------------------
> 
> There is something wrong with ma-cb environment files. The file 
> ma-cb-en does not compile. I get an error
> 
> ! Undefined control sequence.
> \@@olbackground ->\StatusAchtergrond
> 
> \doifvaluesomething ...inga {\csname #1\endcsname
>                                                    }\ifx \!!stringa 
> \empty \e...
> 
> \stoplocalframed ...ing {\@@framed \c!background }
>                                                    \dobackedbox 
> \handleframed...
> 
> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>                                                     \vskip 0pt plus 
> \scratchc...
> <argument> \PlaatschapterStatus
>                                  {}{}{}
> \firstoftwoarguments #1#2->#1
> 
> ...
> l.19     \Introduction   {Introduction}
> 
> 
> I tried making minimal example of the file that you posted, but always 
> get the same error. I am pretty certain that ma-cb-en.tex used to 
> compile in the past.
> 
> Aditya

Hi Aditya,

I had the same problems in past in solved them by myself. The problems
are dutch commands in the style-files and a typo.

I attached my corrected style-files, because it is faster to replace
send you the files than I need to look where I made corrections.

The files did not correct the problem with the backgrounds in the
headers Vit has mentioned. 

Wolfgang

[-- Attachment #2: ma-cb-env.zip --]
[-- Type: application/zip, Size: 9025 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] 16+ messages in thread

* Re: bug in beta: extra \else
  2006-10-14 15:35           ` Wolfgang Schuster
@ 2006-10-14 17:58             ` Hans Hagen
  2006-10-15 21:59               ` Vit Zyka
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2006-10-14 17:58 UTC (permalink / raw)


Wolfgang Schuster wrote:
> On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
> Aditya Mahajan <adityam@umich.edu> wrote:
>
>   
>> On Fri, 13 Oct 2006, Vit Zyka wrote:
>>
>>     
>>> Hans Hagen wrote:
>>>       
>>>> Vit Zyka wrote:
>>>>         
>>>>> Hans Hagen wrote:
>>>>>           
>>>>>> Vit Zyka wrote:
>>>>>>             
>>>>>>> Hi all,
>>>>>>>
>>>>>>> there is some deep bug that was discovered translating Beginners manual. 
>>>>>>> Let take single chapter e.g. ma-cb-cz-alignments.tex
>>>>>>>
>>>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>>>> This will appear in both modes screen and normal.
>>>>>>>
>>>>>>> Interesting is that no error appears in context 2006-05-28.
>>>>>>>               
>>>>>> quite some code is being rewritten / adapted to context mkiv so there 
>>>>>> could be low level differences
>>>>>>
>>>>>> can you make a small example, since this else problem can come from other 
>>>>>> places than reported
>>>>>>             
>>>>> There are demonstrative files. Please, run
>>>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>>>> and
>>>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>>>>>           
>>>> this file: ma-cb-env-cz.tex refers to itself and probably should be : 
>>>>
>>>> \startenvironment ma-cb-env-cz
>>>>
>>>> \environment ma-cb.tex
>>>>
>>>> \mainlanguage[cz]
>>>> \language[en]
>>>> \enableregime[latin2]
>>>>
>>>> \stopenvironment
>>>>         
>>> Sorry, my fault but it does not solve the problem. I obtain the same error 
>>> with fresh context and corrected version of this file:
>>>
>>> -----------------------------------------
>>> \startenvironment ma-cb-env-cz
>>>
>>> \mainlanguage[cz]
>>> \language[en]
>>> \enableregime[latin2]
>>>
>>> \stopenvironment
>>> -----------------------------------------
>>>       
>> There is something wrong with ma-cb environment files. The file 
>> ma-cb-en does not compile. I get an error
>>
>> ! Undefined control sequence.
>> \@@olbackground ->\StatusAchtergrond
>>
>> \doifvaluesomething ...inga {\csname #1\endcsname
>>                                                    }\ifx \!!stringa 
>> \empty \e...
>>
>> \stoplocalframed ...ing {\@@framed \c!background }
>>                                                    \dobackedbox 
>> \handleframed...
>>
>> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>>                                                     \vskip 0pt plus 
>> \scratchc...
>> <argument> \PlaatschapterStatus
>>                                  {}{}{}
>> \firstoftwoarguments #1#2->#1
>>
>> ...
>> l.19     \Introduction   {Introduction}
>>
>>
>> I tried making minimal example of the file that you posted, but always 
>> get the same error. I am pretty certain that ma-cb-en.tex used to 
>> compile in the past.
>>
>> Aditya
>>     
>
> Hi Aditya,
>
> I had the same problems in past in solved them by myself. The problems
> are dutch commands in the style-files and a typo.
>
> I attached my corrected style-files, because it is faster to replace
> send you the files than I need to look where I made corrections.
>
> The files did not correct the problem with the backgrounds in the
> headers Vit has mentioned. 
>   
        \edef\StatusAchtergrond
          {StatusAchtergrond%
           \ifodd\realpageno R\else\ifdoublesided L\else R\fi\fi}%

\ifdubbelzijdig -> \ifdoublesided 

this low level if has been changed, ad a result tex's 'fast if then else ' skip routine does not see the \ifdubbelzijdig is if and gets confused 

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

* Re: bug in beta: extra \else
  2006-10-14 17:58             ` Hans Hagen
@ 2006-10-15 21:59               ` Vit Zyka
  2006-10-16 15:06                 ` Aditya Mahajan
  2006-10-16 19:51                 ` Hans Hagen
  0 siblings, 2 replies; 16+ messages in thread
From: Vit Zyka @ 2006-10-15 21:59 UTC (permalink / raw)


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

Hans Hagen wrote:
> Wolfgang Schuster wrote:
>> On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
>> Aditya Mahajan <adityam@umich.edu> wrote:
>>
>>   
>>> On Fri, 13 Oct 2006, Vit Zyka wrote:
>>>
>>>     
>>>> Hans Hagen wrote:
>>>>       
>>>>> Vit Zyka wrote:
>>>>>         
>>>>>> Hans Hagen wrote:
>>>>>>           
>>>>>>> Vit Zyka wrote:
>>>>>>>             
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> there is some deep bug that was discovered translating Beginners manual. 
>>>>>>>> Let take single chapter e.g. ma-cb-cz-alignments.tex
>>>>>>>>
>>>>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>>>>> This will appear in both modes screen and normal.
>>>>>>>>
>>>>>>>> Interesting is that no error appears in context 2006-05-28.
>>>>>>>>               
>>>>>>> quite some code is being rewritten / adapted to context mkiv so there 
>>>>>>> could be low level differences
>>>>>>>
>>>>>>> can you make a small example, since this else problem can come from other 
>>>>>>> places than reported
>>>>>>>             
>>>>>> There are demonstrative files. Please, run
>>>>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>>>>> and
>>>>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>>>>>>           
>>>>> this file: ma-cb-env-cz.tex refers to itself and probably should be : 
>>>>>
>>>>> \startenvironment ma-cb-env-cz
>>>>>
>>>>> \environment ma-cb.tex
>>>>>
>>>>> \mainlanguage[cz]
>>>>> \language[en]
>>>>> \enableregime[latin2]
>>>>>
>>>>> \stopenvironment
>>>>>         
>>>> Sorry, my fault but it does not solve the problem. I obtain the same error 
>>>> with fresh context and corrected version of this file:
>>>>
>>>> -----------------------------------------
>>>> \startenvironment ma-cb-env-cz
>>>>
>>>> \mainlanguage[cz]
>>>> \language[en]
>>>> \enableregime[latin2]
>>>>
>>>> \stopenvironment
>>>> -----------------------------------------
>>>>       
>>> There is something wrong with ma-cb environment files. The file 
>>> ma-cb-en does not compile. I get an error
>>>
>>> ! Undefined control sequence.
>>> \@@olbackground ->\StatusAchtergrond
>>>
>>> \doifvaluesomething ...inga {\csname #1\endcsname
>>>                                                    }\ifx \!!stringa 
>>> \empty \e...
>>>
>>> \stoplocalframed ...ing {\@@framed \c!background }
>>>                                                    \dobackedbox 
>>> \handleframed...
>>>
>>> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>>>                                                     \vskip 0pt plus 
>>> \scratchc...
>>> <argument> \PlaatschapterStatus
>>>                                  {}{}{}
>>> \firstoftwoarguments #1#2->#1
>>>
>>> ...
>>> l.19     \Introduction   {Introduction}
>>>
>>>
>>> I tried making minimal example of the file that you posted, but always 
>>> get the same error. I am pretty certain that ma-cb-en.tex used to 
>>> compile in the past.
>>>
>>> Aditya
>>>     
>> Hi Aditya,
>>
>> I had the same problems in past in solved them by myself. The problems
>> are dutch commands in the style-files and a typo.
>>
>> I attached my corrected style-files, because it is faster to replace
>> send you the files than I need to look where I made corrections.
>>
>> The files did not correct the problem with the backgrounds in the
>> headers Vit has mentioned. 
>>   
>         \edef\StatusAchtergrond
>           {StatusAchtergrond%
>            \ifodd\realpageno R\else\ifdoublesided L\else R\fi\fi}%
> 
> \ifdubbelzijdig -> \ifdoublesided 
 >
> this low level if has been changed, ad a result tex's 'fast if then else ' skip routine does not see the \ifdubbelzijdig is if and gets confused 
> 
> Hans 

Great, thank you Hans!

Let us process to teh next two problems also visible in the test file.

1. In the chapter ornament (a gray spiral with red dots) the red dots 
are not dots but lines.

2. Accented characters inside \typebuffer are type set as
    \dochar {225}

Vit


[-- Attachment #2: ma-cb-cz-test.zip --]
[-- Type: application/x-zip-compressed, Size: 13621 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] 16+ messages in thread

* Re: bug in beta: extra \else
  2006-10-15 21:59               ` Vit Zyka
@ 2006-10-16 15:06                 ` Aditya Mahajan
  2006-10-16 15:09                   ` Aditya Mahajan
  2006-10-16 17:16                   ` Hans Hagen
  2006-10-16 19:51                 ` Hans Hagen
  1 sibling, 2 replies; 16+ messages in thread
From: Aditya Mahajan @ 2006-10-16 15:06 UTC (permalink / raw)


On Sun, 15 Oct 2006, Vit Zyka wrote:
> Great, thank you Hans!
>
> Let us process to teh next two problems also visible in the test file.
>
> 1. [snip]

> 2. Accented characters inside \typebuffer are type set as
>   \dochar {225}

This seems to be a bug. In utf-8 encoding, if an accented character is 
the first character of a buffer, it gets typed correctly. All other 
accented charaters come out as \dochar {225}. \getbuffer works fine.

Can TeX choose the input encoding while writing files? If not, there 
may be really no robust way to solve this problem.

Aditya

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

* Re: bug in beta: extra \else
  2006-10-16 15:06                 ` Aditya Mahajan
@ 2006-10-16 15:09                   ` Aditya Mahajan
  2006-10-16 17:12                     ` Hans Hagen
  2006-10-16 17:16                   ` Hans Hagen
  1 sibling, 1 reply; 16+ messages in thread
From: Aditya Mahajan @ 2006-10-16 15:09 UTC (permalink / raw)


[-- Attachment #1: Type: TEXT/PLAIN, Size: 742 bytes --]

On Mon, 16 Oct 2006, Aditya Mahajan wrote:

> On Sun, 15 Oct 2006, Vit Zyka wrote:
>> Great, thank you Hans!
>>
>> Let us process to teh next two problems also visible in the test file.
>>
>> 1. [snip]
>
>> 2. Accented characters inside \typebuffer are type set as
>>   \dochar {225}
>
> This seems to be a bug. In utf-8 encoding, if an accented character is
> the first character of a buffer, it gets typed correctly. All other
> accented charaters come out as \dochar {225}. \getbuffer works fine.

I forgot to attach the test file. I am attaching it, hoping that the 
encoding will come out correctly.

>
> Can TeX choose the input encoding while writing files? If not, there
> may be really no robust way to solve this problem.
>
> Aditya

[-- Attachment #2: Type: TEXT/PLAIN, Size: 169 bytes --]

\enableregime[utf]
\starttext
\startbuffer
ábout Whát
\stopbuffer
\typebuffer \getbuffer

\startbuffer
Whát 
\stopbuffer
\typebuffer \getbuffer
\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] 16+ messages in thread

* Re: bug in beta: extra \else
  2006-10-16 15:09                   ` Aditya Mahajan
@ 2006-10-16 17:12                     ` Hans Hagen
  2006-10-18 11:02                       ` Vit Zyka
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2006-10-16 17:12 UTC (permalink / raw)


Aditya Mahajan wrote:
> On Mon, 16 Oct 2006, Aditya Mahajan wrote:
>
>> On Sun, 15 Oct 2006, Vit Zyka wrote:
>>> Great, thank you Hans!
>>>
>>> Let us process to teh next two problems also visible in the test file.
>>>
>>> 1. [snip]
>>
>>> 2. Accented characters inside \typebuffer are type set as
>>>   \dochar {225}
>>
>> This seems to be a bug. In utf-8 encoding, if an accented character is
>> the first character of a buffer, it gets typed correctly. All other
>> accented charaters come out as \dochar {225}. \getbuffer works fine.
>
> I forgot to attach the test file. I am attaching it, hoping that the 
> encoding will come out correctly.
>
>>
>> Can TeX choose the input encoding while writing files? If not, there
>> may be really no robust way to solve this problem.
>>
>> Aditya

in core-buf we need to treat the upper half of the vector:

   \recatcodeuppercharacterstrue % <--- 
   \setcatcodetable\vrbcatcodes

in startbuffer

(i cannot post a fixed file yet because buffers and verbatim is being reshuffled due to mkii/mkiv preparations) 

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

* Re: bug in beta: extra \else
  2006-10-16 15:06                 ` Aditya Mahajan
  2006-10-16 15:09                   ` Aditya Mahajan
@ 2006-10-16 17:16                   ` Hans Hagen
  1 sibling, 0 replies; 16+ messages in thread
From: Hans Hagen @ 2006-10-16 17:16 UTC (permalink / raw)


Aditya Mahajan wrote:
> On Sun, 15 Oct 2006, Vit Zyka wrote:
>   
>> Great, thank you Hans!
>>
>> Let us process to teh next two problems also visible in the test file.
>>
>> 1. [snip]
>>     
>
>   
>> 2. Accented characters inside \typebuffer are type set as
>>   \dochar {225}
>>     
>
> This seems to be a bug. In utf-8 encoding, if an accented character is 
> the first character of a buffer, it gets typed correctly. All other 
> accented charaters come out as \dochar {225}. \getbuffer works fine.
>
> Can TeX choose the input encoding while writing files? If not, there 
> may be really no robust way to solve this problem.
>   
a solution if to completely move to utf-8 internally and then make chars  > 127 unexpandable ; the problem is that whatever input encoding does not mix well with multipass utf data then 

in mkiv we will follow a different route since luatex is utf internally 

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

* Re: bug in beta: extra \else
  2006-10-15 21:59               ` Vit Zyka
  2006-10-16 15:06                 ` Aditya Mahajan
@ 2006-10-16 19:51                 ` Hans Hagen
  2006-10-18 11:02                   ` Vit Zyka
  1 sibling, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2006-10-16 19:51 UTC (permalink / raw)


Vit Zyka wrote:
> Hans Hagen wrote:
>> Wolfgang Schuster wrote:
>>> On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
>>> Aditya Mahajan <adityam@umich.edu> wrote:
>>>
>>>  
>>>> On Fri, 13 Oct 2006, Vit Zyka wrote:
>>>>
>>>>    
>>>>> Hans Hagen wrote:
>>>>>      
>>>>>> Vit Zyka wrote:
>>>>>>        
>>>>>>> Hans Hagen wrote:
>>>>>>>          
>>>>>>>> Vit Zyka wrote:
>>>>>>>>            
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> there is some deep bug that was discovered translating 
>>>>>>>>> Beginners manual. Let take single chapter e.g. 
>>>>>>>>> ma-cb-cz-alignments.tex
>>>>>>>>>
>>>>>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>>>>>> This will appear in both modes screen and normal.
>>>>>>>>>
>>>>>>>>> Interesting is that no error appears in context 2006-05-28.
>>>>>>>>>               
>>>>>>>> quite some code is being rewritten / adapted to context mkiv so 
>>>>>>>> there could be low level differences
>>>>>>>>
>>>>>>>> can you make a small example, since this else problem can come 
>>>>>>>> from other places than reported
>>>>>>>>             
>>>>>>> There are demonstrative files. Please, run
>>>>>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>>>>>> and
>>>>>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>>>>>>>           
>>>>>> this file: ma-cb-env-cz.tex refers to itself and probably should 
>>>>>> be :
>>>>>> \startenvironment ma-cb-env-cz
>>>>>>
>>>>>> \environment ma-cb.tex
>>>>>>
>>>>>> \mainlanguage[cz]
>>>>>> \language[en]
>>>>>> \enableregime[latin2]
>>>>>>
>>>>>> \stopenvironment
>>>>>>         
>>>>> Sorry, my fault but it does not solve the problem. I obtain the 
>>>>> same error with fresh context and corrected version of this file:
>>>>>
>>>>> -----------------------------------------
>>>>> \startenvironment ma-cb-env-cz
>>>>>
>>>>> \mainlanguage[cz]
>>>>> \language[en]
>>>>> \enableregime[latin2]
>>>>>
>>>>> \stopenvironment
>>>>> -----------------------------------------
>>>>>       
>>>> There is something wrong with ma-cb environment files. The file 
>>>> ma-cb-en does not compile. I get an error
>>>>
>>>> ! Undefined control sequence.
>>>> \@@olbackground ->\StatusAchtergrond
>>>>
>>>> \doifvaluesomething ...inga {\csname #1\endcsname
>>>>                                                    }\ifx \!!stringa 
>>>> \empty \e...
>>>>
>>>> \stoplocalframed ...ing {\@@framed \c!background }
>>>>                                                    \dobackedbox 
>>>> \handleframed...
>>>>
>>>> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>>>>                                                     \vskip 0pt plus 
>>>> \scratchc...
>>>> <argument> \PlaatschapterStatus
>>>>                                  {}{}{}
>>>> \firstoftwoarguments #1#2->#1
>>>>
>>>> ...
>>>> l.19     \Introduction   {Introduction}
>>>>
>>>>
>>>> I tried making minimal example of the file that you posted, but 
>>>> always get the same error. I am pretty certain that ma-cb-en.tex 
>>>> used to compile in the past.
>>>>
>>>> Aditya
>>>>     
>>> Hi Aditya,
>>>
>>> I had the same problems in past in solved them by myself. The problems
>>> are dutch commands in the style-files and a typo.
>>>
>>> I attached my corrected style-files, because it is faster to replace
>>> send you the files than I need to look where I made corrections.
>>>
>>> The files did not correct the problem with the backgrounds in the
>>> headers Vit has mentioned.   
>>         \edef\StatusAchtergrond
>>           {StatusAchtergrond%
>>            \ifodd\realpageno R\else\ifdoublesided L\else R\fi\fi}%
>>
>> \ifdubbelzijdig -> \ifdoublesided 
> >
>> this low level if has been changed, ad a result tex's 'fast if then 
>> else ' skip routine does not see the \ifdubbelzijdig is if and gets 
>> confused
>> Hans 
>
> Great, thank you Hans!
>
> Let us process to teh next two problems also visible in the test file.
>
> 1. In the chapter ornament (a gray spiral with red dots) the red dots 
> are not dots but lines.
that was a tough one (esp because my by-now reference mkiv converter 
also had this problem)

in meta-pdf.mkii patch:

\def\flushconcatMPsegment
  {\ifcase\getMPkeyword\relax
     \flushMPconcatmoveto
     \resetMPmoveto
     \doMPconcat{\gMPs1}\a{\gMPs2}\b%
     \PDFcode{\!MP\a\space\!MP\b\space l}%
   \or
     \flushMPconcatmoveto
     \resetMPmoveto
     \doMPconcat{\gMPs1}\a{\gMPs2}\b%
     \doMPconcat{\gMPs3}\c{\gMPs4}\d%
     \doMPconcat{\gMPs5}\e{\gMPs6}\f%
     \PDFcode{\!MP\a\space\!MP\b\space
              \!MP\c\space\!MP\d\space
              \!MP\e\space\!MP\f\space c}%
   \or
     \bgroup
     \noMPtranslate
     \flushMPconcatmoveto
     \PDFcode{\!MP\lastMPmoveX\space \!MP\lastMPmoveY\space l S}
     \egroup
     \resetMPmoveto
   \or
%      \flushMPconcatmoveto
%      \resetMPmoveto
   \fi}

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

* Re: bug in beta: extra \else
  2006-10-16 19:51                 ` Hans Hagen
@ 2006-10-18 11:02                   ` Vit Zyka
  0 siblings, 0 replies; 16+ messages in thread
From: Vit Zyka @ 2006-10-18 11:02 UTC (permalink / raw)


Hans Hagen wrote:
> Vit Zyka wrote:
>> Hans Hagen wrote:
>>> Wolfgang Schuster wrote:
>>>> On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
>>>> Aditya Mahajan <adityam@umich.edu> wrote:
>>>>
>>>>  
>>>>> On Fri, 13 Oct 2006, Vit Zyka wrote:
>>>>>
>>>>>    
>>>>>> Hans Hagen wrote:
>>>>>>      
>>>>>>> Vit Zyka wrote:
>>>>>>>        
>>>>>>>> Hans Hagen wrote:
>>>>>>>>          
>>>>>>>>> Vit Zyka wrote:
>>>>>>>>>            
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> there is some deep bug that was discovered translating 
>>>>>>>>>> Beginners manual. Let take single chapter e.g. 
>>>>>>>>>> ma-cb-cz-alignments.tex
>>>>>>>>>>
>>>>>>>>>> With today beta I got .log attached (error ! Extra \else)
>>>>>>>>>> This will appear in both modes screen and normal.
>>>>>>>>>>
>>>>>>>>>> Interesting is that no error appears in context 2006-05-28.
>>>>>>>>>>               
>>>>>>>>> quite some code is being rewritten / adapted to context mkiv so 
>>>>>>>>> there could be low level differences
>>>>>>>>>
>>>>>>>>> can you make a small example, since this else problem can come 
>>>>>>>>> from other places than reported
>>>>>>>>>             
>>>>>>>> There are demonstrative files. Please, run
>>>>>>>>   texmfstart texexec --pdf ma-cb-cz-test.tex
>>>>>>>> and
>>>>>>>>   texmfstart texexec --pdf --mode=screen ma-cb-cz-test.tex
>>>>>>>>           
>>>>>>> this file: ma-cb-env-cz.tex refers to itself and probably should 
>>>>>>> be :
>>>>>>> \startenvironment ma-cb-env-cz
>>>>>>>
>>>>>>> \environment ma-cb.tex
>>>>>>>
>>>>>>> \mainlanguage[cz]
>>>>>>> \language[en]
>>>>>>> \enableregime[latin2]
>>>>>>>
>>>>>>> \stopenvironment
>>>>>>>         
>>>>>> Sorry, my fault but it does not solve the problem. I obtain the 
>>>>>> same error with fresh context and corrected version of this file:
>>>>>>
>>>>>> -----------------------------------------
>>>>>> \startenvironment ma-cb-env-cz
>>>>>>
>>>>>> \mainlanguage[cz]
>>>>>> \language[en]
>>>>>> \enableregime[latin2]
>>>>>>
>>>>>> \stopenvironment
>>>>>> -----------------------------------------
>>>>>>       
>>>>> There is something wrong with ma-cb environment files. The file 
>>>>> ma-cb-en does not compile. I get an error
>>>>>
>>>>> ! Undefined control sequence.
>>>>> \@@olbackground ->\StatusAchtergrond
>>>>>
>>>>> \doifvaluesomething ...inga {\csname #1\endcsname
>>>>>                                                    }\ifx \!!stringa 
>>>>> \empty \e...
>>>>>
>>>>> \stoplocalframed ...ing {\@@framed \c!background }
>>>>>                                                    \dobackedbox 
>>>>> \handleframed...
>>>>>
>>>>> \PlaatschapterStatus ... [\v!chapter \v!number ]}}
>>>>>                                                     \vskip 0pt plus 
>>>>> \scratchc...
>>>>> <argument> \PlaatschapterStatus
>>>>>                                  {}{}{}
>>>>> \firstoftwoarguments #1#2->#1
>>>>>
>>>>> ...
>>>>> l.19     \Introduction   {Introduction}
>>>>>
>>>>>
>>>>> I tried making minimal example of the file that you posted, but 
>>>>> always get the same error. I am pretty certain that ma-cb-en.tex 
>>>>> used to compile in the past.
>>>>>
>>>>> Aditya
>>>>>     
>>>> Hi Aditya,
>>>>
>>>> I had the same problems in past in solved them by myself. The problems
>>>> are dutch commands in the style-files and a typo.
>>>>
>>>> I attached my corrected style-files, because it is faster to replace
>>>> send you the files than I need to look where I made corrections.
>>>>
>>>> The files did not correct the problem with the backgrounds in the
>>>> headers Vit has mentioned.   
>>>         \edef\StatusAchtergrond
>>>           {StatusAchtergrond%
>>>            \ifodd\realpageno R\else\ifdoublesided L\else R\fi\fi}%
>>>
>>> \ifdubbelzijdig -> \ifdoublesided 
>>>
>>> this low level if has been changed, ad a result tex's 'fast if then 
>>> else ' skip routine does not see the \ifdubbelzijdig is if and gets 
>>> confused
>>> Hans 
>> Great, thank you Hans!
>>
>> Let us process to teh next two problems also visible in the test file.
>>
>> 1. In the chapter ornament (a gray spiral with red dots) the red dots 
>> are not dots but lines.
> that was a tough one (esp because my by-now reference mkiv converter 
> also had this problem)
> 
> in meta-pdf.mkii patch:
> 
> \def\flushconcatMPsegment
>   {\ifcase\getMPkeyword\relax
>      \flushMPconcatmoveto
>      \resetMPmoveto
>      \doMPconcat{\gMPs1}\a{\gMPs2}\b%
>      \PDFcode{\!MP\a\space\!MP\b\space l}%
>    \or
>      \flushMPconcatmoveto
>      \resetMPmoveto
>      \doMPconcat{\gMPs1}\a{\gMPs2}\b%
>      \doMPconcat{\gMPs3}\c{\gMPs4}\d%
>      \doMPconcat{\gMPs5}\e{\gMPs6}\f%
>      \PDFcode{\!MP\a\space\!MP\b\space
>               \!MP\c\space\!MP\d\space
>               \!MP\e\space\!MP\f\space c}%
>    \or
>      \bgroup
>      \noMPtranslate
>      \flushMPconcatmoveto
>      \PDFcode{\!MP\lastMPmoveX\space \!MP\lastMPmoveY\space l S}
>      \egroup
>      \resetMPmoveto
>    \or
> %      \flushMPconcatmoveto
> %      \resetMPmoveto
>    \fi}

Great Hans, it works well! Thank you
Vit

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

* Re: bug in beta: extra \else
  2006-10-16 17:12                     ` Hans Hagen
@ 2006-10-18 11:02                       ` Vit Zyka
  0 siblings, 0 replies; 16+ messages in thread
From: Vit Zyka @ 2006-10-18 11:02 UTC (permalink / raw)


Hans Hagen wrote:
> Aditya Mahajan wrote:
>> On Mon, 16 Oct 2006, Aditya Mahajan wrote:
>>
>>> On Sun, 15 Oct 2006, Vit Zyka wrote:
>>>> Great, thank you Hans!
>>>>
>>>> Let us process to teh next two problems also visible in the test file.
>>>>
>>>> 1. [snip]
>>>> 2. Accented characters inside \typebuffer are type set as
>>>>   \dochar {225}
>>> This seems to be a bug. In utf-8 encoding, if an accented character is
>>> the first character of a buffer, it gets typed correctly. All other
>>> accented charaters come out as \dochar {225}. \getbuffer works fine.
>> I forgot to attach the test file. I am attaching it, hoping that the 
>> encoding will come out correctly.
>>
>>> Can TeX choose the input encoding while writing files? If not, there
>>> may be really no robust way to solve this problem.
>>>
>>> Aditya
> 
> in core-buf we need to treat the upper half of the vector:
> 
>    \recatcodeuppercharacterstrue % <--- 
>    \setcatcodetable\vrbcatcodes
> 
> in startbuffer

It also works well. Thank you
Vit

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

end of thread, other threads:[~2006-10-18 11:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 22:05 bug in beta: extra \else Vit Zyka
2006-10-11  7:47 ` Hans Hagen
2006-10-11 10:42   ` Vit Zyka
2006-10-11 19:40     ` Hans Hagen
2006-10-13 21:45       ` Vit Zyka
2006-10-13 23:16         ` Aditya Mahajan
2006-10-14 15:35           ` Wolfgang Schuster
2006-10-14 17:58             ` Hans Hagen
2006-10-15 21:59               ` Vit Zyka
2006-10-16 15:06                 ` Aditya Mahajan
2006-10-16 15:09                   ` Aditya Mahajan
2006-10-16 17:12                     ` Hans Hagen
2006-10-18 11:02                       ` Vit Zyka
2006-10-16 17:16                   ` Hans Hagen
2006-10-16 19:51                 ` Hans Hagen
2006-10-18 11:02                   ` Vit Zyka

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