Skip to content

Commit 45f7a89

Browse files
authored
Merge 9a739b0 into c6b6904
2 parents c6b6904 + 9a739b0 commit 45f7a89

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

source/config/configSpec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
reportFontAttributes = boolean(default=false)
174174
reportRevisions = boolean(default=true)
175175
reportEmphasis = boolean(default=false)
176+
reportsuperscriptsAndSubscripts = boolean(default=true)
176177
reportColor = boolean(default=False)
177178
reportAlignment = boolean(default=false)
178179
reportLineSpacing = boolean(default=false)

source/gui/settingsDialogs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,12 @@ def makeSettings(self, settingsSizer):
19411941
self.fontAttrsCheckBox=fontGroup.addItem(wx.CheckBox(self,label=fontAttributesText))
19421942
self.fontAttrsCheckBox.SetValue(config.conf["documentFormatting"]["reportFontAttributes"])
19431943

1944+
# Translators: This is the label for a checkbox in the
1945+
# document formatting settings panel.
1946+
superscriptsAndSubscriptsText = _("Su&perscripts and subscripts")
1947+
self.superscriptsAndSubscriptsCheckBox = fontGroup.addItem(wx.CheckBox(self, label=superscriptsAndSubscriptsText))
1948+
self.superscriptsAndSubscriptsCheckBox.SetValue(config.conf["documentFormatting"]["reportsuperscriptsAndSubscripts"])
1949+
19441950
# Translators: This is the label for a checkbox in the
19451951
# document formatting settings panel.
19461952
emphasisText=_("E&mphasis")
@@ -2145,6 +2151,7 @@ def onSave(self):
21452151
config.conf["documentFormatting"]["reportFontName"]=self.fontNameCheckBox.IsChecked()
21462152
config.conf["documentFormatting"]["reportFontSize"]=self.fontSizeCheckBox.IsChecked()
21472153
config.conf["documentFormatting"]["reportFontAttributes"]=self.fontAttrsCheckBox.IsChecked()
2154+
config.conf["documentFormatting"]["reportsuperscriptsAndSubscripts"] = self.superscriptsAndSubscriptsCheckBox.IsChecked()
21482155
config.conf["documentFormatting"]["reportColor"]=self.colorCheckBox.IsChecked()
21492156
config.conf["documentFormatting"]["reportComments"]=self.commentsCheckBox.IsChecked()
21502157
config.conf["documentFormatting"]["reportRevisions"]=self.revisionsCheckBox.IsChecked()

source/speech/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,7 @@ def getFormatFieldSpeech( # noqa: C901
21782178
else _("not hidden")
21792179
)
21802180
textList.append(text)
2181+
if formatConfig["reportsuperscriptsAndSubscripts"]:
21812182
textPosition=attrs.get("text-position")
21822183
oldTextPosition=attrsCache.get("text-position") if attrsCache is not None else None
21832184
if (textPosition or oldTextPosition is not None) and textPosition!=oldTextPosition:

user_docs/en/userGuide.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,6 +1690,7 @@ You can configure reporting of:
16901690
- Font name
16911691
- Font size
16921692
- Font attributes
1693+
- Superscripts and subscripts
16931694
- Emphasis
16941695
- Style
16951696
- Colors

0 commit comments

Comments
 (0)