Re: [orca-list] A couple of questions about orca sources



Hi Jen,

I find Gedit works really well with Orca for writing source code. I've done quite a bit of C/C++, Python and am currently doing some Java using Orca and Gedit on Ubuntu.

If you go to the Edit menu > Preferences dialogue and to the Editor Page you can have Gedit insert spaces rather than tab characters when you press the tab key (although this wont replace existing tab characters with spaces), you can see how many spaces a tab is worth in this dialogue too and change it if you like. The default setting is 8 spaces.

I would recommend you setting your Gedit specific Orca settings to enable reading of indentation (crucial for Python imparticular) and setting punctuation to all.

If you put an & character after the command to launch Gedit e.g

gedit filename.py &

then you can go on using the terminal while Gedit is running. Useful for testing your programs without having to close the editor.

And if you open multiple files they will open in the same instance of Gedit, in separate tabs and you can switch between them with Alt + a number, where number 1 is the first file you opened etc. Orca will announce the name of each file as you switch to it.

Finally the Search menu (Alt + S) has useful commands for finding strings of text (as you might expect). A useful thing to put in here when doing Python is the keyword "def" because all functions in Python start with this word. So once you've searched for it once you can jump to each next occurance with Control + G. Useful for skipping through all the functions in a file. Alt + S then L will let you enter a line number to jump to as well. Useful for skipping to lines that you know contain errors.

I know there are fancier editors and IDE's like Eclipse out there but I actually find Gedit a neat little solution.

It's getting me through my MSc thus far anyway! The course is fairly heavily unix/linux oriented and so Orca is just the ticket!

Paul


On 13/10/09 21:20, Willie Walker wrote:
Hi Jen:

If no prefix is passed, then the "make install" target goes to the default location, which I believe is under /usr/local, which typically needs root access to write to. So, I tend to use ./autogen.sh --prefix=`pwd`/bld and do everything using my normal login. This tends to keep me out of trouble.

For editors, 'gedit' might work OK for you, but I'll let others speak up for what works with them. I'd also recommend avoiding the 'tab' character like the H1N1 virus.

Will

Jennifer wrote:
So if no prefix is passed to the autogen.sh file then the modules are just unpacked to the same place as the existing ones, thus overwriting them? Also can you recommend any editors that are good to use for a totally blind person trying to learn python? I've been trying to learn it a little at work but I have not yet found an easy way to determine the difference between 1 tab or 3 spaces.

Thanks
Jen!

--------------------------------------------------
From: "Willie Walker" <William Walker Sun COM>
Sent: Monday, October 12, 2009 8:44 PM
To: "Jennifer" <fluffy_bunny_1988 hotmail co uk>
Cc: <Orca-list gnome org>
Subject: Re: [orca-list] A couple of questions about orca sources

Hi Jen:

On Mon, 2009-10-12 at 19:08 +0100, Jennifer wrote:
Hi. I have downloaded the latest orca sources and followed the
instructions for installing them (obtained from the gnome website).
According to the results of the command orca --version (checking the
git status also gives the same result) I am running version 2.27.92
pree
Is this the latest version as of Friday 9th October, retrieved by
using the git clone command (without specifying a branch?

The configure.in file in the repository is what ends up setting this
value. I forgot to change the value to 2.29.1pre when I branched Orca
for 2.28.0. So, it was still stuck at 2.27.92pre. I just checked in a
change to update configure.in to flag the git master branch as
2.29.1pre.

If it is then the orca directory is visible in my /home/jen directory,
it was not visible before I installed these sources. Is orca running
from these sources by default? The command string in gnome
(/home/jen/orca) suggests that it is, and I can't remember if orca was
located in the same directory (but just hidden) last time.
If the new sources are not being used by default could someone please
tell me how to make them default, and if I should hide the orca
directory or move it to a more appropriate place?

Where Orca ends up depends upon the --prefix flag you passed to the
autogen.sh or configure file. The orca build/install is also set up so
that it should find the right Python modules. I regularly run the
following command from my orca directory:

./autogen.sh --prefix=`pwd`/bld

With this, I can keep /usr/bin/orca at the version of Orca installed by
the operating system distribution, while also working with the Orca
sources from git.

I also can't make Liblouis or brltty 4.0. I had some issues making the
brltty at work so don't think it is just something related to my
distro (9.04) Will liblouis be included in Orca installs by default?

Liblouis and brltty are separate projects, so Orca doesn't include them.
Instead, the packaging of these is dependent upon your operating system
distribution.

Hope this helps,

Will





__________ Information from ESET NOD32 Antivirus, version of virus signature database 4501 (20091012) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4504 (20091013) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]