kylebgorman/textgrid.py — Issue #2: UTF-16 support
Author: kylebgorman
Created: 2011-10-18 01:40:07+00:00
State: open

Praat text files can be either ASCII or UTF-16. Right now, textgrid.py's reading and writing functions don't handle UTF-16, however. To be made to do this, they have to recognize UTF-16 (or just non-ASCII, I'd suggest, by comparing characters against \x7F) when reading, and the class instances have to be annotated as to whether they contain any UTF-16 marks, a feature which must percolate upward to Tier and Grid.

I'm not sure what we want to do here, but since we're redoing the write functions anyways, it seems worthwhile to consider.