[program-l] Re: How to start Emacspeak on the Mac? Instructions for Installing Emacs and Emacspeak included

  • From: Parham Doustdar <parham90@xxxxxxxxx>
  • To: program-l blind programming list <program-l@xxxxxxxxxxxxx>
  • Date: Wed, 15 Aug 2018 22:21:50 +0200

Hi Jim,
Ah, okay, now I know what points to mention.
So, general things first:
VoiceOver is sometimes slow when you open things like XCode. Emacs is not
that sluggish. That means you can work faster, search faster, move faster.
Things like indentation are not announced by VoiceOver in general.
You don't have what Emacspeak's author called Voice CSS, or something like
that, which works with voice pitch to tell you the font (e.g. bold, italic,
etc).
You can program Emacspeak to do a lot of things, like playing a sound when
something happens, or saying something when you press a key, and so on.
This can be as simple as saying something in 10 minutes to remind you to
get up and walk around, or something as complicated as reading chat
messages as they come in.
The Emacs shell is much better than VoiceOver plus Terminal.app. you can
jump to where you typed the previous command, search through the output,
sort things, transform stuff, programmable consume stuff, or even write a
function to tell you useful information from the output of the command.
Since Emacs is scriptable with ELisp, you can do pretty much anything.
Hope this helps.

On Wed, Aug 15, 2018 at 9:29 PM Jim Homme <jhomme@xxxxxxxxxxxxxxxxx> wrote:

Hi,

I’m just trying to figure out why I would replace the speech from
VoiceOver with EmacSpeak. I’m a fairly new Mac user. I don’t actually know
what to ask.



Thanks.



Jim







==========

Jim Homme

Product Manager

Digital Accessibility

Bender Consulting Services

412-787-8567


https://www.benderconsult.com/our%20services/hightest-accessible-technology-solutions

People with disabilities, access job openings at
https://www.benderconsult.com/careers/job-openings





*From:* program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> *On
Behalf Of *Parham Doustdar
*Sent:* Tuesday, August 14, 2018 3:39 PM
*To:* program-l blind programming list <program-l@xxxxxxxxxxxxx>
*Subject:* [program-l] Re: How to start Emacspeak on the Mac?
Instructions for Installing Emacs and Emacspeak included



Hi,

When you say "otherwise", what do you mean? What are we comparing Emacs
with?

In general terms, Emacs itself is scriptable, and Emacspeak is a package
that uses the scripting ability of Emacs to read information.

That gives you a lot of power. When something is not accessible, for
example, you can call the Emacspeak functions to say whatever you like. You
can hook into the guts of Emacs, and add speech to pretty much anything.

Also, you can use the functions that Emacs provides to write textual
interfaces with very little effort. For example, I wrote a package for
myself that connects to the First Internet Backgammon Server, and provides
a table-like structure for me to explore the backgammon board, invite
players, make moves, chat, and so on from Emacs.

This is why even sighted people, for example, check their email with
Emacs, play media files with Emacs, or even chat with Emacs. I know some
colleagues of mine at Booking.com which have pretty complicated Emacs set
ups to do things in Perl that no other IDE I know can do.

Hope this helps.



On Tue, Aug 14, 2018 at 9:20 PM Jim Homme <jhomme@xxxxxxxxxxxxxxxxx>
wrote:

Hi,

What does this environment give me that I would not otherwise get?



Thanks.



Jim







==========

Jim Homme

Product Manager

Digital Accessibility

Bender Consulting Services

412-787-8567


https://www.benderconsult.com/our%20services/hightest-accessible-technology-solutions

People with disabilities, access job openings at
https://www.benderconsult.com/careers/job-openings





*From:* program-l-bounce@xxxxxxxxxxxxx <program-l-bounce@xxxxxxxxxxxxx> *On
Behalf Of *Parham Doustdar
*Sent:* Tuesday, July 24, 2018 2:50 AM
*To:* program-l blind programming list <program-l@xxxxxxxxxxxxx>
*Subject:* [program-l] Re: How to start Emacspeak on the Mac?
Instructions for Installing Emacs and Emacspeak included



Hi Devin,

You can customize the sound theme which makes it persist. That way, when
you close Emacs and open it again, you still have the sound theme set.

Here are the steps to do it:

