File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments