Docx reader: trigger bold/italic with bCs, iCs.
These are variants for "complex scripts" like Arabic and are now treated just like b, i (bold, italic). Colses #4947.
This commit is contained in:
parent
65cf5cfe7b
commit
5b7d04984b
1 changed files with 4 additions and 2 deletions
|
@ -1056,8 +1056,10 @@ elemToRunStyle ns element parentStyle
|
|||
| Just rPr <- findChildByName ns "w" "rPr" element =
|
||||
RunStyle
|
||||
{
|
||||
isBold = checkOnOff ns rPr (elemName ns "w" "b")
|
||||
, isItalic = checkOnOff ns rPr (elemName ns "w" "i")
|
||||
isBold = checkOnOff ns rPr (elemName ns "w" "b") `mplus`
|
||||
checkOnOff ns rPr (elemName ns "w" "bCs")
|
||||
, isItalic = checkOnOff ns rPr (elemName ns "w" "i") `mplus`
|
||||
checkOnOff ns rPr (elemName ns "w" "iCs")
|
||||
, isSmallCaps = checkOnOff ns rPr (elemName ns "w" "smallCaps")
|
||||
, isStrike = checkOnOff ns rPr (elemName ns "w" "strike")
|
||||
, rVertAlign =
|
||||
|
|
Loading…
Reference in a new issue