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. 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)
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
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
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
On Fri, 13 Oct 2006 19:16:58 -0400 (EDT)
Aditya Mahajan
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
Wolfgang Schuster wrote:
On Fri, 13 Oct 2006 19:16:58 -0400 (EDT) Aditya Mahajan
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 -----------------------------------------------------------------
Hans Hagen wrote:
Wolfgang Schuster wrote:
On Fri, 13 Oct 2006 19:16:58 -0400 (EDT) Aditya Mahajan
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
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
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
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 -----------------------------------------------------------------
Hans Hagen wrote:
Aditya Mahajan wrote:
On Mon, 16 Oct 2006, Aditya Mahajan 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
On Sun, 15 Oct 2006, Vit Zyka wrote: 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
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 -----------------------------------------------------------------
Hans Hagen wrote:
Wolfgang Schuster wrote:
On Fri, 13 Oct 2006 19:16:58 -0400 (EDT) Aditya Mahajan
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.
Vit Zyka wrote: 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 -----------------------------------------------------------------
Hans Hagen wrote:
Hans Hagen wrote:
Wolfgang Schuster wrote:
On Fri, 13 Oct 2006 19:16:58 -0400 (EDT) Aditya Mahajan
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.
Vit Zyka wrote: 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
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Vit Zyka
-
Wolfgang Schuster