Home » Personal collection » Acorn hard disk » apps » NetApps » !Internet/files/Extensions

!Internet/files/Extensions

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » NetApps
Filename: !Internet/files/Extensions
Read OK:
File size: 0491 bytes
Load address: 0000
Exec address: 0000
File contents
# From extensions are added when converting from RISC OS to Host.
# A line of the form 'fff .ext unique' will cause .ext to be added
# only if there is no .ext already on the end of the name. The first
# occurrence of a filetype is the one which applies. 
#
# It is recommended that adding extensions for saving files of type
# TEXT should be avoided, since this may have side-effects elsewhere in
# the system (see Release Note).
#
# For example:
#
# From extensions:
# ff9 .pic
# aff .img unique
# ff0 .tif
# af9 .dtp
From extensions:

# To extensions are removed when converting to RISC OS from Host.
# A line of the form 'fff .ext preserve' will cause the .ext extension
# to be left on the file name when it is presented to RISC OS. Note that
# the first extension which matches is the one which is chosen. Also,
# if extensions are added and not stripped when presented back to RISC OS
# then many applications will fail due to the 'shifting sands' nature of
# this scheme: a file is created and appears under a different name to the
# one it was saved as. 
#
# For example:
#
# To extensions:
# ff9 .pic
# aff .img preserve
# ff0 .tif
# af9 .dtp
To extensions:

