विकिपीडिया:Devanagari Help/Linux and FreeBSD

मुक्त ज्ञानकोश विकिपीडिया से
Jump to navigation Jump to search

If the problem remains unsolved even after following the undergiven solution(s) then please see Unicode Fonts

Linux[संपादित करें]

GNOME[संपादित करें]

Supports: Bengali, Devanagari, Gujarati, Gurmukhi, Kannada, Malayalam, Oriya, Tamil, Telugu, Tibetan

Viewing Indic text[संपादित करें]

You do not need to do anything to enable viewing of Indic text in GNOME 2.8 or later. Older versions may have support for some, but not all Indic scripts. Ensure you have appropriate Unicode fonts for each script you wish to view or edit.

Some web browsers may require you to enable Pango rendering to view Indic text properly.

  • For Epiphany, Pango rendering can be enabled in GConf. Press Alt+F2 to bring up the Run Application dialog, then enter gconf-editor and click Run. The Configuration Editor window will appear. In the left pane, unfold appsepiphany and click the web section. In the right pane, check the box next to the enable_pango option, then restart Epiphany.
  • Firefox 3 can render Indic text out-of-the-box. When using older versions of Mozilla or Firefox, you can enable Pango rendering by opening xterm and typing MOZ_ENABLE_PANGO=1 mozilla or MOZ_ENABLE_PANGO=1 firefox. After this, all future sessions of Mozilla or Firefox will have Indic language support.
    • This will work only on Firefox compiled with --enable-pango.
    • The easiest way to check whether --enable-pango was used in your copy of Firefox is to type about:buildconfig in the address bar and to look for the string (--enable-pango).
    • For Ubuntu 6.06, this support has been turned off due to speed issues. To enable support, you must type MOZ_DISABLE_PANGO=0 firefox. Future sessions do not remember this setting, so it must be repeated.
    • For Ubuntu 7.10, this support can be enabled just by installing the relevant language support packs. For instance, to support Tamizh display, the following is sufficient: sudo apt-get install language-pack-ta language-support-ta language-pack-gnome-ta ttf-tamil-fonts
    • For SUSE 10.1 you have to add the "MOZ_ENABLE_PANGO=1″ to your .profile to make the effect permanent.
      1. Go to your home directory, then edit the .profile file -it is a hidden file.
      2. Scroll down to the last line of the file and add: export MOZ_ENABLE_PANGO=1
      3. Save the .profile file. Restart for the effect to take place

Inputting Indic text[संपादित करें]

  • Go to System > Preferences > Keyboard.
  • Select the "Layouts" tab.
  • Press "Add", then select the keyboard for the language or script you wish to use from the "Available Layouts" frame and then press "Add".
  • Press "Close" to discard the dialogue box.
  • Right click on the main menu on your desktop and select "Add to Panel...".
  • Select "Keyboard Indicator" and click "Add".
  • Position the keyboard indicator on your menu bar and click it to switch between keyboard layouts.

Using SCIM

Another option is to use SCIM. To enable it,

  • Install Hindi font support, groupinstall hindi-support
  • Then enable SCIM, using System -> Personal -> Input Method from the menu, and use Hindi phonetic support.

For more check (on Fedora) http://www.ruturaj.net/fedora-6-hindi-support-scim on Fedora, or (on Debian/Ubuntu) http://dev.sampada.net/Baraha_like_Input_on_Linux

KDE[संपादित करें]

Supports: Bengali, Devanagari, Gujarati, Gurmukhi, Kannada, Malayalam, Oriya, Tamil, Telugu.

Viewing Indic text[संपादित करें]

You do not need to do anything to enable viewing of Indic text. Ensure you have appropriate Unicode fonts for each script you wish to view or edit.

Inputting Indic text[संपादित करें]

  • In the System Settings, go to Input Devices, Keyboard
  • In the tab Layout, enable Configure layouts
  • Click on Add Layout
  • Choose 'India' in Layout and the language you want in Variant
  • Click on OK
  • Now, you will have an icon for the Keyboard Layout in your system tray, in which you can choose the layout you want
  • Another alternative is User:Keymanweb/Keymanweb which provides a web-based keyboard that is integrated into Wikipedia with support for 300 languages, including most of the complex scripts listed on this page.

Distribution-specific advice[संपादित करें]

Debian (and derivatives like Ubuntu)[संपादित करें]

