Re: Small feature request for future EU versions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Patrick Barnes wrote:
> 
> What I think he means is this:
> 
> constant  LA_up= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
> constant LA_lo = "abcdefghijklmnopqrstuvwxyz"
> constant LA_diff = LA_up - LA_lo
> 
> global function case_LA(integer c, object x)
>     integer n
>     if atom(x) then
>         if c then
>              n = find( x, LA_lo )
>              if n then
>                   x += LA_diff[n]

 OR instead ...
                    x = LA_up[n]


[snip]

I have a generic case conversion that can work for most alphabets.
I'll submit it to the contributions page.


[snip]


> > Some alphabets have no case at all, some alphabets have different
> > numbers of upper and lower letters.
> > For example, computer Russian has 3 extra letters in upper case, which
> > are absent in Russian canonical grammar.

I believe German and some other language has a situation where a
single lower-case letter gets changed to two characters when
converted to uppercase - the German s-sharp character 'ß' changes
to 'SS' when converted.


-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu