Re: Word wrapping problem

2015-07-24 Thread Scott Kostyshak
On Fri, Jul 24, 2015 at 8:58 PM, Yihui Xie wrote: > Yes, I just tested it, and it is much much better now! Thanks so much, > JMarc! Also thanks Scott for the convenient PPA. The credit for the PPA is actually deserved by Liviu. I am in a slow period of training to learn about the PPA. I will take

Re: Word wrapping problem

2015-07-24 Thread Yihui Xie
Yes, I just tested it, and it is much much better now! Thanks so much, JMarc! Also thanks Scott for the convenient PPA. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Wed, Jul 22, 2015 at 11:45 AM, Scott Kostyshak wrote: > On Mon, Jul 20, 2015 at 8:18 PM, Scott Kostyshak wrote: >> On M

Re: Word wrapping problem

2015-07-22 Thread Scott Kostyshak
On Mon, Jul 20, 2015 at 8:18 PM, Scott Kostyshak wrote: > On Mon, Jul 20, 2015 at 5:10 PM, Yihui Xie wrote: >> Thanks! I'm interested in testing this, but I have not built LyX from >> source for a couple of years... I'd love to test it after it is >> available in a future release. > > When it mak

Re: Word wrapping problem

2015-07-20 Thread Scott Kostyshak
On Mon, Jul 20, 2015 at 5:10 PM, Yihui Xie wrote: > Thanks! I'm interested in testing this, but I have not built LyX from > source for a couple of years... I'd love to test it after it is > available in a future release. When it makes its way into our main development branch (master), you can tes

Re: Word wrapping problem

2015-07-20 Thread Yihui Xie
Thanks! I'm interested in testing this, but I have not built LyX from source for a couple of years... I'd love to test it after it is available in a future release. Regards, Yihui -- Yihui Xie Web: http://yihui.name On Mon, Jul 20, 2015 at 2:40 PM, Jean-Marc Lasgouttes wrote: > Le 24/07/2013 1

Re: Word wrapping problem

2015-07-20 Thread Jean-Marc Lasgouttes
Le 24/07/2013 10:03, Cyrille Artho a écrit : Hi Jean-Marc, The good news is: You don't need to recognize word boundaries in Japanese (and I think also in Chinese) text. Just break the text whenever you are at the end of a line. So typically text will appear as a rectangular block with some more

Re: Word wrapping problem

2013-07-27 Thread Scott Kostyshak
On Sat, Jul 27, 2013 at 10:39 PM, Lin Wei wrote: > Hi Scott, > > Yep. I did realize that might be a complicated issue after check the code > and qt4 tool the other developer recommended. Surely I want to help. It > would be really nice if you could connect me and that developer. The only > problem

Re: Word wrapping problem

2013-07-27 Thread Lin Wei
Hi Scott, Yep. I did realize that might be a complicated issue after check the code and qt4 tool the other developer recommended. Surely I want to help. It would be really nice if you could connect me and that developer. The only problem is I might not be able to be fully devoted since I would be

Re: Word wrapping problem

2013-07-25 Thread Jean-Marc Lasgouttes
25/07/2013 10:54, Kornel Benko: Each unicode for korean displays a syllable. Words are separated by space. As it is now, it looks good, as we break lines on space. This is only IMHO, but as my wife is korean, I feel confident. Thanks for the information. JMarc

Re: Word wrapping problem

2013-07-25 Thread Kornel Benko
Am Donnerstag, 25. Juli 2013 um 10:11:00, schrieb Jean-Marc Lasgouttes > 25/07/2013 01:09, Pavel Sanda: > > Jean-Marc Lasgouttes wrote: > >> Thanks. BTW, is Korean also affected by these word-breaking rules? > > > > Korean has different breaking rules than CJ. > > You might want to look at this p

Re: Word wrapping problem

2013-07-25 Thread Jean-Marc Lasgouttes
25/07/2013 01:09, Pavel Sanda: Jean-Marc Lasgouttes wrote: Thanks. BTW, is Korean also affected by these word-breaking rules? Korean has different breaking rules than CJ. You might want to look at this page: http://msdn.microsoft.com/en-us/goglobal/bb688158.aspx The best is probably to give

Re: Word wrapping problem

2013-07-24 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > Thanks. BTW, is Korean also affected by these word-breaking rules? Korean has different breaking rules than CJ. You might want to look at this page: http://msdn.microsoft.com/en-us/goglobal/bb688158.aspx Pavel

Re: Word wrapping problem

2013-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2013 22:49, Jean-Marc Lasgouttes a écrit : Le 24/07/2013 21:49, Yihui Xie a écrit : In summary, you can break the line in these places: 1. in the middle of any Chinese characters; 2. at the word boundaries of other languages (e.g. spaces in English); And between English and Chinese e

