A very often used format is .JPG, but only .GIF and .BMP can be inlined
using the IMG-tag in HTML documents. Arachne uses some built in
conversion programmes to view eg. .JPG images.
Such programmes have to be declared in mime.cfg!
JPG can be converted to BMP (Arachne default) or to GIF (my choice)...
just change the declaration in mime.cfg
External »» internal
External programs can be placed into Arachne, making them internal progs.
Example
Texts generated by M$ WORD can not be viewed with Arachne, so we have
to use a special program to view a WORD text (.doc) with DOS.
I use the DOS program: view.exe
View.exe is a small program that can be placed in the \Arachne directory.
It can be automaticaly activated by Arachne on every occurence of the .doc
extension by adding the following line to mime.cfg:
file/.doc |@$view.exe $l ($l = letter "l" means last visited file)
If Arachne encounters an extension not declared in mime.cfg the
"Arachne does not know how to handle following file type:"
screen is showed. I modified this screen to have the opportunity to view
a Word file and save the original. (The CACHE is not a save place to store
any file.)
View.exe may save your file in .TXT format or even print
it. See the change at the right: VIEW.EXE is added.
To change the "Arachne does not know.." page: just press F4 to edit the page if the page is on your monitor.
The <FORM ACTION="view.dgi"><INPUT TYPE="SUBMIT" VALUE="VIEW.EXE"> button should be added.
In the HTML tags for this button FORM ACTION is pointing to: view.dgi thus view.dgi has to be defined in
mime.cfg. The file/.doc declaration, if already made, should be removed
or altered into: file/view.dgi |@$view.exe $l
Now you can save and view your Word file.
After you have done your things... press F10 [+ enter] to leave Norton
Now type: EXIT at the DOS prompt and you are back to Arachne... but not
back at the point you left Arachne ;-((
Why not make a batch file in \system\dgi that shells out to Norton
commander? I called it 'norton.bat'.
Giving the command, the URL, file:norton.dgi does not start NC (to my
surprise)... a dgi script has to be declared in mime.cfg first.
After adding the following line to mime.cfg it worked.
file/norton.dgi |@call $esystem\\dgi\\norton.bat $e
Now all was going well, except that after leaving NC there was no
return to the place where I left Arachne. The push and pop commands were added to the batch
file 'norton.bat' in the \system\dgi directory.
Now all is functioning the way I wanted it to.
[pop.com and push.com should be added to Arachne]
The batch file 'norton.bat'.
push
@echo off
C:\norton\nc
pop
EXIT
Although this might not be the easiest way to call an external program
and return to Arachne, it works great!
My F2 button has been extended to call PICTURE VIEW as an external program
too. PV can be used to view or convert (nearly) any image format into
another... or print the image.