Re: Lowercase equivalent to uppercase, or vice versa



You're right and I was wrong (working from memory). Folding is defined from
Upper to Lower in the '02 Standard.

--
Bill Klein
wmklein <at> ix.netcom.com
"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:122668tndn7um50@xxxxxxxxxxxxxxxxxxxxx

"William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx> wrote in message
news:NeEUf.94344$NN1.83760@xxxxxxxxxxxxxxxxxxxxxxxxx
"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:1225q86q8fh8528@xxxxxxxxxxxxxxxxxxxxx
<snip>
As to letter case in COBOL, there are some lowercase
letters that may translate to either of two uppercase
letters, depending on context; while uppercase letters
only map to one lowercase letter, that provided in an
annex in the COBOL standard.


Rick,
Didn't you say this backwards (or am I misunderstanding your intent)?

No, but I may be mistaken, (and maybe).

The "lower-case" letters
ë
é
è
ê
and e

are all treated as "equivalent" (via folding) to
E
at least for some (most) alphabets - as used in COBOL.

That may be true for implementations prior to 2002; but
such letters, except for "e", were not COBOL Characters,
hence vendors could do, fairly much, what they wanted.
For 2002, COBOL words may have letters other that
A-Z and a-z, at least, as far as I understand such things.

The translation of the mapping shown in Annex D, for 2002 is:
<È,è>, <É,é>, <Ê,ê>, <Ë,ë>; that is, the first letter is
mapped to the second letter.

There is no mapping of è, é, ê, ë, or e to E, in COBOL 2002,
referring to Annex D.

I can't think of any examples where an individual lower-case letter
corresponds
to two different upper-case letters. There *are* cases where there isn't
any
correspondence OR the correspondence is from a single symbol to multiple
letters, e.g.
ß and "SS"

and some diagraphs also do odd mapping.

I may be mistaken on that point; but I do note that there
is no mapping of ß to any other character, in Annex D,
so it remains unchanged in COBOL words.





.



Relevant Pages

  • Re: Lowercase equivalent to uppercase, or vice versa
    ... letters, depending on context; while uppercase letters ... at least for some alphabets - as used in COBOL. ... The translation of the mapping shown in Annex D, ...
    (comp.lang.cobol)
  • Re: COBOL compiler written in COBOL
    ... > Wasn't there a thing with early COBOL that all the reserved words had a unique ... > pair of first two letters? ... just used the Cobol compiler to generate machine code. ...
    (comp.lang.cobol)
  • Re: Brain freeze. Trouble naming a word.
    ... It leaves letters for number bases, like H., etc. ... (Don't mention COBOL) ... CHForth, 16 bit DOS applications ...
    (comp.lang.forth)
  • Re: OT: demise of COBOL WAS: Infinite Loops and Explicit Exits
    ... >>A lot of CoBOL programs will need to be updated to accept new letters besides M ... >>and F. Give me a head start by telling me the other sexes initials, ...
    (comp.lang.cobol)
  • Re: Sudoku (and crosswords)
    ... majority of letters of each word are involved in crossings with other ... The variants I mean don't tell you where the blanks are, ... The standard U.S. crossword puzzle is similar to the ...
    (rec.arts.sf.composition)