Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Chinese characters in Vi editor Post 302104826 by chrisanto_2000 on Sunday 28th of January 2007 09:42:39 PM
Old 01-28-2007
Could one of you confirm if this is possible in vi or not? If not I need to check for alternate option to view the Chinese characters from the linux box.
 

10 More Discussions You Might Find Interesting

1. Solaris

Chinese characters on Sol 2.7

Hi there, I need to get a Chinese disclaimer attached to an email on a Solaris 2.7 box. The disclaimer we use is in English and stored as a text file although I've been asked to see if we can add the Chinsese one? Is it simply just a matter of adding the Chinese locale to the OS or is there... (1 Reply)
Discussion started by: Hayez
1 Replies

2. UNIX for Dummies Questions & Answers

chinese problem

if i am using Sun or HP UNIX , can they support chinese character? what should be done to make it possible ? jackchan (0 Replies)
Discussion started by: jack_ty_chan
0 Replies

3. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

4. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

5. Shell Programming and Scripting

How to insert greek characters in to vi editor

Hi, I want to test a unix file by inserting greek characters in to vi editor. Can anyone please suggest how to insert greek characters in to vi editor. (2 Replies)
Discussion started by: DSDexter
2 Replies

6. Solaris

Chinese / Global characters problem

Hello, I have large xml files with chinese characters on a windows box and they need to be FTP'd to UNIX box. When I ftp the file, the chinese text converts to junk characters. I tried changing my setting on putty to UTF-8, but still cannot view the correct text. Is there something I need to... (4 Replies)
Discussion started by: tokool420
4 Replies

7. Shell Programming and Scripting

Remove lines with non-chinese characters from xml file

Hi there, I'm looking for a way to remove all lines that don't contain chinese characters from an xml file. Example: http://pastebin.com/8KzSbCKe The result should be like this: http://pastebin.com/ZywXsNhx Only lines that don't contain chinese characters should be deleted. If theres a mix of... (3 Replies)
Discussion started by: g4rb4g3
3 Replies

8. Shell Programming and Scripting

Limit on Number of characters in a line - Vi editor

In the vi editor, there seems to be some limit on the number of characters could be allowed in single line. I tried a line with characters up to 1880. It worked. But when i tried with something of 5000 characters, it doesnt work. Any suggestions. Thanks in advance! (2 Replies)
Discussion started by: nram_krishna@ya
2 Replies

9. Red Hat

How to display Chinese and Japanese Characters on Rhel 6?

Hello, I'm trying to figure out how to display Chinese and Japanese Characters on my RHEL 6 Console. There is no more "bogl-bterm" for RHEL6, that is not supported anymore. Is there any way that I could display them? Thank you. (2 Replies)
Discussion started by: pjeedu2247
2 Replies

10. SuSE

Display Chinese and Japanese characters on my SLES console.

Hello, I'm trying to figure out how to display Chinese and Japanese Characters on my SLES 11 Console. Is there any way that I could display those characters on my console? Thank you. (3 Replies)
Discussion started by: pjeedu2247
3 Replies
Chinese(5)							File Formats Manual							Chinese(5)

