mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-14 04:09:34 +00:00
Add support for XPM. (#3706)
* .xpm and .pm extensions associated with XPM.
* .pm is disambiguated by searching the /* XPM */ string.
This is how `file` performs detection and should work with
every XPM3 file (most XPM generated by software later than 1991).
Added XPM samples:
* stick-unfocus.xpm: extracted from Fluxbox (MIT License)
0c13ddc0c8/data/styles/Emerge/pixmaps/stick-unfocus.xpm
* cc-public_domain_mark_white.pm: public domain image from
https://commons.wikimedia.org/wiki/File:Cc-public_domain_mark_white.svg
converted to XPM with ImageMagick (convert input.svg output.xpm).
This commit is contained in:
committed by
Colin Seymour
parent
e60384b018
commit
085604948e
40
samples/XPM/stick-unfocus.xpm
Normal file
40
samples/XPM/stick-unfocus.xpm
Normal file
@@ -0,0 +1,40 @@
|
||||
/* XPM */
|
||||
static char * stick_unfocus_xpm[] = {
|
||||
"20 17 20 1",
|
||||
" c None",
|
||||
". c #EBEBEB",
|
||||
"+ c #E9E9E9",
|
||||
"@ c #E6E6E6",
|
||||
"# c #E5E5E5",
|
||||
"$ c #E2E2E2",
|
||||
"% c #DFDFDF",
|
||||
"& c #DEDEDE",
|
||||
"* c #FEFEFE",
|
||||
"= c #C4C4C4",
|
||||
"- c #898989",
|
||||
"; c #B7B7B7",
|
||||
"> c #6A6A6A",
|
||||
", c #B9B9B9",
|
||||
"' c #E4E4E4",
|
||||
") c #686868",
|
||||
"! c #E0E0E0",
|
||||
"~ c #666666",
|
||||
"{ c #E8E8E8",
|
||||
"] c #E1E1E1",
|
||||
"....................",
|
||||
"....................",
|
||||
".....+@#$%&%$#@+....",
|
||||
"....+*********=&+...",
|
||||
"....@*********-=#...",
|
||||
"....#**;;;;;**>,'...",
|
||||
"....$**;**;;**);$...",
|
||||
"....%**;;;;;**>;&...",
|
||||
"....&**;***;**>;&...",
|
||||
"....&**;;;;;**>;&...",
|
||||
"....!*********~;!...",
|
||||
"....!*********>,&...",
|
||||
"....@=->)>>>)>-=#...",
|
||||
"....+&=,;;;;;,=&+...",
|
||||
".....{]%%&&&&%@+....",
|
||||
"....................",
|
||||
"...................."};
|
||||
Reference in New Issue
Block a user