how to cotinuous display and no word wrap

General TRichView support forum. Please post your questions here
Post Reply
wangfeie
Posts: 2
Joined: Mon Aug 12, 2013 2:44 pm

how to cotinuous display and no word wrap

Post by wangfeie »

When editing in the editor with the chinese, It will word wrap and no continuous display . how to cotinuous display and no word wrap?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can assign RVStyle.LineWrapMode=rvWrapAnywhere, but it affects all text.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:You can assign RVStyle.LineWrapMode=rvWrapAnywhere, but it affects all text.

[Chinese]
When I Set RVStyle.LineWrapMode=rvWrapAnywhere.
Then Punctuation marks will be in the first place and On the right is not aligned with the space¡£
In Word will be aligned £¬There is no space, word spacing adjustment
http://d.pcs.baidu.com/thumbnail/de81fb ... uality=100
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, "wrap anywhere" option is not recommended for real languages, it was designed for using in something like emulation of LED displays.

Sorry, I cannot see your link, it displays 403 error.

But may be I do not understand your question.
If you want to disable wrapping for this paragraph at all (display it as a single line), us a paragraph style with rvpaoNoWrap included in Options property. In RichViewActions, there is a "Word Wrap" command to disable/enable wrapping.

If you use Unicode to display Chinese text, TRichView must wrap Chinese text correctly - it implements line breaking algorithm following by the Unicode.org recommendations. Text is in Unicode by default in Delphi 2009 or newer.
If you do not use Unicode... Then you should have many problems in TRichView, because it does not support DBCS completely.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:Yes, "wrap anywhere" option is not recommended for real languages, it was designed for using in something like emulation of LED displays.
....
I don't Want to display it as a single line.

With Chinese When the Last Is punctuation , The Line is automatic branch.

But the top row of the right margin is not aligned¡£

Sorry The Image is bad.I will Send Email To You with a DEMO Again.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I received your email.
As I understand, you want to justify Chinese text to the both sides by increasing increasing character spacing instead of increasing width of space characters. Sorry, it is not supported yet.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:I received your email.
As I understand, you want to justify Chinese text to the both sides by increasing increasing character spacing instead of increasing width of space characters. Sorry, it is not supported yet.
Thank you very much.
What can support?
Or How Can I Modify Soures £¿
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If it would be simple, it would be already implemented.
I highly do not recommend to modify source code - you will have problems with updates.

Justification is implemented in FinishScreenLine (in addition to applying line spacing and rearranging according to bidimode). But even if you calculate character spacing for justification, there is no field where you can store it.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:If it would be simple, it would be already implemented.
I highly do not recommend to modify source code - you will have problems with updates.

Justification is implemented in FinishScreenLine (in addition to applying line spacing and rearranging according to bidimode). But even if you calculate character spacing for justification, there is no field where you can store it.
Thank You
Plesae Send me simple or Link.
Post Reply