On 06.05.2011 00:39, Matthew Brush wrote:
On 05/05/11 07:40, Maciej Ciemborowicz (publiczny adres) wrote:
Hi. I'm going to write Textmate color schemes to Geany color schemes converter. But I have doubts about how to do that properly. Documentation says, that I should place them in colorschemes/*.conf files. But as I see, filetype definitions have hardcoded colors. I don't want to generate schemes for all filetypes becouse it is... redundant. I want to write one color scheme and figure on filetypes.* which SHOULD depend on it (at least official versions). The second problem is, that I can place in colorschemes/*.conf only [named_styles] section, not [styling] section, which is in filetypes.common.
I think you'll find it more pleasant to work with the setup used in geany-themes[1]. It's fixes all the problems you're having, would make writing a converter much easier (I started one for Gedit->Geany themes), and it will likely be incorporated into Geany[2] proper in the near future. If you do write a Textmate->Geany color scheme converter using the named styles geany-themes is using, I would *really* like to add it to the project, and also use it to create a bunch more themes. There's a little explanation in the README in the repository, but you should be able to figure it out by poking around in the directories there. Feel free to contact me if you have any questions.
Still, I will try and answer your questions below to help it make sense.
[1] https://github.com/codebrainz/geany-themes [2] https://github.com/codebrainz/geany/tree/colorscheme_fixup
Cheers, Matthew Brush
Thanks a lot for your explanation. Geany-themes looks very good, I forked your project few minutes ago. For conversion I will use Coloration[1] which already has a TextMate themes reader. The only thing I have to do is a Geany color schemes writer.
[1] https://github.com/ciembor/coloration
-- Maciej Ciemborowicz