how to cotinuous display and no word wrap
how to cotinuous display and no word wrap
When editing in the editor with the chinese, It will word wrap and no continuous display . how to cotinuous display and no word wrap?
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 29
- Joined: Mon May 07, 2012 2:36 am
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
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.
-
- Posts: 29
- Joined: Mon May 07, 2012 2:36 am
I don't Want to display it as a single line.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.
....
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.
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 29
- Joined: Mon May 07, 2012 2:36 am
Thank you very much.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.
What can support?
Or How Can I Modify Soures £¿
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.
-
- Posts: 29
- Joined: Mon May 07, 2012 2:36 am
Thank YouSergey 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.
Plesae Send me simple or Link.