NAME
Chinese, chinese - Introduction to Chinese language support DESCRIPTION
There are two kinds of written Chinese characters, Traditional Chinese and Simplified Chinese. The former is widely used in Hong Kong (HK) and Taiwan, while the latter is more widely used in the People's Republic of China (PRC) and Singapore. Codesets There are several coded character sets (codesets) available to support each of the two written Chinese languages. For each Chinese lan- guage, the following list notes the supported codesets and the strings that represent those codesets in the names of locales, converters, and other kinds of system files: Codesets for Traditional Chinese: For more information, see dechanyu(5). For more information, see eucTW(5). For more information, see big5(5). For more information, see sbig5(5). The Shift Big-5 codeset is supported for codeset conversion only; it is not used in locales or for both input and output operations. For more information, see telecode(5). The Telecode codeset is supported for codeset conversion only; it is not used in locales or for both input and output operations. The cp950 encoding format is identical to big5. For more information, see code_page(5). For more information, see Unicode(5). Codesets for Simplified Chinese: For more information, see dechanzi(5). For more information, see GBK(5). The cp936 encoding for- mat is identical to dechanzi except that the code page supports additional characters. For more information, see code_page(5). For more information, see Unicode(5). Locales The following list groups supported locales according to language, country or territory, and codeset. Each locale supports one collation sequence, which is specified following the locale name. For Traditional Chinese, Taiwan: Collation using internal code order Collation by radical Collation by stroke Chuyin (phonetic) collation Collation using internal code order Collation by radical Collation by stroke Chuyin (phonetic) collation Collation using internal code order Collation by radical Collation by stroke Chuyin (phonetic) collation Collation is the same as for zh_TW.dechanyu For Traditional Chinese, Hong Kong: Collation using internal code order Collation using internal code order Collation using internal code order Collation is the same as for zh_HK.dechanyu For Simplified Chinese, Hong Kong: Collation using internal code order For Simplified Chinese, PRC: Collation using internal code order Collation by radical Collation by stroke Pinyin (Phonetic) col- lation Collation using internal code order (however, all characters in the GB 2312 character set are ordered first, followed by the charac- ters in the GBK extension.) Collation is the same as for zh_CN.GBK The asort(1) reference page contains more information on the collation sequences used for Asian languages. You can use the locale command (see locale(1)) to display the names of locales installed on your system. See i18n_intro(5) for information on setting locale from the operating system command line. For the Common Desktop environment (CDE), you also need to set your session language to an appropriate value by using the Language menu, which you access by clicking on the Options button of the Login window. Keyboards, Input Servers, and Input Methods The operating system supports the following Chinese keyboards: For Traditional Chinese: LK201-D LK401-D For Simplified Chinese: LK201-C LK401-C See the keyboard(5) reference page for information about loading keyboard mapping tables (keymaps) for keyboards. To support Chinese input in a Motif application environment such as CDE, the operating system provides the following input servers: For Traditional Chinese: See dxhanyuim(1X) for more information. For Simplified Chinese: See dxhanziim(1X) for more information. The appropriate input server is started automatically for a CDE session based on the locale setting chosen through the login window. See the appropriate input server reference page for information about starting an input server from the command line. The operating system supports the following Chinese input methods, listed by name under the written language with which the methods are used. Next to the name is the function key used to switch to that input method when the window for the input server is active. For Tradi- tional Chinese: (These input methods are enabled when the dxhanyuim server is running.) Internal code, F8 Phonetic, F10 Phrase, F9 Quick Tsang-Chi, F7 Symbol Tsang-Chi, F6 Note that there are no locales to support the Shift Big-5 and Telecode character sets, so these characters cannot be input directly. For Simplified Chinese: (These input methods are enabled when the dxhanziim server is running.) 5-stroke, F6 5-Shape, F10 Pin-Yin, or Phonetic, F8 Qu-Wei or Row-Column in GB2312-80, F7 Telex Code, F9 Phrase Input, F5 Intelligent ABC, F4 Of these input methods, the Intelligent ABC input method is the most recent implementation. It is also the input method used on PCs running Microsoft Windows. For the following terminals or keyboard settings, you can toggle between the English input mode and Chinese input mode by using a particu- lar key or key sequence: For either Traditional Chinese on a VT382-D terminal keyboard or Simplified Chinese on a VT382-C terminal key- board, press Compose. In CDE when LK201 is the keyboard setting, hold down the Compose key while pressing the Space bar (Compose+Space). In CDE when LK401 is the keyboard setting, use either Compose+Space or Shift+Space. In CDE for PC-style keyboard settings, use Shift+Space (for Hanzi) or Alt+Space (for Hanyu) The preceding key sequences are defaults. You can override them by setting other keys to perform the same function. Chinese Terminals The operating system supports the VT382-D and the VT382-C terminals for Traditional Chinese and Simplified Chinese, respectively. Running X and Motif Applications X or Motif applications require non-ASCII fonts to display Chinese characters. Therefore, the font path must be set appropriately before starting an application that displays Chinese characters. An application can find Chinese fonts for codesets other than GBK in either of the following directories: /usr/i18n/lib/X11/fonts/decwin/75dpi, for low resolution display /usr/i18n/lib/X11/fonts/decwin/100dpi, for high resolution display Chinese fonts for the GBK codeset are installed in /usr/i18n/lib/X11/fonts/SChineseTT. For applications running under CDE, you should not need to enter manual commands to ensure that the appropriate fonts are found as long as those fonts are installed on the system or available through a font server. For other applications, you can use the following command to check the font path: % xset q If one of the directories in the preceding list is not in the font path, the following example shows how to add the directory. You can sub- stitute 100dp for 75dpi if you want high resolution display. % xset +fp /usr/i18n/lib/X11/decwin/75dpi/ % xset fp rehash Printers The operating system supports the following Chinese printers, grouped by language. The associated print filter is noted in parentheses fol- lowing the printer name. For Traditional Chinese: The CP382-D is a Chinese dot matrix printer. The operating system also supports text printers that have built-in Traditional Chinese fonts and text printers to which Traditional Chinese fonts can be downloaded. For Simpli- fied Chinese: The LA88-C is a Chinese dot matrix printer. The LA380-CB is a Chinese graphic line printer. In addition, the pcfof and wwpsof generic print filters are available for use with many other printers to support Chinese printing. For more information on setting up and configuring printers, refer to i18n_printing(5) and lprsetup(8). SEE ALSO
Commands: asort(1), locale(1), lp(1), lpr(1), dxhanyuim(1X), dxhanziim(1X), xset(1X), lpd(8), lprsetup(8) Files: printcap(4) Others: big5(5), code_page(5), dechanyu(5), dechanzi(5), eucTW(5), GBK(5), i18n_intro(5), i18n_printing(5), iconv_intro(5), keyboard(5), l10n_intro(5), sbig5(5), telecode(5), Unicode(5) Writing Software for the International Market Chinese(5)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy