ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: CP 1250 & component
Date: Fri, 21 Sep 2012 21:13:36 +0200	[thread overview]
Message-ID: <B82696C0-1191-4E39-9163-E0C75388189F@gmail.com> (raw)
In-Reply-To: <op.wkvvu5xltpjj8f@lpr>


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
___________________________________________________________________________________

      reply	other threads:[~2012-09-21 19:13 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.
2012-09-21 19:13 ` Wolfgang Schuster [this message]

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=B82696C0-1191-4E39-9163-E0C75388189F@gmail.com \
    --to=wolfgang.schuster@gmail.com \
    --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).