From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Persian interface
Date: Thu, 23 Oct 2008 08:43:15 +0200 [thread overview]
Message-ID: <115224fb0810222343m19be377bl213f0ff17bfce5a2@mail.gmail.com> (raw)
In-Reply-To: <6048c4180810222131k7d0aefeexbe86ab9deaf8ce93@mail.gmail.com>
On Thu, Oct 23, 2008 at 6:31 AM, Mehdi Omidali <mehdioa@gmail.com> wrote:
> On 10/21/08, Hans Hagen <pragma@wxs.nl> wrote:
>> Mehdi Omidali wrote:
>>> Hi everyone,
>>> I want to be able to use persian interface in context. So I tried to
>>> create two files cont-pe.xml and cont-pe.tex for this purpose. Now my
>>> questions are:
>>> 1- Am I supposed to just create these two files and then run context
>>> --make cont-pe.
>>> 2- Can context accept these two files in UTF-8 encoding.
>>
>> you need to adapt mult-con and mult-com but at the same time we need to
>> adapt mult-sys, so as an experiment if things work out ok, just play a
>> bit with mult-con/com e.g. replace a few harmless commands in the
>> english interface and see if things work ok for persian
>>
>> footnote: voetnoot footnote
>> fussnote poznamkapodcarou
>> notapdp notasubsol
>> notepdp
>>
>>
>> eventually persian can become the 8th entry
>>
>> footnote: voetnoot somethingpersian
>> fussnote poznamkapodcarou
>> notapdp notasubsol
>> notepdp
>>
>>
>> \somethingpersian then should give you a footnote
>>
>> (we never really tested it with utf8 input so far)
>>
>> (when i have time i will (for luatex) make this mechanism different i.e.
>> just lua tables from which i then can generate the con/com files)
> Hi Hans and everybody,
> I did as you said and saw two things.
> 1- The good news: it is possible to assign another name (even persian)
> for an option name. For example the word "packed" which is used as an
> option in some commands like \setupitemize works well if you
> substitute it with anything.
> 2- The bad news: names of commands (I mean words that is used in the
> input file with a backslash in front of them like footnote or
> setupsomething) are not well behaved if we change them in
> mult.con.tex. I tried to change for example the word "footnote" with a
> persian word with more than one character and in the running time I
> got the error that that command is not defined. But I was able to
> redefine footnote with a just one (persian) character.
You need characters with catcode 11 for the commands and most of the
chars outside the ASCII range have catcode 12 which can be used only
in commands with the length 1 like your footnote example.
Here is a example how to use umlauts for the german interface:
\catcode`ü=11
\startcommands dutch english
german czech
italian romanian
french
definittete
setuphead: stelkopin setuphead
stelleüberschriftein nastavnadpis
impostatesta seteazatitlu
regletete
\stopcommands
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-10-23 6:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 13:24 Mehdi Omidali
2008-10-21 14:44 ` Hans Hagen
2008-10-23 4:31 ` Mehdi Omidali
2008-10-23 6:43 ` Wolfgang Schuster [this message]
2008-10-23 13:11 ` Hans Hagen
[not found] <6048c4180810271445w4e23a65fj88067d1a9fb66b82@mail.gmail.com>
2008-10-28 21:35 ` Hans Hagen
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=115224fb0810222343m19be377bl213f0ff17bfce5a2@mail.gmail.com \
--to=schuster.wolfgang@googlemail.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).