Re: Word wrapping problem

2013-07-24 Thread Yihui Xie
On Wed, Jul 24, 2013 at 1:49 PM, Jean-Marc Lasgouttes wrote: > Le 24/07/2013 21:49, Yihui Xie a écrit : > >> In summary, you can break the line in these places: >> >> 1. in the middle of any Chinese characters; >> 2. at the word boundaries of other languages (e.g. spaces in English); > > > And bet

Re: Word wrapping problem

2013-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2013 22:14, Guenter Milde a écrit : On 2013-07-24, Yihui Xie wrote: As far as I know, there are no kernings and ligatures in Chinese. All Chinese characters are "independent" and of exactly the same width, so it is OK to calculate the string length by simply counting the number of chara

Re: Word wrapping problem

2013-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2013 21:49, Yihui Xie a écrit : In summary, you can break the line in these places: 1. in the middle of any Chinese characters; 2. at the word boundaries of other languages (e.g. spaces in English); And between English and Chinese enven without separator, right? I will try to push so

Re: Word wrapping problem

2013-07-24 Thread Guenter Milde
On 2013-07-24, Yihui Xie wrote: > As far as I know, there are no kernings and ligatures in Chinese. All > Chinese characters are "independent" and of exactly the same width, so > it is OK to calculate the string length by simply counting the number > of characters. > This post might help for the U

Re: Word wrapping problem

2013-07-24 Thread Yihui Xie
In summary, you can break the line in these places: 1. in the middle of any Chinese characters; 2. at the word boundaries of other languages (e.g. spaces in English); If you mark "hello" as Chinese, is it possible not to break in the middle of "hello"? Regards, Yihui -- Yihui Xie Phone: 206-667

Re: Word wrapping problem

2013-07-24 Thread Yihui Xie
In Chinese typesetting, we do not care if two characters are from the same word. We break the words whenever they reach the page margin. So yes, we can break in the middle of a word. Regards, Yihui -- Yihui Xie Phone: 206-667-4385 Web: http://yihui.name Fred Hutchinson Cancer Research Center, Sea

Re: Word wrapping problem

2013-07-24 Thread Jean-Marc Lasgouttes
Le 24/07/2013 20:55, Yihui Xie a écrit : One issue to keep in mind is that when you deal with a mixture of Chinese and ASCII characters, different rules should be applied depending on which characters are on the margin, e.g. suppose "你好hello" reaches the margin, and you can break the Chinese phra

Re: Word wrapping problem

2013-07-24 Thread Vincent van Ravesteijn
Op 24-7-2013 20:55, Yihui Xie schreef: > As far as I know, there are no kernings and ligatures in Chinese. All > Chinese characters are "independent" and of exactly the same width, so > it is OK to calculate the string length by simply counting the number > of characters. > > This post might help f

Re: Word wrapping problem

2013-07-24 Thread Yihui Xie
As far as I know, there are no kernings and ligatures in Chinese. All Chinese characters are "independent" and of exactly the same width, so it is OK to calculate the string length by simply counting the number of characters. This post might help for the Unicode ranges: http://stackoverflow.com/qu

Re: Word wrapping problem

2013-07-24 Thread Jean-Marc Lasgouttes
24/07/2013 09:39, Lin Wei: Sorry for late reply. I've been volunteer teaching in undeveloped areas where I can only check my email remittently. Not really more progress. I asked further question and got no replySo I kind of give up.. Dear Lin Wei, I am sorry that I have not been as res

Re: Word wrapping problem

2013-07-24 Thread Scott Kostyshak
On Wed, Jul 24, 2013 at 3:39 AM, Lin Wei wrote: > Sorry for late reply. I've been volunteer teaching in undeveloped areas > where I can only check my email remittently. > Not really more progress. I asked further question and got no replySo I > kind of give up.. Hi Lin Wei, I'm sorry tha

Re: Word wrapping problem

2013-07-24 Thread Cyrille Artho
Hi Jean-Marc, The good news is: You don't need to recognize word boundaries in Japanese (and I think also in Chinese) text. Just break the text whenever you are at the end of a line. So typically text will appear as a rectangular block with some more text on the final line: ** ** **

Re: Word wrapping problem

2013-07-24 Thread Lin Wei
Sorry for late reply. I've been volunteer teaching in undeveloped areas where I can only check my email remittently. Not really more progress. I asked further question and got no replySo I kind of give up.. Wei Lin On Sat, Jul 20, 2013 at 6:17 AM, Scott Kostyshak wrote: > On Sun, May 5

Re: Word wrapping problem

