home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utcsri!bonnie.concordia.ca!hobbit.ireq.hydro.qc.ca!beaurega
- From: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: The Box-Drawing Charachters
- Message-ID: <Bu9Lv8.6pL@ireq.hydro.qc.ca>
- Date: 8 Sep 92 15:04:20 GMT
- References: <5265@krafla.rhi.hi.is> <1992Aug31.184726.1583@mits.mdata.fi> <la5apvINN8kb@exodus.Eng.Sun.COM>
- Sender: news@ireq.hydro.qc.ca (Netnews Admin)
- Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada
- Lines: 47
-
- In article <la5apvINN8kb@exodus.Eng.Sun.COM> falk@peregrine.Sun.COM (Ed Falk) writes:
- >In article <1992Aug31.184726.1583@mits.mdata.fi> kennu@mits.mdata.fi (Kenneth Falck) writes:
- >>>and if so how are the ordered?
- >>
- >>You know, it'd be interesting to find any intelligent order for
- >>the entire extended IBM ASCII character set... The characters
- >>seem to be organized by groups of 32's, but there are still
- >>some very strange symbols among the accented characters, and
- >>you can't even dream of finding some sort of organization
- >>inside these groups. (I wonder why they included only some
- >>characters of the Greek alphabet etc...)
- >
- >Go look at IBM's EBCDIC character set (where, for example, '~' comes
- >between 'r' and 's') and ask yourself if you'd dream of finding some
- >sort of organization in their extended IBM ASCII character set.
- >
- > -ed falk, sun microsystems
- > sun!falk, falk@sun.com
- > "Towards the end, the smell of their air began to change"
-
- There is a "natural" method of sorting according to which language
- (i.e. French, not Basic :-) ). DOS sort in recent versions takes care
- of that. The method is quite simple (no idea if they do that, but I
- do that in my own qsort-based psort program) : if under 0x80, keep it
- as is (lowercase or lowercase if needed), if over, using a table lookup,
- remap the character. Obviously, it is a bit faster if you use a 256
- characters table instead of a 128 entries with checking for 8th bit.
- In my program, I duplicate the sort key (I use a 8000 line table with
- one pointer to original line and possibly extended memory address, and
- onepointer to re-coded line [I have a lot of re-coding schemes] ).
-
- In your case, only use I see for giving a logical order is for sorting.
- Otherwise, you could use a table to re-code.
-
- There is a lot of standards. EBCDIC is available on many FTP site
- if you transfer text files using BINARY more. ASCII is standard if
- under 0x80 and not over. IBM-ASCII is available on DOS machines.
- ANSI-ASCII is available in DOS Windows (and it does not match IBM-ASCII)
- and in many UNIX systems. MAC-ASCII is also different (Macintosh).
- Names (i.e. IBM-ASCII) are not the official ones (if they exist).
-
-
- --
- \_\ Denis Beauregard * internet:beaurega@ireq.hydro.qc.ca
- / \ Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
- J __> Un Quebec renouvele dans une Amerique renovee
- \_.-=== Opinions ? Et pis non !
-