baruchel / txt2pdf

Text to PDF converter with Unicode support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENHANCEMENT needs some tests

clach04 opened this issue · comments

Not sure how to validate the run afterwards other than visual inspection 😱

Attached some test samples I've been using in case they are helpful to anyone else:

Problem encodings

  • test_text_utf8bom.txt - BOM is displayed as a black box (ideally look for that and remove in initial file IO code). Also see issue #15
  • test_text_utf16le.txt - due to the character opening mode used, and the "for line in file" logic this is not currently supported.
  • test_text_utf16be.txt - due to the character opening mode used, and the "for line in file" logic this is not currently supported.