Greek-polytonic
From Salix OS
Contents |
Writing greek polytonic and ancient spell checking on openoffice and openbox.
1. Open with geany the file ~/.config/openbox/rc.xml
e.g. geany ~/.config/openbox/rc.xml
go to line 294 last row with /keybind and add the lines bellow
<keybind key="C-1"> <action name="Execute"> <command>sh ~/.polytonic</command> <startupnotify> <enabled>yes</enabled> <name>Polytonic/Monotonic</name> </startupnotify> </action> </keybind>
2. Save the file
3. Create the file typing
geany ~/.polytonic and paste the lines
#!/bin/sh # Dimitris Tzemos <djemos@slackel.gr> # Αρχείο για αλλαγή μονοτονικού πολυτονικού πληκτρολογίου # για συγγραφή αρχαίων κειμένων # File to change from greek monotonic to greek polytonic keyboard # to type ancient greek documents. # check=$(setxkbmap -print | grep 'extended') if [ -z "$check" ];then setxkbmap us,el -variant ,extended zenity --info --timeout 1 --text 'Μονοτονικό πληκτρολόγιο ενεργό' 1 else setxkbmap us,el -variant ,polytonic zenity --info --timeout 1 --text 'Πολυτονικό πληκτρολόγιο ενεργό' 1 fi if [ -r /etc/X11/Xmodmap ];then xmodmap /etc/X11/Xmodmap;fi if [ -r "$HOME"/.Xmodmap ];then xmodmap "$HOME"/.Xmodmap;fi
4. Save the file.
5. Messages
Μονοτονικό πληκτρολόγιο ενεργό = Monotonic keyboard active Πολυτονικό πληκτρολόγιο ενεργό = Polytonic keyboard active you can change greek messages with english ones above if you like.
Now every time you press Ctrl+1 change between monotonic to polytonic and polytonic to monotonic
6. Libreoffice
For greek spelling modern and/or ancient greek download these files and install them from libreoffice tools-> extensions
modern greek http://sourceforge.net/projects/aoo-extensions/files/1411/2/el_gr_v110.oxt/download
ancient greek http://sourceforge.net/projects/aoo-extensions/files/2313/1/grc.oxt/download
Thats it!!! Now can write greek modern or polytonic in libreoffice and also have spell checking.
To write greek polytonic press alt-shift to change keyboard and then press ctrl+1 to go to polytonic.