This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE: Input method error in comment with Korean language
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: DelTos, louielu, terry.reedy
Priority: normal Keywords:

Created on 2017-07-10 06:33 by DelTos, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
comments_error.png DelTos, 2017-07-10 06:33
main.py DelTos, 2017-07-11 02:35
comparison.png DelTos, 2017-07-11 03:21
Messages (10)
msg298028 - (view) Author: (DelTos) Date: 2017-07-10 06:33
Like the attached image file, there is a little error in comments.
If I write the comments with Korean, the last character is printed small and color is not applied.
It can be fixed with pressing space bar once, but I hope it is solved in the editor.
msg298101 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-11 02:25
Did you actually test on 3.7?  If you did, and got different results, then this is not an IDLE issue, as it is unchanged in 3.7.

This might be a tcl/tk issue rather than IDLE issue.
msg298102 - (view) Author: (DelTos) Date: 2017-07-11 02:27
It was my mistake. I tested it on IDLE 3.6.
msg298103 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-11 02:31
I can seen that the last char is not colored correctly, but not that it is small.  The white pixels seems to comprise a character that is about as big as the others.  But I don't know Hangul chars.

What version of Tk (see Help => About IDLE), and what OS?

Please upload your main.py so I can load it into my IDLE on Win10.
msg298105 - (view) Author: (DelTos) Date: 2017-07-11 02:35
I attched simple main.py file.
TK version is 8.6.6 and OS is Windows 10.
msg298106 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-11 03:07
File loads normally for me. What happens when you load it as is?

If you need to type something, can you produce effect with entering numbers with keypad, without using any special Korean entry method that I would not have?  If so, give exact directions and since we both have win10, I will try.
msg298107 - (view) Author: Louie Lu (louielu) * Date: 2017-07-11 03:20
I'm using Arch Linux with HIME input method, and using 3.7a0 Python. But I can't reproduce your problem in Korean input.

Could you provide how to type in the sentence in your picture? (Roman or the stroke maybe) and your environment?

thanks.
msg298108 - (view) Author: (DelTos) Date: 2017-07-11 03:21
It doesn't occur when I'm typing comments with numbers or English. It only occurs in Korean comments.
Plus, I changed the font and another problem has occured. The letters are printed in vertically.(Attached file) It seems there is a problem only in the Korean language.
I gave up typing comments with Korean and changed it into English.
msg298109 - (view) Author: (DelTos) Date: 2017-07-11 03:23
Or it may be a problem that only happens on my PC.
msg298189 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2017-07-11 23:25
I am thinking that this is a artifact of the combination of monitor pixel and subpixel type, size, and arrangement; font type and size; particular character; and character generation software. When I load the file in IDLE, the Korean comment chars are a nice uniform red.  But the l in color is tinged green while in 'for x in range', the vertical parts of first r, i, and n are gray instead of keyword orange.  Range is spotty because builtin purple uses red and blue subpixels while green is off.

The spacebar bit through me off and still puzzles me, but overall color glitches are not limited to Korean.

Bottom line: IDLE can tell tk 'color this substring red', but has no control after that as to what happens.  So I am 99.9% sure this is not an IDLE bug.
History
Date User Action Args
2022-04-11 14:58:48adminsetgithub: 75073
2017-07-11 23:25:15terry.reedysetstatus: open -> closed
resolution: not a bug
messages: + msg298189

stage: resolved
2017-07-11 03:23:15DelTossetmessages: + msg298109
2017-07-11 03:21:54DelTossetfiles: + comparison.png

messages: + msg298108
2017-07-11 03:21:43louielusettitle: Comment error in Korean language -> IDLE: Input method error in comment with Korean language
2017-07-11 03:20:53louielusettype: crash -> behavior
2017-07-11 03:20:38louielusetnosy: + louielu
messages: + msg298107
2017-07-11 03:07:33terry.reedysetmessages: + msg298106
2017-07-11 02:35:23DelTossetfiles: + main.py

messages: + msg298105
2017-07-11 02:31:54terry.reedysetmessages: + msg298103
2017-07-11 02:27:33DelTossetmessages: + msg298102
2017-07-11 02:25:27terry.reedysetmessages: + msg298101
2017-07-10 15:12:21DelTossetversions: + Python 3.6, - Python 3.7
2017-07-10 06:33:39DelToscreate