Hello,
I submit a new patch for including a popular format among musicians: ABC notation.
Like for the txt2tags one (which is also included in this patch), there is only the tagmanager part at the moment.
Abc is praised by many linux users and there are several command line tools for manipulating it:
http://abcnotation.com/software.html#commandline
It's already included into kate and jed: http://abcplus.sourceforge.net/#JedABC
With the tagmanager in geany, it makes it really conveniant to browse tunes books this way because you can select the tune by number or title.
try for example: http://concertina.datenbrei.de/downloads/steierm1.abc
On Sun, 6 Sep 2009 20:07:46 +0000 (GMT), Forgeot wrote:
Hello,
I submit a new patch for including a popular format among musicians: ABC notation.
Like for the txt2tags one (which is also included in this patch), there is only the tagmanager part at the moment.
I don't want to be the killjoy, but I don't want to add any arbitrary filetypes. We should limit the list of filetypes to those which are commonly used. To decide which filetypes belong to this critieria and which not is quite hard, maybe some of the already existing filetypes do not, others are probably missing. I think this "abc" should not be added.
Regards, Enrico
2009/9/7 Enrico Tröger enrico.troeger@uvena.de:
On Sun, 6 Sep 2009 20:07:46 +0000 (GMT), Forgeot wrote:
Hello,
I submit a new patch for including a popular format among musicians: ABC notation.
Like for the txt2tags one (which is also included in this patch), there is only the tagmanager part at the moment.
I don't want to be the killjoy, but I don't want to add any arbitrary filetypes. We should limit the list of filetypes to those which are commonly used. To decide which filetypes belong to this critieria and which not is quite hard, maybe some of the already existing filetypes do not, others are probably missing.
IMHO too many LMLs (little markup languages) have got in lately, but they don't do much harm, its a pity Scintilla doesn't have a loadable lexer capability so languages can be selected by users without loading the lexer code for all of them even if I don't want them.
Cheers Lex
I think this "abc" should not be added.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Mon, 7 Sep 2009 17:17:39 +1000, Lex wrote:
2009/9/7 Enrico Tröger enrico.troeger@uvena.de:
On Sun, 6 Sep 2009 20:07:46 +0000 (GMT), Forgeot wrote:
Hello,
I submit a new patch for including a popular format among musicians: ABC notation.
Like for the txt2tags one (which is also included in this patch), there is only the tagmanager part at the moment.
I don't want to be the killjoy, but I don't want to add any arbitrary filetypes. We should limit the list of filetypes to those which are commonly used. To decide which filetypes belong to this critieria and which not is quite hard, maybe some of the already existing filetypes do not, others are probably missing.
IMHO too many LMLs (little markup languages) have got in lately, but they don't do much harm, its a pity Scintilla doesn't have a loadable lexer capability so languages can be selected by users without loading the lexer code for all of them even if I don't want them.
I think Scintilla has this, at least some sort of. But I never got into it to find out how it works in detail, so I can't say much about it.
Regards, Enrico
2009/9/8 Enrico Tröger enrico.troeger@uvena.de:
On Mon, 7 Sep 2009 17:17:39 +1000, Lex wrote:
2009/9/7 Enrico Tröger enrico.troeger@uvena.de:
On Sun, 6 Sep 2009 20:07:46 +0000 (GMT), Forgeot wrote:
Hello,
I submit a new patch for including a popular format among musicians: ABC notation.
Like for the txt2tags one (which is also included in this patch), there is only the tagmanager part at the moment.
I don't want to be the killjoy, but I don't want to add any arbitrary filetypes. We should limit the list of filetypes to those which are commonly used. To decide which filetypes belong to this critieria and which not is quite hard, maybe some of the already existing filetypes do not, others are probably missing.
IMHO too many LMLs (little markup languages) have got in lately, but they don't do much harm, its a pity Scintilla doesn't have a loadable lexer capability so languages can be selected by users without loading the lexer code for all of them even if I don't want them.
I think Scintilla has this, at least some sort of. But I never got into it to find out how it works in detail, so I can't say much about it.
Ah yes, external lexers, I had a quick look at Scintilla. The interface looks pretty simple.
Now if the filetypes array is extendible at runtime (g_array maybe) and with the exporting of a few extra functions to plugins then a plugin could add a language. All the plugin would need was to create the filetype entry and tell scintilla to load the lexer if it wasn't already loaded. (I think, you will doubtless now tell me that there is heaps more to do :-)
And then, after a period of discussion, argument, fighting, voting, consulting chicken entrails or other appropriate method of making a decision some less used languages could be moved to plugins so users need only load those they want :-)
Cheers Lex
PS what are the bits of code (some #if 0 ed out) relating to custom filetypes for?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Tue, 8 Sep 2009 11:15:50 +1000 Lex Trotman elextr@gmail.com wrote:
they don't do much harm, its a pity Scintilla doesn't have a loadable lexer capability so languages can be selected by users without loading the lexer code for all of them even if I don't want them.
I think Scintilla has this, at least some sort of. But I never got into it to find out how it works in detail, so I can't say much about it.
Ah yes, external lexers, I had a quick look at Scintilla. The interface looks pretty simple.
Now if the filetypes array is extendible at runtime (g_array maybe) and with the exporting of a few extra functions to plugins then a plugin could add a language. All the plugin would need was to create the filetype entry and tell scintilla to load the lexer if it wasn't already loaded. (I think, you will doubtless now tell me that there is heaps more to do :-)
And then, after a period of discussion, argument, fighting, voting, consulting chicken entrails or other appropriate method of making a decision some less used languages could be moved to plugins so users need only load those they want :-)
Hehe ;-)
Basically, the easiest way to do this is not by plugins but by custom filetypes. This means that the filetypes array never changes once the interface is created and so existing code should just work. I've done some work on this already, but ATM only basic filetypes [settings] section stuff works. I'm going to work on the custom lexer stuff next.
http://geany.svn.sourceforge.net/viewvc/geany?view=rev&revision=4143
Regards, Nick
On Mon, 7 Sep 2009 17:17:39 +1000 Lex Trotman elextr@gmail.com wrote:
I submit a new patch for including a popular format among musicians: ABC notation.
...
I don't want to be the killjoy, but I don't want to add any arbitrary filetypes. We should limit the list of filetypes to those which are commonly used. To decide which filetypes belong to this critieria and which not is quite hard, maybe some of the already existing filetypes do not, others are probably missing.
I agree, Geany is for programming and programming-related stuff like documentation.
IMHO too many LMLs (little markup languages) have got in lately, but they don't do much harm, its a pity Scintilla doesn't have a loadable lexer capability so languages can be selected by users without loading the lexer code for all of them even if I don't want them.
The plan is to make the less common filetypes into custom filetypes with no specific cost to the geany binary for each one. This will be done in stages, with the dynamic lexer code as the next item to work on.
Regards, Nick