Giter Site home page Giter Site logo

goldencursor's Issues

Positions database: migrate to a proper dictionary format via ConfigObj

Hi,

Currently, .gc (position listings) files are stored as plain text files. at first glance, this is a good approach as the add-on comes with positions parser. However, in the long run, this format isn't viable.

Thus it is proposed that the positions database be moved to a more dictionary-like interface, preferably via ConfigObj. This means:

  • Familiar key/value pairs structure for each file.
  • If possible, no more string conversions.
  • Familiar ini syntax.
  • No more cursor parsers required, as the dictionary will take care of this.

Costs:

  • Backward compatibility: due to change from text files to a dictionary, backward compatibility is not guaranteed. One way to fix this is to provide a new folder just for 2.0 config and a migration routine. Note that this is still a one-way migration.

Thanks.

Saving positions: file not found error when files folder does not exist

Hi,

When trying to save positions, NVDA says, "file not found".

STR:

  1. Try saving a position (NvDA+Shift=L) for an app.
  2. Type position coordinates and press Enter.

Expected: NVDA saves positions.
Actual:

ERROR - unhandled exception (08:31:09.701):
Traceback (most recent call last):
File "wx_misc.pyc", line 1367, in Notify
File "wx_core.pyc", line 16869, in Notify
File "C:\Users\User\AppData\Roaming\nvda\addons\goldenCursor\globalPlugins\goldenCursor.py", line 201, in saving
File "codecs.pyc", line 896, in open
IOError: [Errno 2] No such file or directory: path

Cause: the add-on assumes a folder named "files" already exists.
Solution: catch this case and create a new directory.

Thanks.

Remove win32api dependency

Hi,

As NVDA Core does not use win32api, it is fitting that this add-on remove this dependency. With this gone, NVDA Core can officially remove its own dependence on win32api.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.