உதவி:Indic Font Rendering

நூலகம் இல் இருந்து
Gopi (பேச்சு | பங்களிப்புகள்) பயனரால் செய்யப்பட்ட 19:27, 15 மே 2015 அன்றிருந்தவாரான திருத்தம் (Check for existing support)
(வேறுபாடு) ←முந்தைய தொகுப்பு | நடப்பிலுள்ள திருத்தம் (வேறுபாடு) | புதிய தொகுப்பு→ (வேறுபாடு)
தாவிச் செல்ல:வழிசெலுத்தல், தேடுக

Several pages on this Site use Indic scripts Such as Tamil (The Primary Language of this Site). Unicode is the encoding used here and it contains support for a number of Indic scripts. However, before Indic scripts can be viewed or edited, support for Complex Text Layout must be enabled on your operating system. Some older operating systems do not support complex text rendering and you should not use such systems to edit Indic scripts.

This page lists the methods for enabling complex text rendering based on the operating environment or browser you are using. Many of the methods highlighted can be used for non-Indic complex scripts such as Arabic.

It is recommended to use Arial Unicode MS for Displaying Tamil and Devanagari.

Check for existing support

The following table compares how a correctly enabled computer would render the following scripts with how your computer renders them:

Script Example of
rendering
Mac OS X
builtin support
Linux or BSD
builtin support
Windows
builtin support
Correct rendering Your computer OS
10.3
OS
10.4
OS
10.5
KDE
with
Qt
GNOME
with
Pango
9x/ME
or
NT
2000 XP
or
2003
XP
SP2
Vista
Devanagari Image:Examples of complex text rendering Devanagari.png क + ि → कि Yes Yes Yes Yes Yes no Yes Yes Yes Yes
Tamil Image:Examples of complex text rendering Tamil.png க + ே → கே no Yes Yes Yes Yes no Yes Yes Yes Yes
Tibetan Image:Examples of complex text rendering Tibetan.png ར + ྐ + ྱ → རྐྱ no no Yes no Yes no no no needs
font
Yes

-

If the rendering on your computer matches the rendering in the images for the scripts, then you have already enabled complex text support. You should be able to view text correctly in that script. However, this does not mean you will be able to edit text in that script. To edit such text you need to have the appropriate text entry software on your operating system.

Platform Independent support on Mozilla Firefox

