home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d9xx
/
d957
/
parex.lha
/
PARex
/
PARexScripts
/
ConvertSYS.pxs
< prev
next >
Wrap
Text File
|
1993-11-24
|
9KB
|
268 lines
; PARex v3.xx SCRIPT: "PAREX:ConvertSYS.pxs"
; ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
; Update: 13-Nov-93
; $VER: ConvertSYS.pxs 39.00 (13.11.93) PARex v3.xx script for ConvertSYS.
; NOTES: Converting ASCII codes: REPL \d<0..255> BY \d<0..255>
; Discarding ASCII codes: REPL \d<0..255> BY ""
; **
; ** AMIGA -> PC - OS/2 - UNIX
; **
MODE AMIGAtoPC
REPL \r\n BY \r\n ; preserve CR+LF (e.g. CR+LF -> CR+LF, thus avoid CR+CR+LF!)
REPL \n BY \r\n ; add CR codes to LF (e.g. LF -> CR+LF)
REPL \d199 BY \d128 ; "Ç"
REPL \d252 BY \d129 ; "ü"
REPL \d233 BY \d130 ; "é"
REPL \d226 BY \d131 ; "â"
REPL \d228 BY \d132 ; "ä"
REPL \d224 BY \d133 ; "à"
REPL \d229 BY \d134 ; "å"
REPL \d231 BY \d135 ; "ç"
REPL \d234 BY \d136 ; "ê"
REPL \d235 BY \d137 ; "ë"
REPL \d232 BY \d138 ; "è"
REPL \d239 BY \d139 ; "ï"
REPL \d238 BY \d140 ; "î"
REPL \d236 BY \d141 ; "ì"
REPL \d196 BY \d142 ; "Ä"
REPL \d197 BY \d143 ; "Å"
REPL \d201 BY \d144 ; "É"
REPL \d230 BY \d145 ; "æ"
REPL \d198 BY \d146 ; "Æ"
REPL \d244 BY \d147 ; "ô"
REPL \d246 BY \d148 ; "ö"
REPL \d242 BY \d149 ; "ò"
REPL \d251 BY \d150 ; "û"
REPL \d249 BY \d151 ; "ù"
REPL \d255 BY \d152 ; "ÿ"
REPL \d214 BY \d153 ; "Ö"
REPL \d220 BY \d154 ; "Ü"
REPL \d248 BY \d155 ; "ø"
REPL \d163 BY \d156 ; "£"
REPL \d216 BY \d157 ; "Ø"
REPL \d225 BY \d160 ; "á"
REPL \d237 BY \d161 ; "í"
REPL \d243 BY \d162 ; "ó"
REPL \d250 BY \d163 ; "ú"
REPL \d241 BY \d164 ; "ñ"
REPL \d209 BY \d165 ; "Ñ"
REPL \d191 BY \d168 ; "¿"
REPL \d172 BY \d170 ; "¬"
REPL \d189 BY \d171 ; "½"
REPL \d188 BY \d172 ; "¼"
REPL \d161 BY \d173 ; "¡"
REPL \d171 BY \d174 ; "«"
REPL \d187 BY \d175 ; "»"
REPL \d208 BY \d177 ; "Ð"
REPL \d223 BY \d225 ; "ß"
REPL \d181 BY \d230 ; "µ"
REPL \d177 BY \d241 ; "±"
CLOSE \x1A ; add an end-of-file code
MODE AMIGAtoOS2 ; sames as AMIGAtoPC, except no end-of-file character is added.
REPL \r\n BY \r\n ; preserve CR+LF (e.g. CR+LF -> CR+LF, thus avoid CR+CR+LF!)
REPL \n BY \r\n ; add CR codes to LF (e.g. LF -> CR+LF)
REPL \d199 BY \d128 ; "Ç"
REPL \d252 BY \d129 ; "ü"
REPL \d233 BY \d130 ; "é"
REPL \d226 BY \d131 ; "â"
REPL \d228 BY \d132 ; "ä"
REPL \d224 BY \d133 ; "à"
REPL \d229 BY \d134 ; "å"
REPL \d231 BY \d135 ; "ç"
REPL \d234 BY \d136 ; "ê"
REPL \d235 BY \d137 ; "ë"
REPL \d232 BY \d138 ; "è"
REPL \d239 BY \d139 ; "ï"
REPL \d238 BY \d140 ; "î"
REPL \d236 BY \d141 ; "ì"
REPL \d196 BY \d142 ; "Ä"
REPL \d197 BY \d143 ; "Å"
REPL \d201 BY \d144 ; "É"
REPL \d230 BY \d145 ; "æ"
REPL \d198 BY \d146 ; "Æ"
REPL \d244 BY \d147 ; "ô"
REPL \d246 BY \d148 ; "ö"
REPL \d242 BY \d149 ; "ò"
REPL \d251 BY \d150 ; "û"
REPL \d249 BY \d151 ; "ù"
REPL \d255 BY \d152 ; "ÿ"
REPL \d214 BY \d153 ; "Ö"
REPL \d220 BY \d154 ; "Ü"
REPL \d248 BY \d155 ; "ø"
REPL \d163 BY \d156 ; "£"
REPL \d216 BY \d157 ; "Ø"
REPL \d225 BY \d160 ; "á"
REPL \d237 BY \d161 ; "í"
REPL \d243 BY \d162 ; "ó"
REPL \d250 BY \d163 ; "ú"
REPL \d241 BY \d164 ; "ñ"
REPL \d209 BY \d165 ; "Ñ"
REPL \d191 BY \d168 ; "¿"
REPL \d172 BY \d170 ; "¬"
REPL \d189 BY \d171 ; "½"
REPL \d188 BY \d172 ; "¼"
REPL \d161 BY \d173 ; "¡"
REPL \d171 BY \d174 ; "«"
REPL \d187 BY \d175 ; "»"
REPL \d208 BY \d177 ; "Ð"
REPL \d223 BY \d225 ; "ß"
REPL \d181 BY \d230 ; "µ"
REPL \d177 BY \d241 ; "±"
; MODE AMIGAtoUNIX (to be added when I get the codes)
; **
; ** PC -> AMIGA - OS/2 - UNIX
; **
MODE PCtoAMIGA
REPL \r BY "" ; remove CR codes (e.g. CR+LF -> LF)
REPL \d128 BY \d199 ; "Ç"
REPL \d129 BY \d252 ; "ü"
REPL \d130 BY \d233 ; "é"
REPL \d131 BY \d226 ; "â"
REPL \d132 BY \d228 ; "ä"
REPL \d133 BY \d224 ; "à"
REPL \d134 BY \d229 ; "å"
REPL \d135 BY \d231 ; "ç"
REPL \d136 BY \d234 ; "ê"
REPL \d137 BY \d235 ; "ë"
REPL \d138 BY \d232 ; "è"
REPL \d139 BY \d239 ; "ï"
REPL \d140 BY \d238 ; "î"
REPL \d141 BY \d236 ; "ì"
REPL \d142 BY \d196 ; "Ä"
REPL \d143 BY \d197 ; "Å"
REPL \d144 BY \d201 ; "É"
REPL \d145 BY \d230 ; "æ"
REPL \d146 BY \d198 ; "Æ"
REPL \d147 BY \d244 ; "ô"
REPL \d148 BY \d246 ; "ö"
REPL \d149 BY \d242 ; "ò"
REPL \d150 BY \d251 ; "û"
REPL \d151 BY \d249 ; "ù"
REPL \d152 BY \d255 ; "ÿ"
REPL \d153 BY \d214 ; "Ö"
REPL \d154 BY \d220 ; "Ü"
REPL \d155 BY \d248 ; "ø"
REPL \d156 BY \d163 ; "£"
REPL \d157 BY \d216 ; "Ø"
REPL \d160 BY \d225 ; "á"
REPL \d161 BY \d237 ; "í"
REPL \d162 BY \d243 ; "ó"
REPL \d163 BY \d250 ; "ú"
REPL \d164 BY \d241 ; "ñ"
REPL \d165 BY \d209 ; "Ñ"
REPL \d168 BY \d191 ; "¿"
REPL \d170 BY \d172 ; "¬"
REPL \d171 BY \d189 ; "½"
REPL \d172 BY \d188 ; "¼"
REPL \d173 BY \d161 ; "¡"
REPL \d174 BY \d171 ; "«"
REPL \d175 BY \d187 ; "»"
REPL \d177 BY \d208 ; "Ð"
REPL \d225 BY \d223 ; "ß"
REPL \d230 BY \d181 ; "µ"
REPL \d241 BY \d177 ; "±"
REPL \h1A BY "" ; remove end-of-file character
MODE PCtoOS2
REPL \h1A BY "" ; remove end-of-file character
; MODE PCtoUNIX (to be added when I get the codes)
; **
; ** OS2 -> AMIGA - PC - UNIX
; **
MODE OS2toAMIGA
REPL \r BY "" ; remove CR codes (e.g. CR+LF -> LF)
REPL \d128 BY \d199 ; "Ç"
REPL \d129 BY \d252 ; "ü"
REPL \d130 BY \d233 ; "é"
REPL \d131 BY \d226 ; "â"
REPL \d132 BY \d228 ; "ä"
REPL \d133 BY \d224 ; "à"
REPL \d134 BY \d229 ; "å"
REPL \d135 BY \d231 ; "ç"
REPL \d136 BY \d234 ; "ê"
REPL \d137 BY \d235 ; "ë"
REPL \d138 BY \d232 ; "è"
REPL \d139 BY \d239 ; "ï"
REPL \d140 BY \d238 ; "î"
REPL \d141 BY \d236 ; "ì"
REPL \d142 BY \d196 ; "Ä"
REPL \d143 BY \d197 ; "Å"
REPL \d144 BY \d201 ; "É"
REPL \d145 BY \d230 ; "æ"
REPL \d146 BY \d198 ; "Æ"
REPL \d147 BY \d244 ; "ô"
REPL \d148 BY \d246 ; "ö"
REPL \d149 BY \d242 ; "ò"
REPL \d150 BY \d251 ; "û"
REPL \d151 BY \d249 ; "ù"
REPL \d152 BY \d255 ; "ÿ"
REPL \d153 BY \d214 ; "Ö"
REPL \d154 BY \d220 ; "Ü"
REPL \d155 BY \d248 ; "ø"
REPL \d156 BY \d163 ; "£"
REPL \d157 BY \d216 ; "Ø"
REPL \d160 BY \d225 ; "á"
REPL \d161 BY \d237 ; "í"
REPL \d162 BY \d243 ; "ó"
REPL \d163 BY \d250 ; "ú"
REPL \d164 BY \d241 ; "ñ"
REPL \d165 BY \d209 ; "Ñ"
REPL \d168 BY \d191 ; "¿"
REPL \d170 BY \d172 ; "¬"
REPL \d171 BY \d189 ; "½"
REPL \d172 BY \d188 ; "¼"
REPL \d173 BY \d161 ; "¡"
REPL \d174 BY \d171 ; "«"
REPL \d175 BY \d187 ; "»"
REPL \d177 BY \d208 ; "Ð"
REPL \d225 BY \d223 ; "ß"
REPL \d230 BY \d181 ; "µ"
REPL \d241 BY \d177 ; "±"
MODE OS2toPC
CLOSE \x1A ; add end-of-file character
; MODE OS2toUNIX (to be added when I get the codes)
; **
; ** UNIX -> AMIGA - PC - OS/2 (to be add when I get the codes)
; **
; MODE UNIXtoAMIGA
; MODE UNIXtoPC
; MODE UNIXtoOS2