Bug 53832 - Word wrap in message field
Summary: Word wrap in message field
Status: RESOLVED FIXED
Alias: None
Product: kbabel
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Stanislav Visnovsky
URL:
Keywords:
: 55067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-01 15:57 UTC by Gaute Hvoslef Kvalnes
Modified: 2004-02-29 11:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
virtual word wrap for Kbabel 3.1.2. (14.47 KB, patch)
2003-06-20 18:50 UTC, elonen
Details
virtual word wrap for Kbabel CVS HEAD 2003-06-22 (14.28 KB, patch)
2003-06-22 12:10 UTC, elonen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaute Hvoslef Kvalnes 2003-02-01 15:57:06 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Debian testing/unstable Packages

When writing long texts, I want the text to be wrapped within the msgstr field. Linebreaks within the text does not alter the output text, it's just convenient.
Comment 1 Stanislav Visnovsky 2003-02-01 16:00:55 UTC
Subject: Re:  New: Word wrap in message field         

On 1 Feb 2003, Gaute Hvoslef Kvalnes wrote:

> When writing long texts, I want the text to be wrapped within the msgstr
> field. Linebreaks within the text does not alter the output text, it's
> just convenient.

Would it be OK to use hard wrapping (inserting end of lines at a given
column/end of current width)? Soft wrap (visual wrapping only) is a real
problem for the current implementation.

Stanislav

Comment 2 Gaute Hvoslef Kvalnes 2003-02-01 16:19:41 UTC
Yes, hard wrapping would be OK, but my fellow translators says soft wrapping would be even better. (Could KBabel use katepart?)

Greetings from the Norwegian translator gathering in Oslo. Expect more bugs/wishes to follow ;-)
Comment 3 Stanislav Visnovsky 2003-03-24 19:10:16 UTC
*** Bug 55067 has been marked as a duplicate of this bug. ***
Comment 4 elonen 2003-06-20 18:50:07 UTC
Created attachment 1855 [details]
virtual word wrap for Kbabel 3.1.2.

This patch implements this feature to version 3.1.2. and replaces uses of QT's
private QTextParagraph class with calls to the public API.

The patch currently *forces* wrap on but it would probably be a good idea to
make it optional. It's not a big deal but I just didn't feel like tweaking the
GUI right after fighting with the character bounding box issue for hours..
Making a menu option to change parameter for setWordWrap() should suffice.
Comment 5 elonen 2003-06-22 12:10:18 UTC
Created attachment 1865 [details]
virtual word wrap for Kbabel CVS HEAD 2003-06-22

Attached the same patch for CVS HEAD (3.1.2 version of the patch merged with
HEAD and manually cleaned up. Applies correctly and looks OK, but I haven't
been able to compile because I'm have kdelibs 3.1.2, not the CVS version.)
Comment 6 Stanislav Visnovsky 2003-06-23 16:36:32 UTC
Subject: kdesdk/kbabel/kbabel

CVS commit by nanulo: 

Applied patch for bug #53832 (allow wordwrap) by elonen at iki fi 

CCMAIL: 53832@bugs.kde.org


  M +199 -153  mymultilineedit.cpp   1.101



Comment 7 Stanislav Visnovsky 2003-06-23 16:37:38 UTC
BTW, HEAD should compile with kdelibs 3.1.x. I'd like to do a bit of testing
and then apply to BRANCH as well.
Comment 8 Stanislav Visnovsky 2003-09-17 15:20:02 UTC
HEAD will become 3.2 soon.
Comment 9 Nick Shaforostoff 2004-02-29 11:54:15 UTC
can you make also such thing (optional):
delete all line breaks (#13) during ctrl+Space (i.e. filter text during copying from msgid to msgstr)?