home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / tech / 1158 < prev    next >
Encoding:
Text File  |  1993-01-05  |  5.3 KB  |  127 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!gate!rilke!tytgat
  3. From: tytgat@esat.kuleuven.ac.be (John Tytgat)
  4. Subject: Re: New Template format discussion document
  5. Message-ID: <1993Jan5.124449.3180@gate.esat.kuleuven.ac.be>
  6. Originator: tytgat@rilke
  7. Sender: tytgat@esat.kuleuven.ac.be (John Tytgat)
  8. Reply-To: tytgat@esat.kuleuven.ac.be (John Tytgat)
  9. Organization: K.U.Leuven, Belgium
  10. References: <930101200448@kernow.demon.co.uk>
  11. Date: Tue, 5 Jan 1993 12:44:49 GMT
  12. Lines: 113
  13.  
  14. I am very glad to see that other people are also thinking about an enhanced
  15. template format.  I hope we can have a constructive discussion about it.
  16. These are my comments and thoughts about the 'Glass' format :
  17.  
  18. (1) I wouldn't allow 'anonymous icons' (ie. icons without a name), because
  19. these icons will cause problems when the user wants to generate the #define
  20. file.  During the convertion of a Template file to a Glass file, I suggest
  21. you artificially generate the icon names (eg. by giving them ASCII number
  22. names).
  23.  
  24. And I think you should also specify that there may not be two windows/icons
  25. with the same name.  Althought I see no problems when 2 icons have the
  26. same name when they belong to 2 different windows.
  27.  
  28. (2) Personally I would prefer the sequence Name_WindowPrefix, Name_IconPrefix,
  29. Name_IconName, Name_IconSuffix and Name_WindowSuffix instead of
  30. Name_IconPrefix, Name_WindowPrefix, Name_IconName, Name_WindowSuffix and
  31. Name_IconSuffix.  Couldn't we define the order of these fields in one of
  32. the free three bytes which are available in the "2 word" Risc Os Time Stamp ?
  33.  
  34. (3) Normally it is possible that each window has its own Sprite pool.  Althoughtthis is rarely used, it can have its advantages.  Unfortunately you can't
  35. specify this in the Glass format.  Another pity thing is that you can't
  36. specify which sprite file has to be loaded together with the Glass file.
  37.  
  38. A solution for these problems could be the following standard for the
  39. 'Sprite area control block pointers' :
  40.  
  41. 0                 => Wimp sprite area
  42. <any other value> = chunk offset to the sprite filename (somewhere in the
  43.                     Indirected data block)
  44.  
  45. Personally I think it is better to seperate the sprite filename(s) from the
  46. Indirected data block.  Maybe we can define a new chunk for it (together
  47. with the filenames where the icon constants should go).
  48.  
  49. (4) Something which I don't quite understand :
  50.  
  51. > GLS_WIND
  52. > ========
  53. >         Chunk    Field  Field
  54. >         Offset:  Size:  Meaning:
  55. > Header:
  56. > [...]
  57. >         12       4      Wind_IndDataOffset
  58. >                         Chunk offset of indirected data table for this
  59. >                         window.
  60.  
  61. "for this window" ? Shouldn't that be "for these windows" ?
  62.  
  63. (5) A last point what I would like to raise is that there is no support for
  64. text (read : Indirected Data) in different languages.
  65.  
  66. A solution for this could be different Indirected Data tables.  IMHO this would
  67. make the GLS_WIND chunk rather heavy.  Therefore I suggest to define a new
  68. chunk as :
  69.  
  70. GLS_DATA
  71. ========
  72.         Chunk    Field  Field
  73.         Offset:  Size:  Meaning:
  74. Header:
  75.     0     4    Number of different Indirected Data tables (one for
  76.             each supported language)
  77.     4     8    Ind_NumEntries (number of data entries in each table)
  78.     8     16    reserved
  79.     24
  80. Language table:
  81.     l+0     20    Name of the language (null terminated string)
  82.     l+20     4    chunk offset to the Indirected Data table for this
  83.             language
  84.     l+24        next language table entry
  85. Indirected Data tables (one for each supported language):
  86.     As descripted in the initial Glass format, except the "Ind_NumEntries"
  87.     is omitted (which is now being placed in the GLS_DATA header).
  88. Indirected Data block:
  89.     As decripted in the initial Glass format.
  90.  
  91. Comments
  92. ~~~~~~~~
  93.  
  94. - The GLS_WIND chunk would only contain the Header, Index and Window Data
  95.   blocks.
  96. - All the window title texts are indirected and there are only indirected
  97.   icons.  So the 'indirected data' bit *in the Glass file* can be used to
  98.   hold other information (eg. should we allow that other people can change
  99.   all the text strings in a Glass file, like copyright strings, version
  100.   numbers, etc. ?)
  101. - The way to access the indirected data in a Glass file would be the same
  102.   as proposed in the initial Glass file format except that you have to choose
  103.   the right Indirected Data table.
  104. - I do not have the Risc OS 3 PRMs but I guess that the language name could
  105.   correspond with what the terrority module returns.
  106.  
  107. > To John Tytgat:
  108. > ~~~~~~~~~~~~~~~
  109. > I gave a copy of Glazier to a member of BASS at the meet after the '92 BAU
  110. > show.  He said he wrote !Dissi - I thought this was you? Do you really have
  111. > such a short memory, or was it not you, and BASS members just don't talk to
  112. > each other? :-)  He even looked like the picture of you in the info window
  113. > of Dissi...
  114.  
  115. Yes, you gave it to me.  And no, I do not have such a short memory ;-).  The
  116. reason why I asked more info about the Glass file in c.s.a.t was because I
  117. didn't know that you were about to define a new Template format.  We are
  118. extremely interested to be involved in the development of the Glass file
  119. format.  In the beginning of December '92, we already started to define a
  120. enhanced Template file format ourselves but I believe that the public 
  121. development of the Glass file format is more interesting for the Archimedes
  122. community.
  123.  
  124. John
  125. tytgat@esat.kuleuven.ac.be
  126. BASS
  127.