[nvda-addons] Re: commit/clipContentsDesigner: 3 new changesets

  • From: Noelia <nrm1977@xxxxxxxxx>
  • To: nvda-addons@xxxxxxxxxxxxx
  • Date: Wed, 03 Jun 2015 21:06:44 +0200

Hi users and reviewers of clipContentsDesigner:

I have added the possibility of appending Unicode braille characters corresponding to the representation of MathML objects provided by MathPlayer. If you are interested, please review and we can release the next major version two weeks later.
Thanks.


El 03/06/2015 a las 20:30, commits-noreply@xxxxxxxxxxxxx escribió:

3 new commits in clipContentsDesigner:

https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/b6e2e846f6b3/
Changeset: b6e2e846f6b3
Branch: None
User: norrumar
Date: 2015-06-03 18:17:41+00:00
Summary: Updated plugin: braille representation for math can be appended to
clipboard.

Affected #: 1 file

diff --git a/addon/globalPlugins/clipContentsDesigner/__init__.py
b/addon/globalPlugins/clipContentsDesigner/__init__.py
index a0ee7c5..90d7e6a 100644
--- a/addon/globalPlugins/clipContentsDesigner/__init__.py
+++ b/addon/globalPlugins/clipContentsDesigner/__init__.py
@@ -1,6 +1,9 @@
# -*- coding: UTF-8 -*-

# clipContentsDesigner: a global plugin for managing clipboard text
+# Version: 3.0
+# Braille representation for math can be appended to the clipboard
+# Date: 03/06/2015
# Version: 2.0
# Hindi characters can be writen as a separator
# Date: 27/02/2015
@@ -132,6 +135,18 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
return None
return info.clipboardText

+ def getMath(self):
+ try:
+ obj = api.getNavigatorObject()
+ mathMl = obj.mathMl
+ except (AttributeError, NotImplementedError, LookupError):
+ return None
+ import mathPres
+ mathPres.ensureInit()
+ if mathPres.brailleProvider:
+ text =
mathPres.brailleProvider.getBrailleForMathMl(mathMl)
+ return text
+
def script_setSelectionStartMarker(self, gesture):
self._copyStartMarker = api.getReviewPosition().copy()
# Translators: message presented when the start marker for
appending text has been set using the review cursor.
@@ -140,7 +155,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
script_setSelectionStartMarker.__doc__ = _("Marks the current position of
the review cursor as the start of text to be appended to the clipboard.")

def script_append(self, gesture):
- newText = self.getSelectedText()
+ newText = self.getSelectedText() or self.getMath()
if not newText:
if not self._copyStartMarker:
# Translators: message presented when it's not
possible to append text, since no text has been selected or marked.


https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/ce02cb7954a8/
Changeset: ce02cb7954a8
Branch: None
User: norrumar
Date: 2015-06-03 18:18:42+00:00
Summary: Bump version: 3.0-dev.

Affected #: 1 file

diff --git a/buildVars.py b/buildVars.py
index 8b2aec5..948cbfa 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
# Translators: Long description to be shown for this add-on on add-on
information from add-ons manager
"addon_description" : _("""Add-on for managing clipboard text."""),
# version
- "addon_version" : "2.0-dev",
+ "addon_version" : "3.0-dev",
# Author(s)
"addon_author" : u"Noelia Ruiz Martínez <nrm1977@xxxxxxxxx>",
# URL for the add-on documentation support


https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/commits/1b65001b567c/
Changeset: 1b65001b567c
Branch: master
User: norrumar
Date: 2015-06-03 18:27:32+00:00
Summary: Updated readme for version 3.0.

Affected #: 1 file

diff --git a/readme.md b/readme.md
index 2d7f921..a889fd3 100644
--- a/readme.md
+++ b/readme.md
@@ -7,7 +7,7 @@ This add-on is used to append text to the clipboard, which can
be useful when yo
The clipboard content can also be cleared.

## Keyboard commands ##
-* NVDA+windows+c: Append selected text, or the string which has been marked
with the review cursor, to the clipboard.
+* NVDA+windows+c: Append selected text, Unicode braille characters which
represent MathML objects, or the string which has been marked with the review
cursor, to the clipboard.
* NVDA+windows+x: Clear clipboard contents.
* NVDA+windows+f9: Mark the current position of the review cursor as the
start of the text to be added to the clipboard.
If you use nvda+F9, the text will not be appended.
@@ -17,6 +17,8 @@ Note: The above commands can be changed from NVDA menu,
Preferences submenu, Inp
## Preferences Menu ##
* Clip Contents Designer settings: Allows to set a separator which can be
used to find the text segments once the entire appended text is pasted.

+## Changes for 3.0 ##
+* Braille representation of MathML objects can be appended to the clipboard
if MathPlayed is installed.

## Changes for 2.0 ##
* Hindi characters can be used as the separator between appended contents.

Repository URL: https://bitbucket.org/nvdaaddonteam/clipcontentsdesigner/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

----------------------------------------------------------------
NVDA add-ons: A list to discuss add-on code enhancements and for reporting bugs.
Community addons are available from: http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe:
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx

Other related posts: