mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-03 16:05:33 +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
76
samples/XPM/cc-public_domain_mark_white.pm
Normal file
76
samples/XPM/cc-public_domain_mark_white.pm
Normal file
@@ -0,0 +1,76 @@
|
||||
/* XPM */
|
||||
static char *cc_public_domain_mark_white[] = {
|
||||
/* columns rows colors chars-per-pixel */
|
||||
"52 53 17 1 ",
|
||||
" c black",
|
||||
". c #111111111111",
|
||||
"X c #222222222222",
|
||||
"o c gray20",
|
||||
"O c #444444444444",
|
||||
"+ c #555555555555",
|
||||
"@ c gray40",
|
||||
"# c #777777777777",
|
||||
"$ c #888888888888",
|
||||
"% c gray60",
|
||||
"& c #AAAAAAAAAAAA",
|
||||
"* c #BBBBBBBBBBBB",
|
||||
"= c gray80",
|
||||
"- c #DDDDDDDDDDDD",
|
||||
"; c #EEEEEEEEEEEE",
|
||||
": c white",
|
||||
"> c None",
|
||||
/* pixels */
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>> >>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>> >>>>>>>>>>>>>",
|
||||
">>>>>>>>>>> .OOOOX >>>>>>>>>>>",
|
||||
">>>>>>>>> .@&-:::::::;%@. >>>>>>>>>>",
|
||||
">>>>>>>> X%:::::::::::::::&O >>>>>>>>>",
|
||||
">>>>>>> .%:::::::::::::::::::%X >>>>>>>>",
|
||||
">>>>>> +;::::::::::::::::::::::# >>>>>>>",
|
||||
">>>>> $:::::::::::::::::::::::::%. >>>>>>",
|
||||
">>>>> %:::::::::::::::::::::::::::=. >>>>>",
|
||||
">>>> %:::::::::::::::::::::::::::::=. >>>>>",
|
||||
">>> $:::::::::::;$@Oo XO#&::::::::::% >>>>",
|
||||
">>> +::::::::::=+ X$:::::::::# >>>>",
|
||||
">> .#-:::::::$. O-::::::::X >>>",
|
||||
">> @=::::@ .=::::::::% >>>",
|
||||
">> O&:% .=::::::::::O >>",
|
||||
"> X o .=:::::::::::& >>",
|
||||
"> X #;::*o.=:::::::::::::. >>",
|
||||
"> o:%O &::::::-::::::::::::::@ >",
|
||||
" #:::*@ X*:::::::::::::::::::::% >",
|
||||
" &:::::-#. X%:::::::::::::::::::; >",
|
||||
" -:::::::; .#;::::::::::::::::: >",
|
||||
" ::::::::* @-:::::::::::::::X >",
|
||||
" ::::::::* +*:::::::::::::O >",
|
||||
" ::::::::* X. o%:::::::::::O >",
|
||||
" ::::::::* #;#X X#;::::::::o >",
|
||||
" ;:::::::- +:::%o .@-:::::: >",
|
||||
" *:::::::: .:::::*+ +*:::; >",
|
||||
" &::::::::X %::::::-@. o%:* >",
|
||||
" @::::::::# X;:::::::;#X X@ >",
|
||||
"> .::::::::= o;::::-O=::%o >",
|
||||
"> =::::::::O .#*&@. X;:::*+ >>",
|
||||
"> @::::::::- o:::::-@. >>",
|
||||
">> -::::::::% @::::::;#X >>",
|
||||
">> @:::::::::% *::::::::@ >>>",
|
||||
">> =:::::::::*X .$::::::::;. >>>",
|
||||
">>> o;:::::::::;$X .@-:::::::::+ >>>>",
|
||||
">>> +::::::::::::=$@OO+#&;::::::::::$ >>>>",
|
||||
">>>> #:::::::::::::::::::::::::::::% >>>>>",
|
||||
">>>>> #:::::::::::::::::::::::::::% >>>>>>",
|
||||
">>>>>> +;::::::::::::::::::::::::$ >>>>>>",
|
||||
">>>>>> o=:::::::::::::::::::::;O >>>>>>>",
|
||||
">>>>>>> @-:::::::::::::::::;#. >>>>>>>>",
|
||||
">>>>>>>> @=:::::::::::::-#. >>>>>>>>>",
|
||||
">>>>>>>>>> .@&*;::::;&#o >>>>>>>>>>",
|
||||
">>>>>>>>>>> >>>>>>>>>>>>",
|
||||
">>>>>>>>>>>> >>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>> >>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>",
|
||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
||||
};
|
||||
Reference in New Issue
Block a user