Skip to content

Commit

Permalink
update changes and user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Jul 26, 2021
1 parent c463a80 commit 04677d2
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/espeak
Submodule espeak updated 41 files
+16 −11 CHANGELOG.md
+19 −2 Makefile.am
+11 −2 android/jni/Android.mk
+46 −1 android/res/values/donottranslate.xml
+50 −0 android/src/com/reecedunn/espeak/preference/VoiceVariantPreference.java
+246 −0 chromium_extension/AudioStream.js
+64 −0 chromium_extension/README.md
+4 −0 chromium_extension/background.js
+10 −0 chromium_extension/index.php
+30 −0 chromium_extension/local_server.sh
+17 −0 chromium_extension/manifest.json
+8 −0 chromium_extension/nativeTransferableStream.html
+46 −0 chromium_extension/nativeTransferableStream.js
+7 −0 chromium_extension/native_messaging_espeakng.json
+2 −2 configure.ac
+1 −0 dictsource/en_list
+285 −285 dictsource/es_rules
+20 −10 dictsource/eu_list
+223 −252 dictsource/eu_rules
+31 −0 dictsource/qya_list
+180 −0 dictsource/qya_rules
+32 −0 dictsource/sjn_list
+183 −0 dictsource/sjn_rules
+1 −0 dictsource/smj_list
+8 −71 dictsource/smj_rules
+3 −1 docs/languages.md
+4 −0 espeak-ng-data/lang/art/qya
+4 −0 espeak-ng-data/lang/art/sjn
+1 −0 espeak-ng-data/lang/eu
+51 −0 phsource/ph_quenya
+56 −0 phsource/ph_sindarin
+6 −0 phsource/phonemes
+27 −20 src/libespeak-ng/dictionary.c
+66 −0 src/libespeak-ng/setlengths.c
+1 −0 src/libespeak-ng/setlengths.h
+10 −10 src/libespeak-ng/tr_languages.c
+0 −67 src/libespeak-ng/translate.c
+9 −5 src/libespeak-ng/translate.h
+17 −15 src/libespeak-ng/voices.c
+6 −4 tests/language-pronunciation.test
+1 −1 tests/non-executable-files-with-executable-bit.test
35 changes: 35 additions & 0 deletions mro.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# MRO example used from
# https://stackoverflow.com/questions/66415093/how-do-i-use-the-windows-magnification-api-in-python-to-invert-the-screen
from ctypes import c_float, c_long, c_bool, c_int, CDLL, Structure, POINTER


class RECT(Structure):
_fields_ = [
('left', c_long),
('top', c_long),
('right', c_long),
('bottom', c_long),
]


magnification_api = CDLL('magnification.dll')

# declare types
BOOL = c_bool
FLOAT = c_float
INT = c_int
LPRECT = LPRECT = POINTER(RECT)
PBOOL = PBOOL = POINTER(c_bool)
PMAGCOLOREFFECT = c_float * 25
MAGCOLOREFFECT = MAGCOLOREFFECT = POINTER(PMAGCOLOREFFECT)

# MagInitialize
magnification_api.MagInitialize.restype = BOOL
# MagUninitialize
magnification_api.MagUninitialize.restype = BOOL
# MagSetFullscreenColorEffect
magnification_api.MagSetFullscreenColorEffect.restype = BOOL
magnification_api.MagSetFullscreenColorEffect.argtypes = (MAGCOLOREFFECT,)
magnification_api.MagInitialize() # initialize the API
magnification_api.MagSetFullscreenColorEffect((c_float * 25)(-1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1)) # invert the screen
magnification_api.MagUninitialize() # use this to reset
7 changes: 5 additions & 2 deletions user_docs/en/changes.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ What's New in NVDA
= 2021.2 =

== Important notes ==
- NVDA Screen Curtain does not work on newer (unreleased) versions of Windows, such as Windows 11.
- NVDA Screen Curtain is not supported on builds of Windows later than Windows 10 21H2.
This includes Windows 10 Insiders and Windows 11.
This is due to a breaking change in the Windows Magnification API.
This release prevents activating screen curtain on untested Windows versions.
Please be aware when using older NVDA releases and newer Windows versions.
When using previous NVDA releases and Windows later than Windows 10 21H2, screen curtain may fail to work without warning.
Screen Curtain support for newer versions of Windows is a high priority for NV Access.
(#12491, #12684)
-


== New Features ==
Expand Down
6 changes: 6 additions & 0 deletions user_docs/en/userGuide.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,12 @@ You can enable the Screen Curtain in the [vision category #VisionSettings] of th

When the screen curtain is active some tasks directly based on what appears on the screen such as performing [OCR #Win10Ocr] or taking a screenshot cannot be achieved.

NVDA Screen Curtain is not supported on builds of Windows later than Windows 10 21H2.
This includes Windows 10 Insiders and Windows 11.
This is due to a breaking change in the Windows Magnification API.
When using NVDA releases older than 2021.2 and Windows later than Windows 10 21H2, screen curtain may fail to work without warning.
Screen Curtain support for newer versions of Windows is a high priority for NV Access.

+ Content Recognition +[ContentRecognition]
When authors don't provide sufficient information for a screen reader user to determine the content of something, various tools can be used to attempt to recognize the content from an image.
NVDA supports the optical character recognition (OCR) functionality built into Windows 10 to recognize text from images.
Expand Down

0 comments on commit 04677d2

Please sign in to comment.