ku1ik / coloration

Textmate to Vim, JEdit and Kate/KWrite color scheme converter
MIT License
260 stars 17 forks source link

Fails on Brilliance Black #1

Closed vangberg closed 12 years ago

vangberg commented 14 years ago

It fails on Brilliance Black. Github master and latest TextMate.

% tm2vim Brilliance\ Black.tmTheme 
/Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/readers/textmate_theme_reader.rb:10:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/readers/textmate_theme_reader.rb:10:in `parse_input'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/abstract_converter.rb:24:in `convert!'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/abstract_converter.rb:12:in `process_cmd_line'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/bin/tm2vim:5:in `<top (required)>'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/bin/tm2vim:19:in `load'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/bin/tm2vim:19:in `<main>'
ku1ik commented 14 years ago

Oh, that's bad. I'll look at the problem.

ku1ik commented 14 years ago

Is the theme your're trying to convert a xml plist file or binary plist file?

ku1ik commented 14 years ago

I have tried Brillance Black from here http://svn.textmate.org/trunk/Themes/Brilliance%20Black.tmTheme and it worked for me.

vangberg commented 14 years ago

I tried with that file and it didn't fail. The resulting colorscheme was quite dull, though. Almost nothing got colored :)

ku1ik commented 14 years ago

@ichverstehe: Oh, that's bad. I'll check why it is dull. Btw, do you use MacVim, GVim or Vim with CSApprox plugin?

vangberg commented 14 years ago

Regular vim from the terminal on Mac OS X. This is what a Ruby file looks like: http://skitch.com/ichverstehe/dqxc1/x11

ku1ik commented 14 years ago

coloration sets highlighting colors using #rrggbb format which is not supported by regular vim in terminal, only graphical vim versions... but! You can use CSApprox vim plugin which will add support for RGB color schemes.