commit/Emoticons: 3 new changesets

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Mar 2019 21:17:00 +0000 (UTC)

3 new commits in Emoticons:

https://bitbucket.org/nvdaaddonteam/emoticons/commits/6947f565c272/
Changeset:   6947f565c272
Branch:      None
User:        norrumar
Date:        2019-03-25 21:14:40+00:00
Summary:     Update copyright year

Affected #:  1 file

diff --git a/addon/globalPlugins/emoticons/__init__.py 
b/addon/globalPlugins/emoticons/__init__.py
index cd46afe..811a198 100644
--- a/addon/globalPlugins/emoticons/__init__.py
+++ b/addon/globalPlugins/emoticons/__init__.py
@@ -1,5 +1,5 @@
 # -*- coding: UTF-8 -*-
-#Copyright (C) 2013-2018 Noelia Ruiz Martínez, Mesar Hameed, Francisco Javier 
Estrada Martínez
+#Copyright (C) 2013-2019 Noelia Ruiz Martínez, Mesar Hameed, Francisco Javier 
Estrada Martínez
 # Released under GPL 2
 
 import globalPluginHandler


https://bitbucket.org/nvdaaddonteam/emoticons/commits/8e2dbb5baea8/
Changeset:   8e2dbb5baea8
Branch:      None
User:        norrumar
Date:        2019-03-25 21:16:00+00:00
Summary:     Bump version: 10.0

Affected #:  1 file

diff --git a/buildVars.py b/buildVars.py
index 680f687..68758ba 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" : _("Enables the announcement of emoticon names 
instead of the character Representation."),
        # version
-       "addon_version" : "10.0-dev",
+       "addon_version" : "10.0",
        # Author(s)
        "addon_author" : u"Chris Leo <llajta2012@xxxxxxxxx>, Noelia Ruiz 
Martínez <nrm1977@xxxxxxxxx>, Mesar Hameed <mhameed@xxxxxxxxxxxxx>, Francisco 
Javier Estrada Martínez <Fjestrad@xxxxxxxxxxx>",
        # URL for the add-on documentation support


https://bitbucket.org/nvdaaddonteam/emoticons/commits/1a5d2638da94/
Changeset:   1a5d2638da94
Branch:      stable
User:        norrumar
Date:        2019-03-25 21:16:19+00:00
Summary:     Merge branch '10.0Features' into stable

Affected #:  3 files

diff --git a/addon/globalPlugins/emoticons/__init__.py 
b/addon/globalPlugins/emoticons/__init__.py
index 3ae5068..811a198 100644
--- a/addon/globalPlugins/emoticons/__init__.py
+++ b/addon/globalPlugins/emoticons/__init__.py
@@ -1,5 +1,5 @@
 # -*- coding: UTF-8 -*-
-#Copyright (C) 2013-2018 Noelia Ruiz Martínez, Mesar Hameed, Francisco Javier 
Estrada Martínez
+#Copyright (C) 2013-2019 Noelia Ruiz Martínez, Mesar Hameed, Francisco Javier 
Estrada Martínez
 # Released under GPL 2
 
 import globalPluginHandler
@@ -10,6 +10,13 @@ import shutil
 import api
 import speechDictHandler
 import ui
+import characterProcessing
+import languageHandler
+import speech
+import braille
+import treeInterceptorHandler
+import textInfos
+import controlTypes
 import core
 import wx
 import gui
@@ -18,7 +25,7 @@ from gui import guiHelper
 from gui.settingsDialogs import NVDASettingsDialog, SettingsPanel, 
DictionaryDialog
 from smileysList import emoticons
 from skipTranslation import translate
-from globalCommands import SCRCAT_SPEECH, SCRCAT_TOOLS, SCRCAT_CONFIG
+from globalCommands import SCRCAT_SPEECH, SCRCAT_TOOLS, SCRCAT_CONFIG, 
SCRCAT_TEXTREVIEW
 from scriptHandler import script
 
 addonHandler.initTranslation()
@@ -211,6 +218,62 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        def script_settings(self, gesture):
                wx.CallAfter(self.onSettingsPanel, None)
 
