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

  • From: Noelia <nrm1977@xxxxxxxxx>
  • To: nvda-addons@xxxxxxxxxxxxx
  • Date: Fri, 05 Jun 2015 22:35:48 +0200

Hi, I have done it according to your suggestion: now, if no text is set as a separator, the segments will be separated be a new line, but not a blank line.
If a text is set as a separator, the result will be:
Appended segment 1, new line, appended segment 2.
Then, if we want extra blank lines, we can write them, select and append.
Then I will upload the update for 3.0-dev to the website for testing.
About math, please keep on mind that not always is available a braille representation.
Thanks.

El 05/06/2015 a las 21:15, Bhavya shah escribió:

Hi,
Nolia,
I haven't installed the development version yet, but, will do so tomorrow.
Is there any inputtable expression to set the separator string as a
custom or desired amount of blank lines?
For e.g. I may not, and, actually do not want a blank line between
appended strings, but, just them to be on new lines. Manual editing to
remove the undesirable blank lines wouldn't be difficult, but, just
suggesting...
Thanks.

On 6/4/15, Noelia <nrm1977@xxxxxxxxx> wrote:
Hello, clipContentsDesigner 3.0-dev will be available in Add-ons under
development on the website in a few minutes.
Thanks.

El 04/06/2015 a las 8:46, Bhavya shah escribió:
Hi,
Nolia,
Is it possible in ClipContent Designer to choose the appended text
separator as a line break?
That is, if I copy Text 1 and then append Text 2 to it, while pasting
the joint clipboard contents, that is both text 1 and text 2, I can
get them on separate lines, that is, text 2 on a new line?
I hope my slightly complicated question was comprehensibly clear.
Also, can I obtain this development version in the Add-ons Under
Development section of the NVDA Add-ons Community?
Thanks.

On 6/4/15, Noelia <nrm1977@xxxxxxxxx> wrote:
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



----------------------------------------------------------------
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



----------------------------------------------------------------
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: