Skip to content

Notes On Text Editors

waffle-stomper edited this page Feb 27, 2021 · 3 revisions

Ghostwriter Human-readable Books (.ghb files) can be edited with the text editor of your choice.

An appropriate editor should be able to handle unicode, (specifically UTF-8), and unix-style line breaks (i.e. \n, not \r\n).

Windows Wordpad cannot handle unicode, (all unicode characters will be preceded by 'Â'), and Windows Notepad doesn't respect unix-style line breaks, (line breaks will be ignored)

My Windows editor of choice is Notepad++ (https://notepad-plus-plus.org/). It handles UTF-8 and unix line breaks perfectly, but there is an issue with some new versions where the section symbol (§) will be detected as a series of Thai characters, (specifically ยง), and the encoding will be set to TIS-620. If this happens, your formatting characters will be displayed as Thai characters. To fix this, go to Settings > Preferences > MISC, and uncheck 'Autodetect character encoding'. Next, go to Encoding > Encode in UTF-8. You can check the current encoding in the bottom-right corner of Notepad++.

My Linux editor of choice is Sublime Text 3 (https://www.sublimetext.com/3)

Clone this wiki locally