Easy setup for LyX Hebrew
There are many online guides on how to setup LyX for Hebrew support, but most of them require each user to do some work. I wrote this script for the CS computer farm – it can be run automatically at login (or manually by a user, if he chooses), and sets up LyX with Hebrew support.
(Note – this is for the QT Linux version of LyX)
#!/bin/bash PREF=$HOME/.lyx/preferences HEBBIND=$HOME/.lyx/hebrew.bind mkdir -p $HOME/.lyx/bind if [[ ! -f $PREF ]]; then touch $PREF; fi grep -q hebrew $PREF || cat >> $HOME/.lyx/preferences << EOF # Lyx preferences for Hebrew support \bind_file "hebrew" \kbmap true \kbmap_primary "null" \kbmap_secondary "hebrew" EOF if [[ ! -f $HEBBIND ]]; then cat > $HEBBIND << EOF \bind_file cua \bind "F12" "language hebrew" EOF fi echo LyX Hebrew support configured.
