whitespace entities inside words
Is a whitespace entity inside a word supposed to be treated like normal whitespace? I thought it would be, but first I saw that adjacent ... aren't collapsed, then I realized that we are leaving the space inside the word instead of calling addSpace, and then I saw that PrevWasSPC isn't set if the space was at the end of the word. If it's just something that no one ever got around to dealing with, I'll make a patch.
On Fri, May 08, 2009 at 03:53:03AM +0000, corvid wrote:
Is a whitespace entity inside a word supposed to be treated like normal whitespace?
I thought it would be, but first I saw that adjacent ... aren't collapsed, then I realized that we are leaving the space inside the word instead of calling addSpace, and then I saw that PrevWasSPC isn't set if the space was at the end of the word.
If it's just something that no one ever got around to dealing with, I'll make a patch.
That hits into a deeper problem: the treatment of whitespace is not well defined inside the textblock yet. The same problem arises when handling NBSP. There's no clear definition on how to handle/flag it. If you're willing to study the textblock word wrapping, and the whitespace problem, great! I think the next big step for dillo is to handle DIV as a floating word (so it can be rendered side by side, as intended), and AFAIS that needs changes in the textblock. This is a task for 2.2. -- Cheers Jorge.-
Jorge wrote:
On Fri, May 08, 2009 at 03:53:03AM +0000, corvid wrote:
Is a whitespace entity inside a word supposed to be treated like normal whitespace?
I thought it would be, but first I saw that adjacent ... aren't collapsed, then I realized that we are leaving the space inside the word instead of calling addSpace, and then I saw that PrevWasSPC isn't set if the space was at the end of the word.
If it's just something that no one ever got around to dealing with, I'll make a patch.
That hits into a deeper problem: the treatment of whitespace is not well defined inside the textblock yet. The same problem arises when handling NBSP. There's no clear definition on how to handle/flag it. If you're willing to study the textblock word wrapping, and the whitespace problem, great! I think the next big step for dillo is to handle DIV as a floating word (so it can be rendered side by side, as intended), and AFAIS that needs changes in the textblock. This is a task for 2.2.
I have some Textblock code around to fix "white-space: nowrap" (which shows up a lot on wikipedia, where the category stuff at the bottoms of pages is displayed badly) that I've been saving for discussion after this release. I have absolutely no clue about floating, though, and have been hoping that Johannes will develop an interest in it :)
On Fri, May 08, 2009 at 07:35:34PM +0000, corvid wrote:
Jorge wrote:
On Fri, May 08, 2009 at 03:53:03AM +0000, corvid wrote:
Is a whitespace entity inside a word supposed to be treated like normal whitespace?
I thought it would be, but first I saw that adjacent ... aren't collapsed, then I realized that we are leaving the space inside the word instead of calling addSpace, and then I saw that PrevWasSPC isn't set if the space was at the end of the word.
If it's just something that no one ever got around to dealing with, I'll make a patch.
That hits into a deeper problem: the treatment of whitespace is not well defined inside the textblock yet. The same problem arises when handling NBSP. There's no clear definition on how to handle/flag it. If you're willing to study the textblock word wrapping, and the whitespace problem, great! I think the next big step for dillo is to handle DIV as a floating word (so it can be rendered side by side, as intended), and AFAIS that needs changes in the textblock. This is a task for 2.2.
I have some Textblock code around to fix "white-space: nowrap" (which shows up a lot on wikipedia, where the category stuff at the bottoms of pages is displayed badly) that I've been saving for discussion after this release. I have absolutely no clue about floating, though, and have been hoping that Johannes will develop an interest in it :)
Actually I've also been waiting for someone else to step up :)
On Sun, May 10, 2009 at 09:48:35PM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 07:35:34PM +0000, corvid wrote:
Jorge wrote:
On Fri, May 08, 2009 at 03:53:03AM +0000, corvid wrote:
Is a whitespace entity inside a word supposed to be treated like normal whitespace?
I thought it would be, but first I saw that adjacent ... aren't collapsed, then I realized that we are leaving the space inside the word instead of calling addSpace, and then I saw that PrevWasSPC isn't set if the space was at the end of the word.
If it's just something that no one ever got around to dealing with, I'll make a patch.
That hits into a deeper problem: the treatment of whitespace is not well defined inside the textblock yet. The same problem arises when handling NBSP. There's no clear definition on how to handle/flag it. If you're willing to study the textblock word wrapping, and the whitespace problem, great! I think the next big step for dillo is to handle DIV as a floating word (so it can be rendered side by side, as intended), and AFAIS that needs changes in the textblock. This is a task for 2.2.
I have some Textblock code around to fix "white-space: nowrap" (which shows up a lot on wikipedia, where the category stuff at the bottoms of pages is displayed badly) that I've been saving for discussion after this release. I have absolutely no clue about floating, though, and have been hoping that Johannes will develop an interest in it :)
Actually I've also been waiting for someone else to step up :)
Sebastian told me long ago it could take him a week or so to add this in the textblock, and that he was going to do it. Unofortunately, having no news of him, it looks like I'll have to dive into it at some point in time. I remember doing this with table rendering algorithms, and it took months, but the end result was worth the effort. If somebody here wants to help along the way, it'd be more than welcomed. -- Cheers Jorge.-
On Sun, May 10, 2009 at 04:15:13PM -0400, Jorge Arellano Cid wrote:
On Sun, May 10, 2009 at 09:48:35PM +0200, Johannes Hofmann wrote:
On Fri, May 08, 2009 at 07:35:34PM +0000, corvid wrote:
Jorge wrote:
On Fri, May 08, 2009 at 03:53:03AM +0000, corvid wrote:
Is a whitespace entity inside a word supposed to be treated like normal whitespace?
I thought it would be, but first I saw that adjacent ... aren't collapsed, then I realized that we are leaving the space inside the word instead of calling addSpace, and then I saw that PrevWasSPC isn't set if the space was at the end of the word.
If it's just something that no one ever got around to dealing with, I'll make a patch.
That hits into a deeper problem: the treatment of whitespace is not well defined inside the textblock yet. The same problem arises when handling NBSP. There's no clear definition on how to handle/flag it. If you're willing to study the textblock word wrapping, and the whitespace problem, great! I think the next big step for dillo is to handle DIV as a floating word (so it can be rendered side by side, as intended), and AFAIS that needs changes in the textblock. This is a task for 2.2.
I have some Textblock code around to fix "white-space: nowrap" (which shows up a lot on wikipedia, where the category stuff at the bottoms of pages is displayed badly) that I've been saving for discussion after this release. I have absolutely no clue about floating, though, and have been hoping that Johannes will develop an interest in it :)
Actually I've also been waiting for someone else to step up :)
Sebastian told me long ago it could take him a week or so to add this in the textblock, and that he was going to do it. Unofortunately, having no news of him, it looks like I'll have to dive into it at some point in time.
I remember doing this with table rendering algorithms, and it took months, but the end result was worth the effort. If somebody here wants to help along the way, it'd be more than welcomed.
I guess there will be some trouble with the redraw optimization I added to Textblock some time ago. I'll be happy to help to make this work with floats. Cheers, Johannes
participants (3)
-
corvid@lavabit.com
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de