From: Vladimir Zolotykh
Subject: ~R in Russian
Date: 
Message-ID: <3DEF773E.A9938A7C@eurocom.od.ua>
Are there similar feature (I mean the one FORMAT's ~R
does) in languages other than English I wonder. I particularly
interested in finding one in Russian. Have you heard something
about ? Thanks in advance.

-- 
Vladimir Zolotykh

From: Peter Seibel
Subject: Re: ~R in Russian
Date: 
Message-ID: <m3n0nk6xti.fsf@localhost.localdomain>
>>>>> "Vladimir" == Vladimir Zolotykh <······@eurocom.od.ua> writes:

    Vladimir> Are there similar feature (I mean the one FORMAT's ~R
    Vladimir> does) in languages other than English I wonder. I
    Vladimir> particularly interested in finding one in Russian. Have
    Vladimir> you heard something about ? Thanks in advance.

Ow! I studied enough Russian in high-school to know *that* would be
painful to implement. Not only would you have to make a ~R variant
that you can somehow indicate gramatical case (odno, odnovo, etc.) but
you'd also need a pretty fancy ~:P that knows how to decline arbitrary
nouns. Okay, okay, so you wouldn't do it that way because that would
be insane.

But based on your name, I'll hazard a guess that you know this better
than I do with my misremembered high-school Russian. What was the
minimum sort of thing you were hoping for: something to spit out
Russian words for the number in the nomative case?

-Peter

P.S. For those of you who don't mind a little Perl, there's an
interesting exploration of the problems of localizing text for various
languages at: <http://www.samag.com/documents/s=1290/sam04010013/>

-- 
Peter Seibel
·····@javamonkey.com
From: Lieven Marchand
Subject: Re: ~R in Russian
Date: 
Message-ID: <863cpbsikd.fsf@just.fgov.be>
Peter Seibel <·····@javamonkey.com> writes:

> Ow! I studied enough Russian in high-school to know *that* would be
> painful to implement. Not only would you have to make a ~R variant
> that you can somehow indicate gramatical case (odno, odnovo, etc.) but
> you'd also need a pretty fancy ~:P that knows how to decline arbitrary
> nouns. Okay, okay, so you wouldn't do it that way because that would
> be insane.

I'd argue the feature was ill thought out even for English. There is
the kludge of ·@P to deal with the -y, -ies plurals, but you need a
separate case for -x, -xen, child, children and there are probably
more obscure irregular plurals.

-- 
Never argue with a fool in public. People might not see the difference.
From: Vladimir Zolotykh
Subject: Re: ~R in Russian
Date: 
Message-ID: <3DF080A8.9647CFC7@eurocom.od.ua>
Peter Seibel wrote:
> 
> [....] What was the
> minimum sort of thing you were hoping for: something to spit out
> Russian words for the number in the nomative case?

Exactly. Just numbers in normative case. Nothing more.
We're generating some account documents (bills or whatever)
and the sum must be written "in words" on them as well
as a numeric.

-- 
Vladimir Zolotykh
From: Hannah Schroeter
Subject: Re: ~R in Russian
Date: 
Message-ID: <asu2cg$4ng$2@c3po.schlund.de>
Hello!

Vladimir Zolotykh  <······@eurocom.od.ua> wrote:
>Peter Seibel wrote:

>> [....] What was the
>> minimum sort of thing you were hoping for: something to spit out
>> Russian words for the number in the nomative case?

>Exactly. Just numbers in normative case. Nothing more.
>We're generating some account documents (bills or whatever)
>and the sum must be written "in words" on them as well
>as a numeric.

I'd do a separate function

(defun russian-numeral-in-nominative (number)
  ...)

(format ... "... ~A ..." some-number)

Or try ~/ format specifiers.

Kind regards,

Hannah.
From: Pierpaolo BERNARDI
Subject: Re: ~R in Russian
Date: 
Message-ID: <t6II9.60126$qF1.2465732@news2.tin.it>
"Hannah Schroeter" <······@schlund.de> ha scritto nel messaggio ·················@c3po.schlund.de...

> I'd do a separate function
> 
> (defun russian-numeral-in-nominative (number)
>   ...)

If he's going to do a separate function, he may as well support cases.

FWIW, here's what I use for Italian:

(defun numero-in-lettere (x &key
                            (tipo :cardinale)
                            (genere :maschile)
                            (numero :singolare)
                            ;; Other keys not relevant here.
                            )
...)


P.
From: Hannah Schroeter
Subject: Re: ~R in Russian
Date: 
Message-ID: <at2vfu$aro$1@c3po.schlund.de>
Hello!

Pierpaolo BERNARDI <··················@hotmail.com> wrote:

>"Hannah Schroeter" <······@schlund.de> ha scritto nel messaggio
>·················@c3po.schlund.de...

>> I'd do a separate function

>> (defun russian-numeral-in-nominative (number)
>>   ...)

>If he's going to do a separate function, he may as well support cases.

Only if he need.

>[...]

Kind regards,

Hannah.