|
1 | 1 | # A part of NonVisual Desktop Access (NVDA) |
2 | | -# Copyright (C) 2006-2020 NV Access Limited, Manish Agrawal, Derek Riemer, Babbage B.V. |
| 2 | +# Copyright (C) 2006-2022 NV Access Limited, Manish Agrawal, Derek Riemer, Babbage B.V. |
3 | 3 | # This file is covered by the GNU General Public License. |
4 | 4 | # See the file COPYING for more details. |
5 | 5 |
|
|
14 | 14 | from comtypes import COMError, GUID, BSTR |
15 | 15 | import comtypes.client |
16 | 16 | import comtypes.automation |
17 | | -import uuid |
18 | | -import operator |
19 | | -import locale |
20 | | -import collections |
21 | 17 | import colorsys |
22 | 18 | import eventHandler |
23 | 19 | import braille |
|
29 | 25 | from logHandler import log |
30 | 26 | import winUser |
31 | 27 | import oleacc |
32 | | -import globalVars |
33 | 28 | import speech |
34 | 29 | import config |
35 | 30 | import textInfos |
@@ -900,6 +895,10 @@ def _normalizeFormatField(self,field,extraDetail=False): |
900 | 895 | bullet=field.get('line-prefix') |
901 | 896 | if bullet and len(bullet)==1: |
902 | 897 | field['line-prefix']=mapPUAToUnicode.get(bullet,bullet) |
| 898 | + fontSize = field.get("font-size") |
| 899 | + if fontSize is not None: |
| 900 | + # Translators: Abbreviation for points, a measurement of font size. |
| 901 | + field["font-size"] = pgettext("font size", "%s pt") % fontSize |
903 | 902 | return field |
904 | 903 |
|
905 | 904 | def expand(self,unit): |
@@ -1476,8 +1475,8 @@ def getLocalizedMeasurementTextForPointSize(self,offset): |
1476 | 1475 | # Translators: a measurement in Microsoft Word |
1477 | 1476 | return _("{offset:.3g} millimeters").format(offset=offset) |
1478 | 1477 | elif unit==wdPoints: |
1479 | | - # Translators: a measurement in Microsoft Word |
1480 | | - return _("{offset:.3g} points").format(offset=offset) |
| 1478 | + # Translators: a measurement in Microsoft Word (points) |
| 1479 | + return _("{offset:.3g} pt").format(offset=offset) |
1481 | 1480 | elif unit==wdPicas: |
1482 | 1481 | offset=offset/12.0 |
1483 | 1482 | # Translators: a measurement in Microsoft Word |
|
0 commit comments