Bug 106855 - Chinese words are not separated by whitespaces
Summary: Chinese words are not separated by whitespaces
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2005-06-05 20:20 UTC by Godspeed
Modified: 2018-10-27 02:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Godspeed 2005-06-05 20:20:48 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
OS:                Linux

Sofar the autowrap function in kate is based on whitespaces, but "words being separated by spaces" is only the feature in western languages! In most asian languages like Chinese and Japanese, every single character is a word by meaning! So the autowrap function is annoying in many situations especially when paragraghs are mixed with Western and Non-Western characters!

In one word, I think this function shall work according to the language being used.
Comment 1 Hamish Rodda 2005-06-06 07:43:48 UTC
Pretty much definitely will be fixed for KDE 4.  Hopefully the Qt stuff will detect which line ending mechanism to use, if not we'll probably hardcode locale or encoding to the mechanism or make it user selectable.
Comment 2 Godspeed 2005-06-06 22:08:52 UTC
Thank you for all your efforts! I just hope the K Software bundle more welcome all over the world! :)
Comment 3 younker 2005-06-18 03:48:31 UTC
but in current version, kedit's autowrap function is right, so, I think we can change the source codes to correct this problem. 


but I don't know where the code is that managed the autowrap words.

Could someone give me some tips.
Comment 4 Hamish Rodda 2005-06-18 03:59:36 UTC
I did post this to kde-core-devel initially...

In kdelibs/kate/part/katerenderer.cpp:

uint KateRenderer::textWidth(const KateTextLine::Ptr &textLine, uint startcol, 
uint maxwidth, bool *needWrap, int *endX)

This function calculates the length of the line which fits within maxwidth - 
feel free to adjust it, and post a patch to kwrite-devel@kde.org.
Comment 5 Dominik Haumann 2010-02-19 15:31:17 UTC
Is that still an issue in KDE4? Please someone with chinese encoding test this.
Comment 6 Dominik Haumann 2011-08-12 13:07:30 UTC
No feedback for 5 years...
Comment 7 Andrew Crouthamel 2018-09-22 01:53:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-27 02:13:15 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!