Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormarioparris
    • CommentTimeMar 20th 2008 edited
     permalink

    Hey All,

    I took some time today to write a little Python script to convert a couple TextMate themes I’ve been eye-balling for a while, and I figured I’d share it.
    Now mind you, it was just written today so it may not be perfect, but it works for me, and hopefully you :o).

    You can grab it here.

    If any one has suggestions to improving the app, or really, any other suggestions… they’d be appreciated :o)

    • CommentAuthorIngwar
    • CommentTimeMar 20th 2008
     permalink

    Fantastic job! You can try to add TM to IT conversion. I’m guessing one day Intype community will start to make their own themes which TM users would like to have access to.

    • CommentAuthormarioparris
    • CommentTimeMar 21st 2008 edited
     permalink

    Thanks :) Yep, one day, though I’ll probably have to write my own parser for the Jasmine format (regex play time!). I’m probably going to update this use elementTree and see if I can get it work with more themes. Its a long weekend for me, I’ll try to finish some assignments sooner and update it.

  1.  permalink

    Updated the converter and added converted themes :o) Grab the updates here
    Converter now uses the ElementTree module for Python. :)

    • CommentAuthorIngwar
    • CommentTimeMar 21st 2008
     permalink

    marioparris: [...] I’ll probably have to write my own parser for the Jasmine format (regex play time!).

    That made me think whether the team would be willing to release Jasmine parser as a library? It could be beneficial for the community, especially for third party app developers (like it would be in this particular case). One can, of course, write his own implementation, however having access to Intype’s own engine would assure better compatibility. But that’s just a loose thought.

    •  
      CommentAuthordflock
    • CommentTimeMar 22nd 2008
     permalink

    This is pretty great – thanks!

    I’ve converted a bunch of themes with it and noticed that some of the black themes come out white – Texari for example ends up with a white background.

  2.  permalink

    I noticed it too, I’ve had to edit the theme manually and add a scope setting for scope:‘text source’ that sets the background to black. Which is odd, since itTheme is a direct copy of whats in the tmTheme. It might be a small difference in how itThemes work, I’ll check it out and see whats up for sure :)

    •  
      CommentAuthordflock
    • CommentTimeMar 22nd 2008
     permalink

    Yeah, a little bit of manual messing around sorts them out.

    Also, I’m seeing these:
    { title : '--------------------------------' settings : { } }

    in the converted itTheme files – presumably these are comments or something in the original tmTheme files that are being converted:

    <dict> <key>name</key> <string>-----------------------------------</string> <key>settings</key> <dict/> </dict>
    Do these have a purpose in itTheme files?

    •  
      CommentAuthordflock
    • CommentTimeMar 22nd 2008
     permalink

    Hmmm, taking those out sometimes seems to sort out odd problems – I often get a light blue current line highlight which doesn’t obey the colour set with highlighted_line until I clean out stuff like that.

  3.  permalink

    Thanks dflock, I’ll fix it in the next update! :)

    • CommentAuthormarioparris
    • CommentTimeMar 22nd 2008 edited
     permalink

    It seems to have fixed the background colour issue in Texari as well

    Updated!

    •  
      CommentAuthoryarden
    • CommentTimeMar 22nd 2008
     permalink

    great job!

    •  
      CommentAuthordflock
    • CommentTimeMar 22nd 2008
     permalink

    I’ve put a page up on my wiki with some of my favourite modified themes on, mainly so that I can get them back if I lose them – but also to share them with anyone who wants them.

    •  
      CommentAuthorResilient
    • CommentTimeMay 21st 2008
     permalink

    Hey guys,

    I found a site with user submitted textmate themes, and quite a few of them are really good looking and easy on the eyes when it comes to aesthetics. Would it be possible for someone to convert any of these? I’d love to see more themes available to the Intype community.

    The website can be found here.

    • CommentAuthorhuacnlee
    • CommentTimeAug 8th 2008
     permalink
    I changed is ,add an auto-convert function,It Can automatically convert .tmTheme files of all documents to .itTheme .
    Download url: http://code.google.com/p/tmitter/downloads/list
    Enjoy it.
    •  
      CommentAuthoradios
    • CommentTimeSep 27th 2008 edited
     permalink

    if you like the font in Textmate .. the name is Monaco
    you can download it from here or Rapidshare mirror