From: dosa@puma.cat.syr.edu (S. Choi)
Subject: Re: iso-encoded-... whatever
Organization: Syracuse University
Date: Fri, 11 Sep 1992 21:52:55 GMT
X-Posted-From: puma.cat.syr.edu
X-Posted-Through: sol.ctr.columbia.edu

In article <1992Sep11.130502.3336@news.duc.auburn.edu> kim@magneto.physics.auburn.edu (Han-jung Kim) writes:
>How about developing new hangul coding algorithem,
>such as uudecode and uuencode.
>
>To distinguish the hangul and english, send suffix before
>sentense. Sambo use ~h~w to initiate printer for hangul setup.
>
>So if terminal hangul emulator detect a special sequence,
>just let it do convert the following sequences as hangul.
>

There were discussions about this sometimes ago.  It worked pretty well and
there were several Hangul articles in this group. 
I enclosed two articles below, which explain those schemes.
Check it out, if you didn't before.



>From: msy@acura.siemens.com (Marcus S. Yoo)
>Newsgroups: soc.culture.korean
>Subject: hangul postings anyone?
>Message-ID: <84965@siemens.siemens.com>
>Date: 4 Mar 92 23:25:11 GMT
>Sender: news@siemens.siemens.com
>Organization: Siemens Corporate Research, Inc.
>Lines: 99
>
>Okay, since this subject seems to be dying off, I'll (try to) do something
>about it.  It seems that passing 8bit characters (and even some 7bit
>control characters) is not feasable in usenet news articles.  Since
>I haven't heard from anyone about any possible solution, I'm putting
>forth my idea (and I'll test this method in this article too!).
>
>Enclose at the bottom of this article is two programs called "msy2ksc"
>and "ksc2msy".  Don't ask me what "msy" stands for... okay, I'll tell you.
>I couldn't come up with the right name for the encoding scheme I'm using,
>so I used my unix account name (msy). There.  If you have a better name
>for it, use it.  The main thrust of msy-code is to use all printable
>ascii codes. Otherwise it is very much like the iso2022 encoding method.
>
>1.  In msy-code, there is no leading control sequence to indicate use of
>    hangul in text (iso uses 4 char sequence of esc-$-)-C).
>
>2.  Normally all characters are treated as ascii (english) - just like iso.
>
>3.  The shift-in character is "~~N" (is ^N in iso).
>
>4.  The shift-out character is "~~O" (is ^O in iso).
>
>5.  To escape the special meaning of "~~", use "~~~~".
>
>You may see several redundant tilda characters above.  That is because
>this entire article was passed through the ksc2msy program. To properly
>read this article, you should save this article, unpack the programs
>below, compile, and pipe this article through msy2ksc program.  If you
>do that, you should also see some hangul text bellow if you have
>terminals that can display hangul texts.
>
>~N>H3gGO;u?d~O.  ~N@/;s1Y~O ~N@T4O4Y~O.
>~N@L~O ~N1[@;~O ~N@P@;<v@V4B:P5i@:~O ~N2@~O ~N4d@e~O (follow-up article)~N@;~O ~N>2=J=C?@~O.
>
>Once you have things setup, you can use msy2ksc to filter any articles
>you read.  Within rn, while reading an article containing msy-hangul,
>simply type in "|msy2ksc|more" or something similar... Good luck.
>
>By the way, both msy2ksc and ksc2msy are very simplistic programs that
>reads from standard input, and writes to standard output, and takes
>no command line arguments.
>
>==== begin msy2ksc.c ====
># include	<stdio.h>
>main () { register int c, i, flg = 1;
>	for (;;) {
>		for (;;) {
>			c = getchar ();
>			if (c == EOF) return flg;
>			if (c == '~') {
>				c = getchar ();
>				if (c == 'N') break;
>				if (c != '~') putchar ('~');
>			}
>			putchar (c);
>		}
>		for (flg = 0;;) {
>			c = getchar ();
>			if (c == EOF) return flg;
>			if (c == '~') {
>				c = getchar ();
>				if (c == 'O') break;
>				if (c != '~') {
>					i = '~' | 0x80;
>					putchar (i);
>				}
>			}
>			c |= 0x80;
>			putchar (c);
>		}
>	}
>}
>==== end msy2ksc.c ====
>==== begin ksc2msy.c ====
># include	<stdio.h>
>main () { register int c, flg = 1;
>	for (;;) {
>		c = getchar ();
>		if (c == EOF) return flg;
>		if (c & 0x80) {
>			flg = 0;
>			putchar ('~');
>			putchar ('N');
>			for (;;) {
>				c &= 0x7f;
>				putchar (c);
>				if (c == '~') putchar (c);
>				c = getchar ();
>				if (c == EOF) return flg;
>				if ((c & 0x80) == 0) break;
>			}
>			putchar ('~');
>			putchar ('O');
>		}
>		putchar (c);
>		if (c == '~') putchar (c);
>	}
>}
>==== end ksc2msy.c ====
>
>
>Newsgroups: soc.culture.korean
>From: jung@unixg.ubc.ca (Jinki Jung)
>Subject: hangul response
>Message-ID: <1992Mar7.041700.5162@unixg.ubc.ca>
>Sender: news@unixg.ubc.ca (Usenet News Maintenance)
>Nntp-Posting-Host: chilko.ucs.ubc.ca
>Organization: University of British Columbia, Vancouver, B.C., Canada
>Date: Sat, 7 Mar 1992 04:17:00 GMT
>
>
>
>       ~N>H3gGO<<?d~O ~N?)7/:P~O Dear everyone, 
>
>       ~N@L0M@:~O ~N@/;s1Y4T22<-~O ~N3;3u@8=E~O ~N0M?!4kGQ~O ~N@z@G~O ~N4k4d@T4O4Y~O
>
>       This is the response to the message from Marcus Yoo.
>
>       ~N@L~O ~N1[@;~O ~NGQ1[7N~O ~N@P@8=E4Y8i~O ~N@L9L~O ~N>F=C0m~O ~N0h=C0ZAv88~O 
>       ~N1W78Av~O ~N>J@8=C4Y8i~O ~N4Y@=0z~O ~N00@L~O ~NGO=J=C?@~O. 
>
>       If you read the above line in hangul it is ok, but if not
>       you can do so by the following way. Assuming you are using
>       rn (read news) program:
>
>           % rn | msy2ksc
>
>       It is also assumed you have emulators to display  hangul  such 
>       as iyagi or hanterm.
>
>       ~NGQ1[7N~O ~N1[@;~O ~N3;=C0m~O ~N=M@8=E:P@:~O ~N4Y@=0z~O ~N00@L~O ~NGO=G~O ~N<v~O ~N@V@>4O4Y~O. 
>
>       If you want to post a hangul article, you can do so as follow.
>       Assuming you are using rn program:
>
>           make a hangul article in ksc5601.
>           % cat hangul-file | ksc2msy > article-to-post
>                 * this is to change format (I don't know this is 
>                                             correct word)
>           % rn | msy2ksc 
>                 * this is to start read-news program and to read 
>                   articles in hangul.
>           in rn
>              go to soc.culture.korean 
>              **** 4 unread articles in ******* --- read now?[ynq] n or N
>                      * when no article left you have use N
>              **** 3 unread articles in *korean*--- read now?[ynq] = 
>                   * <=> is to list titles of articles 
>              100 article .
>              101 article ..
>              102 article ...
>              What next? [npq] f
>              Subject: an article in hangul
>              Distribution: ?
>
>              xxxxxxxxxxx messages from computer xxxxxxxxx
>
>              Are you absolutely sure that you want to do this?[yn] y
>              Prepared file to include [none]: <return> or filename  
>                 * if you put a file name you can't edit.
>              Editor[/usr/ucb/vi]: <return> or emacs 
>                 * editor is depend on your setup 
>              at vi
>                 Esc and <:>  to enter command mode
>                 $ read article-to-post 
>                    * this is to append a file to the current file  
>                 Esc-<:> to enter command mode
>                 wq
>                    * write and quit -- to save and quit the editor
>                                        and to go back to rn program 
>              at rn again
>              Send,abort,edit or list ? s for send, a for abort...
>                 * take a little time
>              (re-entering cbreak mode) 
>              What next? [qnp] 
>
>       ~NGQ1[~O article~N@;~O ~N=CGhGX:80m~O ~N=M@8=C8i~O alt.test~N8&~O ~N@L?kGO4B~O ~N0M55~O 
>       ~NGO3*@G~O ~N9f9}@L~O ~N5G0Z@>4O4Y~O. 
>
>       If you want to test hangul message, you can also use news
>       group alt.test. You can do so as follow: 
>
>              at rn 
>              **** End of newsgroups --- what next?[npq] g alt.test
>
>                   * g is goto
>              xxxxxx message (you really want or not) xxxxxx ? [ny] y
>              same as mentioned above     
>             
>       ~N1W7!55~O ~N8;@;~O ~N5hAv>J@88i~O help ~N0!~O ~N@V4Y4B~O ~N0M@;~O ~N@XAv86=C1b~O ~N9Y6x4O4Y~O
>
>       If it still doesn't work, remember you have help. To get help:
>
>               what next? [npq] help
>
>
>       ~N@L88GO0m~O ~NA$8;~O ~N4:=:7N~O ~N5i>n0%1n?d~O. ~N;g=G~O ~N@z4B~O ~N1b>F~O ~N@Z5?Bw3*~O 
>       Bush ~N?!~O ~N0|GQ~O ~N0M@:~O ~N@_~O ~N8p8(4O4Y~O. ~N1W71~O ~NBJ?!4B~O ~N1n874+@L6s<-~O 
>       ~N4Y88~O ~NA&0!~O ~N@V4B~O ~NGP13?!<-~O ~N4Y@=AV~O ~N:NEM~O ~NGP13?!<-~O ~N@OGO4B~O ~N;g6w5i@L~O
>       ~NFD>w~O(strike)~N?!~O ~N5i>n0)4O4Y~O ~N?y1^?C7A4^6s4B~O ~N0M@LAR~O.  ~N1W7!<-~O 
>       ~NH-@e=G~O ~NH^Av<-:NEM~O ~N55<-0|~O ~N=D4g~O ~N8p5N~O ~N5?@[1W88~O(all-stop)~N@L~O
>       ~N5K4O4Y~O. ~N;g=G~O ~N@L~O ~NFD>w5Z?!4B~O Vancouver ~N?M~O British Colubia ~NAV~O 
>       ~N@G~O ~N0f1bD'C<?M~O inflation ~N@L~O ~N@V@>4O4Y~O. ~N@L0M@L~O ~N4:=:0E8.0!~O  ~N5G4BAv~O
>       ~N4B~O ~N8p8#0Z@>4O4Y88~O ~N>F98@:~O ~NAv9f4:=:?4@>4O4Y~O. 
>
>         summary in Enlish: A strike of workers in univ. of british 
>         columbia in Vancouver Canada, will begin coming Monday.
>         No body knows how long it will last. There is economic
>         depression and inflation of B.C province behind the strike. 
>
>
>                                    ~NA$~O  ~NAx~O  ~N1b~O (jung, jinki)
>                                                jung@unixg.ubc.ca
>
>          
>
>              
>