secretGeek / csvz

The hot new standard in open databases
Creative Commons Zero v1.0 Universal
30 stars 2 forks source link

how to specify delimiter types #2

Closed secretGeek closed 4 years ago

secretGeek commented 4 years ago

could there be a way to specify the delimiters/qualifiers/ and other specifics/options

secretGeek commented 4 years ago

yes - idea is to put it into _meta/csv.csv

but how is that file to be read?????

🤔

It's a boot-strapping problem.

doekman commented 4 years ago

It could be solved to have more strict requirements for _meta/csv.csv.

It this file exists, it will strictly follow RFC 4180. This will also the first file has to be read, if it exists.

secretGeek commented 4 years ago

yeh i've mentioned it briefly now.

ah, i'll add a spec fragment that says to comply with that strict rfc 4180 for the file csv.csv. That will be a separate fragment.

If they don't comply with it then they don't.

doekman commented 4 years ago

A good place to start is Python's CSV reader's format parameters.

secretGeek commented 4 years ago

closing this now as _meta/csv.csv is the definitely the answer. (Not that _meta/csv.csv is adequately documented.)

(Also, once meta-per-file (issue #10) is closed, you could write per-file descriptions of {filename}.csv to _meta/csv/{filename}.csv