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:
John MacFarlane 2018-10-04 10:49:05 -07:00
parent 65cf5cfe7b
commit 5b7d04984b

View file

@ -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 =