Archive for category Tech

Bash Vi command line editing

Useful howto on bash Vi command line editing HERE.

Highlights:
>set -o vi

sets vi cmd line editing mode

It drops you into insert mode. Hitting Esc will get you into command mode like usual. Many vi editing commands work. Search (/foo) does not search the current command line. Instead it searches your bash history. Hitting ‘n’ after a search finds the next match as usual. The substitute cmd (s/foo/bar) does not work.

Hitting ‘v’ when in command mode opens up vi with your command line. Now you are in regular vi – the usual editing works. Once done editing ‘:wq’ will quit vi and execute the command.

Tags: , , ,

NoMachine NX cursor woes on Mac

Mac OS X (Intel) has a problem when using NX client (and possibly vnc, I haven’t checked). The mouse cursor turns yellow and is impossible to see on white background xterms.

Fortunately there is a fix:
http://www.nomachine.com/tr/view_notes.php?commid=110&id=TR07D01424
http://lists.apple.com/archives/x11-users/2006/Mar/msg00061.html

Tamil and Devanagari Fonts in Mac OS X

Macintosh provides unicode fonts and keyboards for many Indian Languages since the introduction of Tiger. The language support is built into the operating system itself. The indian languages Tamil, Sanskrit, Hindi, Marati, Bengali etc. are supported. Textedit, Keynote, Pages, Mail, Filemaker pro and many other software support these unicode fonts. It is possible now to send email in tamil or hindi or sanskrit using the email clients Mail and Entourage. Thunderbid also supports this scheme.

The operating system comes with a Tamil unicode font Inaimathi and supports two keyboard options, namely Anjal (almost phonetic) and Tamil99.
To activate the support for Tamil Language,follow the following procedures.

Step 1. Open System Preferences

Step2. Click the International Option in personal section

Step 3 Click on edit List under Languages Menu

Step 4: Tick the desired language and click ok to go back to International menu

Step 5

Click on Input Menu and choose the Anjal and Tamil99 input Method

Step 6. Close sytem Preference menu.

To use the Tamil keyboard and font in textedit first open the text edit application and then click on the american flag icon on the upper right corner in the menu bar and choose Anjal from the drop down Menu. (optionally the keyboard also can be chosen to get a virtual keyboard.

The American flag will turn into

Now start typing the following key sequence

agara muthala ezuthellAm aathi pagavan muthtrRE ulagu

this will appear on the textedit
அகர முதல எழுத்தெல்லாம் ஆதி பகவன் முதற்றே உலகு (the font is Inaimathi a unicode font).

To switch back to english click at the same anjal symbol (on top right corner) and select US. Thus by clicking on the US symbol one can type in various languages in the same document

Devanagari-qwerty can be chosen in the same manner to type in sanskrit. The Devanagari keyboard layout is as under (pdf here):

Tags: , , , , ,