00000000  23 20 46 72 6f 6d 20 65  78 74 65 6e 73 69 6f 6e  |# From extension|
00000010  73 20 61 72 65 20 61 64  64 65 64 20 77 68 65 6e  |s are added when|
00000020  20 63 6f 6e 76 65 72 74  69 6e 67 20 66 72 6f 6d  | converting from|
00000030  20 52 49 53 43 20 4f 53  20 74 6f 20 48 6f 73 74  | RISC OS to Host|
00000040  2e 0a 23 20 41 20 6c 69  6e 65 20 6f 66 20 74 68  |..# A line of th|
00000050  65 20 66 6f 72 6d 20 27  66 66 66 20 2e 65 78 74  |e form 'fff .ext|
00000060  20 75 6e 69 71 75 65 27  20 77 69 6c 6c 20 63 61  | unique' will ca|
00000070  75 73 65 20 2e 65 78 74  20 74 6f 20 62 65 20 61  |use .ext to be a|
00000080  64 64 65 64 0a 23 20 6f  6e 6c 79 20 69 66 20 74  |dded.# only if t|
00000090  68 65 72 65 20 69 73 20  6e 6f 20 2e 65 78 74 20  |here is no .ext |
000000a0  61 6c 72 65 61 64 79 20  6f 6e 20 74 68 65 20 65  |already on the e|
000000b0  6e 64 20 6f 66 20 74 68  65 20 6e 61 6d 65 2e 20  |nd of the name. |
000000c0  54 68 65 20 66 69 72 73  74 0a 23 20 6f 63 63 75  |The first.# occu|
000000d0  72 72 65 6e 63 65 20 6f  66 20 61 20 66 69 6c 65  |rrence of a file|
000000e0  74 79 70 65 20 69 73 20  74 68 65 20 6f 6e 65 20  |type is the one |
000000f0  77 68 69 63 68 20 61 70  70 6c 69 65 73 2e 20 0a  |which applies. .|
00000100  23 0a 23 20 49 74 20 69  73 20 72 65 63 6f 6d 6d  |#.# It is recomm|
00000110  65 6e 64 65 64 20 74 68  61 74 20 61 64 64 69 6e  |ended that addin|
00000120  67 20 65 78 74 65 6e 73  69 6f 6e 73 20 66 6f 72  |g extensions for|
00000130  20 73 61 76 69 6e 67 20  66 69 6c 65 73 20 6f 66  | saving files of|
00000140  20 74 79 70 65 0a 23 20  54 45 58 54 20 73 68 6f  | type.# TEXT sho|
00000150  75 6c 64 20 62 65 20 61  76 6f 69 64 65 64 2c 20  |uld be avoided, |
00000160  73 69 6e 63 65 20 74 68  69 73 20 6d 61 79 20 68  |since this may h|
00000170  61 76 65 20 73 69 64 65  2d 65 66 66 65 63 74 73  |ave side-effects|
00000180  20 65 6c 73 65 77 68 65  72 65 20 69 6e 0a 23 20  | elsewhere in.# |
00000190  74 68 65 20 73 79 73 74  65 6d 20 28 73 65 65 20  |the system (see |
000001a0  52 65 6c 65 61 73 65 20  4e 6f 74 65 29 2e 0a 23  |Release Note)..#|
000001b0  0a 23 20 46 6f 72 20 65  78 61 6d 70 6c 65 3a 0a  |.# For example:.|
000001c0  23 0a 23 20 46 72 6f 6d  20 65 78 74 65 6e 73 69  |#.# From extensi|
000001d0  6f 6e 73 3a 0a 23 20 66  66 39 20 2e 70 69 63 0a  |ons:.# ff9 .pic.|
000001e0  23 20 61 66 66 20 2e 69  6d 67 20 75 6e 69 71 75  |# aff .img uniqu|
000001f0  65 0a 23 20 66 66 30 20  2e 74 69 66 0a 23 20 61  |e.# ff0 .tif.# a|
00000200  66 39 20 2e 64 74 70 0a  46 72 6f 6d 20 65 78 74  |f9 .dtp.From ext|
00000210  65 6e 73 69 6f 6e 73 3a  0a 0a 23 20 54 6f 20 65  |ensions:..# To e|
00000220  78 74 65 6e 73 69 6f 6e  73 20 61 72 65 20 72 65  |xtensions are re|
00000230  6d 6f 76 65 64 20 77 68  65 6e 20 63 6f 6e 76 65  |moved when conve|
00000240  72 74 69 6e 67 20 74 6f  20 52 49 53 43 20 4f 53  |rting to RISC OS|
00000250  20 66 72 6f 6d 20 48 6f  73 74 2e 0a 23 20 41 20  | from Host..# A |
00000260  6c 69 6e 65 20 6f 66 20  74 68 65 20 66 6f 72 6d  |line of the form|
00000270  20 27 66 66 66 20 2e 65  78 74 20 70 72 65 73 65  | 'fff .ext prese|
00000280  72 76 65 27 20 77 69 6c  6c 20 63 61 75 73 65 20  |rve' will cause |
00000290  74 68 65 20 2e 65 78 74  20 65 78 74 65 6e 73 69  |the .ext extensi|
000002a0  6f 6e 0a 23 20 74 6f 20  62 65 20 6c 65 66 74 20  |on.# to be left |
000002b0  6f 6e 20 74 68 65 20 66  69 6c 65 20 6e 61 6d 65  |on the file name|
000002c0  20 77 68 65 6e 20 69 74  20 69 73 20 70 72 65 73  | when it is pres|
000002d0  65 6e 74 65 64 20 74 6f  20 52 49 53 43 20 4f 53  |ented to RISC OS|
000002e0  2e 20 4e 6f 74 65 20 74  68 61 74 0a 23 20 74 68  |. Note that.# th|
000002f0  65 20 66 69 72 73 74 20  65 78 74 65 6e 73 69 6f  |e first extensio|
00000300  6e 20 77 68 69 63 68 20  6d 61 74 63 68 65 73 20  |n which matches |
00000310  69 73 20 74 68 65 20 6f  6e 65 20 77 68 69 63 68  |is the one which|
00000320  20 69 73 20 63 68 6f 73  65 6e 2e 20 41 6c 73 6f  | is chosen. Also|
00000330  2c 0a 23 20 69 66 20 65  78 74 65 6e 73 69 6f 6e  |,.# if extension|
00000340  73 20 61 72 65 20 61 64  64 65 64 20 61 6e 64 20  |s are added and |
00000350  6e 6f 74 20 73 74 72 69  70 70 65 64 20 77 68 65  |not stripped whe|
00000360  6e 20 70 72 65 73 65 6e  74 65 64 20 62 61 63 6b  |n presented back|
00000370  20 74 6f 20 52 49 53 43  20 4f 53 0a 23 20 74 68  | to RISC OS.# th|
00000380  65 6e 20 6d 61 6e 79 20  61 70 70 6c 69 63 61 74  |en many applicat|
00000390  69 6f 6e 73 20 77 69 6c  6c 20 66 61 69 6c 20 64  |ions will fail d|
000003a0  75 65 20 74 6f 20 74 68  65 20 27 73 68 69 66 74  |ue to the 'shift|
000003b0  69 6e 67 20 73 61 6e 64  73 27 20 6e 61 74 75 72  |ing sands' natur|
000003c0  65 20 6f 66 0a 23 20 74  68 69 73 20 73 63 68 65  |e of.# this sche|
000003d0  6d 65 3a 20 61 20 66 69  6c 65 20 69 73 20 63 72  |me: a file is cr|
000003e0  65 61 74 65 64 20 61 6e  64 20 61 70 70 65 61 72  |eated and appear|
000003f0  73 20 75 6e 64 65 72 20  61 20 64 69 66 66 65 72  |s under a differ|
00000400  65 6e 74 20 6e 61 6d 65  20 74 6f 20 74 68 65 0a  |ent name to the.|
00000410  23 20 6f 6e 65 20 69 74  20 77 61 73 20 73 61 76  |# one it was sav|
00000420  65 64 20 61 73 2e 20 0a  23 0a 23 20 46 6f 72 20  |ed as. .#.# For |
00000430  65 78 61 6d 70 6c 65 3a  0a 23 0a 23 20 54 6f 20  |example:.#.# To |
00000440  65 78 74 65 6e 73 69 6f  6e 73 3a 0a 23 20 66 66  |extensions:.# ff|
00000450  39 20 2e 70 69 63 0a 23  20 61 66 66 20 2e 69 6d  |9 .pic.# aff .im|
00000460  67 20 70 72 65 73 65 72  76 65 0a 23 20 66 66 30  |g preserve.# ff0|
00000470  20 2e 74 69 66 0a 23 20  61 66 39 20 2e 64 74 70  | .tif.# af9 .dtp|
00000480  0a 54 6f 20 65 78 74 65  6e 73 69 6f 6e 73 3a 0a  |.To extensions:.|
00000490  0a                                                |.|
00000491