# NVDA NVDA is a free, open source screen reader for Microsoft Windows. It is developed by NV Access in collaboration with a global community of contributors. To learn more about NVDA or download a copy, visit the main [NV Access](http://www.nvaccess.org/) website. This NVDA version is a project modification of LAVID. This version integrates NVDA to VLibras Unity Player through tcp socket. ## Key Project Links * [NV Access](http://www.nvaccess.org/): The main home of NVDA * [NVDA on GitHub](https://github.com/nvaccess/nvda) * [NVDA issues on GitHub](https://github.com/nvaccess/nvda/issues): Bug reports, feature requests, etc. * [NVDA development snapshots](http://www.nvda-project.org/snapshots): Automatically generated builds of the project in its current state of development * [NVDA add-ons](http://addons.nvda-project.org/): Get add-ons to enhance NVDA * [Translating NVDA](https://github.com/nvaccess/nvda/wiki/Translating): Information about how to translate NVDA into another language * [NVDA community wiki](https://github.com/nvaccess/nvda-community/wiki): Articles contributed by the community * [NVDA Controller Client](http://www.nvda-project.org/nvdaControllerClient/nvdaControllerClient_20100219.7z) (2010-02-19): NVDA API for external applications to directly speak or braille messages, etc. * [NVDA Developer Guide](http://www.nvaccess.org/files/nvda/documentation/developerGuide.html) * [Contributing to NVDA](https://github.com/nvaccess/nvda/wiki/Contributing): Guidelines for contributing to the NVDA source code * [NVDA development email list](http://lists.sourceforge.net/lists/listinfo/nvda-devel) ([archives](http://nabble.nvda-project.org/Development-f1.html)): Discussion about NVDA development * [NVDA commits email list](http://lists.sourceforge.net/lists/listinfo/nvda-commits): Notifications for all commits to the Git repository ## Getting the Source Code The NVDA project uses the [Git](http://www.git-scm.com/) version control system for its source code and documentation. The NVDA Git repository is located at https://github.com/nvaccess/nvda.git. You can clone it with the following command, which will place files in a directory named nvda: ``` git clone --recursive https://github.com/nvaccess/nvda.git ``` The --recursive option is needed to retrieve various Git submodules we use. ## Dependencies The NVDA source depends on several other packages to run correctly. ### Installed Dependencies The following dependencies need to be installed on your system: * [Python](http://www.python.org/), version 2.7.11, 32 bit * Microsoft Visual Studio 2015 (Express for Desktop with VC++ and Windows SDK 7.1A support, or Community with VC++ and Windows XP support): * [Download for Visual Studio 2015 Express for Desktop](https://go.microsoft.com/fwlink/?LinkId=691984&clcid=0x409) ### Git Submodules Most of the dependencies are contained in Git submodules. If you didn't pass the --recursive option to git clone, you will need to run `git submodule update --init`. Whenever a required submodule commit changes (e.g. after git pull), you will need to run `git submodule update`. If you aren't sure, run `git submodule update` after every git pull, merge or checkout. For reference, the following dependencies are included in Git submodules: * [comtypes](http://sourceforge.net/projects/comtypes/), version 0.6.2 * [wxPython](http://www.wxpython.org/), version 3.0.2.0 * [Python Windows Extensions](http://sourceforge.net/projects/pywin32/ ), build 218 * [eSpeak NG](https://github.com/espeak-ng/espeak-ng), commit 37121600 * [Sonic](https://github.com/waywardgeek/sonic), commit 4f8c1d11 * [IAccessible2](http://www.linuxfoundation.org/collaborate/workgroups/accessibility/iaccessible2), version 1.3 * [ConfigObj](http://www.voidspace.org.uk/python/configobj.html), version 4.6.0 * [liblouis](http://www.liblouis.org/), version 2.6.5 * NVDA images and sounds * System dlls not present on many systems: mfc90.dll, msvcp90.dll, msvcr90.dll, Microsoft.VC90.CRT.manifest * [Adobe Acrobat accessibility interface, version XI](http://download.macromedia.com/pub/developer/acrobat/AcrobatAccess.zip) * Adobe FlashAccessibility interface typelib * [txt2tags](http://txt2tags.sourceforge.net/), version 2.5 * [MinHook](https://github.com/RaMMicHaeL/minhook), tagged version 1.2.2 * [SCons](http://www.scons.org/), version 2.4.1 * brlapi Python bindings, version 0.5.7 or later, distributed with [BRLTTY for Windows](http://brl.thefreecat.org/brltty/), version 4.2-2 * ALVA BC6 generic dll, version 3.0.4.1 * lilli.dll, version 2.1.0.0 * [Handy Tech Braille SDK, version 1.4.2.0](ftp://ftp.handytech.de/public/Software/BrailleDriver/HTBrailleSDK_1420a.zip) * Updated Handy Tech sbsupport.dll and dealers.dat received on 2014-09-09 * [pyserial](http://pypi.python.org/pypi/pyserial), version 2.5 * HanSoneConnect.dll, version 2.0.0.1 * SyncBraille.dll, version 1.0.0.1 * [Python interface to FTDI driver/chip](http://fluidmotion.dyndns.org/zenphoto/index.php?p=news&title=Python-interface-to-FTDI-driver-chip) * [Py2Exe](http://sourceforge.net/projects/py2exe/), version 0.6.9 * [Nulsoft Install System](http://nsis.sourceforge.net/), version 2.51 * [NSIS UAC plug-in](http://nsis.sourceforge.net/UAC_plug-in), version 0.2.4, ansi * xgettext and msgfmt from [GNU gettext](http://sourceforge.net/projects/cppcms/files/boost_locale/gettext_for_windows/) * [epydoc](http://epydoc.sourceforge.net/), version 3.0.1 with patch for bug #303 ### Other Dependencies These dependencies are not included in Git submodules, but aren't needed by most people. * If you want to be able to use the Handy Tech braille display driver when running from source code, you will need to install the [Handy Tech universal driver](ftp://ftp.handytech.de/public/Software/BrailleDriver/bsd1206a.exe) * To generate developer documentation for nvdaHelper: [Doxygen Windows installer](http://www.stack.nl/~dimitri/doxygen/download.html), version 1.7.3: ## Preparing the Source Tree Before you can run the NVDA source code, you must prepare the source tree. You do this by opening a command prompt, changing to the root of the NVDA source distribution and typing: ``` scons source ``` You should do this again whenever the version of comtypes changes or language files are added or changed. Note that if you want to access user documentation from the help menu while running the source version, you will also need to add user_docs to the commandline like so: ``` scons source user_docs ``` While simply testing or committing changes, it may be faster usually just doing `scons source` as user documentation will change each time the revision number changes. ### Compiling NVDAHelper with Debugging Options Among other things, preparing the source tree builds the NVDAHelper libraries. If trying to debug nvdaHelper, You can control various debugging options with the `nvdaHelperDebugFlags` command line variable. It takes one or more of the following flags: * debugCRT: the libraries will be linked against the debug C runtime and assertions will be enabled. (By default, the normal CRT is used and assertions are disabled.) * RTC: runtime checks (stack corruption, uninitialized variables, etc.) will be enabled. (The default is no runtime checks.) The special keywords none and all can also be used in place of the individual flags. An example follows that enables debug CRT and runtype checks ``` scons source nvdaHelperDebugFlags=debugCRT,RTC ``` Symbol pdb files are always produced when building, regardless of the debug flags. However, they are not included in the NVDA distribution. Instead, `scons symbolsArchive` will package them as a separate archive. By default, builds also do not use any compiler optimizations. Please see the release keyword argument for what compiler optimizations it will enable. ## Running the Source Code To start NVDA from source code, run `nvda.pyw` located in the source directory. ## Building NVDA A binary build of NVDA can be run on a system without Python and all of NVDA's other dependencies installed (as we do for snapshots and releases). Binary archives and bundles can be created using scons from the root of the NVDA source distribution. To build any of the following, open a command prompt and change to this directory. To make a non-archived binary build (equivalent to an extracted portable archive), type: ``` scons dist ``` The build will be created in the dist directory. To create a launcher archive (one executable allowing for installation or portable dist generation), type: ``` scons launcher ``` The archive will be placed in the output directory. To generate developer documentation, type: ``` scons devDocs ``` The developer docs will be placed in the devDocs folder in the output directory. To generate developer documentation for nvdaHelper (not included in the devDocs target): ``` scons devDocs_nvdaHelper ``` The documentation will be placed in the devDocs\nvdaHelper folder in the output directory. To generate an archive of debug symbols for the various dll/exe binaries, type: ``` scons symbolsArchive ``` The archive will be placed in the output directory. To generate a gettext translation template (for translators), type: ``` scons pot ``` Optionally, the build can be customised by providing variables on the command line: * version: The version of this build. * release: Whether this is a release version. * This enables various C++ compiler optimizations such as /O2 and whole-program optimization. * It also instructs Python to generate optimized byte code. * publisher: The publisher of this build. * certFile: The certificate file with which to sign executables. The certificate must be in pfx format and contain the private key. * certPassword: The password for the private key in the signing certificate. If omitted, no password will be assumed. * certTimestampServer: The URL of the timestamping server to use to timestamp authenticode signatures. If omitted, signatures will not be timestamped. * outputDir: The directory where the final built archives and such will be placed. * targetArchitectures: The target architectures that NVDA should support. Possible values are all, x86 and x86_64. This should generally be left as the default. For example, to build a launcher with a specific version, you might type: ``` scons launcher version=test1 ```