ku1ik / coloration Goto Github PK
View Code? Open in Web Editor NEWTextmate to Vim, JEdit and Kate/KWrite color scheme converter
License: MIT License
Textmate to Vim, JEdit and Kate/KWrite color scheme converter
License: MIT License
See ku1ik/vim-monokai#4.
colorscheme guy: ok, you convinced me, i'll put that in my todo list
Just a reminder from our chat. Make it convert from Vim to jEdit.
Also maybe you can make it convert Vim to Komodo Edit.
Heck, convert between them all and everyone on the internet on the
whole planet will come to your site! I will make a donation if you can
do this.
Hi,
I am trying to convert the Mac Classic theme from TextMate to vim. However I get the following error:
LA-DEV-IM-MM:Themes david$ tm2vim Theme.xml
Ignoring ffi-1.9.25 because its extensions are not built. Try: gem pristine ffi --version 1.9.25
Ignoring hitimes-1.3.0 because its extensions are not built. Try: gem pristine hitimes --version 1.3.0
/Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:29:in `block in initialize_from_hash': undefined method `caret=' for #<Coloration::Style:0x00007fb1de87aef0> (NoMethodError)
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in `each'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in `initialize_from_hash'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:13:in `initialize'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in `new'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in `block in parse_input'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in `each'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in `parse_input'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:26:in `process'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:14:in `process_cmd_line'
from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/bin/tm2vim:8:in `<top (required)>'
from /usr/local/bin/tm2vim:22:in `load'
from /usr/local/bin/tm2vim:22:in `<main>'
Any idea on how I can fix it? Attached is the xml file I'm trying to convert.
tm2vim ./GitHub.tmTheme
/Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/color-tools-1.3.0/lib/color/rgb.rb:53:in from_html': ArgumentError (ArgumentError) from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/color_rgba.rb:5:in
from_html'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:20:in block in initialize_from_hash' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:18:in
each'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:18:in initialize_from_hash' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:12:in
initialize'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:37:in new' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:37:in
block in parse_input'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:23:in each' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:23:in
parse_input'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/abstract_converter.rb:24:in convert!' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/abstract_converter.rb:12:in
process_cmd_line'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/bin/tm2vim:5:in <top (required)>' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/bin/tm2vim:19:in
load'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/bin/tm2vim:19:in `
Hi,
Firstly: thanks for this great tool :)
I have converted the RailsCasts TextMate 2 theme Bundle but it won't show correctly in my vim.
Find it here https://github.com/aasgit/aa-truecasts so you can check if anything went wrong. (or if it shows correctly for you).
Making it the same as DiffAdd and DiffDelete.
this file doesn’t get parsed.
/var/lib/gems/1.9.1/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:19:in `parse_input': undefined method `delete_at' for nil:NilClass (NoMethodError)
from /var/lib/gems/1.9.1/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:28:in `convert!'
from /var/lib/gems/1.9.1/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:13:in `process_cmd_line'
from /var/lib/gems/1.9.1/gems/coloration-0.3.2/bin/tm2katepart:5:in `<top (required)>'
from /usr/local/bin/tm2katepart:19:in `load'
from /usr/local/bin/tm2katepart:19:in `<main>'
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>'
Hi! I'm trying to convert my TM themes to vim variants and I'm running into the following error :
/Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/color-tools-1.3.0/lib/color/rgb.rb:53:in `from_html': ArgumentError (ArgumentError)
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/color_rgba.rb:5:in `from_html'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:22:in `block in parse_input'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:21:in `each'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:21:in `parse_input'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:28:in `convert!'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:13:in `process_cmd_line'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/bin/tm2vim:5:in `<top (required)>'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/tm2vim:19:in `load'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/tm2vim:19:in `<main>'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'
Sorry if this is something obvious, I'm not a ruby dev!
Thanks!
I'm getting an error trying to convert a tmTheme using the latest version of coloration:
duncan@duncan-desktop:~/dev$ tm2vim MadeToCode.tmTheme
/var/lib/gems/1.9.1/gems/color-tools-1.3.0/lib/color/rgb.rb:53:in `from_html': ArgumentError (ArgumentError)
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/color_rgba.rb:8:in `from_html'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:26:in `block in initialize_from_hash'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:18:in `each'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:18:in `initialize_from_hash'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:12:in `initialize'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:43:in `new'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:43:in `block in parse_input'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:29:in `each'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:29:in `parse_input'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/abstract_converter.rb:28:in `convert!'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/abstract_converter.rb:13:in `process_cmd_line'
from /var/lib/gems/1.9.1/gems/coloration-0.3.3/bin/tm2vim:5:in `<top (required)>'
from /usr/local/bin/tm2vim:23:in `load'
from /usr/local/bin/tm2vim:23:in `<main>'
The tmTheme file in question can be found here: https://raw.github.com/dflock/MadeToCode/master/MadeToCode.tmTheme
I'm not a ruby dev, so I have no idea how to fix this, sorry!
Not sure why but I can't seem to convert this theme.
It works correctly on TextMate and SublimeText:
Traceback (most recent call last):
14: from /usr/local/bin/tm2jedit:23:in '<main>'
13: from /usr/local/bin/tm2jedit:23:in 'load'
12: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/bin/tm2jedit:8:in '<top (required)>'
11: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:14:in 'process_cmd_line'
10: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:26:in 'process'
9: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in 'parse_input'
8: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in 'each'
7: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in 'block in parse_input'
6: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in
'new'
5: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:13:in 'initialize'
4: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in 'initialize_from_hash'
3: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in 'each'
2: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:27:in 'block in initialize_from_hash'
1: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/color_rgba.rb:10:in 'from_html'
/Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/color/rgb.rb:56:in 'from_html': ArgumentError (ArgumentError)
Mac OS X 10.10.3
$ uname -a
Darwin Sam.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
I have a current ruby version installed:
$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
But coloration
refuses to install:
$ gem install coloration
ERROR: Error installing coloration:
coloration requires Ruby version ~> 1.9.
I have checked other gems requiring ruby > 1.9 — they work. Any ideas?
Visit: http://coloration.ku1ik.com/
Notice the Message from Heroku:
Heroku | No such app
There is no app configured at that hostname.
Perhaps the app owner has renamed it, or you mistyped the URL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.