Closed fralau closed 5 years ago
I had thought about this in the beginning, started a discussion on pandoc-discuss about filter options. Since none of the suggestions there has been materialized, probably we should just use env. var. to pass filter options.
c.f. #8
Indeed I had tested this and found that command-line arguments did not work; pity because it would make sense.
This is why I am suggesting, as a workaround, to do that change with environment variables (e.g. export PANTABLE_DELIMITER=';'
).
I just pushed v0.12.1 that has a csv-kwargs option. See the doc for (not so much) details. This is a case that no test is written. So I'd appreciate if you could add an example at the end of tests/test_pantable.md
.
Thanks a lot for this good development of pantable. Currently, it supports the default format of csv (essentially commas as separator).
It would be good if it also allowed different csv formats (e.g. semicolons as separator).
I would like to define something according to those lines in pantable.py:
As a suggestion, there could be two complementary approaches:
export PANTABLE_DELIMITER=';' ; export PANTABLE_DIALECT=excel
(my preferred one, since "Excel with ;" is a very workable default)What would you think about this?