Skip to content

Commit f3aaa9c

Browse files
authored
Merge d1ef0b6 into 78c584f
2 parents 78c584f + d1ef0b6 commit f3aaa9c

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

nvdaHelper/remote/WinWord/Constants.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ constexpr int wdDISPID_FIELDS_ITEM_TYPE = 1;
4444
constexpr int wdDISPID_FONT_BOLD = 130;
4545
constexpr int wdDISPID_FONT_COLOR = 159;
4646
constexpr int wdDISPID_FONT_DOUBLESTRIKETHROUGH = 136;
47+
constexpr int wdDISPID_FONT_HIDDEN = 132;
4748
constexpr int wdDISPID_FONT_ITALIC = 131;
4849
constexpr int wdDISPID_FONT_NAME = 142;
4950
constexpr int wdDISPID_FONT_SIZE = 141;

nvdaHelper/remote/winword.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,9 @@ void generateXMLAttribsForFormatting(IDispatch* pDispatchRange, int startOffset,
645645
} else if(_com_dispatch_raw_propget(pDispatchFont,wdDISPID_FONT_DOUBLESTRIKETHROUGH,VT_I4,&iVal)==S_OK&&iVal) {
646646
formatAttribsStream<<L"strikethrough=\"double\" ";
647647
}
648+
if(_com_dispatch_raw_propget(pDispatchFont,wdDISPID_FONT_HIDDEN,VT_I4,&iVal)==S_OK&&iVal) {
649+
formatAttribsStream<<L"hidden=\"1\" ";
650+
}
648651
}
649652
}
650653
}

source/speech/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,6 +1571,14 @@ def getFormatFieldSpeech(attrs,attrsCache=None,formatConfig=None,reason=None,uni
15711571
# Translators: Reported when text is not underlined.
15721572
else _("not underlined"))
15731573
textList.append(text)
1574+
hidden = attrs.get("hidden")
1575+
oldHidden = attrsCache.get("hidden") if attrsCache is not None else None
1576+
if (hidden or oldHidden is not None) and hidden != oldHidden:
1577+
# Translators: Reported when text is hidden.
1578+
text = (_("hidden") if hidden
1579+
# Translators: Reported when text is not hidden.
1580+
else _("no hidden"))
1581+
textList.append(text)
15741582
textPosition=attrs.get("text-position")
15751583
oldTextPosition=attrsCache.get("text-position") if attrsCache is not None else None
15761584
if (textPosition or oldTextPosition is not None) and textPosition!=oldTextPosition:

0 commit comments

Comments
 (0)