beaver-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Beaver-devel] Translations


From: Michael Terry
Subject: Re: [Beaver-devel] Translations
Date: Thu, 22 May 2003 15:18:59 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030322

Leslie Polzer wrote:
I am sorry for not being able to contribute much stuff lately, but I
was busy with German, Greek, math and ethics which were my "abitur" (the German
exam granting you access to university) subjects. I have finished it by now and
should be able to resume work on Beaver.

Excellent. I also recently finished my exams this semester and have more free time (hence the recent flurry of CVS commits).


Besides that I am going to continue my work on the Glade version of the Prefs
dialogue. I am also eager to update the website; hope I'll get to it.
Maybe you could in the meanwhile give me a quick intro to gtksourceview.

Sure. GtkSourceView is a subclass of GtkTextView. So, that whole interface is still there. However, it provides source highlighting, an 80th-column margin line, adjustible tab size, parentheses matching, undoredo support, and line numbers.

Most of these features are controllable through a gtk_source_view_set_show_margin(sourceview, TRUE) function or something similar. To the user, most of it is controlled through the View menu.

GtkSourceView uses ".lang" files to store information about languages (kept in, I think, /usr/share/gtksourceview). There is an API to access information about the languages, like their name and such -- this is how we build the Language menu.

One interesting change is that we no longer use Wordfiles because GtkSourceView handles syhi through its .lang files. This isn't too big a deal, but some information was in those wordfiles that is not in the .lang files. Mainly, some information about the language like what a regex for what functions looked like. I hope to get such information into GtkSourceView proper, so that we can read that from the languages it keeps.

So, the classes that you might want to be aware of are GtkSourceView, GtkSourceBuffer, and GtkSourceLanguage. There is no API documentation to my knowledge, so just look at the headers/code.

As a consequence of this move, some files aren't needed anymore like undoredo, wordfile, and oldsyhi.

-mt

Attachment: pgplKvPAJ430N.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]