home *** CD-ROM | disk | FTP | other *** search
/ RComp HTML Edit Studio for RISC OS / RComp HTML Edit Studio for RISC OS.iso / ZIPS / HTML.ZIP / HTMLEdit / Utilities / !CSV2Web / !Help next >
Encoding:
Text File  |  1997-04-06  |  8.8 KB  |  238 lines

  1.  
  2.  !CSV2Web 1.13 (24-03-97)
  3.  
  4.  Written by Tim 'Mit' Wiser
  5.  
  6.  
  7.  [This text looks best loaded into StrongED with the width set to 100]
  8.  
  9.  
  10. Whilst designing my internet web home page I decided to include a catalogue of
  11. my music collection.  In a roundabout way I found a need to convert a CSV
  12. database into an HTML table. I just couldn't be bothered to go through the CSV
  13. data and insert HTML tags, remove commas and quotation marks. Call me lazy.
  14. I do.
  15.  
  16. This application was therefore written by me to save me some time. It converts
  17. a CSV database into an HTML 3.0 table that can be viewed with any web browser
  18. that understands HTML 3.0. I use Netscape 'cause I'm at uni and use PCs and
  19. Suns to get to the internet.  However, you can use Fresco which understands
  20. tables on Acorn machines.  The code that is produced has been tested with
  21. Netscape 2, 3 and Fresco™.
  22.  
  23. CSV2Web supports various HTML extensions that are supported by Microsoft
  24. Internet Explorer™ and versions of Netscape™ from version 2 onwards.  It will
  25. also add hyperlinks to pages referenced in CSV files automatically, has support
  26. for positioning of captions, alignment of data and toggling of wrapping in the
  27. table.
  28.  
  29.  
  30. Using the program
  31. ~~~~~~~~~~~~~~~~~
  32. Double click on the !CSV2Web icon and it will install on the iconbar.
  33.  
  34. Click on the icon to open the main window where you can set the border width
  35. (to 0 for no border) as well as the cellspacing and cellpadding. If you want
  36. all the columns aligned (left, right, full, center) then set this accordingly.
  37. If you want a character to be ignored then set this option as well.  This
  38. option is used to define the format of the CSV data.  For example, if your data
  39. is separated by "," thus:
  40.  
  41.    "Size","Colour"
  42.    "Large","Red"                 (have a look inside !CSV2Web.CSVfiles)
  43.    "Medium","Green"
  44.    "Small","Blue
  45.  
  46. Then you would tell CSV2Web to ignore the " character and that the data is
  47. separated by commas. Use the menu (click the middle mouse button) to set the
  48. comma.
  49.  
  50. To convert the data just drag your CSV file onto the window and then drag the
  51. HTML icon to a directory viewer. After a short delay - no more than a second
  52. for tables of good size - your HTML code will be produced and is ready for
  53. cutting and pasting into your web page.
  54.  
  55.  
  56. Intelligent operation
  57. ~~~~~~~~~~~~~~~~~~~~~
  58.  
  59. This is a rather cunning (or at least I think it is) option which can be very
  60. useful indeed.  Take a look at this data:
  61.  
  62.  "Name","Format"
  63.  "Head lights, white lines, black tar rivers","CD album"
  64.  
  65. You should tell CSV2Web to ignore quotation marks and that the data format is
  66. comma-separated. However, within the name of the album there appears a comma.
  67. If you went ahead and loaded the HTML code into a browser you'd find an
  68. incorrect table, with the title split up over three cells.  If you had the
  69. intelligent option switched on this would not happen. The moral is: Leave the
  70. intelligent option switched on!
  71.  
  72.  
  73. Loading and saving your settings
  74. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75.  
  76. You can save your settings by choosing Settings->Save from the menu.
  77. You can reload your settings by choosing Settings->Load from the menu.
  78. You can return to some recommended defaults by choosing Settings->Default
  79.  
  80.  
  81. Producing a standalone web page
  82. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  83.  
  84. This program will produce a simple but effective web page if you ask it to by
  85. checking the applicable box in the main window. Try it and see what code it
  86. produces. At the bottom of the web page is contact information. You can change
  87. the info that appears in this footer by selecting the 'Set owner' entry in the
  88. Options menu.  Click "Set" to save the changes.
  89.  
  90.  
  91. Versions
  92. ~~~~~~~~
  93.  
  94. For a list of the progress of this program, consult the 'Updates' file inside !CSV2Web.
  95.  
  96. 1.00  Released many many months ago during 1996.
  97. 1.10  Released on 28th February 1997.
  98. 1.11  Released on 3rd March 1997.
  99. 1.12  Released on 18th March 1997.
  100. 1.13  Released on 24th March 1997.
  101.  
  102. All versions are StrongARM compatible and require RISCOS 3 to run.
  103.  
  104. I've tested the window templates with 12pt Homerton Medium and they look good.
  105. Therefore you should have no problems with disappearing text using RISCOS 3.5
  106. and onwards.
  107.  
  108.  
  109. Defining colours accurately
  110. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  111.  
  112. Common colours are hardcoded into most web browsers, though you can define your
  113. own colours if you want more control over how your page appears.  To do this,
  114. simply pop up the colour menu, open the 'Other' submenu at the bottom and type
  115. in the definition of your colour.  You can use either hexadecimal notation (eg.
  116. FFFFFF) or type in integer values for red, green and blue components (eg. 255,0,
  117. 0 for bright red).  Integer values will be converted into hex and shown in the
  118. main window when you press Enter.
  119.  
  120.  
  121. Convert and Cancel buttons
  122. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  123.  
  124. You may have noticed that the 'Convert' and 'Cancel' buttons are missing off
  125. the bottom of the main window.  This is because I didn't use them very often,
  126. prefering to use the menu system of saving files instead.  However, if you
  127. don't think this is as nice, and would like the two buttons back again, then
  128. you can get them back by loading a template editor, loading the templates into
  129. the editor and performing the following actions:
  130.  
  131. a) Make the main window deeper by increasing the Y size (you may have to add
  132. some slider bars onto the main window in order to actually resize the window to
  133. the larger size).
  134.  
  135. b) Add a close icon to the xfer_send window
  136. c) Remove the slider bars (if applicable, see point A)
  137.  
  138.  
  139.  
  140. Active URLs
  141. ~~~~~~~~~~~
  142.  
  143. CSV2Web will add a hyperlink to a web page if a URL is found in the CSV data. For example, if the 
  144. following line was in your CSV file..
  145.  
  146.    "Tim Wiser","http://www.cowgate.demon.co.uk"
  147.  
  148. ..then the resulting table code would have the code to turn that address into a hyperlink..
  149.  
  150.    <tr><td>Tim Wiser</td><td><a href="http://www.cow.....</a></td></tr>
  151.  
  152. Note that the http: must be in lower case. If you mix cases, or use only upper
  153. case then the URL will NOT be found.  It's convention to write the transport
  154. protocol in lower case anyway, so stick to rules and you'll be fine. For URLs
  155. to be added in hyperlink form you must have the 'Active URLs' option ticked in
  156. the Options menu.
  157.  
  158.  
  159. Known problems
  160. ~~~~~~~~~~~~~~
  161.  
  162. This version of the software has not been thoroughly tested. All in all, it
  163. seems pretty stable and any bugs that occur are not fatal.  If you get a file
  164. error, and then "File open" errors afterwards simply go to the command line,
  165. type 'SHUT' and press Enter (and Enter again if you're on the CLI).
  166.  
  167.    - Direct RAM file transfers don't work properly
  168.    - The 'Format' menu is dodgy (grey area, this)
  169.    - The menus don't stay open on an ADJUST-click
  170.  
  171.  
  172.  
  173. Notes
  174. ~~~~~
  175.  
  176. Do not try to edit the templates to use outline fonts.  The program will not
  177. accept them if they use these fonts.  Needless to say, if you really want
  178. outline fonts on the window, the Risc PC and A7000 will do the trick, and so
  179. will the various force-RISCOS-to-use-outline-fonts-everywhere utilities.
  180.  
  181.  
  182. Thanks
  183. ~~~~~~
  184. Thanks to everyone I know who puts up with me and my problems. Thanks to Henry
  185. Morgan who contacted me wanting a newer version of this application and helped
  186. out with the ADJUST menu problem. A big shout out to Jenny Preece for help with
  187. HTML coding and also to Phil Norman, author of the excellent Dicottery
  188. application which I use to compress this program for release. Thanks also go to
  189. Andrew Black and David McCormack for their HTML mode for StrongED which I
  190. lifted all the character HTML definitions from. Thanks to Corinne Brown for
  191. trying her best and everyone on IRC #acorn and #argonet for banarl chitchat and
  192. help.
  193.  
  194. Also available! An Ovation Pro to HTML document converter!!
  195. http://www.cowgate.demon.co.uk/acorn/binaries/ovp2html.arc
  196.  
  197.  
  198.  
  199. If you want to contact me
  200. ~~~~~~~~~~~~~~~~~~~~~~~~~
  201. I would appreciate any comments you have regarding this program. So, if you
  202. find any bugs (likely) or would like anything added then please write!
  203.  
  204.  The latest version of this program can usually be found on the Internet
  205.  at http://www.cowgate.demon.co.uk/acorn/apps/csv2web/
  206.  
  207. Note that the program archive MAY have an extension like 112,113 etc on the end
  208. of it. If you're using Netscape to download the file and you find that the screen is filled with junk, try setting the 'Save to disc' option or holding
  209. down SHIFT as you click on the hypertext download link.
  210.  
  211. Please use e-mail when trying to contact me as it's (usually) free for me to
  212. use it for correspondance.
  213.  
  214.  
  215.  Tim Wiser                       Tim Wiser
  216.  18 James Street                 Cowgate Cottage
  217.  Off Cowley Road                 Lea Road
  218.  Oxford OX4 1ET                  Lea Bridge
  219.                                  Derbyshire DE4 5JL
  220.  
  221.  (+44) 01629 534537              (+44) 01865 792 861
  222.  
  223.  
  224.  World wide web homepage http://www.cowgate.demon.co.uk/mit/
  225.  Electronic mail mit@beer.com
  226.  Telnet toth.oaktree.co.uk
  227.  
  228.  The Oxford address is cool until the end of June 1997.
  229.  
  230.  
  231.  Until next time.
  232.  
  233.  
  234.  
  235.  
  236. Mit, 24-03-97
  237.  
  238.