commit/goldenCursor: josephsl: Initial commit with code provided by the add-on author

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Sat, 16 Jan 2016 18:01:17 -0000

1 new commit in goldenCursor:

https://bitbucket.org/nvdaaddonteam/goldencursor/commits/36c6ca1f64db/
Changeset:   36c6ca1f64db
Branch:      master
User:        josephsl
Date:        2016-01-16 18:00:06+00:00
Summary:     Initial commit with code provided by the add-on author

Signed-off-by: Joseph Lee <joseph.lee22590@xxxxxxxxx>

Affected #:  13 files

diff --git a/.gitattributes b/.gitattributes
new file mode 100755
index 0000000..a1a1316
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,8 @@
+# Set default behaviour, in case users don't have core.autocrlf set.
+* text=auto
+
+# Try to ensure that po files in the repo does not include
+# source code line numbers.
+# Every person expected to commit po files should change their personal config 
file as described here:
+# https://mail.gnome.org/archives/kupfer-list/2010-June/msg00002.html
+*.po filter=cleanpo

diff --git a/.gitignore b/.gitignore
new file mode 100755
index 0000000..6d124be
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+addon/doc/*.css
+addon/doc/en/
+*_docHandler.py
+*.html
+*.ini
+*.mo
+*.pot
+*.pyc
+*.nvda-addon
+.sconsign.dblite

diff --git a/COPYING.txt b/COPYING.txt
new file mode 100755
index 0000000..623b625
--- /dev/null
+++ b/COPYING.txt
@@ -0,0 +1,340 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                   GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                           NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year><name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year  name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.

diff --git a/addon/doc/ar/readme.md b/addon/doc/ar/readme.md
new file mode 100755
index 0000000..098ac09
--- /dev/null
+++ b/addon/doc/ar/readme.md
@@ -0,0 +1,155 @@
+# golden cursor#
+[[!meta title="golden cursor"]]
+
+* مطورو الإضافة: 
+*صلاح البرعصي

+  
+* تحميل [الإصدار النهائي][1]
+* تحميل [الإصدار التجريبي][2]
+
+
+
+##مقدمة##
+ السلام عليكم ورحمة الله وبركاته
+ إخْوتِي رواد  منتديات الصفا الكرام:

+ مَرْحَباً بكم إلى إضافة جديدة من إضافات العملاق nvda قارئ الشاشة المتميز, 
والذي لا تَنْفَكُّ عجائبه, واسم الإضافة المؤشر الذهبي (golden curssor(.
+#الاصدار 2.2#
+ #جديد الاصدار:#
+*1-اضافة مفاتيح تعديل ,حذف , اعادة تسمية لقائمة العناصر المحفوظة.
+2#-الاختصارات:#
+*nvda+shift+l =عرض قائمة بالمواضع
+*nvda+control+l = حفظ موضع
+*nvda+win+c =تحديد قيمة الحركة
+*nvda+win+r =التبديل بين  حصر المؤشر في النافذه
+*nvda+win+s = التبديل بين نطق البكسل
+*nvda+win + j = فتح محاورة لكتابة قييمة x,y للانتقال لها
+*nvda+win+ p = االاعلان عن احداثيات موضع المؤشر
+*nvda+win+ الاسهم الاربعه للتحرك في الاتجاهات
+*ويمكنكم تغيير او تعديل الاختصارات من قائمة التفضيلات ثم تخصيص اختصارات NVDA  
+*Preferences  
+*Input gestures...  
+*golden cursor  
+
+ #الاصدار 2,0#
+فكرة عن الإضافة:
+*الاسم المؤشر الذهبي 
+*الكاتب صلاح اعطير البرعصي 
+*عمل على تعريب الإضافة وتعديل المفاتيح الأخ العزيز وفيق طاهر.
+#الاصدار 2,0#
+
+#اصدار 2,0#
+*الكثير منا يعرف الاداه التيي  تسمى 
+*mouseGuide (دليل الماوس.
+*وما تقوم به هذه الاداة من حفظ مواضع نحددها بالفأرة عن طريق مبصر ثم نعود اليها 
بعد ذلك .
+*وكما ذكرتُ سابقا ما فَكرتُ فْي عمل المؤشر الذهبي إلا لهذه  المهمة التي 
يتمناها الجميع 
+*ومن هنا بدأ جديد هذا الاصدار وهو:
+*1-عمل الاضافة لحفظ مواضع محددة والرجوع اليها فيما بعد مما يسهل التعامل مع 
العناصر التي لا يمكن الوصول لها الا بالفأرة.
+*2- الغاء حصر المؤشر عند الخروج من نمط المؤشر الذهبي .
+*3-سرعة استجابة المؤشر عند الضغط باستمرار على الأسهم.
+*4-عدم خروج المؤشر من نهاية النافذة واستمراره داخلها طالما حصر المؤشر مُفَعل.
+*5-تعريب كل ما استجد من رسائل .
+*6- مشاركة اعداداتك المحفوظة مع الاخرين.
+*7- اضافة اختصارات جديدة .
+
+#مقترحات الاصدارات  التالية:#
+*ان شاء الله سيتم وضع هذه المقترحات في الاصدارات التالية لعمل المتاح منها:
+*1-تعديم المواضع المحفوظة من حذف وتسمية.
+*2-انتقال المؤشر الى الكائنات وترك المساحات الفارغة إذا امكن.
+*3-قراءة الارقام في بعض المواقع للتحميل.
+*4-حفظ الاعدادات.
+*5-التنبيه عندما يتم تغير دقة الشاشة او اختلافها 
+*.وهناك مقترحات لن يعلن عنها الى في حينها.
+#تنبيهات الاصدار:#
+* عند حفظ اي موضع يجب مراعاة الآتي عند استخدامه مرة اخرى او مشاركته مع 
الاصدقاء:
+*1 ان تكون دقة الشاشة نفس الاعدادات مثلا حفظت موضع وانا دقة الشاشة عندي 1024, 
فلابد مراعاة ام تكون نفس الدقة عند الاستخدام  او ارسال اعدادتك لشخص أخر.
+*2-مرعاة تكبير وتصغير النافذة عند حفظ الموضع يفضل دائما تكبير النافذة باستخدام 
مفاتيح الويندوز مع سهم لأعلى.
+*3- عند كتابة اسم موجود في الاعدادات يتم استبدالة.
+#مفاتيح الاختصار:#
+*بالاضافة الى ما سبق من اختصارات تم اضافة التالي:
+*1-nvda+shift+l لحفظ الموضع.
+2- nvda+l لعرض قائمة بالمواضع المحفوظة للنافذه النشطة.
+
+*رقم الإصدار 1.4
+*جديد الاصدار: 
+تعديل الاختصارات بحيث يكون استخدامها أسهل من ذي قبل.
+##الاختصارات :## 
+أولاً هذه الاختصارات تعمل من خلال الدخول في نمط المؤشر الذهبي وكيفية الدخول 
إلى هذا النمط من خلال الضغط على nvda+g
+بعد الدخول على نمط المؤشر الذهبي يمكنك الضغط على الختصارات التالية:
+uparrow = تحريك مؤشر الماوس إلى أعلى. 
+downArrow = تحريك مؤشر الماوس إلى أسفل. 
+rightArrow = تحريك مؤشر الماوس إلى اليمين. 
+leftArrow = تحريك مؤشر الماوس إلى اليسار. 
+j = فتح محاورة تطلب منك كتابة الإحداثيات التي تريد ومن ثمة تنقل مؤشر الماوس 
إليها. 
+? مثال : تكتب 40,321 وتضغط انتر فيتم تحريك المؤشر إلى هذا الموضع بالضبط. 
ملاحظة الرقم الأول يُرمز إليه بالرمز س وهو يمثل رقم البكسل من اليسار إلى اليمين 
ويرمز له بالانجليزية بِ(x) والرقم الثاني يرمز له ب(ص) وبالإنجليزية (y) ويمثل 
رقم البكسل من أعلى إلى أسفل. فمثلاً 4,10 يكون الرقم 4 هو x والرقم 10 هو y. فما 
عليك إلا أن تكتب كل من الرقمين وتفصل بينهما بفاصلة كما وضحنا سابقاً. 
+s = يبَدِّل بين مستويات نطق البكسلات ما بين النطق وعدم النطق. 
+r = يحصر مؤشر الماوس ضمن نافذة التطبيق الموجود فيه, فلا يخرج منها إلا إذا 
ضغطتَ الاختصار مرة أخرى. 
+c = يبَدِّل ما بين مستويات حركة الماوس فهناك 6مستويات هي بكسل واحد وخمسة 
بكسلات وعشرة وعشرين وخمسين و100. 
+p = يقرأ موضع مؤشر الماوس بالبكسلات. 
+h = معرفة مفاتيح الاختصار. 
+x = للخروج من نمط المؤشر الذهبي والعودة إلى الوضع العادي.
+للتحكم في صوت الصفارة ونطق الكائنات التي يأتي عليها المؤشر اذهب إلى إعدادات 
الفأرة بالضغط على nvda+ctrl+m 
+تنويه:
+عمل الاضافة ك mouseGuide
+هو في الاصل من اساسيات الاضافة بل السبب الذي صمِّمَتْ لأجلِه, ولكن ارتأيتُ 
تأجيل ذلك للإصدار 2.0 إن شاء الله تعالى وذلك كي يخرج العمل على أدق وأكمل صورة, 
وعمل ابن آدم محفوف دائماً بالنقص إلا أن يتغمده الله بواسع رحماته إنه غفور رحيم.
+لا تبخلوا علي بالتوجيه وبيان أي عيوب تظهر في هذا الإصدار لتفادي أي إشكاليات 
تعيب الإصدارات اللاحقة, أشكركم جميعاً على ما قدمتموه لي من دعم معنوي كبير, 
فأنتم من يزودني بالحماسة والثقة لإنجاز هذا العمل ومشاريع أخرى مستقبلاً إن شاء 
الله تعالى.
+وقبل الختام اسمحوا لي أن اتقدم بالشكر الجزيل إلى أخي وفيق لما قدمه من عون رائع 
في سبيل إخراج هذا الإصدار بصورة مستحسنة والتي أتمنى من الله تعالى أن تنال منكم 
القبول والرضى, وللعلم فإن كثير من الإضافات التي بين أيدينا قد عمل الأخ وفيق على 
تعريبها وتعديل اختصاراتها بما يناسب وتسهيل مفاتيح الاختصار بجمعها غالباً في 
اختصار رئيسي واحد.
+ ##الإصدار 1.1##
+*جديد الاصدار:
+*تعريب الاضافة.
+*حصر مؤشر الفأرة في النافذة النشطة.
+*تعديل مفاتيح الاختصار:
+*
+  ##الاختصارات :##
+ *alt+windows+uparrow = تحريك مؤشر الماوس إلى أعلى.
+ *alt+windows+downArrow = تحريك مؤشر الماوس إلى أسفل.
+ *alt+windows+rightArrow = تحريك مؤشر الماوس إلى اليمين.
+ *alt+windows+leftArrow = تحريك مؤشر الماوس إلى اليسار.
+
+*nvda+g ثم  j = فتح محاورة تطلب منك كتابة الإحداثيات التي تريد ومن ثمة تنقل 
مؤشر الماوس إليها.
+ مثال : تكتب 40,321 وتضغط انتر فيتم تحريك المؤشر إلى هذا الموضع بالضبط.
+ ملاحظة الرقم الأول يُرمز إليه بالرمز س  وهو يمثل رقم البكسل  من اليسار إلى 
اليمين ويرمز له بالانجليزية بِ(x) والرقم الثاني يرمز له ب(ص) وبالإنجليزية (y) 
ويمثل رقم البكسل من أعلى إلى أسفل. فمثلاً 4,10 يكون الرقم 4 هو x والرقم 10 هو 
y. فما عليك إلا أن تكتب كل من الرقمين وتفصل بينهما بفاصلة كما وضحنا سابقاً.
+ *nvda +jثم s = يبَدِّل بين مستويات نطق البكسلات ما بين النطق وعدم النطق.
+*nvda +j ثم r = يحصر مؤشر الماوس ضمن نافذة التطبيق الموجود فيه, فلا يخرج منها 
إلا إذا ضغطتَ الاختصار مرة أخرى.
+*nvda+gثم p = يقرأ موضع مؤشر الماوس بالبكسلات.
+*nvda +g ثم h = معرفة مفاتيح الاختصار.
+ alt+windows+c = يبَدِّل ما بين مستويات حركة الماوس 
+ فهناك 6مستويات هي بكسل واحد وخمسة بكسلات وعشرة وعشرين وخمسين  و100.

+ للتحكم في صوت الصفارة ونطق الكائنات التي يأتي عليها المؤشر اذهب إلى إعدادات 
الفأرة بالضغط على nvda+ctrl+m
+
+ ##الاصدار 1.0 ##
+*إصدار أوَّلي.
+
+ *الاسم المؤشر الذهبي 
+ الكاتب صلاح اعطير البرعصي 
+ رقم الإصدار 1.0
+ ##وصف مختصر للإضافة:##
+ تُخَوِّلُكَ هذه الإضافة التحكمَ في حركة الماوس يميناً ويساراً وفوق وتحت, كل 
ذلك بواسطة أزرار لوحة المفاتيح, كما تسمح لك بنقل مؤشر الماوس إلى نقطة معينة من 
الشاشة, وتتيح لك في كل وقت إمكانية معرفة موضع مؤشر الماوس بالبكسلات.
+ ##الاختصارات :##
+ alt+shift+uparrow = تحريك مؤشر الماوس إلى أعلى.
+ alt+shift+downArrow = تحريك مؤشر الماوس إلى أسفل.
+ alt+shift+rightArrow = تحريك مؤشر الماوس إلى اليمين.
+ alt+shift+leftArrow = تحريك مؤشر الماوس إلى اليسار.
+ alt+shift+g = فتح محاورة تطلب منك كتابة الإحداثيات التي تريد ومن ثمة تنقل 
مؤشر الماوس إليها.
+ مثال : تكتب 40,321 وتضغط انتر فيتم تحريك المؤشر إلى هذا الموضع بالضبط.
+ ملاحظة الرقم الأول يُرمز إليه بالرمز س  وهو يمثل رقم البكسل  من اليسار إلى 
اليمين ويرمز له بالانجليزية بِ(x) والرقم الثاني يرمز له ب(ص) وبالإنجليزية (y) 
ويمثل رقم البكسل من أعلى إلى أسفل. فمثلاً 4,10 يكون الرقم 4 هو x والرقم 10 هو 
y. فما عليك إلا أن تكتب كل من الرقمين وتفصل بينهما بفاصلة كما وضحنا سابقاً.
+ alt+shift+s = يبَدِّل بين مستويات نطق البكسلات ما بين النطق وعدم النطق.
+ alt+shift+r = يحصر مؤشر الماوس ضمن نافذة التطبيق الموجود فيه, فلا يخرج منها 
إلا إذا ضغطتَ الاختصار مرة أخرى.
+ alt+shift+c = يبَدِّل ما بين مستويات حركة الماوس 
+ فهناك 6مستويات هي بكسل واحد وخمسة بكسلات وعشرة وعشرين وخمسين  و100.
+ alt+shift+p = يقرأ موضع مؤشر الماوس بالبكسلات.
+ للتحكم في صوت الصفارة ونطق الكائنات التي يأتي عليها المؤشر اذهب إلى إعدادات 
الفأرة بالضغط على nvda+ctrl+m
+ أسأل الله تعالى أن تنال الإضافة رضاكم وأنا أرحِّب بجميع ملاحظاتكم بشرط أن 
تكون في صلب الموضوع, أي ما أمامكم من سكربتات ودعوا حالياً أي طلبات أخرى, المهم 
الآن في هذه المرحلة بالذات التأكد من خلو الإضافة من أي مشاكل, اشكركم جميعاً 
بالتوفيق.
+
+
+[1]: http://addons.nvda-project.org/files/get.php?file=it [2]:
+http://addons.nvda-project.org/files/get.php?file=it-dev
+
+
+[[!tag dev stable]]
+
+[1]: http://simsd.com/do.php?id=41
+[2]: http://simsd.com/do.php?id=41
+

diff --git a/addon/globalPlugins/goldenCursor.py 
b/addon/globalPlugins/goldenCursor.py
new file mode 100755
index 0000000..9b1e685
--- /dev/null
+++ b/addon/globalPlugins/goldenCursor.py
@@ -0,0 +1,313 @@
+# -*- coding: utf-8 -*-
+#golden cursor
+# Copyright (C) 2015-2016 
+#Version 2.2
+#License GNU GPL
+# Date: 25/12/2015
+#team work: author : salah atair, translation and keycommands are made by 
wafeeq taher
+#now it became easy to control the mouse using keyboard
+
+
+
+import codecs
+from threading import Timer
+import winsound 
+import wx
+import gui
+import os
+import speech
+import time
+import tones
+import globalPluginHandler
+import mouseHandler
+import ui
+import api
+import win32api
+
+import addonHandler
+addonHandler.initTranslation()
+filesPath = os.path.join(os.path.dirname(__file__), 'files')
+
+class positionsList(gui.SettingsDialog):
+       title = _("positions List")
+       def __init__(self, parent):
+               super(positionsList, self).__init__(parent)
+
+       def makeSettings(self, sizer):
+               appName = api.getForegroundObject().appModule.appName
+               self.path = os.path.join(filesPath, appName+'.gc')
+               with codecs.open(self.path,'r','utf-8') as f:
+                       self.data = f.read().strip()
+               self.data = self.data.split(u'\n')
+               listBoxSizer = wx.BoxSizer(wx.HORIZONTAL)
+               st = wx.StaticText(self,-1,_('choose a item of this list'))
+               listBoxSizer.Add(st)
+               self.listBox = wx.ListBox(self,-1)
+               listBoxSizer.Add(self.listBox)
+               sizer.Add(listBoxSizer)
+               for i in self.data:
+                       if i [0] == u'[':
+                               self.listBox.Append(i[1:-1], self.data 
[self.data.index(i)+1])
+               buttonsSizer = wx.BoxSizer(wx.HORIZONTAL)
+               b_rename = wx.Button(self, -1,_('rename'))
+               buttonsSizer.Add(b_rename)
+               b_delete = wx.Button(self, -1,_('delete'))
+               buttonsSizer.Add(b_delete)
+               b_clear = wx.Button(self, -1,_('clear'))
+               buttonsSizer.Add(b_clear)
+               b_rename.Bind(wx.EVT_BUTTON, self.onRename)
+               b_delete.Bind(wx.EVT_BUTTON, self.onDelete)
+               b_clear.Bind(wx.EVT_BUTTON, self.onClear)
+               sizer.Add(buttonsSizer)
+
+       def postInit(self):
+               self.listBox.SetFocus()
+
+       def onRename(self, event):
+               if self.listBox.IsEmpty():
+                       ui.message(_('the list is empty.'))
+                       return
+               try:
+                       index = 
self.data.index(u'['+self.listBox.GetStringSelection()+u']')
+               except:
+                       ui.message(_('no selection'))
+                       return
+
+               name = wx.GetTextFromUser(_('you can rename this 
name.'),_('rename dialog'),self.listBox.StringSelection)
+               self.listBox.SetFocus()
+               x_y = self.listBox.GetClientData(self.listBox.GetSelection())
+               del self.data [index]
+               self.data.insert(index, u'['+name+u']')
+               data = u'\n'.join(self.data)
+               with codecs.open(self.path,'w','utf-8') as f:
+                       f.write(data)
+               i = self.listBox.GetSelection()
+               self.listBox.Delete(i)
+               self.listBox.Insert(name,i)
+               self.listBox.SetClientData(i,x_y)
+               self.listBox.SetSelection(i)
+       def onDelete(self,event):
+               if self.listBox.IsEmpty():
+                       ui.message(_('the list is empty.'))
+                       return
+               try:
+                       index = 
self.data.index(u'['+self.listBox.GetStringSelection()+u']')
+               except:
+                       ui.message(_('no selection'))
+                       return
+               del self.data [index]
+               del self.data [index]
+               data = u'\n'.join(self.data)
+               with codecs.open(self.path,'w','utf-8') as f:
+                       f.write(data)
+               self.listBox.Delete(self.listBox.GetSelection())
+               if self.listBox.IsEmpty():
+                       os.remove(self.path)
+
+       def onClear(self, event):
+               try:
+                       os.remove(self.path)
+               except:
+                       ui.message(_('The list is empty'))
+               self.listBox.Clear()
+
+       def onOk(self, event):
+               super(positionsList, self).onOk(event)
+               x, y= 
self.listBox.GetClientData(self.listBox.GetSelection()).split(u',')
+               x =int(x)
+               y = int(y)
+               win32api.SetCursorPos((x,y))
+               t = Timer(0.5, mouseHandler.executeMouseMoveEvent,[x, y])
+               t.start()
+               self.Close()
+
+
+class GlobalPlugin(globalPluginHandler.GlobalPlugin):
+       scriptCategory = u"golden cursor"
+       def __init__(self, *args, **kwargs):
+               super(GlobalPlugin, self).__init__(*args, **kwargs)
+               self.pixelMoving =5
+               self.sayPixel = 1
+               self.getAppRestriction = None
+               self.restriction = 0
+
+       def script_savedPositionsList(self, gesture):
+               if api.getForegroundObject().appModule.appName+'.gc' in 
os.listdir(filesPath):
+                       gui.mainFrame._popupSettingsDialog(positionsList)
+               else:
+                       ui.message(_('there is no saved data for this 
application.'))
+       script_savedPositionsList.__doc__ = _('To open a list showing the 
points that have already been saved for this application.')
+
+       def script_savePosition(self, gesture):
+               d = wx.TextEntryDialog(gui.mainFrame, _("Enter the value for 
position name you wish to save."), _("save position"))
+               def callback(result):
+                       if result == wx.ID_OK:
+                               wx.CallLater(100,self.saving, d.GetValue())
+               gui.runScriptModalDialog(d, callback)
+       def saving(self,name):
+               name = name.rstrip()
+               speech.cancelSpeech()
+               if name == u'':
+                       wx.CallAfter(gui.messageBox, _("please enter the value 
for the name of the position."), _("Error"), wx.OK|wx.ICON_ERROR)
+                       return
+               x, y = win32api.GetCursorPos()
+               appName = self.getMouse().appModule.appName
+               path = os.path.join(filesPath, appName+'.gc')
+               name = '['+name+']'
+               p = name+'\n'+str(x)+','+str(y)
+               try:
+                       with codecs.open(path,'r','utf-8') as f:
+                               data = f.read().strip()
+               except Exception ,e:
+                       data = u''
+               if name in data:
+                       data = data.split('\n')
+                       i = data.index(name)
+                       del data [i]
+                       del data [i]
+                       data = '\n'.join(data)
+                       p = data+u'\n'+p
+               else:
+                       p = data+u'\n'+p
+               with codecs.open(path,'w','utf-8') as f:
+                       f.write(p)
+                       ui.message(_('the position had saved.'))
+       script_savePosition.__doc__ = _('to save a the current position.')
+
+       def script_mouseMovementChange (self, gesture):
+               list = [1,5,10,20,50,100]
+               index = list.index(self.pixelMoving)
+               try:
+                       self.pixelMoving = list[index+1]
+               except:
+                       self.pixelMoving = list[0]
+               ui.message(str(self.pixelMoving))
+       script_mouseMovementChange.__doc__ = _('to select a value for mouse 
movement (1, 10, 20, 50. 100.')
+
+       def script_toggleSpeakPixels(self, gesture):
+               if self.sayPixel == 1:
+                       self.sayPixel =0
+                       ui.message(_('report pixels off'))
+                       tones.beep(500,200)
+               else:
+                       self.sayPixel =1
+                       ui.message(_('report pixels on'))
+                       tones.beep(1000,200)
+       script_toggleSpeakPixels.__doc__ = _('toggle reporting of pixels')
+
+       def script_sayPosition(self,gesture):
+               x, y = win32api.GetCursorPos()
+               str = _('%d , %d' %(x,y)) 
+               ui.message(str)
+       script_sayPosition.__doc__ = _('report the positions of the mouse.')
+
+       def script_moveMouseRight(self,gesture):
+               self.move_mouse(1)
+       script_moveMouseRight.__doc__ = _('Moves the Mouse pointer right.')
+
+       def script_moveMouseLeft(self,gesture):
+               self.move_mouse(2)
+       script_moveMouseLeft.__doc__ = _('Moves the Mouse pointer left.')
+
+       def script_moveMouseUp(self,gesture):
+               self.move_mouse(4)
+       script_moveMouseUp.__doc__ = _('Moves the Mouse pointer up.')
+
+       def script_moveMouseDown(self,gesture):
+               self.move_mouse(3)
+       script_moveMouseDown.__doc__ = _('Moves the Mouse pointer down.')
+
+       def script_goToPosition(self,gesture):
+               d = wx.TextEntryDialog(gui.mainFrame, _("Enter the value for 
position number you wish to jump to"), _("Jump to position"))
+               def callback(result):
+                       if result == wx.ID_OK:
+                               wx.CallLater(100,self.jumping, d.GetValue())
+               gui.runScriptModalDialog(d, callback)
+       def jumping(self,num):
+               speech.cancelSpeech()
+               if ',' not in num:
+                       wx.CallAfter(gui.messageBox, _("please enter comma 
between the first and the second number"), _("Error"), wx.OK|wx.ICON_ERROR)
+                       return
+               num = num.replace(' ','')
+               num = num.split(',')
+               x = num [0]
+               y = num [1]
+               if x.isdigit() == False or y.isdigit() == False:
+                       wx.CallAfter(gui.messageBox, _("please enter an integer 
number."), _("Error"), wx.OK|wx.ICON_ERROR)
+                       return
+               x = int(x)
+               y = int(y)
+               win32api.SetCursorPos((x,y))
+               self.getMouse()
+               ui.message(str(x)+','+ str(y))
+       script_goToPosition.__doc__ = _('type the x/y value you wish the cursor 
to jump to')
+       def script_toggleMouseRestriction(self,gesture):
+               self.getAppRestriction = self.getMouse()
+               if self.restriction == 0:
+                       self.restriction = 1 
+                       ui.message(_('restriction on'))
+                       tones.beep(1000,200)
+               else:
+                       self.restriction = 0
+                       ui.message(_('restriction off'))
+                       tones.beep(500,200)
+       script_toggleMouseRestriction.__doc__ = _('Toggles the restriction 
between the 2 levels you can toggle between Application Window restriction and 
Unrestricted.')
+
+       def move_mouse(self,d):
+               w, h = win32api.GetMonitorInfo(1) ['Monitor'][2:]
+               x , y= win32api.GetCursorPos()
+               oldX = x
+               oldY = y
+               if d == 1:
+                       x = x+self.pixelMoving
+                       pos = str(x)
+               elif d == 2:
+                       x = x- self.pixelMoving
+                       pos = str(x)
+               elif d == 3:
+                       y = y+self.pixelMoving
+                       pos = str(y)
+               elif d == 4:
+                       y = y-self.pixelMoving
+                       pos = str(y)
+               o =api.getMouseObject()
+               if x in range(0,w) and y in range(0,h):
+                       win32api.SetCursorPos((x,y))
+                       mouseHandler.executeMouseMoveEvent(x, y)
+               else:
+                       winsound.MessageBeep(0)
+                       return
+               if self.restriction == 1 and 
self.getAppRestriction.appModule.appName != self.getMouse().appModule.appName:
+                       winsound.MessageBeep(0)
+                       win32api.SetCursorPos((oldX,oldY))
+                       mouseHandler.executeMouseMoveEvent(oldX, oldY)
+                       if self.getAppRestriction.appModule.appName != 
self.getMouse().appModule.appName:
+                               x,y, w, h = self.getAppRestriction.location
+                               win32api.SetCursorPos((x,y))
+                               mouseHandler.executeMouseMoveEvent(x, y)
+                       return
+               if self.sayPixel == 1:
+                       ui.message(pos)
+               else:
+                       pass
+
+       def getMouse(self):
+               x , y= win32api.GetCursorPos()
+               o = api.getDesktopObject().objectFromPoint(x,y)
+               return o
+
+
+       __gestures = {
+       "kb:nvda+windows+c":"mouseMovementChange",
+       "kb:nvda+windows+rightarrow":"moveMouseRight",
+       "kb:nvda+windows+leftarrow":"moveMouseLeft",
+       "kb:nvda+windows+upArrow":"moveMouseUp",
+       "kb:nvda+windows+downArrow":"moveMouseDown",
+       "kb:nvda+windows+j":"goToPosition",
+       "kb:nvda+windows+p":"sayPosition",
+       "kb:nvda+windows+s":"toggleSpeakPixels",
+       "kb:nvda+windows+r":"toggleMouseRestriction",
+               "kb:nvda+shift+l": "savePosition",
+               "kb:nvda+control+l": "savedPositionsList",
+
+       }

diff --git a/addon/locale/ar/LC_MESSAGES/nvda.po 
b/addon/locale/ar/LC_MESSAGES/nvda.po
new file mode 100755
index 0000000..aec0f3c
--- /dev/null
+++ b/addon/locale/ar/LC_MESSAGES/nvda.po
@@ -0,0 +1,134 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: golden cursor2.0\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: \n"
+"Language-Team: author : salah atair, translation and keycommands are made by "
+"wafeeq taher <atair1978@xxxxxxxxx>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: ar\n"
+"X-Generator: Poedit 1.6.4\n"
+
+msgid "Enter the value for position number you wish to jump to"
+msgstr "أدخلْ القيمة التي تريد الانتقال اليها."
+
+msgid "please enter comma between the first  and the second number"
+msgstr "من فضْلِكَ افْصِلْ ما بين x وَ y بفاصلة."
+
+msgid "Error"
+msgstr "خطأ!"
+
+msgid "please enter an integer number."
+msgstr "من فضلك أَدْخِلْ رقم صحيح ."
+
+msgid "This key Not used.Press h for Help "
+msgstr "هذا المفتاح غير مستخدم اضغط h للمساعدة."
+
+msgid "to select a value for mouse movement (1, 10, 20, 50. 100."
+msgstr "لتحديد قيمة البكسل. ما بين 1 . 5 . 10 . 20 . 50 . 100."
+
+msgid "report pixels off"
+msgstr "الاعلان عن البكسل.تعطيل."
+
+msgid "report pixels on"
+msgstr "الاعلان عن البكسل .تشغيل."
+
+msgid "%s , %s' %(x,y)"
+msgstr "%s , %s' %(x,y)"
+
+msgid "Moves the Mouse pointer right."
+msgstr "تحريك المؤشر لليمين."
+
+msgid "Moves the Mouse pointer left."
+msgstr "تحريك المؤشر لليسار."
+
+msgid "Moves the Mouse pointer up."
+msgstr "تحريك المؤشر للأعلى."
+
+msgid "Moves the Mouse pointer down."
+msgstr "تحريك المؤشر للأسفل."
+
+msgid "restriction on"
+msgstr "حصر المؤشر تشغيل."
+
+msgid "restriction off"
+msgstr "حصر المؤشر تعطيل."
+
+msgid ""
+"Toggles the restriction between the 2 levels you can toggle between "
+"Application Window restriction and Unrestricted."
+msgstr "تبديل  لحَصر المؤشر في نافذة التطبيق النشط."
+
+msgid "Jump to position"
+msgstr "الانتقال الى."
+
+msgid "report the positions of the mouse."
+msgstr "الاعلان عن البكسل لموضع الفأرة الحالي."
+
+msgid "toggle reporting of pixels"
+msgstr "التَّبْديل بين تشغيل وتعطيل الإعلان عن البكسل."
+
+msgid "type the x/y value you wish the cursor to jump to"
+msgstr "لكتابةقيمة x, y لانتقال المؤشر اليها."
+
+msgid "please enter the value for the name of the position."
+msgstr "اكتب اسماً للموضع الحالي."
+
+msgid "Enter the value for position name you wish to save."
+msgstr "اكتب اسما للموضع الحالي."
+
+msgid "save position"
+msgstr "حفظ الموضع."
+
+msgid "there is no saved data for this application."
+msgstr "لا توجد أي بيانات محفوظة لهذا التطبيق حتى الآن."
+
+msgid "list of positions"
+msgstr "قائمة بلمواضع المحفوظة."
+
+msgid "choose a item of this list"
+msgstr "عرض العناصر. "
+
+msgid "ok"
+msgstr "موافق."
+
+msgid "cancel"
+msgstr "الغاء."
+
+msgid ""
+"To open a list showing the points that have already been saved for this "
+"application."
+msgstr "لِفَتحِ قائمة تعْرِض الإحداثيات المُخَزَّنة لهذا التطْبيق."
+
+msgid "to save a the current position."
+msgstr "لفتْحِ محاوَرة تتيح لكَ تخزين الموضع الحالي."
+
+msgid "the position had saved."
+msgstr "تم حفظ الموضع."
+
+msgid "rename"
+msgstr "اعادة تسمية."
+
+msgid "delete"
+msgstr "حذف."
+
+msgid "clear"
+msgstr "حذف نهائي."
+
+msgid "you can rename this name."
+msgstr "قم بإعادة التسمية؟"
+
+msgid "rename dialog"
+msgstr "محاورة لإعادة التسمية."
+
+msgid "the list is empty."
+msgstr "القائمة فارغة."
+
+msgid "no selection"
+msgstr "لايوجد تحديد."
+
+msgid "positions List"
+msgstr "قائمة المواضع."

diff --git a/buildVars.py b/buildVars.py
new file mode 100755
index 0000000..57ebe0a
--- /dev/null
+++ b/buildVars.py
@@ -0,0 +1,43 @@
+# -*- coding: UTF-8 -*-
+
+# Build customizations
+# Change this file instead of sconstruct or manifest files, whenever possible.
+
+# Full getext (please don't change)
+_ = lambda x : x
+
+# Add-on information variables
+addon_info = {
+       # for previously unpublished addons, please follow the community 
guidelines at:
+       # https://bitbucket.org/nvdaaddonteam/todo/raw/master/guideLines.txt
+       # add-on Name, internal for nvda
+       "addon_name" : "goldenCursor",
+       # Add-on summary, usually the user visible name of the addon.
+       # Translators: Summary for this add-on to be shown on installation and 
add-on information.
+       "addon_summary" : _("Golden Cursor moves the mouse with the keyboard"),
+       # Add-on description
+       # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
+       "addon_description" : _("Allows you to control the mouse movement with 
the arrow keys. for further details please visit the addon guide help."),
+       # version
+       "addon_version" : "1.0-dev",
+       # Author(s)
+       "addon_author" : u"Salah Atair <atair1978@xxxxxxxxx>, Wafeeq Taher",
+       # URL for the add-on documentation support
+       "addon_url" : 'http://addons.nvda-project.org',
+       # File name for the add-on help file.
+       "addon_docFileName" : "readme.html"
+}
+
+
+import os.path
+
+# Define the python files that are the sources of your add-on.
+# You can use glob expressions here, they will be expanded.
+pythonSources = [os.path.join("addon", "globalPlugins", "*.py"),]
+
+# Files that contain strings for translation. Usually your python sources
+i18nSources = pythonSources + ["buildVars.py"]
+
+# Files that will be ignored when building the nvda-addon file
+# Paths are relative to the addon directory, not to the root directory of your 
addon sources.
+excludedFiles = []

diff --git a/manifest-translated.ini.tpl b/manifest-translated.ini.tpl
new file mode 100755
index 0000000..c06aa84
--- /dev/null
+++ b/manifest-translated.ini.tpl
@@ -0,0 +1,2 @@
+summary = "{addon_summary}"
+description = """{addon_description}"""

diff --git a/manifest.ini.tpl b/manifest.ini.tpl
new file mode 100755
index 0000000..7de43bf
--- /dev/null
+++ b/manifest.ini.tpl
@@ -0,0 +1,7 @@
+name = {addon_name}
+summary = "{addon_summary}"
+description = """{addon_description}"""
+author = "{addon_author}"
+url = {addon_url}
+version = {addon_version}
+docFileName = {addon_docFileName}

diff --git a/readme.md b/readme.md
new file mode 100755
index 0000000..1f5c85a
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,60 @@
+# golden cursor#
+
+*author: salah atair
+*download development version: [download][1] 
+#Changes for version 2.2#
+*1 new buttons have been added to remove, modify, and rename in the saved 
positions dialog.
+#2 Keycommands:#
+*nvda+shift+L: view a list of the saved positions.
+*nvda+control+l: save a position.
+*nvda+win+c: select the level of movement.
+*nvda+win+r: toggle mouse restriction.
+*nvda+win+s: toggle the reporting of pixels.
+*nvda+win + j: open a dialog to type the X, Y position you want to jump to.
+*nvda+win+ p: reporting the pixels for the current position pointer.
+*nvda+win+arrowKeys: move the mouse in different directions.
+*note: these gestures can be reassigned from the input gestures dialog in the 
nvda preferences menu.
+#changes for version 2.0#
+*storing certain positions and return to *them later to be easier to handel 
the *objects that aren't accesible via keyboard.
+*now you can unrestrict the cursor when you *exit the addon layer.
+*cursor quick responce when you press the *arrow keys constantly
+*the cursor no longer exits the window even *if it reaches its end so as long 
you *enabled mouse restriction.
+*translation update.
+n*ow you can share your configurations with *the others.
+*new keycommands have been added.
+#notes#
+*when you save a position you should take *into consideration the following:
+* when you use or share it:
+*to stick to a certain resulotion when you *use the saved positions, for 
instance, if *your screen resolution is set to 1024, it *should be remained 
like that and your *friends should have the same resolution to *share your list 
of the saved positions with *them.
+*it will be better to maximise the window *when you save a position by 
pressing *windows+upArrow.
+*the existed names in the configurations *should be changed.
+keycommand#s#
+*nvda+shift+L: to save a position.
+*NVDA+L: to view a list of the stored *positions for the forground window.
+#changes for 1.4#
+*keycommands now are more intuitive.
+*nvda+G: open the golden cursor mode
+*UpArrow: to move the cursor up.
+*downarrow: to move the cursor down
+*rightArrow: moving the cursor right
+*leftarrow: moving the cursor to the left
+*j: opens a dialogue to enter the position *you want to jump to, for instance, 
40,321 *then press ok to go to this position.
+#note: the first number refers to the pixel #*number from left to right and 
the second *number represents the pixel number from top *to bottom. you should 
put a comma between *the 2 numbers.
+*s: toggle reporting of object pixels.
+*r: restricts the mouse cursor to the *current *application window. if it is 
being pressed *again, the cursor will be unrestricted.
+*c: toggle the 6ths levels of the mouse *movement: 1 pixel, 5 pixels, 10 
pixels, 20 *pixels, 50 pixels and 100 pixels.
+*p: reads the mouse cursor position by *pixels.
+*h: helps you know to know the previous *commands.
+*x: exits the golden cursor mode.
+
+
+[1]: http://addons.nvda-project.org/files/get.php?file=it [2]:
+http://addons.nvda-project.org/files/get.php?file=it-dev
+
+
+[[!tag dev stable]]
+
+[1]: http://simsd.com/do.php?id=41
+[2]: http://simsd.com/do.php?id=41
+
+

diff --git a/sconstruct b/sconstruct
new file mode 100755
index 0000000..b77cfe6
--- /dev/null
+++ b/sconstruct
@@ -0,0 +1,172 @@
+# NVDA add-on template  SCONSTRUCT file
+#Copyright (C) 2012, 2014 Rui Batista <ruiandrebatista@xxxxxxxxx>
+#This file is covered by the GNU General Public License.
+#See the file COPYING.txt for more details.
+
+import codecs
+import gettext
+import os
+import os.path
+import zipfile
+
+import buildVars
+
+
+def md2html(source, dest):
+       import markdown
+       lang = os.path.basename(os.path.dirname(source)).replace('_', '-')
+       title="{addonSummary} 
{addonVersion}".format(addonSummary=buildVars.addon_info["addon_summary"], 
addonVersion=buildVars.addon_info["addon_version"])
+       headerDic = {
+               "[[!meta title=\"": "# ",
+               "\"]]": " #",
+       }
+       with codecs.open(source, "r", "utf-8") as f:
+               mdText = f.read()
+               for k, v in headerDic.iteritems():
+                       mdText = mdText.replace(k, v, 1)
+               htmlText = markdown.markdown(mdText)
+       with codecs.open(dest, "w", "utf-8") as f:
+               f.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
+                       "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 
Strict//EN\"\n" +
+                       "    
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>\n" +
+                       "<html xmlns=\"http://www.w3.org/1999/xhtml\" ;
xml:lang=\"%s\" lang=\"%s\">\n" % (lang, lang) +
+                       "<head>\n" +
+                       "<meta http-equiv=\"Content-Type\" content=\"text/html; 
charset=UTF-8\"/>\n" +
+                       "<link rel=\"stylesheet\" type=\"text/css\" 
href=\"../style.css\" media=\"screen\"/>\n" +
+                       "<title>%s</title>\n" % title +
+                       "</head>\n<body>\n"
+               )
+               f.write(htmlText)
+               f.write("\n</body>\n</html>")
+
+def mdTool(env):
+       mdAction=env.Action(
+               lambda target,source,env: md2html(source[0].path, 
target[0].path),
+               lambda target,source,env: 'Generating %s'%target[0],
+       )
+       mdBuilder=env.Builder(
+               action=mdAction,
+               suffix='.html',
+               src_suffix='.md',
+       )
+       env['BUILDERS']['markdown']=mdBuilder
+
+
+env = Environment(ENV=os.environ, tools=['gettexttool', mdTool])
+env.Append(**buildVars.addon_info)
+
+addonFile = env.File("${addon_name}-${addon_version}.nvda-addon")
+
+def addonGenerator(target, source, env, for_signature):
+       action = env.Action(lambda target, source, env : 
createAddonBundleFromPath(source[0].abspath, target[0].abspath) and None,
+       lambda target, source, env : "Generating Addon %s" % target[0])
+       return action
+
+def manifestGenerator(target, source, env, for_signature):
+       action = env.Action(lambda target, source, env : 
generateManifest(source[0].abspath, target[0].abspath) and None,
+       lambda target, source, env : "Generating manifest %s" % target[0])
+       return action
+
+
+def translatedManifestGenerator(target, source, env, for_signature):
+       dir = os.path.abspath(os.path.join(os.path.dirname(str(source[0])), 
".."))
+       lang = os.path.basename(dir)
+       action = env.Action(lambda target, source, env : 
generateTranslatedManifest(source[1].abspath, lang, target[0].abspath) and None,
+       lambda target, source, env : "Generating translated manifest %s" % 
target[0])
+       return action
+
+env['BUILDERS']['NVDAAddon'] = Builder(generator=addonGenerator)
+env['BUILDERS']['NVDAManifest'] = Builder(generator=manifestGenerator)
+env['BUILDERS']['NVDATranslatedManifest'] = 
Builder(generator=translatedManifestGenerator)
+
+def createAddonHelp(dir):
+       docsDir = os.path.join(dir, "doc")
+       if os.path.isfile("style.css"):
+               cssPath = os.path.join(docsDir, "style.css")
+               cssTarget = env.Command(cssPath, "style.css", Copy("$TARGET", 
"$SOURCE"))
+               env.Depends(addon, cssTarget)
+       if os.path.isfile("readme.md"):
+               readmePath = os.path.join(docsDir, "en", "readme.md")
+               readmeTarget = env.Command(readmePath, "readme.md", 
Copy("$TARGET", "$SOURCE"))
+               env.Depends(addon, readmeTarget)
+
+
+
+def createAddonBundleFromPath(path, dest):
+       """ Creates a bundle from a directory that contains an addon manifest 
file."""
+       basedir = os.path.abspath(path)
+       with zipfile.ZipFile(dest, 'w', zipfile.ZIP_DEFLATED) as z:
+               # FIXME: the include/exclude feature may or may not be useful. 
Also python files can be pre-compiled.
+               for dir, dirnames, filenames in os.walk(basedir):
+                       relativePath = os.path.relpath(dir, basedir)
+                       for filename in filenames:
+                               pathInBundle = os.path.join(relativePath, 
filename)
+                               absPath = os.path.join(dir, filename)
+                               if pathInBundle not in buildVars.excludedFiles: 
z.write(absPath, pathInBundle)
+       return dest
+
+def generateManifest(source, dest):
+       with codecs.open(source, "r", "utf-8") as f:
+               manifest_template = f.read()
+       manifest = manifest_template.format(**buildVars.addon_info)
+       with codecs.open(dest, "w", "utf-8") as f:
+               f.write(manifest)
+
+def generateTranslatedManifest(source, language, out):
+       _ = gettext.translation("nvda", localedir=os.path.join("addon", 
"locale"), languages=[language]).ugettext
+       vars = {}
+       for var in ("addon_summary", "addon_description"):
+               vars[var] = _(buildVars.addon_info[var])
+       with codecs.open(source, "r", "utf-8") as f:
+               manifest_template = f.read()
+       result = manifest_template.format(**vars)
+       with codecs.open(out, "w", "utf-8") as f:
+               f.write(result)
+
+def expandGlobs(files):
+       return [f for pattern in files for f in env.Glob(pattern)]
+
+addon = env.NVDAAddon(addonFile, env.Dir('addon'))
+
+langDirs = [f for f in env.Glob(os.path.join("addon", "locale", "*"))]
+
+#Allow all NVDA's gettext po files to be compiled in source/locale, and 
manifest files to be generated
+for dir in langDirs:
+       poFile = dir.File(os.path.join("LC_MESSAGES", "nvda.po"))
+       moFile=env.gettextMoFile(poFile)
+       env.Depends(moFile, poFile)
+       translatedManifest = 
env.NVDATranslatedManifest(dir.File("manifest.ini"), [moFile, 
os.path.join("manifest-translated.ini.tpl")])
+       env.Depends(translatedManifest, ["buildVars.py"])
+       env.Depends(addon, [translatedManifest, moFile])
+
+pythonFiles = expandGlobs(buildVars.pythonSources)
+for file in pythonFiles:
+       env.Depends(addon, file)
+
+#Convert markdown files to html
+createAddonHelp("addon") # We need at least doc in English and should enable 
the Help button for the add-on in Add-ons Manager
+for mdFile in env.Glob(os.path.join('addon', 'doc', '*', '*.md')):
+       htmlFile = env.markdown(mdFile)
+       env.Depends(htmlFile, mdFile)
+       env.Depends(addon, htmlFile)
+
+# Pot target
+i18nFiles = expandGlobs(buildVars.i18nSources)
+gettextvars={
+               'gettext_package_bugs_address' : 
'nvda-translations@xxxxxxxxxxxxx',
+               'gettext_package_name' : buildVars.addon_info['addon_name'],
+               'gettext_package_version' : 
buildVars.addon_info['addon_version']
+       }
+
+pot = env.gettextPotFile("${addon_name}.pot", i18nFiles, **gettextvars)
+env.Alias('pot', pot)
+env.Depends(pot, i18nFiles)
+mergePot = env.gettextMergePotFile("${addon_name}-merge.pot", i18nFiles, 
**gettextvars)
+env.Alias('mergePot', mergePot)
+env.Depends(mergePot, i18nFiles)
+
+# Generate Manifest path
+manifest = env.NVDAManifest(os.path.join("addon", "manifest.ini"), 
os.path.join("manifest.ini.tpl"))
+
+env.Depends(addon, manifest)
+env.Default(addon)

diff --git a/site_scons/site_tools/gettexttool/__init__.py 
b/site_scons/site_tools/gettexttool/__init__.py
new file mode 100755
index 0000000..fa3a937
--- /dev/null
+++ b/site_scons/site_tools/gettexttool/__init__.py
@@ -0,0 +1,49 @@
+""" This tool allows generation of gettext .mo compiled files, pot files from 
source code files
+and pot files for merging.
+
+Three new builders are added into the constructed environment:
+
+- gettextMoFile: generates .mo file from .pot file using msgfmt.
+- gettextPotFile: Generates .pot file from source code files.
+- gettextMergePotFile: Creates a .pot file appropriate for merging into 
existing .po files.
+
+To properly configure get text, define the following variables:
+
+- gettext_package_bugs_address
+- gettext_package_name
+- gettext_package_version
+
+
+"""
+from SCons.Action import Action
+
+def exists(env):
+       return True
+
+XGETTEXT_COMMON_ARGS = (
+       "--msgid-bugs-address='$gettext_package_bugs_address' "
+       "--package-name='$gettext_package_name' "
+       "--package-version='$gettext_package_version' "
+       "-c -o $TARGET $SOURCES"
+)
+
+def generate(env):
+       env.SetDefault(gettext_package_bugs_address="example@xxxxxxxxxxx")
+       env.SetDefault(gettext_package_name="")
+       env.SetDefault(gettext_package_version="")
+
+       env['BUILDERS']['gettextMoFile']=env.Builder(
+               action=Action("msgfmt -o $TARGET $SOURCE", "Compiling 
translation $SOURCE"),
+               suffix=".mo",
+               src_suffix=".po"
+       )
+
+       env['BUILDERS']['gettextPotFile']=env.Builder(
+               action=Action("xgettext " + XGETTEXT_COMMON_ARGS, "Generating 
pot file $TARGET"),
+               suffix=".pot")
+
+       env['BUILDERS']['gettextMergePotFile']=env.Builder(
+               action=Action("xgettext " + "--omit-header --no-location " + 
XGETTEXT_COMMON_ARGS,
+                       "Generating pot file $TARGET"),
+               suffix=".pot")
+

diff --git a/style.css b/style.css
new file mode 100755
index 0000000..373283f
--- /dev/null
+++ b/style.css
@@ -0,0 +1,30 @@
+@charset "utf-8";
+body { 
+font-family : Verdana, Arial, Helvetica, Sans-serif;
+color : #FFFFFF;
+background-color : #000000;
+line-height: 1.2em;
+} 
+h1, h2 {text-align: center}
+dt { 
+font-weight : bold; 
+float : left; 
+width: 10%;
+clear: left
+} 
+dd { 
+margin : 0 0 0.4em 0; 
+float : left;
+width: 90%;
+display: block;
+} 
+p { clear : both; 
+} 
+a { text-decoration : underline; 
+} 
+:active { 
+text-decoration : none; 
+}
+a:focus, a:hover {outline: solid}
+:link {color: #0000FF;
+background-color: #FFFFFF}

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

--

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:

  • » commit/goldenCursor: josephsl: Initial commit with code provided by the add-on author - commits-noreply