home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Database / X!-V330.LHA / VCArchive / makefilter / Filters.ReadMe < prev    next >
Encoding:
Text File  |  1997-04-28  |  13.5 KB  |  343 lines

  1.  
  2.  
  3.           Video & CD-Archive -- Export-Filters
  4.              Copyright: Harald Zottmann 1997
  5.  
  6.  
  7.  
  8.  
  9. 1) What is it all about
  10. =======================
  11.  
  12. Since Version 3.30, the Video & CD-Archive is able to export
  13. data to various different formats. It therefore makes use
  14. of external Export-Filters, which can be written by the user.
  15.  
  16. With this installation, the Video & CD-Archive comes already 
  17. featuring a large number of different filter types:
  18.  
  19.   - ASCII format
  20.   - LaTeX format
  21.   - PostScript format
  22.   - PageStream format 
  23.  
  24.  
  25.  
  26.  
  27.  
  28. 2) Write your own filter
  29. ========================
  30.  
  31. All Export-Filter files must reside in the directory "Filters" which 
  32. is located beneath the program directory of the Video & CD-Archive.
  33. The Export-Filter names have various suffixes to distinguish between 
  34. them:
  35.  
  36.  .MC   for Tapes
  37.  .PH   for Longplayers
  38.  .CD   for Compact Discs
  39.  .VI   for Video Tapes
  40.  
  41. Export-Filter files are pure ASCII files which can be created and 
  42. modified by every normal text editor. Control sequences are used to 
  43. tell the program what to do. Supported control sequnces so far are:
  44.  
  45. @TXT                write following ASCII text to export file
  46. @BIN                write binary data to output file
  47. @REPxyz@abc         replace sequence "xyz" with sequence "abc"
  48. @%<format>s@xx@yy   write dataset row and column to export file
  49.  
  50.  
  51. a) Example for ASCII text data:
  52. -------------------------------
  53.  
  54. These rows define the beginning of a LaTeX document:
  55.  
  56. @TXT\documentstyle[german]{article}
  57. @TXT\begin{document}
  58. @TXT\footnotesize
  59.  
  60.  
  61. This row defines a horizontal line that is used in conjunction with
  62. the ASCII MC cover output:
  63.  
  64. @TXT|-------------------------------------------------------------------|
  65.  
  66.  
  67. b) Example for binary data:
  68. ---------------------------
  69.  
  70. This row defines binary data in hexadecimal notation (00-ff) to
  71. be written to the exported file:
  72.  
  73. @BIN 07 23 19 92 00 0d 02 00 00 00 e8 f8 00 01 49 7c 00 00 00 00
  74.  
  75.  
  76. c) Example for replacements:
  77. ----------------------------
  78.  
  79. These rows define e.g. the standard replacement list for LaTeX 
  80. Export-Filters:
  81.  
  82. @REP\@ \(\backslash\)
  83. @REP~@ \~\
  84. @REP^@ \^\
  85. @REP$@ \$
  86. @REP{@ \{
  87. @REP}@ \}
  88. @REP%@ \%
  89. @REP&@ \&
  90. @REP#@ \#
  91. @REP_@ \_
  92. @REPä@\"a
  93. @REPö@\"o
  94. @REPü@\"u
  95. @REPÄ@\"A
  96. @REPÖ@\"O
  97. @REPÜ@\"U
  98. @REPß@\ss{}
  99.  
  100.  
  101. d) Example for dataset output:
  102. ------------------------------
  103.  
  104. This row writes an `|` followed by row 14, starting with column 0
  105. of the current dataset with a minimum printing width of 33 characters.
  106. The format definition follows the syntax of the `C` programming language.
  107. Then comes again the character `|` and row 14, starting this time with
  108. column 34 of the current dataset. Note that in the MC and the CD case,
  109. column 0 means the left part of the cover and column 34 identifies the right
  110. part of the cover. The definition ends again with the character `|`:
  111.  
  112. @TXT|@%-33.33s@00@14@TXT|@%-33.33s@34@14@TXT|
  113.  
  114. See the Export-Filter files that come with this package for examples
  115. and more details.
  116.  
  117.  
  118.  
  119.  
  120.  
  121. 3) How to use the program `MakeFilter`
  122. ======================================
  123.  
  124.  
  125. This program is intended to support you to create Export-Filters for
  126. any third party program you like. I will explain the necessary steps
  127. using PageStream as an example.
  128.  
  129. First of all you have to decide for what mode (MC, CD, Phono or Video)
  130. you want to create a new Export-Filter. Let`s say that you want to create
  131. a new MC cover design.
  132.  
  133. Start PageStream and import the ASCII file `MakeFilter.MC` which contains
  134. necessary format definitions which is used by the program `MakeFilter` later on.
  135. The sequences of this file represent some kind of placeholder for the real 
  136. datasets which will be inserted during export with the Video & CD-Archive.
  137. You may change the position of these sequences by dragging them around or by
  138. copy and paste, but don`t modify the sequences themself at all, not even delete 
  139. them partly.
  140.  
  141. You may now design the cover as you prefer it. You can use every feature 
  142. PageStream offers you, for example coloured lines, shaded text and so on. 
  143. You may even use cliparts in your cover design.
  144.  
  145. If you`ve finished your work, save the cover as a normal PageStream document.
  146. In the directory `MakeFilter/PageStreamTemplates` there are some examples on 
  147. how these files may look like. You can also use these files and modify them 
  148. to your personal taste.
  149.  
  150. Now invoke `MakeFilter` with the shell command:
  151.  
  152.  
  153.              MakeFilter <PageStreamFile> <ExportFilter.MC>
  154.  
  155.  
  156. Note that PageStream uses a special character for the german `ß`. To implement
  157. the conversion between the `ß` used by the Video & CD-Archive and the character
  158. used by PageStream, you have to add the line:
  159.  
  160. @REPß@»
  161.  
  162. at the top of the resulting Export-Filter file. This command directs the export
  163. function of the Video & CD-Archive to replace every `ß` of the exported dataset 
  164. to a special character known by PageStream.
  165.  
  166. Now copy the resulting file `ExportFilter.MC` to the `Filters` directory
  167. beneath the program directory and invoke the Video & CD-Archive`s export
  168. function from the main menu. Follow the steps described in the respective 
  169. section of the AmigaGuide file by pressing the `Help` key within the 
  170. Video & CD-Archive if you have problems here.
  171.  
  172. If everything went fine, you now can load the just exported file directly to 
  173. PageStream and print it.
  174.  
  175. Be aware that the procedure described above works only if the program you want
  176. to design Export-Filters for (e.g. FinalWriter, PageStream etc.) saves its files
  177. without changing the ASCII sequences of the format definitions file. That should
  178. normally be the case, but you never know.
  179.  
  180.  
  181.  
  182.  
  183. 4) How it works
  184. ===============
  185.  
  186.  
  187. MakeFilter is a pretty simple but nevertheless powerful tool. The way it works
  188. is converting the unknown binary data of some document file to @BIN sequences
  189. which are understood by the export function of the Video & CD-Archive.
  190. Well, that would not help too much if there weren`t those placeholders inserted
  191. in the document file, which are understood by MakeFilter and are replaced by
  192.  
  193. @%<format>s@xx@yy
  194.  
  195. sequences which in turn are understood by the Video & CD-Archive. See chapter 2
  196. of this document for more information on those control sequences.
  197.  
  198. The placeholders which have to be imported and arranged somehow in the template
  199. document, see chapter 4, have the following formats:
  200.  
  201.  
  202.  
  203. a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  220. @AE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  221.  
  222. @AF@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BF@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  223.  
  224. @AG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  225.  
  226. @AH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  227. @AI@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  228. @AJ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  229.  
  230.  
  231. b) CD mode - MakeFilter.CD
  232. --------------------------
  233.  
  234. @A0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  235.  
  236. @A1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  237.  
  238. @A2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  239. @A3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  240. @A4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  241. @A5@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B5@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  242. @A6@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B6@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  243. @A7@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B7@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  244. @A8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  245. @A9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @B9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  246. @AA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  247. @AB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  248. @AC@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BC@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  249. @AD@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BD@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  250. @AE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  251. @AF@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BF@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  252. @AG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  253. @AH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  254. @AI@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BI@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  255. @AJ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @BJ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  256.  
  257.  
  258. c) Phono mode - MakeFilter.PH
  259. -----------------------------
  260.  
  261. @A0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  262.  
  263. @A1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  264. @A2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  265.  
  266. @A3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  267. @A4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  268. @A5@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  269. @A6@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  270. @A7@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  271. @A8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  272. @A9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  273. @AA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  274. @AB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  275. @AC@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  276. @AD@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  277. @AE@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  278. @AF@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  279. @AG@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  280. @AH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  281. @AI@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  282. @AJ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  283.  
  284.  
  285. d) Video mode - MakeFilter.VI
  286. -----------------------------
  287.  
  288. @A0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  289.  
  290. @A1@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C1@ @D1@@@@@
  291. @A2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C2@ @D2@@@@@
  292. @A3@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C3@ @D3@@@@@
  293. @A4@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C4@ @D4@@@@@
  294. @A5@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C5@ @D5@@@@@
  295. @A6@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C6@ @D6@@@@@
  296. @A7@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C7@ @D7@@@@@
  297. @A8@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C8@ @D8@@@@@
  298. @A9@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @C9@ @D9@@@@@
  299. @AA@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @CA@ @DA@@@@@
  300. @AB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @CB@ @DB@@@@@
  301.  
  302.  
  303.  
  304. Every sequence start with the character `@`, followed by two characters
  305. which give the internal position of the dataset string. The first character
  306. may have values from A...D, giving the x position:
  307.  
  308.  A --> 0    A-Side MC / Left-Side CD / Phono / Filmtitle-Field Video
  309.  B --> 34   B-Side MC / Right-Side CD
  310.  C --> 54   Time-Field Video
  311.  D --> 59   Counter-Field Video
  312.  
  313. The second character defines the y position, giving the row of the dataset.
  314. This one may have values from 0...9 and from A...J which means 10 to 19 then.
  315.  
  316. With this position information, a certain length information for the sequence
  317. in question is included. MakeFilter checks the length of the sequences and 
  318. compares that information with internal settings. If it encounters possible
  319. problems, it will give you detailed information on what might be incorrect.
  320.  
  321.  
  322.  
  323.  
  324. 5) What you might want to know now
  325. ==================================
  326.  
  327.  
  328. Note that new Export-Filters will be made available on my personal WWW site:
  329.  
  330.  
  331.               http://home.t-online.de/home/harald.zottmann
  332.  
  333.  
  334. as soon as they are available. If you have written some new and really good
  335. Export-Filters yourself, feel free to E-mail them to me in order to release 
  336. them on this site, or to get them included in a forthcoming release of the 
  337. program. As a reward for sending me Export-Filters which are worth to be 
  338. released, you may earn a free KeyFile for the Video & CD-Archive. Note that 
  339. I will distribute free KeyFiles only via E-Mail and only if I receive an 
  340. electronic copy of the ORDERFORM with the requested personal data from you. 
  341. The ORDERFORM file is included in the Video & CD-Archive program package.
  342.  
  343.