ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Character names
Date: Fri, 23 Dec 2005 11:31:37 +0100	[thread overview]
Message-ID: <43ABD209.2090501@wxs.nl> (raw)
In-Reply-To: <6faad9f00512221700s4c200df9v6e2a0963304918b6@mail.gmail.com>

Mojca Miklavec wrote:

>\defineregimesynonym[windows-1250][cp1250]
>  
>

the synonym features is already in the kernel; the following patch to 
regi-ini will permit file name synonyms, so

\definefilesynonym[regi-win][...]

patch:

\def\douseregime#1% nearly identical to encoding
  {\doifundefined{\c!file\f!regimeprefix#1}%
     {\setvalue{\c!file\f!regimeprefix#1}{}%
      \makeshortfilename[\truefilename{\f!regimeprefix#1}]%
      \startreadingfile
        \readsysfile\shortfilename
          {\showmessage\m!encodings2{#1}}
          {\showmessage\m!encodings3{#1}}%
      \stopreadingfile}}

so, we can make (many) files called

regi-cp-1250

and then say

\definefilesynonym[regi-win][regi-cp-1250]

\defineregimesynonym[win][cp1250]

(of course the internals of regi-... should become cp1250 then)

Hans

  parent reply	other threads:[~2005-12-23 10:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-21 14:19 Character names (was: Context 2005.12.19 released) Mojca Miklavec
2005-12-21 16:17 ` Taco Hoekwater
2005-12-21 18:09   ` Hans Hagen
2005-12-23  1:00   ` Mojca Miklavec
2005-12-23  9:44     ` Character names Hans Hagen
2005-12-23 12:29       ` Taco Hoekwater
2005-12-23 12:48         ` Mojca Miklavec
2005-12-25 23:48       ` Mojca Miklavec
2005-12-23 10:31     ` Hans Hagen [this message]
2005-12-23 12:36     ` Taco Hoekwater
2005-12-23 13:39       ` Mojca Miklavec
2005-12-23 14:18         ` Taco Hoekwater
2005-12-23 14:39         ` Hans Hagen
2005-12-23 21:33           ` VnPenguin

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=43ABD209.2090501@wxs.nl \
    --to=pragma@wxs.nl \
    --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).