Kiss the Girls (Alex Cross, #2)
![]() |
|
![]() |
|
I just uploaded version 0.7 of Marave, my fullscreen text editor to http://marave.googlecode.com
Marave is a "relaxing" text editor inspired by ommwriter, DarkRoom and many others. It combines a spartan fullscreen UI with a vanishing UI, which gets out of the way of your text.
It supports syntax highlighting, inine spellchecking, background music, audible keyboard feedback, themes, is extensible via plugins, and much more.
Here's a screenshot:
There are no major new features in 0.7, but there are important internal changes and some major bugs fixed:
Fixed bug that broke opening files if you had no spellchecker
Implemented basic RTL language support
Several other minor fixes
Refactored the editor component so it can be reused
I have been thinking on what I really really want in a word processor. And then what would it take to create such a thing.
A few minutes of playing have led me the way of this teaser (video here if you can't see it):
Could something come out of it? Who knows.
Writing an editor is reinventing the wheel. I know that. I tell myself Marave is a fine wheel, with distinct features, and I think that is true, but, if you are reinventing the wheel, there's no need to reinvent the axle and the spoke, too.
So, I refactored the stuff that I think a text editor must provide into a nice library, so the next time someone must invent a wheel, he can use Marave's neat spokes and axles:
So, introducing Editor, the most-obviously named class ever! It's a text editing widget for PyQt with extra features, which you can use as a drop-in replacement for a QTextEdit or QPlainTextEdit.
Right now, it lives inside Marave's SVN but it may even move out someday.
Here are its features:
Syntax highlighting
And I don't mean "in theory", like QTextEdit and company do! Editor can highlight a bunch of languages, because it uses GNU source highlight via Lorenzo Bettini's Source Highlight Qt.
Spell checking
If you have PyEnchant installed and the right dictionaries, it will do online spellchecking.
Search and Search+Replace widgets
The Editor class can give you nice widgets for search or search and replace already hooked with the editor widget, so you can add them to your app's UI easily.
new/open/save/saveas methods:
Don't implement opening/saving, etc yourself! That's always the same code!
Hopefully this will be helpful for someone else :-)
The nice fellows at Packt Publishing have sent me a copy of Grok 1.0 Web Development by Carlos de la Guardia to review.
I am reading it and expect to write about it in a few days (BTW: nice so far! My proposed slogan: it's like zope, without the Java [1]), and here is a sample chapter so you can see what it's about. It's easy to read standalone, too:
Having had to deal this week with the brokenness that's Django oldforms (legacy site, don't even ask), the Grok way of dealing with forms is refreshing ;-)
[1] Yes, of course I know Zope had no Java in it, it just felt like Java ;-)