Docx reader: Interpret "Strong" and Emphasis run styles.
This commit is contained in:
parent
1d6e1cf9f3
commit
6897905602
1 changed files with 6 additions and 2 deletions
|
@ -214,10 +214,14 @@ runStyleToContainers rPr =
|
|||
resolveFmt bool Nothing = bool
|
||||
|
||||
formatters = map Container $ mapMaybe id
|
||||
[ if resolveFmt (rStyle rPr == Just "Bold") (isBold rPr)
|
||||
[ if resolveFmt
|
||||
(rStyle rPr `elem` [Just "Strong", Just "Bold"])
|
||||
(isBold rPr)
|
||||
then (Just Strong)
|
||||
else Nothing
|
||||
, if resolveFmt (rStyle rPr == Just "Italic") (isItalic rPr)
|
||||
, if resolveFmt
|
||||
(rStyle rPr `elem` [Just"Emphasis", Just "Italic"])
|
||||
(isItalic rPr)
|
||||
then (Just Emph)
|
||||
else Nothing
|
||||
, if resolveFmt False (isSmallCaps rPr)
|
||||
|
|
Loading…
Add table
Reference in a new issue