+       @script(
+               # Translators: Message presented in input help mode.
+               description=_("Shows the symbol positioned where the review 
cursor is located."),
+               category=SCRCAT_TEXTREVIEW
+       )
+       def script_showReviewCursorSymbol(self, gesture):
+               info=api.getReviewPosition().copy()
+               info.expand(textInfos.UNIT_CHARACTER)
+               text = info.text
+               curLanguage = None
+               if config.conf['speech']['autoLanguageSwitching']:
+                       for field in info.getTextWithFields({}):
+                               if isinstance(field,textInfos.FieldCommand) and 
field.command=="formatChange":
+                                       curLanguage=field.field.get('language')
+               if curLanguage is None:
+                       curLanguage = speech.getCurrentLanguage()
+               symbolReplacement = 
characterProcessing.processSpeechSymbol(curLanguage, text)
+               if symbolReplacement == text:
+                       # Explicitly tether here (borrowed from NVDA's core)
+                       
braille.handler.setTether(braille.handler.TETHER_REVIEW, auto=True)
+                       
speech.speakTextInfo(info,unit=textInfos.UNIT_CHARACTER,reason=controlTypes.REASON_CARET)
+               else:
+                       # Translators: title for a browseable message.
+                       ui.browseableMessage("%s\n%s" % (text, 
symbolReplacement), _("Symbol at the review cursor position (%s)" % 
languageHandler.getLanguageDescription(curLanguage)))
+
+       @script(
+               # Translators: Message presented in input help mode.
+               description=_("Shows the symbol positioned where the caret is 
located."),
+               category=SCRCAT_TEXTREVIEW
+       )
+       def script_showCaretSymbol(self, gesture):
+               obj=api.getFocusObject()
+               treeInterceptor=obj.treeInterceptor
+               if 
isinstance(treeInterceptor,treeInterceptorHandler.DocumentTreeInterceptor) and 
not treeInterceptor.passThrough:
+                       obj=treeInterceptor
+               try:
+                       info= obj.makeTextInfo(textInfos.POSITION_CARET)
+               except:
+                       info = obj.makeTextInfo(textInfos.POSITION_FIRST)
+               info.expand(textInfos.UNIT_CHARACTER)
+               text = info.text
+               curLanguage = None
+               if config.conf['speech']['autoLanguageSwitching']:
+                       for field in info.getTextWithFields({}):
+                               if isinstance(field,textInfos.FieldCommand) and 
field.command=="formatChange":
+                                       curLanguage=field.field.get('language')
+               if curLanguage is None:
+                       curLanguage = speech.getCurrentLanguage()
+               symbolReplacement = 
characterProcessing.processSpeechSymbol(curLanguage, text)
+               if symbolReplacement == text:
+                       # Explicitly tether here (borrowed from NVDA's core)
+                       
braille.handler.setTether(braille.handler.TETHER_REVIEW, auto=True)
+                       
speech.speakTextInfo(info,unit=textInfos.UNIT_CHARACTER,reason=controlTypes.REASON_CARET)
+               else:
+                       # Translators: title for a browseable message.
+                       ui.browseableMessage("%s\n%s" % (text, 
symbolReplacement), _("Symbol at the caret position (%s)" % 
languageHandler.getLanguageDescription(curLanguage)))
 
 class EmoticonFilter(object):
        """Filter for all emoticons."""

diff --git a/buildVars.py b/buildVars.py
index 2875114..68758ba 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" : _("Enables the announcement of emoticon names 
instead of the character Representation."),
        # version
-       "addon_version" : "9.1",
+       "addon_version" : "10.0",
        # Author(s)
        "addon_author" : u"Chris Leo <llajta2012@xxxxxxxxx>, Noelia Ruiz 
Martínez <nrm1977@xxxxxxxxx>, Mesar Hameed <mhameed@xxxxxxxxxxxxx>, Francisco 
Javier Estrada Martínez <Fjestrad@xxxxxxxxxxx>",
        # URL for the add-on documentation support

diff --git a/readme.md b/readme.md
index 1dde7cd..20f7ce0 100644
--- a/readme.md
+++ b/readme.md
@@ -59,9 +59,16 @@ These are the key commands available by default, you can 
edit those or add new k
 
 * NVDA+E: speaking emoticons on/off, toggles between speaking text as it is 
written, or with the emoticons replaced by the human description.
 * NVDA+I: show a dialog to select an emoticon you want to copy.
+* Not assigned: open a browseable message showing the symbol where the review 
cursor is positioned, so that the whole description can be reviewed in browse 
mode.
+* Not assigned: open a browseable message showing the symbol where the caret 
is positioned, so that the whole description can be reviewed in browse mode.
 
 Note: On Windows 10, it's also possible to use the built-in emoji panel.
 
+
+## Changes for 10.0 ##
+
+* Added commands to show the symbol where the review cursor or caret are 
positioned. Gestures for these commands can be assigned from the Input gestures 
dialog, Text review category.
+
 ## Changes for 9.0 ##
 
 * Added the possibility of choosing if add-on emojis should be spoken.

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

--

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

Other related posts: