Discussion:
Changes in hyphenation
Sebastian Geerken
2012-10-29 19:08:16 UTC
Permalink
Hi!

I just pulled some change to make <pre> work. Please test it again,
even things which have worked recently, so that we can be sure that
nothing is broken again.

Sebastian
Johannes Hofmann
2012-10-29 21:25:00 UTC
Permalink
Hi Sebastian,
Post by Sebastian Geerken
Hi!
I just pulled some change to make <pre> work. Please test it again,
even things which have worked recently, so that we can be sure that
nothing is broken again.
Works very nice for me! With the following change:

diff -r 5e7a06855f37 dw/textblock.hh
--- a/dw/textblock.hhMon Oct 29 20:05:20 2012 +0100
+++ b/dw/textblock.hhMon Oct 29 22:23:15 2012 +0100
@@ -552,8 +552,7 @@
{
if (style->whiteSpace != core::style::WHITE_SPACE_NOWRAP &&
style->whiteSpace != core::style::WHITE_SPACE_PRE)
- if (word->badnessAndPenalty.lineMustBeBroken())
- word->badnessAndPenalty.setPenalty (0);
+ word->badnessAndPenalty.setPenalty (0);
}

void addHyphen();



ideographic characters also seem to work again, but I'm not sure
about all the side-effects.
furaisanjin, could you please test this?

Cheers,
Johannes
furaisanjin
2012-10-30 13:09:51 UTC
Permalink
Hello all.
Is this chnage necessary to test ideographic character pages?

I just recompiled with changeset 2516:5e7a06855f37 and saw
http://www.nhk.or.jp/audio/index.html as I reported last time but I
don't see improvement yet.

Regards,
furaisanjin
Sebastian Geerken
2012-11-02 09:14:54 UTC
Permalink
Post by Johannes Hofmann
Post by Sebastian Geerken
I just pulled some change to make <pre> work. Please test it again,
even things which have worked recently, so that we can be sure that
nothing is broken again.
diff -r 5e7a06855f37 dw/textblock.hh
--- a/dw/textblock.hhMon Oct 29 20:05:20 2012 +0100
+++ b/dw/textblock.hhMon Oct 29 22:23:15 2012 +0100
@@ -552,8 +552,7 @@
{
if (style->whiteSpace != core::style::WHITE_SPACE_NOWRAP &&
style->whiteSpace != core::style::WHITE_SPACE_PRE)
- if (word->badnessAndPenalty.lineMustBeBroken())
- word->badnessAndPenalty.setPenalty (0);
+ word->badnessAndPenalty.setPenalty (0);
}
void addHyphen();
ideographic characters also seem to work again, but I'm not sure
about all the side-effects.
Er ... this patch modifies Textblock::addBreakOption(), which is not
used anymore (neither of the two variants), so how can this change
anything?

Sebastian
Sebastian Geerken
2012-11-02 15:04:52 UTC
Permalink
Post by Sebastian Geerken
Post by Johannes Hofmann
Post by Sebastian Geerken
I just pulled some change to make <pre> work. Please test it again,
even things which have worked recently, so that we can be sure that
nothing is broken again.
diff -r 5e7a06855f37 dw/textblock.hh
--- a/dw/textblock.hhMon Oct 29 20:05:20 2012 +0100
+++ b/dw/textblock.hhMon Oct 29 22:23:15 2012 +0100
@@ -552,8 +552,7 @@
{
if (style->whiteSpace != core::style::WHITE_SPACE_NOWRAP &&
style->whiteSpace != core::style::WHITE_SPACE_PRE)
- if (word->badnessAndPenalty.lineMustBeBroken())
- word->badnessAndPenalty.setPenalty (0);
+ word->badnessAndPenalty.setPenalty (0);
}
void addHyphen();
ideographic characters also seem to work again, but I'm not sure
about all the side-effects.
Er ... this patch modifies Textblock::addBreakOption(), which is not
used anymore (neither of the two variants), so how can this change
anything?
Sorry, I see it now.

Johannes patch is (with some changes) applied. Furaisanjin: are there
still issues?

Sebastian
furaisanjin
2012-11-03 01:17:44 UTC
Permalink
Post by Sebastian Geerken
Johannes patch is (with some changes) applied. Furaisanjin: are there
still issues?
Now dillo is much better but still http://news.google.co.jp shows the issue.

There are 3 columns in main area but balance of them aren't suitable
to fit them on one screen so that horizontal scroll bar appears.

Another language page like http://news.google.com/news?ned=uk has same
appearance.

Regards,
furaisanjin
Jorge Arellano Cid
2012-11-03 16:45:23 UTC
Permalink
Hi Sebastian,
Post by Sebastian Geerken
[...]
Johannes patch is (with some changes) applied.
I have no problems with the latest patch. The code respects PRE
formatted code inserting a horizontal scroll when necessary.

FWIW, without this last patch, I had problems with the attached
test case.

BTW, what will happen with HTML pages that quote
full-paragraph-in-one-line emails with PRE?
(unfortunately I don't have an example page at hand).
--
Cheers
Jorge.-
Jorge Arellano Cid
2012-10-31 15:04:04 UTC
Permalink
Hi Sebastian,
Post by Sebastian Geerken
Hi!
I just pulled some change to make <pre> work. Please test it again,
even things which have worked recently, so that we can be sure that
nothing is broken again.
What should we test? All of whitespace formatting in PRE?
Should we use Johannes' patch?
--
Cheers
Jorge.-
Continue reading on narkive:
Loading...