1. Press C-h V (that's cap V) in Emacs, then type in
emacspeak-sounds-default-theme, and press enter.

2. Change the value to the full path of the 3D folder.

3. Press C-x C-s to save your changes.

4. Profit.



On Mon, Jul 23, 2018 at 4:13 PM, Devin Prater <r.d.t.prater@xxxxxxxxx>
wrote:

The only problem I have is that changing the sound scheme then restarting
doesn't save changes, but pan-chimes isn't too bad, just, 3D is better, to
me.

Devin Prater

Assistive Technology Instructor certified by World Services for the Blind

JAWS certified


On Jul 23, 2018, at 2:33 AM, Parham Doustdar <parham90@xxxxxxxxx> wrote:

Hi,

The instructions seem to be a bit old, since you don't need to use `brew
install` anymore. Homebrew suggests only using `brew cask install emacs`.

Also, I suggest using the latest Emacspeak, if you haven't done that
already. When you extract the latest Emacspeak, just do `make emacspeak`.
It will run all the commands for you, and then, at the end, output
something like:

To run  this Emacspeak build, add this  line to the top of your .emacs:

(load-file "/Users/pdoustdar/src/emacspeak/lisp/emacspeak-setup.el")

Just copy and paste this line into your ~/.emacs.d/init.el file, and
that's it, No need to mess around with load paths.

You don't even need to specify the voice as mac – as far as I know, it
defaults to mac when it detects you are using the Mac operating system.

So, to sum up:

1. Get the latest Emacspeak version.

2. Remove the Emacs you installed previously, and only install the one
from `brew cask`.

3. Run `make emacspeak` in the Emacspeak directory.

4. Open another editor like Text edit, create a file at
~/.emacs.d/init.el, and put that line starting with (load-path...) inside
it, and nothing else.

5. Now run Emacs by going to your Applications and choosing Emacs. You can
also run it from Spotlight.

You should get speech right away.

Let me know if there is a problem in the process.



On Sun, Jul 22, 2018 at 2:25 AM, Jaffar Sidek <jaffar.sidek10@xxxxxxxxx>
wrote:

HI.  I think not all of the instructions came through in my previous post,
so here they are again.  Cheers and appologies.

Instructions below:

1
### Step-by-step terminal instructions to install emacspeak on OS X.
2
### Copy-paste each step (one step at a time!) into the terminal.
3
### Much of the information presented here was copied from
4
### http://e-mac-speak.googlecode.com/svn/trunk/e-mac-speak-howto.org
5
### More useful settings may be found at
https://github.com/ragb/emacs-ragb/blob/master/init.el
6

7
## WARNING: These steps worked for me, but they may not work for you. In
fact they may break things, turn your computer into
8
## a paperweight, and/or eat your kittens. These instructions are provided
in the hope that they may be useful,
9
## but you are responsible for running them and for any damange doing so
may cause.
10

11
## 1. Install Xcode from the App Store
12

13
## 2. Install brew
14

15
# run in terminal:
16
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
17

18
# See http://brew.sh/ and
https://github.com/Homebrew/homebrew/tree/master/#share/doc/homebrew#readme
for details
19

20
## 3. Install and link python
21

22
# run in terminal:
23
brew install python
24
brew link --overwrite python
25

26
## 4. Install emacs
27
## (Twice, yes, that is correct. Once for system emacs at
/usr/local/bin/emacs, again for /Applications/Emaps.app)
28

29
# run in terminal:
30
rm -rf /Applications/Emacs.app
31
brew cask install emacs
32
brew install emacs --with-cocoa --with-librsvg --with-gnutls
--with-imagemagic
33
brew link --overwrite emacs
34

35
## NOTE: sometimes the shell doesn't pick up the new emacs version in
/usr/local/bin.
36
## You can check which version your shell is picking up with
37
emacs --version
38
## if this reports less than 25.1 you should close the terminal
application and restart
39
## it before continuing to the next step.
40

41
## 5. Install wget
42

43
# run in terminal:
44
cd ~/
45
brew install wget
46

47
## 6. Download emacspeak. NOTE: check
https://github.com/tvraman/emacspeak/releases before running.
48
## If there is a more recent release you should use it instead.
49
# run in terminal
50
rm -rf emacspeak*
51
wget
https://github.com/tvraman/emacspeak/releases/download/45.0/emacspeak-45.0.tar.bz2
52
## 7. Extract emacspeak
53

54
# run in terminal:
55
tar -xvf emacspeak-45.0.tar.bz2
56

57
## 8. Build emacspeak
58

59
# run in terminal:
60
cd emacspeak-45.0
61
make config
62
make
63

64
## 9. Move emacspeak to installation folder.
65
## NOTE: the installation folder can be anywhere you want it to be.
66
## I used ~/.emacs.d/emacspeak but you could use something else if you
like.
67

68
# run in terminal:
69
cd ~/
70
mkdir -p ~/.emacs.d/emacspeak
71
mv emacspeak-45.0/* ~/.emacs.d/emacspeak
72

73
## 10. Tell emacs where to find the lisp files
74

75
# run in terminal:
76
echo "
77

78
(require 'cl)
79
(setq load-path (cons \"~/.emacs.d/emacspeak/lisp\" load-path))
80
(setq emacspeak-directory \"~/.emacs.d/emacspeak\")
81
(setq dtk-program \"mac\")
82
(require 'emacspeak-setup)
83
(require 'mac-voices)
84
(emacspeak-tts-startup-hook)
85
(dtk-set-rate 300 t)
86

87
" >> ~/.emacs.d/init.el
88

89

90
## 11 Start emacs and be happy!



1
### Step-by-step terminal instructions to install emacspeak on OS X.
2
### Copy-paste each step (one step at a time!) into the terminal.
3
### Much of the information presented here was copied from
4
### http://e-mac-speak.googlecode.com/svn/trunk/e-mac-speak-howto.org
5
### More useful settings may be found at
https://github.com/ragb/emacs-ragb/blob/master/init.el
6

7
## WARNING: These steps worked for me, but they may not work for you. In
fact they may break things, turn your computer into
8
## a paperweight, and/or eat your kittens. These instructions are provided
in the hope that they may be useful,
9
## but you are responsible for running them and for any damange doing so
may cause.
10

11
## 1. Install Xcode from the App Store
12

13
## 2. Install brew
14

15
# run in terminal:
16
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
17

18
# See http://brew.sh/ and
https://github.com/Homebrew/homebrew/tree/master/#share/doc/homebrew#readme
for details
19

20
## 3. Install and link python
21

22
# run in terminal:
23
brew install python
24
brew link --overwrite python
25

26
## 4. Install emacs
27
## (Twice, yes, that is correct. Once for system emacs at
/usr/local/bin/emacs, again for /Applications/Emaps.app)
28

29
# run in terminal:
30
rm -rf /Applications/Emacs.app
31
brew cask install emacs
32
brew install emacs --with-cocoa --with-librsvg --with-gnutls
--with-imagemagic
33
brew link --overwrite emacs
34

35
## NOTE: sometimes the shell doesn't pick up the new emacs version in
/usr/local/bin.
36
## You can check which version your shell is picking up with
37
emacs --version
38
## if this reports less than 25.1 you should close the terminal
application and restart
39
## it before continuing to the next step.
40

41
## 5. Install wget
42

43
# run in terminal:
44
cd ~/
45
brew install wget
46

47
## 6. Download emacspeak. NOTE: check
https://github.com/tvraman/emacspeak/releases before running.
48
## If there is a more recent release you should use it instead.
49
# run in terminal
50
rm -rf emacspeak*
51
wget
https://github.com/tvraman/emacspeak/releases/download/45.0/emacspeak-45.0.tar.bz2
52
## 7. Extract emacspeak
53

54
# run in terminal:
55
tar -xvf emacspeak-45.0.tar.bz2
56

57
## 8. Build emacspeak
58

59
# run in terminal:
60
cd emacspeak-45.0
61
make config
62
make
63

64
## 9. Move emacspeak to installation folder.
65
## NOTE: the installation folder can be anywhere you want it to be.
66
## I used ~/.emacs.d/emacspeak but you could use something else if you
like.
67

68
# run in terminal:
69
cd ~/
70
mkdir -p ~/.emacs.d/emacspeak
71
mv emacspeak-45.0/* ~/.emacs.d/emacspeak
72

73
## 10. Tell emacs where to find the lisp files
74

75
# run in terminal:
76
echo "
77

78
(require 'cl)
79
(setq load-path (cons \"~/.emacs.d/emacspeak/lisp\" load-path))
80
(setq emacspeak-directory \"~/.emacs.d/emacspeak\")
81
(setq dtk-program \"mac\")
82
(require 'emacspeak-setup)
83
(require 'mac-voices)
84
(emacspeak-tts-startup-hook)
85
(dtk-set-rate 300 t)
86

87
" >> ~/.emacs.d/init.el
88

89

90
## 11 Start emacs and be happy!



On 22/7/2018 8:18 AM, Jaffar Sidek wrote:

Hi all.  I successfully installed Emacs and Emacspeak on my MacBook pro.
My emacspeak App can be found in my Utilities folder.  So How can I get
Emacspeak started?  My success in installing both programs is due in no
small measure to these instructions found on Github.  I will include them
in this post for anyone interested in getting started with Emacs and
Emacspeak on the mac.  Instructions follow.  Cheers!

----------Copy From Here----------

### Step-by-step terminal instructions to install emacspeak on OS X.

### Copy-paste each step (one step at a time!) into the terminal.

### Much of the information presented here was copied from

### http://e-mac-speak.googlecode.com/svn/trunk/e-mac-speak-howto.org

### More useful settings may be found at
https://github.com/ragb/emacs-ragb/blob/master/init.el

## WARNING: These steps worked for me, but they may not work for you. In
fact they may break things, turn your computer into

## a paperweight, and/or eat your kittens. These instructions are provided
in the hope that they may be useful,

## but you are responsible for running them and for any damange doing so
may cause.

## 1. Install Xcode from the App Store

## 2. Install brew

# run in terminal:

/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"

# See http://brew.sh/ and
https://github.com/Homebrew/homebrew/tree/master/#share/doc/homebrew#readme
for details

## 3. Install and link python

# run in terminal:

brew install python

brew link --overwrite python

## 4. Install emacs

## (Twice, yes, that is correct. Once for system emacs at
/usr/local/bin/emacs, again for /Applications/Emaps.app)

# run in terminal:

rm -rf /Applications/Emacs.app

brew cask install emacs

brew install emacs --with-cocoa --with-librsvg --with-gnutls
--with-imagemagic

brew link --overwrite emacs

## NOTE: sometimes the shell doesn't pick up the new emacs version in
/usr/local/bin.










Other related posts: