ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "Mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Gentium Basic/Book (getting weird)
Date: Fri, 23 Nov 2007 16:51:45 +0100	[thread overview]
Message-ID: <6faad9f00711230751w19d4238ch48244166780b1744@mail.gmail.com> (raw)
In-Reply-To: <20071123141151.GC12880@phare.normalesup.org>

On Nov 23, 2007 3:11 PM, Arthur Reutenauer wrote:
> > ... Hmmm .... when thinking agin ... I know that you asked me which
> > regime name to pass to XeTeX and I said "don't worry, it should be
> > more or less the same", but "8859-1" isn't valid regime name either.
> > I'll take a look and report back.
>
>   The recent archives from the XeTeX list seem to yield
> \XeTeXinputencoding{utf8} or \XeTeXinputencoding "ISO-8859-1". I assume
> that both syntaxes are recognized by XeTeX (with curly braces or double quotes).

No, it's not about the syntax, but rather about the list of accepted
names for input encodings.

Apart from those three in regi-syn (only left for backward-compatibility):
    \defineregimesynonym [windows]      [cp1252]
    \defineregimesynonym [grk]          [8859-7]
    \defineregimesynonym [iso88595]     [8859-5]
and maybe some others in regi-cyp/cyr, XeTeX seems to accept a wide
variety of names, so I would suggest the following fix in
regi-ini.mkii:

\beginXETEX

% no idea what these do, but may be left if needed:
    \let\mkloadregime   \gobbleoneargument
    \let\mkenableregime \gobbleoneargument
    \let\mkwalkregime   \gobbleoneargument
    \let\mkautosetregime\gobbletwoarguments

    % sets input encoding to whatever the user asks for. utf is mapped to utf-8
    \def\enableregime[#1]%
       {\doifelse{#1}{utf}%
           {\message{Specifying UTF-8 input encoding/regime is not
needed in XeTeX, but if you do it,}%
            \message{please use [backslash] enableregime[utf-8]
instead of [utf].}%
            \edef\currentregime{utf-8}}{\edef\currentregime{#1}}%
        \doifnot{\currentregime}{utf-8}{\message{You are highly
encouraged to switch over to UTF-8 input encoding.}}%
        \XeTeXinputencoding{\currentregime}%
        \message{Using input encoding/regime \currentregime}}

\endXETEX

Mojca
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-11-23 15:51 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19 18:04 Gentium Basic/Book Joel C. Salomon
2007-11-19 21:57 ` Joel C. Salomon
2007-11-19 22:18   ` Hans Hagen
2007-11-20  0:57   ` Mojca Miklavec
2007-11-22 11:01     ` Steffen Wolfrum
2007-11-22 11:30       ` Mojca Miklavec
2007-11-22 12:52         ` Steffen Wolfrum
2007-11-22 18:31           ` Wolfgang Schuster
2007-11-22 19:57             ` Gentium Basic/Book (getting weird) Steffen Wolfrum
2007-11-22 20:23               ` Mojca Miklavec
2007-11-22 20:35                 ` Steffen Wolfrum
2007-11-23 10:53                   ` Steffen Wolfrum
2007-11-23 13:44                     ` Mojca Miklavec
2007-11-23 14:11                       ` Arthur Reutenauer
2007-11-23 15:51                         ` Mojca Miklavec [this message]
2007-11-23 16:33                           ` Gentium Basic/Book (getting even weirder) Steffen Wolfrum
2007-11-24  0:25                             ` Mojca Miklavec
2007-11-24 21:33                               ` Steffen Wolfrum
2007-11-25  1:30                                 ` Mojca Miklavec
2007-11-25 11:21                                   ` Steffen Wolfrum
2007-11-25 12:51                                     ` Mojca Miklavec
2007-11-23 19:28                           ` Gentium Basic/Book (getting weird) Arthur Reutenauer
2007-11-23 19:36                             ` Steffen Wolfrum
2007-11-23 22:15                               ` Arthur Reutenauer
2007-11-23 23:38                               ` Mojca Miklavec
2007-11-24 22:48                       ` Hans Hagen
2007-11-23 10:54                 ` Wolfgang Schuster
2007-11-25 20:27                 ` Gentium Basic/Book [solved] Steffen Wolfrum
2007-11-22 21:28             ` Gentium Basic/Book Joel C. Salomon
2007-11-22 15:10         ` Steffen Wolfrum

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=6faad9f00711230751w19d4238ch48244166780b1744@mail.gmail.com \
    --to=mojca.miklavec.lists@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).