2013-07-19 Thread Jean-Marc Lasgouttes
Le 20/07/2013 00:17, Scott Kostyshak a écrit : Did you make any progress on this? I think this issue just came up again here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg96125.html Note that I am in the process of rewriting/devastating the code that breaks text in rows (branch featu

Re: Word wrapping problem

2013-07-19 Thread Scott Kostyshak
On Sun, May 5, 2013 at 3:58 AM, Lin Wei wrote: > Still have some doubt about the algorithm for word wrap. > > TextMetrics.cpppos_type TextMetrics::rowBreakPoint(int width, pit_type > const pit, pos_type pos) const > > This function seems to iterate through until the right margin or end of par

Re: Word wrapping problem

2013-05-05 Thread Lin Wei
Still have some doubt about the algorithm for word wrap. TextMetrics.cpppos_type TextMetrics::rowBreakPoint(int width, pit_type const pit, pos_type pos) const This function seems to iterate through until the right margin or end of par is reached. I'm wondering whether it iterates a word per p

Re: Word wrapping problem

2013-04-16 Thread pdv
In article <5163d9fd.9090...@lyx.org>, Jean-Marc Lasgouttes wrote: > 09/04/2013 09:25, Lin Wei: > > It seems the following function decides where to break within a paragraph: > > TextMetrics.cpp: pos_type TextMetrics::rowBreakPoint(int width, > > pit_type const pit,pos_type pos) const > > Yes.

Re: Word wrapping problem

2013-04-09 Thread Jean-Marc Lasgouttes
09/04/2013 09:25, Lin Wei: It seems the following function decides where to break within a paragraph: TextMetrics.cpp: pos_type TextMetrics::rowBreakPoint(int width, pit_type const pit,pos_type pos) const Yes. But still, I didn't really figure out how it works...What I'm puzzled about the co

Re: Word wrapping problem

2013-04-09 Thread Lin Wei
It seems the following function decides where to break within a paragraph: TextMetrics.cpp: pos_type TextMetrics::rowBreakPoint(int width, pit_type const pit, pos_type pos) const But still, I didn't really figure out how it works...What I'm puzzled about the codes is how it knows the exact breaki

Re: Word wrapping problem

2013-04-09 Thread Lin Wei
013 at 3:08 PM, Abdelrazak Younes wrote: > On 07/04/2013 03:30, Lin Wei wrote: > > Sorry to bother again. Just want to add more details about the word > wrapping problem <http://www.lyx.org/trac/ticket/4635> I mentioned > before<http://www.mail-archive.com/lyx-dev

Re: Word wrapping problem

2013-04-06 Thread Scott Kostyshak
On Sat, Apr 6, 2013 at 9:30 PM, Lin Wei wrote: > > TO Richard Heck: > I didn't find RowMetrics.cpp. Thanks, though. > Hi Lin Wei, I know nothing about this, but maybe take a look at TextMetrics::computeRowMetrics? src/TextMetrics.cpp:void TextMetrics::computeRowMetrics(pit_type const pit, src/

Re: Word wrapping problem

2013-04-06 Thread Lin Wei
But...there is actually no RowMetrics.cpp.. On Sat, Apr 6, 2013 at 9:01 AM, Lin Wei wrote: > By the way, sorry for my late reply... > > > On Sat, Apr 6, 2013 at 8:35 AM, Lin Wei wrote: > >> Thanks a lot :) >> >> >> On Sat, Mar 30, 2013 at 11:04 PM, Richard Heck wrote: >> >>> On 03/30/201

Re: Word wrapping problem

2013-04-05 Thread Lin Wei
By the way, sorry for my late reply... On Sat, Apr 6, 2013 at 8:35 AM, Lin Wei wrote: > Thanks a lot :) > > > On Sat, Mar 30, 2013 at 11:04 PM, Richard Heck wrote: > >> On 03/30/2013 06:48 AM, Lin Wei wrote: >> >> Hi there, >> >> Word wrapping doesn't work perfectly when I use LyX with both

Re: Word wrapping problem

2013-04-05 Thread Lin Wei
Thanks a lot :) On Sat, Mar 30, 2013 at 11:04 PM, Richard Heck wrote: > On 03/30/2013 06:48 AM, Lin Wei wrote: > > Hi there, > > Word wrapping doesn't work perfectly when I use LyX with both Chinese > and English. > Seems this bug/defect has been > identi

Re: Word wrapping problem

2013-03-30 Thread Richard Heck
On 03/30/2013 06:48 AM, Lin Wei wrote: Hi there, Word wrapping doesn't work perfectly when I use LyX with both Chinese and English. Seems this bug/defect has been identified for over 5 years but still left unclosed. I'm trying fix it myself but get stuck

Word wrapping problem

2013-03-30 Thread Lin Wei
Hi there, Word wrapping doesn't work perfectly when I use LyX with both Chinese and English. Seems this bug/defect has been identified for over 5 years but still left unclosed. I'm trying fix it myself but get stuck in locating the source file of word wrapping