5 ms·
The full list of transformations: 'colour' => 'color', 'grey' => 'gray', '!please' => '!important', 'transparency' => 'opacity', '
by benesch 13y ago
The full list of transformations:
'colour' => 'color',
'grey' => 'gray',
'!please' => '!important',
'transparency' => 'opacity',
'centre' => 'center',
'plump' => 'bold',
'photograph' => 'image',
'capitalise' => 'capitalize'
In case someone actually tries to use this in production (lol), I'm wouldn't
trust the transformation to this search/replace regex:
'/(?:(?:\s|\t)*|\;)([\w-]*):/i'
You know, considering CSS is context-free 'n all.
- bsamuels 13y ago> '/(?:(?:\s|\t)|\;)([\w-]):/i' my head just exploded. I imagine you could sneak a backdoor into one of these if it was long enough :)
- bluepnume 13y agoHere's that regex again, except actually readable: (\s*|;)[\w-]*:
- dfc 13y ago'photograph' => 'image', If your $LANG is en-uk do you really refer to all graphics as photographs?
- bluepnume 13y agoIf your $LANG is en-us does your sense of humour go amiss?
- dfc 13y agoIt was a legitimate question. The following are funny, legitimate differences between en-uk/en-us and to my knowledge did not represent any change in semantic value: 'colour' => 'color', 'centre' => 'center', 'capitalise' => 'capitalize' 'grey' => 'gray', # less definitive than others Why does being curious about en-uk/en-us language differences lead you to believe that I do not have a sense of humor?
- bluepnume 13y agoSorry, I thought you were being coy. To answer your question, we don't refer to all images as photographs. I think this was a joke-within-a-joke on the part of the author.