🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.b
Article #7095

Small kanji patch for CNews 2 May 1992 version.

#7095
From: Hironobu Takahashi
Date: Tue, 12 May 1992 16:28
94 lines
4101 bytes
If you want to post Japanese Kanji articles with the new Cnews
revision, you should apply the following patches in order to
pass the escape sequences.

H. Takahashi

*** inject.old/mkstripinvis	Tue May 12 19:31:52 1992
--- inject/mkstripinvis	Wed May 13 01:08:38 1992
***************
*** 6,12 ****
  export NEWSCTL NEWSBIN NEWSARTS NEWSPATH NEWSUMASK NEWSMASTER NEWSCONFIG
  PATH=$NEWSCTL/bin:$NEWSBIN/inject:$NEWSBIN:$NEWSPATH; export PATH
  
! # POLICY: strip invisible chars? wrong for Kanji.
  # generate program to strip invisible chars, a la B news.
  #	bells & escapes are *right* out.
  
--- 6,12 ----
  export NEWSCTL NEWSBIN NEWSARTS NEWSPATH NEWSUMASK NEWSMASTER NEWSCONFIG
  PATH=$NEWSCTL/bin:$NEWSBIN/inject:$NEWSBIN:$NEWSPATH; export PATH
  
! # POLICY: strip invisible chars, but pass ESCs to assign Kanji chars.
  # generate program to strip invisible chars, a la B news.
  #	bells & escapes are *right* out.
  
***************
*** 14,20 ****
  #! /bin/sh
  # stripinvis - strip invisible characters, a la B news (for local postings).
  #	bells & escapes are *right* out.
! # POLICY: strip invisible chars? wrong for Kanji.
  # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  . ${NEWSCONFIG-/usr/lib/news/bin/config}
  export NEWSCTL NEWSBIN NEWSARTS NEWSPATH NEWSUMASK NEWSMASTER NEWSCONFIG
--- 14,20 ----
  #! /bin/sh
  # stripinvis - strip invisible characters, a la B news (for local postings).
  #	bells & escapes are *right* out.
! # POLICY: strip invisible chars, but pass ESCs to assign Kanji chars.
  # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  . ${NEWSCONFIG-/usr/lib/news/bin/config}
  export NEWSCTL NEWSBIN NEWSARTS NEWSPATH NEWSUMASK NEWSMASTER NEWSCONFIG
***************
*** 26,37 ****
  case "` echo B | tr A-Z a-z `" in
  b)						# a hit
  	cat <<'!'
! exec tr -d '\1-\7\13\15-\37'			# v7
  !
  	;;
  B)						# a miss
  	cat <<'!'
! exec tr -d '[\1-\7]\13[\15-\37]'		# v6 (or System V)
  !
  	;;
  *)						# gun exploded in our face
--- 26,37 ----
  case "` echo B | tr A-Z a-z `" in
  b)						# a hit
  	cat <<'!'
! exec tr -d '\1-\7\13\15-\32\34-\37'		# v7
  !
  	;;
  B)						# a miss
  	cat <<'!'
! exec tr -d '[\1-\7]\13[\15-\32][\34-\37]'	# v6 (or System V)
  !
  	;;
  *)						# gun exploded in our face
*** inject.old/stripinvis	Tue May 12 19:31:52 1992
--- inject/stripinvis	Wed May 13 01:08:37 1992
***************
*** 1,10 ****
  #! /bin/sh
  # stripinvis - strip invisible characters, a la B news (for local postings).
  #	bells & escapes are *right* out.
! # POLICY: strip invisible chars? wrong for Kanji.
  # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  . ${NEWSCONFIG-/usr/lib/news/bin/config}
  export NEWSCTL NEWSBIN NEWSARTS NEWSPATH NEWSUMASK NEWSMASTER NEWSCONFIG
  PATH=$NEWSCTL/bin:$NEWSPATH; export PATH
  
! exec tr -d '\1-\7\13\15-\37'			# v7
--- 1,10 ----
  #! /bin/sh
  # stripinvis - strip invisible characters, a la B news (for local postings).
  #	bells & escapes are *right* out.
! # POLICY: strip invisible chars, but pass ESCs to assign Kanji chars.
  # =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
  . ${NEWSCONFIG-/usr/lib/news/bin/config}
  export NEWSCTL NEWSBIN NEWSARTS NEWSPATH NEWSUMASK NEWSMASTER NEWSCONFIG
  PATH=$NEWSCTL/bin:$NEWSPATH; export PATH
  
! exec tr -d '\1-\7\13\15-\32\34-\37'			# v7
Technical Details
Message-ID: <1992May12.162827.1210@tiny.or.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!wnoc-tyo-news!etl.go.jp!tacho!tinygw!takahasi
References: <BnnM1o.HGr@zoo.toronto.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d020,65978d8e846b3207
X-Google-Attributes: gid10d020,public
X-Google-Thread: 1460c1,cfd55350ef467edc,start
X-Google-Attributes: gid1460c1,public
X-Google-ArrivalTime: 1992-05-12 04:44:14 PST
Newsgroups: news.software.b,fj.news.b
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!wnoc-tyo-news!etl.go.jp!tacho!tinygw!takahasi
From: takahasi@tiny.or.jp (Hironobu Takahashi)
Subject: Small kanji patch for CNews 2 May 1992 version.
Reply-To: takahasi@tsukuba.sanyo.co.jp
Organization: Tsukuba internet Club (TINY net)
Date: Tue, 12 May 1992 16:28:27 GMT
Message-ID: <1992May12.162827.1210@tiny.or.jp>
Keywords: kanji japanese asian language 2bytecode
References: <BnnM1o.HGr@zoo.toronto.edu>
Lines: 94