dgbowl / yadg

yadg: yet another datagram
https://dgbowl.github.io/yadg
GNU General Public License v3.0
35 stars 12 forks source link

Implement `locale` support for text file types. #100

Closed PeterKraus closed 12 months ago

PeterKraus commented 1 year ago

Related to #95 and the solution in #99 :

The text files read by yadg may be localised (MM/DD/YYYY instead of DD.MM.YYYY in dates, or worse, X,XXX.yy vs X'XXX.yy or X.XXX,yy in floats). Trying to guess a locale of the given file is really impossible and should be a user-controlled parameter, along with things like timezone, encoding, or other file metadata.

PeterKraus commented 12 months ago

So far, the two parsers known to process localizable files are the electrochem parser for eclab.mpt files, and the basiccsv parser. Other filetypes/parsers will be patched when a localised example file is provided.