ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Brooks Moses <bmoses@stanford.edu>
Subject: Re: "Very dirty" localisation request for a rainy evening
Date: Tue, 26 Jul 2005 14:28:44 -0700	[thread overview]
Message-ID: <4.3.1.2.20050726141606.01c8ffd8@cits1.stanford.edu> (raw)
In-Reply-To: <6faad9f00507261401390177c3@mail.gmail.com>

At 02:01 PM 7/26/2005, Mojca Miklavec wrote:
>Hello Hans, Today I saw a webpage of someone, who is very active in the 
>field of translation and localisation of free software into Slovenian. It 
>astonished me the way he numered the items on his webpage: (a) 
>approximation ... (b) Gauss ... (c) numerical solutions ... (è) solving 
>parabolic ... % [\ccaron] (d) ... This should actually be the only proper 
>way to number items in Slovenian, but you can imagine that nobody is able 
>to use that since the beginning of computer era.

As it happens, I've just been looking at the ConTeXt code for doing 
counters as characters, and it's really pretty simple:

\def\character#1%
   {\ifcase#1\unknowncharacter
      \or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or k\or l\or m%
      \or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or y\or z%
    \else
      \unknowncharacter
    \fi}

(There's also an equivalent \Character for the uppercase letters.)

All you need to do Solvenian ordering is to put a \ccaron in the list 
between c and d, and maybe call the macros "sloveniancharacter" and 
"slovenianCharacter" to keep them distinct.  Then, when you want to specify 
a numbering format for an enumeration, you should be able to use 
"conversion=solveniancharacter" rather than "conversion=characters".

This isn't quite a complete solution -- ConTeXt has some more code that 
defines a \characters macro (with the "s" on the end) that keeps counting 
after "z", as x, y, z, aa, ab, ac, and so on.  Duplicating that requires 
only a little more work.

- Brooks

  reply	other threads:[~2005-07-26 21:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-26 21:01 Mojca Miklavec
2005-07-26 21:28 ` Brooks Moses [this message]
2005-07-26 21:54 ` Hans Hagen
2005-07-26 22:01 ` Hans Hagen
2005-07-26 22:11 ` Hans Hagen
2005-07-26 22:35 ` Hans Hagen
2005-07-26 22:39 ` Brooks Moses
2005-07-26 23:35   ` Mojca Miklavec
2005-07-26 23:56     ` Brooks Moses
2005-07-27  0:29       ` Mojca Miklavec
2005-07-27  0:43         ` Brooks Moses
2005-07-27  1:32         ` Brooks Moses
2005-07-27  7:26         ` Hans Hagen
2005-07-27  7:39       ` 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=4.3.1.2.20050726141606.01c8ffd8@cits1.stanford.edu \
    --to=bmoses@stanford.edu \
    --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).