🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.acorn.tech
4 messages
4 total messages Started by TMOTA Fri, 22 Jan 1993 01:39
Translink type protocols...
#739
Author: TMOTA
Date: Fri, 22 Jan 1993 01:39
75 lines
4373 bytes
> Or what if the user wants to use ChangeFSI instead of Translator (for reasons

>This is like saying you might want to use StrongEd rather than Edit to edit a
>text file ... you arrange the RunType to point to the one you want, or be
>prepared to load it by hand first.

No. It isn't quite the same. Edit vs StrongEd is generally a permanent choice,
i.e. I run StrongEd all the time, and edit gets run only about 2 times a
month, for about 30 seconds, to do something quick in a task window - I
then save the text output of the taskwindow to StrongEd and quit Edit.

What I meant is, imagine you have 30 'alien format' pictures, and you want to
load them all into Paint. However, *some* of them you want to run through
ChangeFSI, and some through Translator.

If an arbitrary translator is auto-run when you drag the files to Paint,
then you have no idea if the right choice of translator was made until it's
too late.

And what if your default translation settings are not correct - the
translator (possibly the wrong one) will be auto-loaded, and then proceed
to give a totally wrong translation anyway.

In these cases, the user has to choose a translator by running it, set any
translation options they desire, and *then* drag the files to Paint.

However, after some email chats, I have come to the conclusion that translation
can best be handled by a module to which all translators register, and this
can then orchestrate the collaboration between two or more applications to
translate data automatically. Having this module provide a *command for
translators to include in their !Run file would allow all translators
to register themselves not only for translations, but also for auto-running
if no other translation path is already possible with loaded applications.

>> It is extremely likely that I will therefore wish to supply scaling factors,
>> quality factors (like FS dither or no dither, etc), colour translations
>> (e.g. force to greyscale), etc. before loading the file.

>Yes ... but a large part of this kind of system is to make it easy for naive
>users, who just want a default option that works.

Sure. But the method suggested just sounds too hit and miss. If a translation
isn't available then a system variable is used to auto-run a translator
that might stand only a small chance of being suitable, and use default
settings that are more often than not going to be totally wrong.

The suggestion of using a module to control all of this
  a) Makes everything more coherent. Somebody *knows* what is going on, rather
     than applications making inspired guesses about the best course of action.

     This will make the protocol faster, as well as allowing the 'best'
     translation out of a set of choices to be automatically chosen (in the
     case of several translation steps between the source and destination
     file formats)

     Also, it allows the possibility of giving the more advanced user a list
     of possible translations and options and allow them to set things up
     exactly as they want them before OKing the operation.

  b) Moves a lot of the effort from each application/writer into the master
     module, so implementing the protocol from an editor/translator will be
     much much simpler.

>Indeed ... but I don't think you should ever worry about making life a bit
>harder for a programmer, if you make it easier for the user.

Sure, but only lazy sods like myself ever seem to be able to come up with
easier ways of achieveing the same (or better) effect. If you won't even
consider ease-of-programming in your plans, then you may just miss something
crucial. Also, I think if any protocol is to find support, it has to be
as easy as possible for the programmers to implement support for it, or
it'll just fade away, and that benefits nobody.

-- 
themasterofthearcanejwil1@cs.aukuni.ac.nzthismessagewassentonrecycledelectrons
Re: Translink type protocols...
#745
Author: Stephen Burke
Date: Fri, 22 Jan 1993 19:46
16 lines
1473 bytes
In article <1993Jan22.013939.10269@cs.aukuni.ac.nz>, jwil1@cs.aukuni.ac.nz (TMOTA) writes:
> However, after some email chats, I have come to the conclusion that translation
> can best be handled by a module to which all translators register, and this
> can then orchestrate the collaboration between two or more applications to
> translate data automatically. Having this module provide a *command for

Yes, after thinking some more I came to the same conclusion. My main point
was that it would be nice not to have to explicitly load a translator in
advance, and I didn't think very carefully about the method.

e----><----p | Stephen Burke           | Internet: burke@vxdesy.desy.de
 H   H   1   | Gruppe FH1T (Liverpool) | DECnet:   vxdesy::burke (13313::burke)
 H   H  11   | DESY, Notkestrasse 85   | BITNET:   BURKE@DESYVAX or SB2@UKACRL
 HHHHH   1   | 2000 Hamburg 52         | JANET:    sb2@uk.ac.rl.ib
 H   H   1   | Germany                 | Phone:    + 49 40 8998 2282
 H   H 11111 | HERA, the world's largest electron microscope!
Re: Translink type protocols...
#758
Author: mrp
Date: Mon, 25 Jan 1993 13:07
17 lines
1141 bytes
Couldn't this stuff be done using impulse?

ChangeFSI and Translator would have methods like gif->sprite and ones
to set their options.  When Paint failed torecognise a file type (say
a gif) it would send out requests for any gif translators, then send
the options to the chosen task followed by all the (gif) data.
Translator would then chug away, and send a new sprite command to
paint followed by the (sprite) data.

Of course if two gif->sprite methods existed, a choice would have to
be made my the user, and the options would have to be set somewhere
along the line.  And something really clever would have to be done
about applications that could do the translation but werent loaded at
the time.

just my worthless ideas,
martin.
Re: Translink type protocols...
#777
Author: TMOTA
Date: Tue, 26 Jan 1993 23:53
10 lines
949 bytes
mrp@minster.york.ac.uk writes:

>Couldn't this stuff be done using impulse?

No better than with WIMP messages. Impulse is little more than a different
method of sending messages. It has a few differences like the messages being
text-based commands and being able to talk across networks, etc., but is
fundamentally the same as the WIMP message passing system.
-- 
themasterofthearcanejwil1@cs.aukuni.ac.nzthismessagewassentonrecycledelectrons
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads