File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,6 +360,22 @@ def script_toggleReportFontAttributes(self,gesture):
360360 script_toggleReportFontAttributes .__doc__ = _ ("Toggles on and off the reporting of font attributes" )
361361 script_toggleReportFontAttributes .category = SCRCAT_DOCUMENTFORMATTING
362362
363+ @script (
364+ # Translators: Input help mode message for toggle report font attributes command.
365+ description = _ ("Toggles on and off the reporting of superscripts and subscripts" ),
366+ category = SCRCAT_DOCUMENTFORMATTING ,
367+ )
368+ def script_toggleReportSuperscriptsAndSubscripts (self ,gesture ):
369+ if config .conf ["documentFormatting" ]["reportSuperscriptsAndSubscripts" ]:
370+ # Translators: The message announced when toggling the report superscripts and subscripts document formatting setting.
371+ state = _ ("report superscripts and subscripts off" )
372+ config .conf ["documentFormatting" ]["reportSuperscriptsAndSubscripts" ] = False
373+ else :
374+ # Translators: The message announced when toggling the report superscripts and subscripts document formatting setting.
375+ state = _ ("report superscripts and subscripts on" )
376+ config .conf ["documentFormatting" ]["reportSuperscriptsAndSubscripts" ] = True
377+ ui .message (state )
378+
363379 def script_toggleReportRevisions (self ,gesture ):
364380 if config .conf ["documentFormatting" ]["reportRevisions" ]:
365381 # Translators: The message announced when toggling the report revisions document formatting setting.
You can’t perform that action at this time.
0 commit comments