Posted by Gordon P. Hemsley on March 18, 2009
Over the past week, I have been attempting to add real tab support to Bespin (bug 474055), under the guidance of Ben Galbraith (bgalbraith). Discussion on this issue has ensued in many places, including on Ben’s blog (in which he indirectly called me a weird hippie), as well as in at least two topics on the Google Group/mailing list Bespin Core.
The issue behind supporting real tabs is getting the editor to know that a tab is a variable width character. I was able to solve the problem of calculating just how wide that character is supposed to be, but that turned out to be the easy part. The problem that I’ve/we’ve been having is whether to contain all that knowledge in the cursor code (since it is essentially only a display issue) or to allow it to seep into the model code (which does all the actual text manipulation). That discussion is still ongoing right now, but either way, the change would require a little bit of refactoring of a lot of different functions, so that we can keep track of whether the function is getting the cursor position or the model position (as the latter is really just the nth index in the array, with all characters being equal).
So that’s where I’m at now. I’ve tagged the bug with the “student-project” keyword, since I’m a student and I’m working on the project, and I’ve posted a couple of patches in the bug to track my progress (the first one actually works, for the most part; the second one, not so much). All suggestions welcome.
Posted in Mozilla | Tagged: Ben Galbraith, Bespin, bgalbraith, bug, bugs, cloud, editing, editor, Mozilla, Mozilla Education, Mozilla Labs, student-project, tab, tabs, the cloud | 1 Comment »
Posted by Gordon P. Hemsley on February 14, 2009
I’ve recently rebooted this blog based on a suggestion by David Humphrey (humph) of Mozilla Education (wiki) during a discussion in #education. I’ll now be using it blog about my endeavors across the Internet related to software development (particularly the open source kind), as well as any other coding experiences I may have (including website development).
I’m excited to get involved with Mozilla Education, because that means I’ll be able to put my new Linguistics major to work (I’m currently attending the University of Vermont), while also building upon my 10 years of web development—not to mention being able to contribute to a community that I’ve been following and wanting to get involved with for those same 10 years. (I used Netscape 4 back in the day, was thrilled when Netscape 6 came out, soon switched to Mozilla Application Suite, and was finally convinced to switch to Firefox, where I’ve been ever since.)
So I hope this will be a good experience for me, and I hope that I will be able to contribute something that other people will consider useful in the course of their using (or developing) Mozilla products.