CP 1250 & component
Hello, I have problem using CP 1250 and component/environment. Suppose having a simple example: ---- t-M.mkiv - File of macro definitions %\enableregime[cp1250] \def\ccc{č} % A Czech letter with diacritics ---- ---- t-Env.mkiv - Environment file - just load macros %\enableregime[cp1250] \input t-M.mkiv \startenvironment * \stopenvironment ---- ---- t-Comp.mkiv - Component - this file is to be compiled %\enableregime[cp1250] \environment t-Env.mkiv \startcomponent * Comp \stopcomponent ---- I tried to place "\enableregime[cp1250]" statement to all places where it is marked as comment now, but no position was accepted by ConTeXt - I was always getting: " ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.3 int: english/english ... regimes > loading > vector 'cp1250' is loaded (t-Env.mkiv (t-M.mkiv ! String contains an invalid utf-8 sequence. system > tex > error on line 3 in file t-M.mkiv: String contains an invalid utf-8 sequence ... 1 %\enableregime[cp1250] 2 3 >> \def\ccc{Ŕ} 4 l.3 \def\ccc{ Ŕ} ) Runaway definition? ->´┐Ż" ... " Note that the following code works OK: ---- t-Comp(alt).mkiv - Component with successful compilation \enableregime[cp1250] \input t-M.mkiv % The "problematic" file is loaded here \startcomponent * Comp \stopcomponent ---- So is there a way how to involve the macro file "t-M.mkiv" (CP 1250, Czech) into the environment file "t-Env.mkiv"? TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
Am 19.09.2012 um 15:02 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
I have problem using CP 1250 and component/environment.
Suppose having a simple example:
---- t-M.mkiv - File of macro definitions %\enableregime[cp1250]
\def\ccc{č} % A Czech letter with diacritics ----
---- t-Env.mkiv - Environment file - just load macros %\enableregime[cp1250]
\input t-M.mkiv
\startenvironment * \stopenvironment ----
---- t-Comp.mkiv - Component - this file is to be compiled %\enableregime[cp1250]
\environment t-Env.mkiv
\startcomponent * Comp \stopcomponent ----
I tried to place "\enableregime[cp1250]" statement to all places where it is marked as comment now, but no position was accepted by ConTeXt - I was always getting:
" ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.3 int: english/english ... regimes > loading > vector 'cp1250' is loaded (t-Env.mkiv (t-M.mkiv ! String contains an invalid utf-8 sequence.
system > tex > error on line 3 in file t-M.mkiv: String contains an invalid utf-8 sequence ...
1 %\enableregime[cp1250] 2 3 >> \def\ccc{Ŕ} 4
l.3 \def\ccc{ Ŕ} ) Runaway definition? ->´┐Ż" ... "
Note that the following code works OK:
---- t-Comp(alt).mkiv - Component with successful compilation \enableregime[cp1250]
\input t-M.mkiv % The "problematic" file is loaded here
\startcomponent * Comp \stopcomponent ----
So is there a way how to involve the macro file "t-M.mkiv" (CP 1250, Czech) into the environment file "t-Env.mkiv"?
I have no idea how to fix this but when you have this problem only in your environment file for a few string I would replace č with \ccaron. Wolfgang
participants (2)
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster