Is there any place to download the Tanach, or at least the Torah, in plain text format, including nekudos and trop? From Mechon Mamre I can download the HTML, but aside from the html tags the text is in a weird format (that I can't directly read in a text editor).
I'd like to be able to search for trop or sequences of trop, which is easiest in text format (with grep).