Skip to content

A proxy to allow NVDA to use diff-match-patch without linking for licensing reasons.

Notifications You must be signed in to change notification settings

codeofdusk/nvda_dmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

NVDA_dmp

A utility to calculate text insersions using Diff Match Patch.

Copyright 2020 Bill Dengler, licensed under apache 2.0 with explicit authorization to be distrinbuted with the NVDA screen reader.

Protocol

NVDA_dmp expects to receive old and new text on stdin, and writes on stdout text that was inserted (i.e. new changes that NVDA should speak). The protocol is as follows:

  • Input: two 32-bit ints (in machine byte order) containing the lengths (in bytes) of the old and new texts respectively. Sending two lengths of 0 will cause nvda_dmp to exit. The old text, then new (encoded in utf-8) should follow the lengths.
  • Output: a 32-bit int containing the length of the output, then any text which was inserted (i.e. present in new but not in old).

About

A proxy to allow NVDA to use diff-match-patch without linking for licensing reasons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages