@@ -49,8 +49,8 @@ OPTIONS
49
49
50
50
*-b, --backend*='BACKEND'::
51
51
'BACKEND' is the name of an installed backend plugin. When this
52
- option is specified 'a2x' attempts load a file name 'a2x-backend.py'
53
- from the 'BACKEND' plugin directory It then converts the
52
+ option is specified 'a2x' attempts to load a file name 'a2x-backend.py'
53
+ from the 'BACKEND' plugin directory. It then converts the
54
54
'SOURCE_FILE' to a 'BACKEND' formatted output file using a global
55
55
function defined in 'a2x-backend.py' called 'to_BACKEND'.
56
56
@@ -75,8 +75,10 @@ OPTIONS
75
75
Do not delete temporary build files.
76
76
77
77
*--lynx*::
78
- Use 'lynx(1)' to generate text formatted output. The default
79
- behavior is to use 'w3m(1)'.
78
+ Use 'lynx(1)' (actually: the text-based browser defined by the `LYNX` config
79
+ variable) when generating text formatted output. The default behavior is to
80
+ use 'w3m(1)' (actually: the text-based browser defined by the `W3M` config
81
+ variable).
80
82
81
83
*-L, --no-xmllint*::
82
84
Do not check asciidoc output with 'xmllint(1)'.
@@ -323,17 +325,28 @@ ASCIIDOC = 'asciidoc'
323
325
XSLTPROC = 'xsltproc'
324
326
DBLATEX = 'dblatex' # pdf generation.
325
327
FOP = 'fop' # pdf generation (--fop option).
326
- W3M = 'w3m' # text generation .
327
- LYNX = 'lynx' # text generation (if no w3m) .
328
+ W3M = 'w3m' # primary text file generator .
329
+ LYNX = 'lynx' # alternate text file generator .
328
330
XMLLINT = 'xmllint' # Set to '' to disable.
329
331
EPUBCHECK = 'epubcheck' # Set to '' to disable.
330
332
# External executable default options.
331
333
ASCIIDOC_OPTS = ''
334
+ BACKEND_OPTS = ''
332
335
DBLATEX_OPTS = ''
333
336
FOP_OPTS = ''
337
+ LYNX_OPTS = '-dump'
338
+ W3M_OPTS = '-dump -cols 70 -T text/html -no-graph'
334
339
XSLTPROC_OPTS = ''
335
340
---------------------------------------------------------------------
336
341
342
+ Note, that it is possible to redefine `W3M` and `LYNX` to use different text-based
343
+ browsers, e.g. 'links': http://links.twibright.com/ or
344
+ 'elinks': http://elinks.or.cz/. `LYNX_OPTS` and `W3M_OPTS` can be used to pass
345
+ options to the selected browser. If these are defined they override the
346
+ respective defaults listed above (so don't forget to include the '-dump' option
347
+ in your definition: this is mandatory at least with 'w3m', 'lynx', 'links', and
348
+ 'elinks' in order to send the formatted text to stdout).
349
+
337
350
338
351
BUGS
339
352
----
0 commit comments