diff --git a/source/NVDAObjects/window/winword.py b/source/NVDAObjects/window/winword.py index bcdcecaff6c..98f05c76c74 100755 --- a/source/NVDAObjects/window/winword.py +++ b/source/NVDAObjects/window/winword.py @@ -843,8 +843,11 @@ def _normalizeFormatField(self,field,extraDetail=False): # Translators: line spacing of 1.5 lines field['line-spacing']=pgettext('line spacing value',"1.5 lines") elif lineSpacingRule==wdLineSpaceExactly: - # Translators: exact (minimum) line spacing - field['line-spacing']=pgettext('line spacing value',"exact") + field['line-spacing'] = pgettext( + 'line spacing value', + # Translators: line spacing of exactly x point + "exactly {space:.1f} pt" + ).format(space=float(lineSpacingVal)) elif lineSpacingRule==wdLineSpaceAtLeast: # Translators: line spacing of at least x point field['line-spacing']=pgettext('line spacing value',"at least %.1f pt")%float(lineSpacingVal) diff --git a/source/core.py b/source/core.py index 8509a82ac68..00d34fdf9aa 100644 --- a/source/core.py +++ b/source/core.py @@ -116,29 +116,28 @@ def restart(disableAddons=False, debugLogging=False): import subprocess import winUser import shellapi - options=[] - try: - sys.argv.remove('--disable-addons') - except ValueError: - pass - try: - sys.argv.remove('--debug-logging') - except ValueError: - pass + for paramToRemove in ("--disable-addons", "--debug-logging", "--ease-of-access"): + try: + sys.argv.remove(paramToRemove) + except ValueError: + pass + options = [] + if not hasattr(sys, "frozen"): + options.append(os.path.basename(sys.argv[0])) if disableAddons: options.append('--disable-addons') if debugLogging: options.append('--debug-logging') - try: - sys.argv.remove("--ease-of-access") - except ValueError: - pass - shellapi.ShellExecute(None, None, - sys.executable, - subprocess.list2cmdline(sys.argv + options), - None, + shellapi.ShellExecute( + hwnd=None, + operation=None, + file=sys.executable, + parameters=subprocess.list2cmdline(options + sys.argv[1:]), + directory=globalVars.appDir, # #4475: ensure that the first window of the new process is not hidden by providing SW_SHOWNORMAL - winUser.SW_SHOWNORMAL) + showCmd=winUser.SW_SHOWNORMAL + ) + def resetConfiguration(factoryDefaults=False): """Loads the configuration, installs the correct language support and initialises audio so that it will use the configured synth and speech settings. diff --git a/source/globalCommands.py b/source/globalCommands.py index d2cef5326bd..e9ecfdb5d77 100644 --- a/source/globalCommands.py +++ b/source/globalCommands.py @@ -1552,7 +1552,7 @@ def script_reportFormatting(self, gesture): category=SCRCAT_SYSTEMCARET, ) def script_reportFormattingAtCaret(self, gesture): - self._reportFormattingHelper(self._getTIAtCaret(), False) + self._reportFormattingHelper(self._getTIAtCaret(True), False) @script( # Translators: Input help mode message for show formatting at caret position command. @@ -1560,7 +1560,7 @@ def script_reportFormattingAtCaret(self, gesture): category=SCRCAT_SYSTEMCARET, ) def script_showFormattingAtCaret(self, gesture): - self._reportFormattingHelper(self._getTIAtCaret(), True) + self._reportFormattingHelper(self._getTIAtCaret(True), True) @script( description=_( diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index 1920f605758..82c96043b56 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -67,6 +67,7 @@ What's New in NVDA - In Visual Studio, IntelliSense tool tips that provide additional details about the currently selected IntelliSense item are now only reported once. (#11611) - In Windows 10 Calculator, NVDA will not announce progress of calculations if speak typed characters is disabled. (#9428) - NVDA no longer crashes when using English US grade 2 and expand to computer Braille at the cursor is on, when displaying certain content such as a URL in Braille. (#11754) +- It is again possible to report formatting information for the focused Excel cell using NVDA+F. (#11914) == Changes for Developers ==