Posts from Brazil

Generating a non-English dictionary for Vim spellchecking (with aspell)

Vim is a superb text editor, if you’re willing to go down the rabbit’s hole. One of its interesting features is spell checking, the basics of which are covered in many tutorials out there (and, of course, in the built-in help command through :help spell, if you’re feeling geekier). In this post, I’m solely concerned with the topic of generating a custom dictionary for spellchecking using a non-English language, say, Brazilian Portuguese (usually represented by the pt_BR localized language code [1]).

Read more ...

Closing files without handles (POSIX)

I recently found my self having to close a sizeable number of files after loosing the corresponding file objects (those you get with open(), for instance). This post tells the short tale of how I became slightly more enlightened on POSIX-compliant file access in Python… and how I managed to close the files, of course.

Read more ...