I have a pile of old WordStar files from the DOS days, and none of the converters I tried handled them well. WordStar 7 files gave them the most trouble, and so did Cyrillic text in DOS code pages. So I wrote my own in Free Pascal: fpwsconv.
What it does
- Converts WordStar 3.x–7.0 documents to Markdown, plain text or RTF.
- Keeps bold, italic, underline, strike-out, super/subscript, headers and footers, margins, page breaks, styles, paragraph numbering, tabs and columns.
- Handles footnotes, endnotes, annotations and comments.
- Builds the table of contents and index from .tc / .ix the same way WordStar's own TOC/Index commands do (checked against WordStar 7's real .TOC / .IDX output).
- Exports pictures (.PIX, .PCX, …) as PNG files.
- Does merge printing: &variables&, .df data files (comma-delimited, dBASE .DBF, Lotus .WK1, Quattro .WQ1), plus .if / .rv / .ma / .av.
- Supports DOS code pages: 437, 850, 866, 1125 (Russian/Ukrainian), or auto-detect.
- Also works the other way: it turns Markdown or plain text into a WordStar document that WordStar 7 opens.
- Converts a whole folder or a mask in one batch (DOCS\*.WS).
- Builds for Windows and for real DOS (go32v2), so you can run it right next to your old WordStar install.
wsconv -r LETTER.WS→ LETTER.rtf
wsconv -c 866 DOCS\*.WS -o out
wsconv -w notes.md → notes.ws
The idea came from kbarni's Python wsconvert. I tested the output against documents that real WordStar 7 created under DOSBox. It's GPL v3.
GitHub: https://github.com/Lumenman/fpwsconv
Download (Windows / DOS binaries): https://github.com/Lumenman/fpwsconv/releases/latest
If you have WordStar files it chokes on, please open an issue. Odd files are the most useful test cases.