home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / pep21.arc / EBC2NS7 < prev    next >
Text File  |  1989-12-29  |  5KB  |  250 lines

  1. # ebc2ns7  25. may 1989 [gh]
  2. ##--------------------------------------------------------------------------
  3. ## Abstract:
  4. #    This file folds characters from the IBM EBCDIC character set into
  5. #    their counterparts in the ASCII 7-bit character set (ISO646 NS4551).
  6. ##
  7. ## Implementation:
  8. ##    This is table was implemented to facilitate translation from the
  9. ##    DisplayWrite editor, which uses a superset of EBCDIC containing
  10. ##    Norwegian characters.  If it doesn't suit you, you're welcome to hack
  11. ##    the table!
  12. ##    This table should also be simple to hack to generate IBM CP 850, but
  13. ##    that is left as an exercise to the reader.
  14. ##    I've zeroed out a lot of stuff.  On those lines there a code is left
  15. ##    as a comment at the end of the line.  Those codes have no graphical
  16. ##    representation in my (printed) copy of the EBCDIC table, but are the
  17. ##    suggested translation to "ISO 2022".  They are left in as comments
  18. ##    (in parhenthesises) in case I ever figure out what that means.
  19. ##    A copy of ISO 2022 would probably help.
  20. ##
  21. ## Bugs:
  22. ##    Norwegian upper case [\] is still missing.  I need examples.
  23. ##--------------------------------------------------------------------------
  24.   4    0 ## (156)
  25.   6   10 ## required new line
  26.   7    0 ## (127)
  27.   8    0 ## (151)
  28.   9   45 ## (141) superscript?
  29.  10   45 ## (142) repeat?
  30.  12   45 ## formfeed?
  31.  20    0 ## (157) restore
  32.  21   10 ## new line acknowledgement
  33.  22    8 ## backspace
  34.  23    0 ## (135)
  35.  26    0 ## (146) unit backspace
  36.  27    0 ## (143)
  37.  32    0 ## (128)
  38.  33    0 ## (129)
  39.  34    0 ## (130)
  40.  35    0 ## (131)
  41.  36    0 ## (132)
  42.  40    0 ## (136)
  43.  41    0 ## (137)
  44.  42    0 ## (138)
  45.  43    0 ## (139)
  46.  44    0 ## (140)
  47.  48    0 ## (144)
  48.  49    0 ## (145)
  49.  51    0 ## (147)
  50.  52    0 ## (148)
  51.  53    0 ## (149)
  52.  54    0 ## (150)
  53.  56    0 ## (152)
  54.  57    0 ## (153)
  55.  58    0 ## (154)
  56.  59    0 ## (155)
  57.  62    0 ## (158)
  58.  64   32 ## space
  59.  65    0 ## (160)
  60.  66    0 ## (161)
  61.  67    0 ## (162)
  62.  68    0 ## (163)
  63.  69    0 ## (164)
  64.  70    0 ## (165)
  65.  71  125 ## (166) liten }
  66.  72    0 ## (167)
  67.  73    0 ## (168)
  68.  74   91 ## [
  69.  75   46 ## .
  70.  76   60 ## <
  71.  77   40 ## (
  72.  78   43 ## +
  73.  79   33 ## !
  74.  80   38 ## &
  75.  81    0 ## (169)
  76.  82    0 ## (170)
  77.  83    0 ## (171)
  78.  84    0 ## (172)
  79.  85    0 ## (173)
  80.  86    0 ## (174)
  81.  87    0 ## (175)
  82.  88    0 ## (176)
  83.  89    0 ## (177)
  84.  90   93 ## ]
  85.  91   36 ## $
  86.  92   42 ## *
  87.  93   41 ## )
  88.  94   59 ## ;
  89.  95   94 ## ^
  90.  96   45 ## -
  91.  97   47 ## /
  92.  98    0 ## (178)
  93.  99    0 ## (179)
  94. 100    0 ## (180)
  95. 101    0 ## (181)
  96. 102    0 ## (182)
  97. 103    0 ## (183)
  98. 104    0 ## (184)
  99. 105    0 ## (185)
  100. 106  124 ## |
  101. 107   44 ## ,
  102. 108   37 ## %
  103. 109   95 ## _
  104. 110   62 ## >
  105. 111   63 ## ?
  106. 112  124 ## (186) liten |
  107. 113    0 ## (187)
  108. 114    0 ## (188)
  109. 115    0 ## (189)
  110. 116    0 ## (190)
  111. 117    0 ## (191)
  112. 118    0 ## (192)
  113. 119    0 ## (193)
  114. 120    0 ## (194)
  115. 121   96 ## `
  116. 122   58 ## :
  117. 123   35 ## #
  118. 124   64 ## @
  119. 125   39 ## '
  120. 126   61 ## =
  121. 127   34 ## "
  122. 128    0 ## (195)
  123. 129   97 ## a
  124. 130   98 ## b
  125. 131   99 ## c
  126. 132  100 ## d
  127. 133  101 ## e
  128. 134  102 ## f
  129. 135  103 ## g
  130. 136  104 ## h
  131. 137  105 ## i
  132. 138    0 ## (196)
  133. 139    0 ## (197)
  134. 140    0 ## (198)
  135. 141    0 ## (199)
  136. 142    0 ## (200)
  137. 143    0 ## (201)
  138. 144    0 ## (202)
  139. 145  106 ## j
  140. 146  107 ## k
  141. 147  108 ## l
  142. 148  109 ## m
  143. 149  110 ## n
  144. 150  111 ## o
  145. 151  112 ## p
  146. 152  113 ## q
  147. 153  114 ## r
  148. 154    0 ## (203)
  149. 155    0 ## (204)
  150. 156  123 ## (205) Liten {
  151. 157    0 ## (206)
  152. 158    0 ## (207)
  153. 159    0 ## (208)
  154. 160    0 ## (209)
  155. 161  126 ## ~
  156. 162  115 ## s
  157. 163  116 ## t
  158. 164  117 ## u
  159. 165  118 ## v
  160. 166  119 ## w
  161. 167  120 ## x
  162. 168  121 ## y
  163. 169  122 ## z
  164. 170    0 ## (210)
  165. 171    0 ## (211)
  166. 172    0 ## (212)
  167. 173    0 ## (213)
  168. 174    0 ## (214)
  169. 175    0 ## (215)
  170. 176    0 ## (216)
  171. 177    0 ## (217)
  172. 178    0 ## (218)
  173. 179    0 ## (219)
  174. 180    0 ## (220)
  175. 181    0 ## (221)
  176. 182    0 ## (222)
  177. 183    0 ## (223)
  178. 184    0 ## (224)
  179. 185    0 ## (225)
  180. 186    0 ## (226)
  181. 187    0 ## (227)
  182. 188    0 ## (228)
  183. 189    0 ## (229)
  184. 190    0 ## (230)
  185. 191    0 ## (231)
  186. 192  123 ## {
  187. 193   65 ## A
  188. 194   66 ## B
  189. 195   67 ## C
  190. 196   68 ## D
  191. 197   69 ## E
  192. 198   70 ## F
  193. 199   71 ## G
  194. 200   72 ## H
  195. 201   73 ## I
  196. 202    0 ## (232)
  197. 203    0 ## (233)
  198. 204    0 ## (234)
  199. 205    0 ## (235)
  200. 206    0 ## (236)
  201. 207    0 ## (237)
  202. 208  125 ## }
  203. 209   74 ## J
  204. 210   75 ## K
  205. 211   76 ## L
  206. 212   77 ## M
  207. 213   78 ## N
  208. 214   79 ## O
  209. 215   80 ## P
  210. 216   81 ## Q
  211. 217   82 ## R
  212. 218    0 ## (238)
  213. 219    0 ## (239)
  214. 220    0 ## (240)
  215. 221    0 ## (241)
  216. 222    0 ## (242)
  217. 223    0 ## (243)
  218. 224   92 ## \
  219. 225    0 ## (159)
  220. 226   83 ## S
  221. 227   84 ## T
  222. 228   85 ## U
  223. 229   86 ## V
  224. 230   87 ## W
  225. 231   88 ## X
  226. 232   89 ## Y
  227. 233   90 ## Z
  228. 234    0 ## (244)
  229. 235    0 ## (245)
  230. 236    0 ## (246)
  231. 237    0 ## (247)
  232. 238    0 ## (248)
  233. 239    0 ## (249)
  234. 240   48 ## 0
  235. 241   49 ## 1
  236. 242   50 ## 2
  237. 243   51 ## 3
  238. 244   52 ## 4
  239. 245   53 ## 5
  240. 246   54 ## 6
  241. 247   55 ## 7
  242. 248   56 ## 8
  243. 249   57 ## 9
  244. 250    0 ## (250)
  245. 251    0 ## (251)
  246. 252    0 ## (252)
  247. 253    0 ## (253)
  248. 254    0 ## (254)
  249. ## EOF
  250.