Supports: Bengali, Devanagari, Gujarati, Gurmukhi (including the variants for Punjabi), Kannada, Malayalam, Oriya, Tamil, Telugu, Tibetan.

Viewing Indic text[संपादित करें]

Enter as root:

apt-get install ttf-indic-fonts

and when the installation is complete restart the X server.

For Tibetan script:

apt-get install ttf-tmuni

For Mozilla and Firefox, see the comments above under "gnome". Rendering should work correctly "out of the box" as of Debian-4.0 (etch).

Inputting Indic text[संपादित करें]

SCIM supports text input in Indic languages including phonetic layout. SCIM should be working by default in recent distributions. More instructions on using and configuring SCIM can be found on help.ubuntu.com [1]

Fedora[संपादित करें]

Supports: Bengali, Devanagari, Gujarati, Gurmukhi (including the variants for Punjabi), Kannada, Malayalam, Oriya, Tamil, Telugu among others.

Installing Indic fonts[संपादित करें]

For example, to install Kannada fonts, Simply enter as root on the console and type in the command:

yum install fonts-kannada

This will download the Kannada fonts from the repositories and install it.

Similarly, for Hindi, say, enter as root on the console and type in the command:

yum install fonts-hindi
Keyboard support[संपादित करें]

Start the Add/Remove software applet. For example in KDE, say, navigate to System and then Add/Remove software. In the applet window, select Languages on the list box to your left hand side. In the right hand side list box, select the Indian languages of interest to you.

For example, to have Kannada key board support, check the box for Kannada Support. Similarly, for Hindi support, say, check the box for Hindi Support.

It has been observed that for Kannada, Fedora not only puts in Kannada keyboard support, but also provides transliteration support and also the keyboard support for KGP (Kannada Ganaka Parishad) keyboards. With this feature, users can directly type in Kannada words in Roman script to be transliterated to Kannada text in the application of your choice. For example into your browser, text editor, document editor, email client etc. Users can also use native Kannada keyboards, KGP based or otherwise to type in Kannada texts directly.

Arch Linux[संपादित करें]

Supports: Bengali (including the variants for Assamese), Gujarati, Gurmukhi (including variants for Punjabi), Devanagari (for Hindi and Sanskrit), Kannada, Malayalam, Marathi, Oriya, Tamil, Telugu.

To install Indic fonts:

pacman -S ttf-indic-otf

To enter Indic text in GNOME/KDE, follow the instructions in the respective sections above.

Gentoo[संपादित करें]

Supports: Assamese, Bengali, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Punjabi, Tamil, Telugu,

Installing Indic fonts[संपादित करें]
emerge lohit-fonts
Note: The lohit-fonts package was earlier named media-fonts/fonts-indic.

The mozilla-*-bin products shipped by gentoo are directly taken from mozilla's ftp servers and aren't built with pango support. Unless you notice a problem with this you need to build your own copy with the "moznopango" USE flag disabled: USE="-moznopango" (notice the minus sign, which in this case results in a double negation). Firefox 3 will be shipping with pango enabled by default.

Inputting Indic text[संपादित करें]
emerge -av scim-tables scim-m17n

Study the USE flags and the LINGUAS flags and set them accordingly depending on your desktop environment and language support needed. The following needs to be set whenever you login (append it to your .xinitrc or .xsession).

export XMODIFIERS=@im=SCIM    #case matters for this variable!
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim

Mozilla apps and precompiled software such as acroread might not play well with scim (C++). In such cases, make use of scim-bridge (C - avoiding C++ ABI issues) [2].

emerge scim-bridge

and startup firefox as:

% GTK_IM_MODULE=scim-bridge firefox

You might have to start the scim daemon manually. (Add it your session's startup)

scim -d

SCIM is a unified frontend for currently available input method libraries.

FreeBSD[संपादित करें]

Installing Indic fonts[संपादित करें]

cd /usr/ports/x11-fonts/fonts-indic && make install clean

The binary package of firefox (when you do pkg_add -r firefox) might give the same problems as in Gentoo's bin package (needs confirmation)

cd /usr/ports/x11-fonts/fonts-te && make install clean

The above port is for Telugu Pothana2000 Fonts.

Inputting Indic text[संपादित करें]

See Gentoo's section above.

NetBSD, DragonFlyBSD, pkgsrc[संपादित करें]

Similar to FreeBSD

cd /usr/pkgsrc/fonts/lohit-fonts && make install clean