How does IDLE do it?

Discussion in 'Python' started by Richard D. Moores, Feb 11, 2011.

  1. I recently wrote some code that prints information about the 'jukugo'
    used in Japanese newspaper articles. A jukugo is a Japanese word
    written with at least 2 kanji. An example of a 2-kanji jukugo is å±æ©Ÿ
    (kiki -- crisis). I found that I could not use my usual IDE to render
    the Japanese correctly in either the code or the output. But IDLE
    (version 3.1.2; Windows Vista) does a beautiful job! See screen shots
    <http://www.rcblue.com/Misc/Japanese_in_code_with_Courier_New_in_IDLE.jpg>
    and
    <http://www.rcblue.com/Misc/Japanese_output_with_Courier_New_in_IDLE.jpg>.
    (The whole script plus output is at
    <http://tutoree7.pastebin.com/xLsRfTSQ>.)

    I'd like to know how the IDLE developers did this. How can IDLE not
    have a problem with Japanese using Courier New, Calibri, even Fences
    or Windings! (For Wingdings, see
    <http://www.rcblue.com/Misc/Japanese_and_Wingdings.jpg>.)

    Thanks,

    Dick Moores
     
    Richard D. Moores, Feb 11, 2011
    #1
    1. Advertising

  2. Richard D. Moores

    Eric Brunel Guest

    In article <>,
    "Richard D. Moores" <> wrote:

    > I recently wrote some code that prints information about the 'jukugo'
    > used in Japanese newspaper articles. A jukugo is a Japanese word
    > written with at least 2 kanji. An example of a 2-kanji jukugo is å±æ©Ÿ
    > (kiki -- crisis). I found that I could not use my usual IDE to render
    > the Japanese correctly in either the code or the output. But IDLE
    > (version 3.1.2; Windows Vista) does a beautiful job! See screen shots
    > <http://www.rcblue.com/Misc/Japanese_in_code_with_Courier_New_in_IDLE.jpg>
    > and
    > <http://www.rcblue.com/Misc/Japanese_output_with_Courier_New_in_IDLE.jpg>.
    > (The whole script plus output is at
    > <http://tutoree7.pastebin.com/xLsRfTSQ>.)
    >
    > I'd like to know how the IDLE developers did this. How can IDLE not
    > have a problem with Japanese using Courier New, Calibri, even Fences
    > or Windings! (For Wingdings, see
    > <http://www.rcblue.com/Misc/Japanese_and_Wingdings.jpg>.)


    IDLE doesn't do anything, tk does. When a character is not available in a given font,
    tk looks up for one containing it by itself and uses it automatically.

    > Thanks,
    >
    > Dick Moores
     
    Eric Brunel, Feb 16, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ollie
    Replies:
    0
    Views:
    381
    Ollie
    Oct 2, 2003
  2. George Carman

    IDLE does not start on WinXP

    George Carman, Aug 28, 2004, in forum: Python
    Replies:
    1
    Views:
    427
    Russell Blau
    Aug 30, 2004
  3. Snake

    IDLE does not start on WinXP

    Snake, Aug 28, 2004, in forum: Python
    Replies:
    0
    Views:
    299
    Snake
    Aug 28, 2004
  4. Bill Davy
    Replies:
    0
    Views:
    711
    Bill Davy
    May 12, 2005
  5. Replies:
    3
    Views:
    544
    Terry Reedy
    Mar 22, 2014
Loading...

Share This Page