On Apr 17, 1:07 pm, Lex Trotman <[email protected]> wrote: > On 17 April 2012 20:25, j. van den hoff <[email protected]> wrote: > > > > > > > > > > > hi, > > > it seems not possible to pass arguments along to the browsers defined by the > > variable `LYNX' (and `W3M') in `a2x.conf' directly in the `a2x' call > > (similar to, e.g., ` --dblatex-opts'), so I tried to edit `a2x.conf' like > > > LYNX = "lynx -nolist -width=80" > > > but this does not work since `a2x' explicitly double-quotes the `LYNX' > > variable when constructing the call, so `LYNX' is treated as a command name > > containing blanks (which is not found). > > I removed this quoting in a copy of a2x (version 8.6.6, line 768-9) like > > > cmd = "%s -dump %s > %s" % (LYNX, html_file, text_file) > > shell(cmd) > > > which then works just fine. > > > questions/remarks: > > > -- is the quoting there for an important reason (e.g. to support command > > names actually containing blanks)? > > Unfortunately, yes the command (and especially the html_file and > text_file which you also un-quoted) can contain spaces especially if > they have a path. For instance think "Program Files" on Windows and > user directories which often contain spaces in their paths.
yes, that's right. but w.r.t. the browser itself probably not so much: the text-based browsers I know of have sure no blanks in there names (w3m, lynx, links, elinks). so maybe the quoting fo the browser variables could still go away? it would make life a bit easier by allowing to include fixed options in `a2x.conf'. best regards, joerg > > > -- if there is such a reason (which I presume is the case), it would be nice > > to have an additional argument `--lynx-opts' and (`--w3m-opts'?) to pass > > along arguments to the browser. > > It would make it consistent yeah. Patch attached (untested, I have > neither lynx nor w3m) > > Havn't done the man page though :) > > > -- if the quoting actually is superfluous it should be removed so that > > definitions of `LYNX' including arguments would work in `a2x.conf'. > > Cheers > Lex > > > > > > > > > > > best regards, > > joerg > > > -- > > Using Opera's revolutionary email client:http://www.opera.com/mail/ > > > -- > > You received this message because you are subscribed to the Google Groups > > "asciidoc" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > >http://groups.google.com/group/asciidoc?hl=en. > > a2x_opts.diff > 1KViewDownload -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