With its improved text rendering engine, Firefox 3 can now properly display text in many languages, including Indic texts. Firefox 3 displays Indic text out-of-the-box. Be it on any operating system (except still, the Oriya, Sinhala and Tibetan scripts on Windows XP, even with the appropriate fonts, because the XP builtin version of Uniscribe has no support for these scripts, and Firefox still does not provide an alternative engine for these scripts with standard OpenType fonts; however these scripts may work on Vista's version of Uniscribe).

Indic IME, a plugin for Firefox 1.0+ can help you write in many indian languages in your webpages. It is easy to install and works on all platforms where Firefox or other Mozilla-based browsers are running.

The Indic IME toolbar project was started to address the need of typing in Indian Languages in Web Forms, Emails, Blog, Search Boxes etc.

Padma, a plugin for Firefox 1.0+ converts several Indic fonts to Unicode. This helps several popular Indian vernacular websites to render correctly, without the need for any additional font installation.

Windows 95, 98, ME and NT

These operating systems contain no inbuilt support for Indic scripts. Indic Scripts can only be seen properly in Internet Explorer. You also need to have a appropriate unicode font installed in your system for that script. It is suggested to install Internet Explorer 6.0 because it has better support for Indic scripts.

Mozilla Firefox does not support Indic scripts properly on these operating systems unless a modified version of the program is used, such as the one found here. This is due to a bug in Firefox [1], [2]. This bug is now removed in Firefox 3 Alpha. But Firefox 3 does not support Windows 98/ME.

No Unicode Keyboard Driver Engines (Like Indic IME, BarahaIME etc) are available for these older systems. One can either use online typing tools or offline text editors specially made for this purpose. A list of such tools is given here.

Windows 2000

Complex text support needs to be manually enabled.


Viewing Indic text

  • Go to Start > Settings > Control Panel > Regional Options > General [Tab].
  • In the "Language settings for this system" frame, check the box next to "Indic".
  • Copy the appropriate files from the Windows 2000 CD when prompted.
  • If prompted, reboot your computer once the files have been installed.

If you don't have the Windows CD or don't want to juggle with CD right now, you can simply download this zip file and extract its contents to a folder. When prompted for Windows CD, simply point to this folder using 'Browse' option of the prompt window.

Inputting Indic text

You must follow the steps above before you perform the remaining steps.

  • Select "Input Locale" [Tab].
  • Click the "Add" button in the "Installed input locales" frame.
  • Select the desired language in the "Input Locale" drop-down box on the "Add Input Locale" dialogue box.
  • Now select the appropriate keyboard you wish to use.
  • For the people who are not able to use the above InScript Keyboard, can use the Phonetic keyboards from Baraha. Baraha Direct included in Baraha Package supports both ANSI & Unicode while BarahaIME supports only Unicode.
  • For people who cannot download the above software, or for people on the move, dboard is an Indian language sandbox which provides an online virtual (visual) keyboard, you can use the following application, copy the text on the clipboard and then copy it back to the Wikipedia editing box.

Windows XP and Server 2003

Complex text support needs to be manually enabled.

Viewing Indic text

  1. Go to Start > Control Panel.
  2. If you are in "Category View" select the icon that says "Date, Time, Language and Regional Options" and then select "Regional and Language Options".
  3. If you are in Classic View select the icon that says "Regional and Language Options".
  4. Select the "Languages" tab and make sure you select the option saying "Install files for complex script and right-to-left languages (including Thai)". A confirmation message should now appear - press "OK" on this confirmation message.
  5. Allow the OS to install necessary files from the Windows XP CD and then reboot if prompted.

This is not sufficient to render Indic scripts in Firefox. You also need the latest version of Uniscribe|usp10.dll on your system and it may be necessary to install a Unicode OpenType font.

Inputting Indic text

Windows XP have inbuilt InScript Keyboards for nearly all Indian languages. You can add them via Control Panel. You must follow the steps above before you perform the remaining steps.

  • In the "Regional and Language Options", click the "Languages" tab.
  • Click on the "Details" tab.
  • Click the "Add" button to add a keyboard for your particular language.
  • In the drop-down box, select your required Indian language.
  • Make sure the check box labelled "Keyboard layout/IME" is selected and ensure you select an appropriate keyboard.
  • Now select "OK" to save changes.

You can use the combination ALT + SHIFT to switch between different keyboard layouts (e.g. from a UK Keyboard to Gurmukhi and vice-versa). If you want a language bar, you can select it by pressing the "Language Bar..." button on the "Text Services and Input Languages" dialog and then selecting "Show the language bar on my desktop". The language bar enables you to visually select the keyboard layout you are using.

  • For the people who are not able to use the above InScript Keyboard, there are some other Keyboard Drivers available. For Phonetic typing BarahaIME is suggested and for Remington typing IndicIME is suggested.

Baraha is Phonetic based software and includes nearly all of Indic languages. Baraha Direct included in Baraha Package supports both ANSI & Unicode while BarahaIME supports only Unicode.

  • Indic IME 1 (v5.0) is available from Microsoft Bhasha India. This supports Hindi Scripts, Gujarati, Kannada and Tamil. Indic IME 1 gives the user a choice between a number of keyboards including Phonetic, InScript and Remington.

If you do not have Windows CD, there is a modified version of the installer for Hindi named Hindi Toolkit which automatically installs Indic Support as well as Hindi Indic IME.

  • For people who cannot download the above software, or for people on the move, dboard is an Indian language sandbox which provides an online virtual (visual) keyboard, you can use the following application, copy the text on the clipboard and then copy it back to the Wikipedia editing box.
  • MyMyanmar Projects provide MyMyanmar Unicode System to input Myanmar(Burmese) text.<ref>My Myanmar Unicode System. The Second Generation</ref>

Windows Vista

Complex text support is automatically enabled.

Viewing Indic text

You do not need to do anything to enable viewing of Indic text.

Inputting Indic text

Windows Vista, like Windows XP, has inbuilt InScript Keyboards for nearly all Indian languages. You can add them via the Control Panel.

  1. Go to Start > Control Panel
  2. If you are in normal view, select Change keyboards or other input methods from under Clock, Language and Region.
  3. If you are in Classic view, select Regional and Language Options.
  4. Select the Keyboards and Languages tab if it is not already selected.
  5. Select the Change keyboards... button.
  6. Choose you desired language(s) from the list and expand them using the '+' sign. Then, expand the item which says Keyboard and tick your preferred keyboard layout(s).
  7. Select OK, and OK again to save the changes.

The hot key combination for switching between languages is Left Alt+Shift.

For Phonetic typing BarahaIME is suggested and for Remington typing IndicIME is suggested.

Mac OS 9 and earlier

The Indian Language Kit, available from Apple at additional cost,[3] provides support for Devanagari, Gujarati and Gurmukhi. No third-party Unicode solutions are known, though numerous custom-encoded fonts exist.

Mac OS X

  • Mac OS 10.3 and earlier support Devanagari
  • Mac OS 10.4 adds support for Tamil script
  • Mac OS 10.5 adds support for Tibetan script

Viewing Indic text

You do not need to do anything to enable viewing of Indic text as long as you use Safari or most other Cocoa applications, which fully support rearrangement and substitution for Apple Advanced Typography fonts. Firefox (web browser)|Firefox after 2.0 renders Indic text (except Oriya, Sinhala and Tibetan), although older versions do not replace प+ि with ि+प. (From version 3.0 on, text is rendered in the correct order) (You will need a unicode script selected that supports Indic script, like Code 2000). Opera (Internet suite)|Opera also provides some support, although considerable bugs remain as of version 9.2 (though Opera at least renders the glyphs).

Carbon applications such as Microsoft Word and Adobe Photoshop do not generally support Indic script.

Inputting Indic text

Specific keyboard layouts can be enabled in System Preferences, in the International pane. Switching among enabled keyboard layouts is done through the input menu in the upper right corner of the screen. The input menu appears as an icon indicating the current input method or keyboard layout — often a flag identified with the country, language, or script. Specific instructions are available from the "Help" menu (search for "Writing text in other languages").

Mac OS 10.4 system software comes with two installable Keyboard input options for Tamil: Murasu Anjal and Tamilnet 99. One needs to do the following steps to activate them:

i) Open "international" located within System Preferences and select "language". Select the "edit list", select "Tamil" from the list of languages shown and click OK.

