ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: CP 1250 & component
Date: Wed, 19 Sep 2012 15:02:55 +0200	[thread overview]
Message-ID: <op.wkvvu5xltpjj8f@lpr> (raw)

[-- 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
___________________________________________________________________________________

             reply	other threads:[~2012-09-19 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19 13:02 Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2012-09-21 19:13 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.wkvvu5xltpjj8f@lpr \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).