Contents |
Jak efektivně spouštět Emacs
Emacs se dá spouštět mnoha způsoby, můžeme jej spouštět z prostředí GNOME, tady však není přístupné menu. Můžeme jej spouštět z konzole, jenomže neustále se přepínat mezi konzolou a GNOME to není to pravé. A také, spustíme-li Emacs, zjistíme, že nám nechce mluvit Orca a co s tím teď?
Nejprve editujeme (ve svém domovském adresáři) soubor .bashrc, na jehož konec přidáme následující řádku.
export SPEECHD_PORT="6561"
Nyní nakonfigurujeme Speech Dispatcher tak, by mohl být spuštěn ještě jednou a tentokrát pod naším uživatelem. Zadáme tedy následující příkaz.
spd-conf
Tady je výpis mé konfigurace - Vaše bude nejspíše hodně podobná
martin@suky:~$ spd-conf Speech Dispatcher configuration tool Do you want to setup a completely new configuration? [yes] : >yes Do you want to create/setup a 'user' or 'system' configuration [user] : >user Creating /home/martin/.speech-dispatcher User configuration created in /home/martin/.speech-dispatcher/conf Configuring user settings for Speech Dispatcher Default output module [espeak] : >espeak Default language (two-letter iso language code like "en" or "cs") [en] : >cs Default audio output method [alsa] : >alsa Default port [6561] : > Configuration written to /home/martin/.speech-dispatcher/conf/speechd.conf Basic configuration now complete. You might still need to fine tune it by manually editing the configuration above file. Especially if you need to use special audio settings, non-standard synthesizer ports etc. Do you want to start/restart Speech Dispatcher now and run some tests? [yes] : > Starting Speech Dispatcher in user-mode [Wed Jan 28 19:25:06 2009 : 143967] speechd: Speech Dispatcher 0.6.7 starting Can't start Speech Dispatcher. Exited with status 256 Perhaps this is because your Speech Dispatcher is already running. Do you want to kill all running Speech Dispatchers and try again? [yes] : >yes speech-dispatcher(8158): Operation not permitted [Wed Jan 28 19:25:16 2009 : 157007] speechd: Speech Dispatcher 0.6.7 starting Testing Speech Dispatcher using spd_say Did you hear the message about Speech Dispatcher working? [yes] : >yes Speech Dispatcher is working Speech Dispatcher works. Do you want to skip other tests? [yes] : >yes Diagnostics results: Speech Dispatcher is working End of diagnostics results Speech Dispatcher port suggested by SPEECHD_PORT environment variable: 6561
- Nyní se přepněte na konzolu (CTRL+ALT+F1), napište své uživatelské jméno, stiskněte enter, napište své heslo a opět stiskněte enter.
- Zadejte následující příkaz
screen -S emacs
Nyní je třeba umlčet mluvící odečítač YASR, čehož docílíme stiskem ALT+ENTER.
- Spustíme Emacs
emacs
Přepneme se zpět do GNOME (ALT+F7)
Stiskneme ALT+F2 a napíšeme
xterm -e screen -x emacs
- Nyní máme na aktuální ploše okno xtermu, v němž je možno pracovat s Emacsem, momo to Orca v GNOME korektně pracuje.
POZNÁMKA: V takto spuštěném Emacsu je potřeba místo klávesy ALT (Meta) použít klávesu Escape. Tedy, chceme-li stisknout M-x, je třeba stisknout nejprve klávesu Escape a poté teprve stisknout x.