ii) Select "input menu" to see a list of keyboard options available. Select "Anjal" and "Tamilnet99" keyboards under Murasu Anjal Tamil and Click OK.

iii) Anjal and Tamilnet99 keyboard icons appear immediately in the list of keyboards to select under the country flag in the top menu bar.

An alternate way to activate the keyboard(s) for Devanagari (Hindi etc.):

i) Open "International" located within System Preferences and select the "Input Menu" tab. (ii) Check the option for "Devanagari" and/or "Devanagari - QWERTY". (iii) Check the "Show input menu in menu bar" option at the bottom of the "International" panel. Close the panel, and the new keyboard(s) should be available for selection when you click on the menu bar icon (upper right corner).

SIL distributes a freeware Ukelele that allows anyone to design their own input keyboard for Mac OS X.

Linux

GNOME

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 (web browser)|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 Mozilla Firefox|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 Mozilla Firefox|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

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 Control Center, go to Regional & Accessibility, Keyboard Layout
  • In the tab Layout, click on Enable keyboard layouts
  • Choose the layout you want in Available layouts
  • Click on Apply
  • Now, you will have an icon for the KDE Keyboard Tool in your panel, in which you can choose the layout you want

Distribution-specific advice

Debian (and derivatives like Ubuntu)

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 [4]

Fedora

Installing Indic fonts

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

yum install fonts-tamil

This will download the Tamil 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

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" Portage (software)#USE flags|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) [5].

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

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

Installing Indic fonts

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

The binary package of firefox (when you do pkd_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.

Unicode OpenType fonts

This section lists OpenType fonts, supported by Microsoft Windows and most Linux distributions. For AAT fonts (required for the Apple Macintosh), see the Mac OS X section above.

If you have followed the instructions for your computer system as mentioned above and you still cannot view Indic text properly, you may need to install a Unicode font:

The governmental Department of Information Technology (India) has provided Unicode Indic fonts for four of the Indic scripts used in India (several versions for Devanagari, one version for each of Kannada, Malayalam and Tamil).

WAZU JAPAN's Gallery of Unicode Fonts is an excellent resource for all Indic scripts.

References

<References />

External links

"https://noolaham.org/wiki/index.php?title=உதவி:Indic_Font_Rendering&oldid=134919" இருந்து மீள்விக்கப்பட்டது