mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Support webHidden
DOCX Input: Hide text that has been marked as not being visible in the web view in Word.
This commit is contained in:
parent
58233b596c
commit
3abe080023
@ -132,10 +132,10 @@ class RunStyle(object):
|
|||||||
|
|
||||||
all_properties = {
|
all_properties = {
|
||||||
'b', 'bCs', 'caps', 'cs', 'dstrike', 'emboss', 'i', 'iCs', 'imprint',
|
'b', 'bCs', 'caps', 'cs', 'dstrike', 'emboss', 'i', 'iCs', 'imprint',
|
||||||
'rtl', 'shadow', 'smallCaps', 'strike', 'vanish',
|
'rtl', 'shadow', 'smallCaps', 'strike', 'vanish', 'webHidden',
|
||||||
|
|
||||||
'border_color', 'border_style', 'border_width', 'padding', 'color', 'highlight', 'background_color',
|
'border_color', 'border_style', 'border_width', 'padding', 'color', 'highlight', 'background_color',
|
||||||
'letter_spacing', 'font_size', 'text_decoration', 'vert_align', 'lang', 'font_family'
|
'letter_spacing', 'font_size', 'text_decoration', 'vert_align', 'lang', 'font_family',
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle_properties = {
|
toggle_properties = {
|
||||||
@ -150,7 +150,7 @@ class RunStyle(object):
|
|||||||
else:
|
else:
|
||||||
for p in (
|
for p in (
|
||||||
'b', 'bCs', 'caps', 'cs', 'dstrike', 'emboss', 'i', 'iCs', 'imprint', 'rtl', 'shadow',
|
'b', 'bCs', 'caps', 'cs', 'dstrike', 'emboss', 'i', 'iCs', 'imprint', 'rtl', 'shadow',
|
||||||
'smallCaps', 'strike', 'vanish',
|
'smallCaps', 'strike', 'vanish', 'webHidden',
|
||||||
):
|
):
|
||||||
setattr(self, p, binary_property(rPr, p))
|
setattr(self, p, binary_property(rPr, p))
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ class RunStyle(object):
|
|||||||
c['text-shadow'] = '2px 2px'
|
c['text-shadow'] = '2px 2px'
|
||||||
if self.smallCaps is True:
|
if self.smallCaps is True:
|
||||||
c['font-variant'] = 'small-caps'
|
c['font-variant'] = 'small-caps'
|
||||||
if self.vanish is True:
|
if self.vanish is True or self.webHidden is True:
|
||||||
c['display'] = 'none'
|
c['display'] = 'none'
|
||||||
|
|
||||||
self.get_border_css(c)
|
self.get_border_css(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user