mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
44f22eba90
commit
1b4e2a8858
@ -33,20 +33,21 @@ def html_css_stylesheet():
|
|||||||
return _html_css_stylesheet
|
return _html_css_stylesheet
|
||||||
|
|
||||||
|
|
||||||
INHERITED = set(['azimuth', 'border-collapse', 'border-spacing',
|
INHERITED = {
|
||||||
'caption-side', 'color', 'cursor', 'direction', 'elevation',
|
'azimuth', 'border-collapse', 'border-spacing', 'caption-side', 'color',
|
||||||
'empty-cells', 'font-family', 'font-size', 'font-style',
|
'cursor', 'direction', 'elevation', 'empty-cells', 'font-family',
|
||||||
'font-variant', 'font-weight', 'letter-spacing',
|
'font-size', 'font-style', 'font-variant', 'font-weight', 'letter-spacing',
|
||||||
'line-height', 'list-style-image', 'list-style-position',
|
'line-height', 'list-style-image', 'list-style-position',
|
||||||
'list-style-type', 'orphans', 'page-break-inside',
|
'list-style-type', 'orphans', 'page-break-inside', 'pitch-range', 'pitch',
|
||||||
'pitch-range', 'pitch', 'quotes', 'richness', 'speak-header',
|
'quotes', 'richness', 'speak-header', 'speak-numeral', 'speak-punctuation',
|
||||||
'speak-numeral', 'speak-punctuation', 'speak', 'speech-rate',
|
'speak', 'speech-rate', 'stress', 'text-align', 'text-indent',
|
||||||
'stress', 'text-align', 'text-indent', 'text-transform',
|
'text-transform', 'visibility', 'voice-family', 'volume', 'white-space',
|
||||||
'visibility', 'voice-family', 'volume', 'white-space',
|
'widows', 'word-spacing', 'text-shadow',
|
||||||
'widows', 'word-spacing', 'text-shadow'])
|
}
|
||||||
|
|
||||||
FONT_SIZE_NAMES = set(['xx-small', 'x-small', 'small', 'medium', 'large',
|
FONT_SIZE_NAMES = {
|
||||||
'x-large', 'xx-large'])
|
'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'
|
||||||
|
}
|
||||||
|
|
||||||
class Stylizer(object):
|
class Stylizer(object):
|
||||||
STYLESHEETS = WeakKeyDictionary()
|
STYLESHEETS = WeakKeyDictionary()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user