Blog

Guides to working with text

Practical guides to reversing text, Unicode characters, cleanup, counting and common encodings. Each guide explains a real task, shows an example and links to a tool you can try.

Swap columns in a NumPy array

How to swap or reorder columns in a NumPy array, why naive tuple swaps fail, when the result is a view or a copy, and what to check before exporting delimited text.

Convert CSV to plain text

What converting a CSV file to plain text actually changes, when a TXT, tab-delimited or aligned-column version helps, and what can break after copying or sharing.

How to Encode an Em Dash in XML

Write an em dash (U+2014) in XML as a literal character or as — or —, avoid the undeclared — error, and check the result with a parser.

Text Comparison Tools for Finding Moved Passages

How text comparison tools handle passages that were moved rather than rewritten, how to choose between line, word and move-aware comparison, and how to judge whether the results suit your use.

Convert CSV to OV2

What a CSV to OV2 converter changes, what can be lost on the way, and when to keep a plain CSV of your points of interest instead.