Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: Displaying BMPString on Console using printf in C.



>>>>> "Sanjay" == Sanjay Agnani <s.agnani@example.com> writes:

    Sanjay> How can I display a BMPstring having Japanese characters

Start by getting Ken Lunde's "Chinese, Japanese, Korean, and
Vietnamese Information Processing."  This is a lot harder than
colorizing your ASCII displays.  You obviously need a background text.

BTW, what is a "BMPstring"?

    Sanjay> on Console using a C program (on RedHat Linux 5.2 Japanese
    Sanjay> version and on

Strictly speaking, you can't.  The Linux console supports neither
multibyte characters nor wide characters (except Unicode, I think in
UTF-8, and that doesn't handle Japanese at all, just switching code
pages).  You have to run a separate program, kon2, on the console.

kon2 requires a separate font package, konfonts, I suspect in an
idiosyncratic format.

It probably has some problems; in particular, last I used it I think
it was dependent on the application to handle input; it just passed
keystrokes to the application.  It may have security issues, since it
needs to access the hardware to bypass the Linux console.

I don't know what encodings kon2 can display.  You may need to output
in EUC-JP, or it may accept 7-bit JIS with escape sequences.  SJIS and 
UTF-8 were not supported last time I used kon2, for sure.

    Sanjay> Sun-Solaris 2.6 machine) ?

Can't help with that.

    Sanjay> Also what do I have to do to write the BMPString to a Text
    Sanjay> File using a C program (on RedHat Linux 5.2 Japanese
    Sanjay> version and on Sun-Solaris 2.6 machine) ?

Depends on what the text file is, and how you plan to use it later.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
-------------------------------------------------------------------
Next Nomikai: September 17 (Fri), 19:30 Tengu TokyoEkiMae 03-3275-3691
*** Linux 8th Birthday Anniversary! ***
Next Technical Meeting: October 9 (Sat), 13:00     place: Temple Univ.
*** Topics: 1) Linux i18n   2) Japanese TrueType fonts
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links