home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 32 / hot34.iso / ficheros / DINET / H2T150B.ZIP / HTML2TXT.CFG < prev    next >
Text File  |  1998-04-02  |  16KB  |  422 lines

  1. #########################################################################
  2. # Configiguration file for HTML2TEXT                    #
  3. # Current version: 1.50b                        #
  4. #                                    #
  5. #########################################################################
  6.  
  7. # Any line starting with a ';' of a '#'is a commentline
  8. # Commandline options *override* the values in this file. As do the options
  9. # specified in the environment variable H2T_SW
  10. # If not specified default values will be used.
  11.  
  12. # Numbers limited to the range of (0..65535) but beware of memory errors
  13. # Usually the defaults will not cause memory errors, if it does,
  14. # decrease the values, and contact me. wieger1@noord.bart.nl
  15. # The length of each line may not exceed 255 characters.
  16.  
  17. # To speed up HTML2TEXT slightly, remove any commentlines empty lines
  18. # and any lines which are set to default values. (Be sure to keep a
  19. # copy of the file as you got it originally).
  20. # Setting the working directory to a ramdrive will also be helpful.
  21. # Other options that slow down the program are conversion of tables and
  22. # linewrapping.
  23.  
  24. #########################################################################
  25. # The Options                                #
  26. #                                    #
  27. #########################################################################
  28.  
  29. ; Specifies the path where the output files are written. If it is omitted
  30. ; the directory will be derived from the inputfile's path. You may use .
  31. ; for the current directory, .. for the parent. Be sure to use the 8.3 type
  32. ; pathnames (Windows 95 are not supported). A trailing \ is not necessary.
  33. ; (<none>). When standard output is used this option is irrelevant.
  34. ; If the specified directory not exists it is created or asked to create
  35. ; according to the create_output_path settings
  36. ; default=<current>
  37. output_path=
  38.  
  39. ; When the output_path does not exist, then when this option is 1 it is
  40. ; automatically created, when this is 0 it is asked before created.
  41. ; If standard_output is used this option is irrelevant.
  42. ; default=0
  43. create_output_path=0
  44.  
  45. ; Controls where the working directory is placed. Use a ramdrive if possible.
  46. ; If not specified the current directoy will be used. A trailing '\' is not
  47. ; nessecary. You can use a envorinment variable as well. Environment variables
  48. ; always start with a leading '%' eg.
  49. ; working_dir=%temp
  50. ; default= <none>
  51. working_dir=
  52.  
  53. ; When this is '0' it will not stop at the </html> tag. This is useful
  54. ; when getting more files from standard input. Otherwise is stops after
  55. ; that tag preventing garbage in-/output. Usually it's best setting this on.
  56. ; default=1
  57. html_stop=1
  58.  
  59. ; When on forms will be re-formatted otherwise input is just ignored
  60. ; This will make some sense of forms so that they can be filled in
  61. ; and printed.
  62. ; default=0
  63. input=1
  64.  
  65. ; Denotes the characters for bold tag
  66. ; The first is for the open tag the second for the closing tag
  67. ; Suggestions: **
  68. ; default=<none>
  69. bold=
  70.  
  71. ; Denotes the characters for italic tag
  72. ; The first is for the open tag the second for the closing tag
  73. ; Suggestion: // or \\\\
  74. ; default=<none>
  75. italic=
  76.  
  77. ; Denotes the character for underline tag
  78. ; The first is for the open tag the second for the closing tag
  79. ; suggestion=__
  80. ; default=<none>
  81. underline=
  82.  
  83. ; Denotes the characters for the horizontal ruler
  84. ; The first is for a ruler with size less than 4, the second
  85. ; for the rest (For graphical system characters 196 and 205 are best IMO)
  86. ; default=-=
  87. ruler=\196\205
  88.  
  89. ; if 0, no marker, 'XXX' is placed for errors and if warn is set warnings
  90. ; in the output file. This makes it possible to 'debug' your HTML-files.
  91. ; default=0
  92. mark=0
  93.  
  94. ; Charset sets the document type used for output. See also the ini-file.
  95. ; This can have 3 values:
  96. ; 1 : Select 7 bit ASCII
  97. ; 2 : Select 8 bit ASCII, codepage 437
  98. ; 3 : Select Windows 8859/1 character set
  99. ; 4-9: user definable;
  100. ; Defaults to 3 if Windows is found in enhanced mode (windows 3.x or 95)
  101. ; and to 1 otherwise
  102. charset=2
  103.  
  104. ; The maximum number of entity references the HTML2TXT.INI can hold.
  105. ; With the included INI-file a larger number is necessary.
  106. ; default=128
  107. maxamp=400
  108.  
  109. ; If 1, write data to standard output
  110. ; Otherwise a file is used.
  111. ; default=0
  112. standard_output=0
  113.  
  114. ; If 1, read data from standard input
  115. ; This can be used to redirect input from other programs
  116. ; The output will be sent to standard output.
  117. ; If files are specified on the commandline those will still be
  118. ; converted *after* standard input has been read. The output of
  119. ; the files will be sent to file or standard output according
  120. ; to the standard_output setting
  121. ; Also the overwrite status is overwritten. This is set to 'never' unless
  122. ; it was set to always or always append.
  123. ; If no filenames are specified output from standard input is expected
  124. ; default=0
  125. standard_input=0
  126.  
  127. ; If set to one the full path of the converted file is printed to the output
  128. ; default=0
  129. print_filename=0
  130.  
  131. ; Token for unordered list element type disc
  132. ; default=*
  133. ul_disc=*
  134. ; Token for unordered list element type disc
  135. ; default=o
  136. ul_circle=o
  137. ; Token for unordered list element type square
  138. ; Suggestion: \254
  139. ; default=#
  140. ul_square=#
  141.  
  142. ; If set the text between <title> and </title> is displayed
  143. ; if set to 2 the '-=' and '=-' are omitted
  144. ; default=1
  145. display_title=1
  146.  
  147. ; Specifies the number of characters on a line, if 0 then no linewrap
  148. ; is chosen. If the value<=10 then screenwidth-2 ( usually screenwidth = 80)
  149. ; is used. For tables the maximum length of a line will always be less
  150. ; than 255.
  151. ; default=0
  152. linewrap=1
  153.  
  154. ; The number of spaces inserted before every <LI> tag
  155. ; default=3
  156. indentsize=2
  157.  
  158. ; When importing to a Wordprocessor with scalable fonts, like Wordperfect 6+
  159. ; or Word 2+ turn off linewrap and set identsize to 0;
  160.  
  161. ; if set warnings about incorrect HTML-codes are generated
  162. ; Might generate a whole lot of warnings.
  163. ; default=0
  164. warn=0
  165.  
  166. ; if set entries from the ini-file starting with a '#' (square) aren't
  167. ; entered in the database. These are the entries which have a number
  168. ; instead of a name to replace.
  169. ; default=0
  170. nosquare=0
  171.  
  172. ; Shows a progress indicator in the upper left corner of the screen.
  173. ; default=0
  174. progress_indicator=0
  175.  
  176. ; Specifies the output extension, the dot is optional
  177. ; default=.txt
  178. ; suggestion=.h2t
  179. extension=.txt
  180.  
  181. ; Overwrite can have the following values:
  182. ; A - when a file exists it will always be overwritten
  183. ; V - when a file exists it will never be overwritten
  184. ; D - output will be appended when a file already exists
  185. ; 0 - will ask the user to specify the action on existing files
  186. ; default=0
  187. overwrite=0
  188.  
  189. ; If this is set, any text within quotes in tags will be treated as is;
  190. ; a '>' within quotes will not close the tags.
  191. ; Usually you don't want to set this option on, only when you expect
  192. ; strings to contain less-than characters
  193. ; default=0
  194. strict_quote=0
  195.  
  196. ; The path (including filename) where the ini-file (containing the
  197. ; settings for &...; codes) can be found.
  198. ; If not specified, or the file cannot be found there or opened, the
  199. ; file is searched for in the start-up and the current dir.
  200. ; default=<none>
  201. inipath=
  202.  
  203. ; This option defines the set of characters to use to hyphenate the document.
  204. ; Usually spaces, tabs and newlines will be used as word delimiters. The
  205. ; characters in these set can extend these word delimiters. The words are
  206. ; hyphenated after the last space characters or character from the set below
  207. ; The hyphenation character will be printed on the current line, followed by
  208. ; a newline.
  209. ; default=<none>
  210. ; suggestion="+*-=@!^&}]):.,/\\|"
  211. hyphens=
  212.  
  213. ; This options determines the borders that are used for tables. There
  214. ; are 10 predefined borders, but it is also possible to specify you're
  215. ; your own border text. If any of the borders below look funny you probably
  216. ; have the wrong codepage selected. This program was built for using 437.
  217. ; If you're using the 7-bit ASCII mode you'd probably best select bordertext
  218. ; 0 or 1 or specify your own.
  219. ;
  220. ; 0 No borders
  221. ;
  222. ; 1 +-+-+  2 ┌─┬─┐ 3  ╔═╦═╗  4 ╒═╤═╕  5 ╓─╥─╖
  223. ;   | | |    │ │ │    ║ ║ ║    │ │ │    ║ ║ ║
  224. ;   +-+-+    ├─┼─┤    ╠═╬═╣    ╞═╪═╡    ╟─╫─╢
  225. ;   | | |    │ │ │    ║ ║ ║    │ │ │    ║ ║ ║
  226. ;   +-+-+    └─┴─┘    ╚═╩═╝    ╘═╧═╛    ╙─╨─╜
  227. ;
  228. ; 6 ┌───┐ 7  ╔═══╗  8 ╔═╤═╗  9 ┌─╥─┐
  229. ;   │   │    ║   ║    ║ │ ║    │ ║ │
  230. ;   │   │    ║   ║    ╟─┼─╢    ╞═╬═╡
  231. ;   │   │    ║   ║    ║ │ ║    │ ║ │
  232. ;   └───┘    ╚═══╝    ╚═╧═╝    └─╨─┘
  233. ;
  234. ; To specify you're own table border you've to specify 15 characters.
  235. ; The diagram below specifies which position in the string points
  236. ; to what element of the border. The border in the diagram gets the
  237. ;   string : 123456789abcdef
  238. ; Be sure to include quotes around the string. And use escape sequences
  239. ; to use special characters.
  240. ;
  241. ;   16762
  242. ;   5 b 5
  243. ;   9dcda
  244. ;   5 b 5
  245. ;   36864
  246. ;
  247. ; e and f are used for cells with colspans extending the width of the cell
  248. ; e is a horizontal line with a vertical bar above is. f is a horizontal bar
  249. ; with a vertical bar below it. If you have forgotten a couple of characters
  250. ; they default to spaces.
  251. ; default=0
  252. ; Some other suggestions:
  253. ; bordertext="██████████│┼─┴┬"
  254. ; bordertext="/\\\\/|-++++|+-+++"
  255. bordertext=0
  256.  
  257. ; Controls whether the tables will be stretch the the maximum length of
  258. ; a line. When not using linewrapping, tables are of width 255.
  259. ; default=0
  260. stretch=0
  261.  
  262. ; The next options define text that replaces, links (<a href>), forms,
  263. ; anchors <a name> and images. You can use special sequences of characters
  264. ; to insert additional text derived from the htmlcodes. All those start
  265. ; with a '%'-token. Optionally those are enclosed within quotes. You can
  266. ; use a \" to insert a quot. You must use %% to include a % in the text.
  267. ; The following %-sequences are defined in general:
  268. ; %n : the 'name=' field
  269. ; %c : if checked inserst the checked_button_text, otherwise the number of
  270. ;      spaces equal to the length of checked_button_text is inserted
  271. ; %v : the 'value=' options. For text fields the 'value=' option gets
  272. ;      inserted in the text for input fields with type=TEXT up to the
  273. ;      number of characters defined by size= field. If the length is
  274. ;      shorter than in the size= field is specified spaces are appended
  275. ; %V : insert a number of spaces equal to the size= field
  276. ;      For both %v and %V the input_fill_char will be used to fill the
  277. ;      text input fields and textareas
  278. ; %b : Inserts reset for a reset button and submit for the submit button
  279. ; %B : Inserts RESET for a reset button and SUBMIT for the submit button
  280. ; %h : Inserts the source to which the reference points.
  281. ; %s : Inserts the source from a picture.
  282. ; %a : Inserts the alt= field for a pictures (the title of a picture).
  283. ; %t : Specifies that for the next field, if present the field name will
  284. ;      be inserted before the field.
  285. ; In all other cases the '%' is ignored
  286. ; between the % and the token may be a value denoting the maximum and minimun
  287. ; output length of the item. This is of the following format:
  288. ; <minimum>.<maximum>
  289. ; all three are optional. Minimum denotes the minimum of characters to be
  290. ; outputted, maximum the maximum number to be outputted. If the length of
  291. ; the string is smaller than the minimum it is padded with spaces, if the
  292. ; minimum is negative after the string, if it is positive before the string
  293. ; When the string length exceeds the maximum length the string is truncated.
  294. ; If the minimum exceeds the maximum the string is truncated to maximum and
  295. ; padded with spaces.
  296. ; C programmers will recognise this from the printf function
  297. ; The sequence that use this value are: %v, %V, %h, %s, %a, %n
  298. ; Otherwise it is ignored.
  299.  
  300. ; Positions a radio or check button in the text.
  301. ; Also these are used for <option>-tags within <select></select>
  302. ; Can have %c,n,v if radio or checkbutton
  303. ; A special %-sequence exists here namely:
  304. ; %! : This one has three additional characters following it.
  305. ;      The first is inserted for radiobuttons, the second for checkboxes
  306. ;      and the third for options within selections.
  307. ;      All three must be specified. If you don't want any output for one or
  308. ;      more use \1 for that item.
  309. ; default=<none>
  310. ; Suggestion=" %!([{%c%!)]} "
  311. radio_button_text=
  312.  
  313. ; checked_button_text replaces the %c in radio_button_text when it's checked
  314. ; no %-sequences
  315. ; default=<none>
  316. ; suggestion=\254 or x
  317. checked_button_text=x
  318.  
  319. ; Positions the buttons reset and submit
  320. ; can have %b,B,v
  321. ; default=<none>
  322. ; suggestioon="[ %B ]"
  323. button_text=
  324.  
  325. ; Defines the text to replace links( <a href=...></a>).
  326. ; can have %h
  327. ; default=<none>
  328. ; suggestion="  [ Link to : %h ]  "
  329. link_text=
  330.  
  331. ; Inserts an input field for text-typed input and textareas:
  332. ; Text-typed input it includes one line of text depending on the size=
  333. ; field. Then it can have: %v,V,n
  334. ; Textareas include a number of lines equal to the rows= field, each of the
  335. ; length set according to the cols= field. It can have %V but %v behaves
  336. ; the same.
  337. ; default=<none>
  338. ; suggstion= " [ %v ] "
  339. input_text=
  340.  
  341. ; defines the text to replace an images.
  342. ; It uses %a,s for <img>
  343. ; default=<none>
  344. ; suggestion="  [ Image %a %s ]  "
  345. image_text=
  346.  
  347. ; Defines the default width for the text-typed input and textareas when
  348. ; the size= or cols= field is omitted.
  349. ; default=40
  350. default_input_width=40
  351.  
  352. ; Defines the character to fill textareas and text inputfields width
  353. ; default=\32
  354. Input_fill_char=
  355.  
  356. ###################################################################
  357. ##         The following options are table specific              ##
  358. ##         And more or less not useful to most users             ##
  359. ###################################################################
  360. ; Specifies the number of spaces for a tab
  361. ; This option is only used when notables if set
  362. ; default=5
  363. tab_size=5
  364.  
  365. ; if set tables will not be reformated, every cell will be separated by
  366. ; a tab_size number of spaces
  367. ; if set the following option are irrelevant!
  368. ; default=0
  369. notables=0
  370.  
  371. ; Try increasing the next three options on "Heap Corrupted" errors
  372. ; Usually you will not need to increase them, who uses a table with
  373. ; more then 10 columns, 256 rows and 1 Kb per cell :-)
  374. ; These options should be decreased on "not enough memory" errors
  375.  
  376. ; Specifies the maximum number of columns in a table
  377. ; Usually tables with a size greater than 8 are useless esp in text document.
  378. ; cells would be less than 9 characters in width
  379. ; default=10
  380. max_cols=15
  381.  
  382. ; Specifies the maximum number of rows in a table
  383. ; Set to a large value if heaperrors occer
  384. ; default=256
  385. max_rows=256
  386.  
  387. ; Specifies the size of the buffer for a single cell of a table
  388. ; --> Now only for size of caption.
  389. ; default=256
  390. caption_buffer=256
  391.  
  392. ###################################################################
  393. ##    The following options are for debuggin purpose             ##
  394. ##    Better not mess with these unless you've lots of           ##
  395. ##     memory errors                                             ##
  396. ###################################################################
  397.  
  398. ; The maximum length for htmltag
  399. ; Increase when you expect long tags with relevant option near
  400. ; the end of the tag
  401. ; default=128
  402. tagsize=128
  403.  
  404. ; The maximum nesting depth for tags
  405. ; I've never seen HTML-files with a deeper nesting than like 50, do you?
  406. ; default=128
  407. stacksize=128
  408.  
  409. ; The maximum nesting depth for lists
  410. ; Lists shouldn't nest to deep, more than 5 is bogus imo...
  411. ; default=16
  412. listsize=16
  413.  
  414. ; The maximum nesting depth for alignment settings
  415. ; The number of nested paragraph. No need to increase this value
  416. ; default=16
  417. alignsize=16
  418.  
  419. ###################################################################
  420. ##                         End of Config-file                    ##
  421. ###################################################################
  422.