* CP 1250 & component
@ 2012-09-19 13:02 Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-21 19:13 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-09-19 13:02 UTC (permalink / raw)
To: ConTeXt
[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]
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
[-- Attachment #2: t-Comp.mkiv --]
[-- Type: application/octet-stream, Size: 115 bytes --]
\enableregime[cp1250]
\input t-M.mkiv
%\environment t-Env.mkiv
\startcomponent *
Comp
\stopcomponent
[-- Attachment #3: t-Env.mkiv --]
[-- Type: application/octet-stream, Size: 84 bytes --]
%\enableregime[cp1250]
\input t-M.mkiv
\startenvironment *
\stopenvironment
[-- Attachment #4: t-M.mkiv --]
[-- Type: application/octet-stream, Size: 39 bytes --]
%\enableregime[cp1250]
\def\ccc{è}
[-- Attachment #5: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: CP 1250 & component
2012-09-19 13:02 CP 1250 & component Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-09-21 19:13 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-09-21 19:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 19.09.2012 um 15:02 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-21 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-19 13:02 CP 1250 & component Procházka Lukáš Ing. - Pontex s. r. o.
2012-09-21 19:13 ` Wolfgang Schuster
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).