Commit graph

100 commits

Author SHA1 Message Date
f082dbc3a2 feature #35: show colors tags in debug mode 2013-06-05 13:19:03 +02:00
8d6e44d8fd Refactoring colormaps
Bugfix scale configuration and logging.
Move every color map in colormaps
Use the case convention to switch mode.
Add a 256-colors mode scale (feature #37).
Add the spectrums colormaps, use them for scales by default.
Log the complete ANSI palettes numbers.
2013-05-31 11:01:46 +02:00
7e3e3efb88 bugfix: correct ANSI colors range in rgb_to_ansi
The function was trying to convert colors with values greater than 234, which do not exists in ANSI.
2013-05-30 19:01:06 +02:00
Johann Dreo
8832a41afe Support for RGB hexadecimal triplets colors notations 2013-05-30 14:14:09 +02:00
Johann Dreo
9b3e8e257c Update the README with recent features 2013-05-30 11:33:12 +02:00
Johann Dreo
ec196cab0b bugfix: parse the scale min/max as float, not int 2013-05-30 10:32:26 +02:00
Johann Dreo
55f18d885e bugfix: cleanly handle more errors when loading resources
Also print lexers after palettes.
2013-05-27 18:40:51 +02:00
Johann Dreo
d7dc047a2a feature #33: handle resources dirs. bugfix duplicated themes
Add -T and -P options to search for themes/palettes in additional directories.
Raise an error if duplicated themes name are found.
2013-05-27 18:11:41 +02:00
7ce5ad1eba Add an option to print all the available features 2013-05-26 21:30:39 +02:00
81e2cc98ad feature #32: debug mode 2013-05-26 21:13:13 +02:00
0a4f9f12ed Feature #31: better error handling
Add dedicated exception and exit on specific error code.
Also put resource loading in separated functions.
2013-05-26 17:21:36 +02:00
baf412ea5b Compress colormaps converted from RGB to ANSI
Avoid having two duplicated consecutives colors when using colormaps.
2013-05-26 16:50:04 +02:00
3f59b8c31f Add GIMP palettes support, refactoring
You can now use GIMP palette file as a colormap, by using its filename as a color.
Add the well known Matlab jet72 palette (jet72.gpl).

Group functions in sections.
2013-05-26 16:14:23 +02:00
02a79ff10e Refactoring: move stdin/out up to __main__
Use explicit stream variable in inner functions,
sys streams are thus only in use in the upper layer.
2013-05-26 10:44:16 +02:00
84f34a5cf4 Forgot to remove a test print 2013-05-25 18:58:33 +02:00
Johann Dreo
3f108692e8 Color code after a "note: candidate is/are:" 2013-05-23 14:45:03 +02:00
Johann Dreo
1968aa0197 Use python3's importlib instead of __import__ 2013-05-23 14:15:41 +02:00
Johann Dreo
1fed20cba7 Expect formatted json as input, blue numbers
This patch avoid coloring what's inside item's strings, but expect a formatted input.
2013-05-17 11:13:53 +02:00
Johann Dreo
d04a9d85a9 json separators in yellow, color double quotes 2013-05-16 14:29:52 +02:00
Johann Dreo
9f77a5b54d Separate g++ log with blue section lines
Every time g++ use "in/at", it starts a new error/warning paragraph.
Coloring those lines in blue mades it easier to spot messages.
2013-05-16 08:53:13 +02:00
3354a49395 Merge pull request #29 from orzrd/master
Add new installation method for pypi/ubuntu/gentoo and hotfix a python3 install error
2013-05-14 23:59:03 -07:00
orzrd
a278f9796f Update colout
hotfix python3 install error
2013-05-09 23:00:11 +08:00
orzrd
df52773c4e Update README.md
Add installation method
2013-05-09 22:55:08 +08:00
John Anderson
0d8606fd65 hotfix python3 install error 2013-05-05 21:12:59 +08:00
894fab9c68 bugfix #27: use default msg marker if no localization found 2013-05-05 00:30:43 +02:00
64454e42f1 Use python3 everywhere 2013-05-05 00:20:24 +02:00
d91c333d63 Merge pull request #25 from martin-ueding/launcher
Add launcher script
2013-05-04 15:16:29 -07:00
aa86e2a151 Merge pull request #23 from xudifsd/master
add requirement package in setup, also add installation section in README.md
2013-05-04 15:16:11 -07:00
Martin Ueding
c9bd98b414 Change License to GPL 3 only
It has been 3+ previously, but the remainder of the project is using 3
only.
2013-04-30 16:43:06 +02:00
Martin Ueding
e199f38698 Call Python 3 2013-04-30 16:42:36 +02:00
Martin Ueding
177c11fd9a Add launcher script
I tried to package this program in Ubuntu, and found that it has no
startup script. So I added a `colout` script that gets installed into
the scripts directory with the `setup.py`.
2013-04-28 15:53:00 +02:00
49cd8ab292 Merge pull request #22 from np/jsonarrays
Color JSON array markers '[' and ']'
2013-04-22 11:37:35 -07:00
Xu Di
37934e9266 colout/colout.py uses python3, whereas it really needs python2,
also add requirement in setup, makes it auto-install requirement
package.
2013-04-22 13:34:06 +08:00
Nicolas Pouillard
b85b727606 Color JSON array markers '[' and ']' 2013-04-20 00:21:24 +02:00
Johann Dreo
b470c81d01 Simplify the cmake theme, use "scale" instead of adhoc regex 2013-04-16 15:49:53 +02:00
Johann Dreo
c9eb7a1380 cmake theme localization: do not use english word 2013-04-16 09:34:25 +02:00
Johann Dreo
fa76dcdf76 Better g++ theme & localization
The g++ theme now check the locale to use unicode quotation mark if necessary.
Start of error paragraphs are highlighted in green.
Colout now use python3 for a simpler unicode support.
2013-04-16 09:32:08 +02:00
Johann Dreo
465ce93393 Bold line number in the g++ theme 2013-04-15 21:54:45 +02:00
Johann Dreo
64c50cca00 Localized g++ theme
Use gettext to get the GCC localized messages
2013-04-15 21:42:56 +02:00
Johann Dreo
f2df87b88c No greedy match on quotes for the g++ theme 2013-04-15 21:29:59 +02:00
16b6627cd7 Merge pull request #20 from oczkers/setup
add setup.py
2013-04-09 11:32:03 -07:00
Piotr Staroszczyk
8df684f3a0 add setup.py 2013-04-09 19:12:26 +02:00
0588676066 Merge pull request #16 from durka/lexer-index-error
fix IndexError during lexer collection
2013-04-06 23:43:28 -07:00
Alex Burka
c8a24b0aa8 correctly detect a numeric color argument 2013-04-06 20:58:15 -04:00
Alex Burka
76866c2330 fix IndexError during lexer collection 2013-04-06 20:56:51 -04:00
201e28b256 First attempt at an ~256 rainbow colormap
Indicentally, bugfix passing numerical values
2013-04-07 01:13:57 +02:00
c025c32a3d Conditional import of babel, fallback to std parsing 2013-04-03 19:02:04 +02:00
a2d3feb301 doc update 2013-04-03 19:02:01 +02:00
bac1b71b78 colormap for linear scale numbers
When using the 'scale' colormap, parse matches as decimal numbers
(taking your locale into account) and apply the rainbow colormap linearly
between the given SCALE=min,max

Implement issue #6
2013-04-03 18:43:05 +02:00
3a51a71014 More harmonious cmake/g++ themes
CMake theme less colorful, in cyan/green, color errors.
Better g++ messages parsing.
2013-03-26 23:38:16 +01:00