summaryrefslogtreecommitdiff
path: root/old/oldmail/200102.txt
blob: 92a7bf80c6649a065d7263149ff7aaad43eb18f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
Re: [Dillo-dev]Bug #1015

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-27 21:42

Hi,

Solving this bug "quick and dirty" (not suitable for arbitrary nested
widgets, only for this special case) works. I'm now developing a
common solution.

On Tue, Feb 27, 2001 at 05:27:22PM -0300, Jorge Arellano Cid wrote:
> 
> Sebastian,
> 
> > I've found the reason and I'm thinking about how to solve it best.
> >
> > A few details: When a widget within the page changes its size, this
> > will (in an idle function) result in a call of
> > a_Dw_widget_size_request for the page widget, and then
> > a_Dw_widget_size_allocate, with the requisition becoming a part of
> > the allocation. The latter checks whether the allocation has changed,
> > and this is not always the case in the test page, since a few images
> > cause the page to have its final size.
> >
> > So, the condition, when a_Dw_widget_size_allocate can omit sending
> > the "size_allocate" signal, can be wrong in some cases.

I forgot: emitting the "size_allocate" signal will call
Dw_page_size_allocate, which then allocates the children. Without
this, they have zero sizes. This was exactly the case.

> It looks like the problem we have, but why it works sometimes?
> Because the idle function can be triggered either before or after
> the page allocation gets its final size? If this is true, then
> we're very close to 0.4.0 release!

(Actually the idle function may be triggered several times, depending
on whether data is available from the Cache module or not.) The bug
does not occur, when all image sizes get known at quite the same
time. In this case, the idle function is called the last time, after
the page widget knows the correct sizes of the image widgets.

Sebastian 



Re: [Dillo-dev]Bug #1015

From: Jorge Arellano Cid <jcid@em...> - 2001-02-27 20:47

Sebastian,

> I've found the reason and I'm thinking about how to solve it best.
>
> A few details: When a widget within the page changes its size, this
> will (in an idle function) result in a call of
> a_Dw_widget_size_request for the page widget, and then
> a_Dw_widget_size_allocate, with the requisition becoming a part of
> the allocation. The latter checks whether the allocation has changed,
> and this is not always the case in the test page, since a few images
> cause the page to have its final size.
>
> So, the condition, when a_Dw_widget_size_allocate can omit sending
> the "size_allocate" signal, can be wrong in some cases.

It looks like the problem we have, but why it works sometimes?
Because the idle function can be triggered either before or after
the page allocation gets its final size? If this is true, then
we're very close to 0.4.0 release!

> PS: Jorge, what is the matter with your ematic account? I got a
> failure notice mail, saying: "550 Command RCPT User
> <jcid@em...> not OK".

Ematic isn't very stable, I have some problems from time to
time; if this persists, let me know and I'll switch back to
nettaxi.


Jorge.- 



Re: [Dillo-dev]Bug #1015

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-27 16:32

Hi!

On Fri, Feb 23, 2001 at 06:00:28PM +0100, Sebastian Geerken wrote:
> [...]
> I'll continue to investigate it.

I've found the reason and I'm thinking about how to solve it best.

A few details: When a widget within the page changes its size, this
will (in an idle function) result in a call of
a_Dw_widget_size_request for the page widget, and then
a_Dw_widget_size_allocate, with the requisition becoming a part of
the allocation. The latter checks whether the allocation has changed,
and this is not always the case in the test page, since a few images
cause the page to have its final size.

So, the condition, when a_Dw_widget_size_allocate can omit sending
the "size_allocate" signal, can be wrong in some cases.

Sebastian

PS: Jorge, what is the matter with your ematic account? I got a
failure notice mail, saying: "550 Command RCPT User
<jcid@em...> not OK". 



Re: [Dillo-dev]Handling of style and script elements

From: Jorge Arellano Cid <jcid@em...> - 2001-02-27 12:27

On Tue, 27 Feb 2001, Sam Dennis wrote:

> > + DILLO_HTML_PARSE_MODE_STYLE,
>
> Do we really need two functionally identical parsing modes? Why not just use
> DILLO_HTML_PARSE_MODE_SCRIPT?

I agree, and with a short comment that states what _SCRIPT
parsing mode is being used to.

Jorge.- 



Re: [Dillo-dev]Handling of style and script elements

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-27 11:06

On Tue, Feb 27, 2001 at 12:24:21AM +0000, Sam Dennis wrote:
> On Sun, Feb 25, 2001 at 08:55:50PM +0000, Mark McLoughlin wrote:
> > diff -ur ./dillo-old/src/html.c ./dillo/src/html.c
> > ...
> > + /* spec suggests STYLE is only valid inside HEAD */
> > + if (html->InTag != DILLO_HTML_IN_HEAD)
> > + return;
> 
> The style tag may only be valid inside head, but that doesn't mean that we
> shouldn't catch it elsewhere, especially as we're just ignoring the content
> for now.
> 
> > + DILLO_HTML_PARSE_MODE_STYLE,
> 
> Do we really need two functionally identical parsing modes? Why not just use
> DILLO_HTML_PARSE_MODE_SCRIPT?

And call it DILLO_HTML_PARSE_MODE_IGNORE? The CSS parser will
probably read the text from the stash, and in future, we will anyway
need to ignore parts of the doc (e.g. <noscript>).

Or divide between page writing modes (BODY and PRE) and stashing
modes (STASH and VERBATIM), and let them be combinable:
DILLO_HTML_PARSE_MODE_STASH | DILLO_HTML_PARSE_MODE_BODY instead of
DILLO_HTML_PARSE_MODE_STASH_AND_BODY, and simple 0 for parts totally
ignored.

Sebastian 



Re: [Dillo-dev]Handling of style and script elements

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-27 11:06

On Tue, Feb 27, 2001 at 09:43:26AM +0000, Mark McLoughlin wrote:
> [...]
> Also, does anyone have any advice on how I might hunt down BUG #1017?

I don't know the Cache module in detail, but I guess that this bug is
related to various other bugs in the mail bug-track (69 and 74) Jorge
is working on.

Sebastian 



Re: [Dillo-dev]Handling of style and script elements

From: Mark McLoughlin <mark@cs...> - 2001-02-27 09:42

On Tue, 27 Feb 2001, Sam Dennis wrote:

> The style tag may only be valid inside head, but that doesn't mean that we
> shouldn't catch it elsewhere, especially as we're just ignoring the content
> for now.
>
> > + DILLO_HTML_PARSE_MODE_STYLE,
>
> Do we really need two functionally identical parsing modes? Why not just use
> DILLO_HTML_PARSE_MODE_SCRIPT?

true, very true. If it turns out that they become functionally different, that
is the time to add in the new mode. Is the patch below better?

Also, does anyone have any advice on how I might hunt down BUG #1017?

Cheers,
Mark

=============================================================================
diff -ur ./dillo-old/src/html.c ./dillo/src/html.c
--- ./dillo-old/src/html.c Wed Feb 21 01:24:09 2001
+++ ./dillo/src/html.c Tue Feb 27 09:35:36 2001
@@ -529,7 +529,8 @@
g_free(Pword);
}

- if ( parse_mode == DILLO_HTML_PARSE_MODE_STASH ) return;
+ if ( parse_mode == DILLO_HTML_PARSE_MODE_STASH ||
+ parse_mode == DILLO_HTML_PARSE_MODE_SCRIPT ) return;

if ( parse_mode == DILLO_HTML_PARSE_MODE_VERBATIM ){
if (html->PrevWasCR)
@@ -738,6 +739,27 @@
}

/*
+ * Handle open STYLE
+ * store the contents to the stash where (in the future) the style
+ * sheet interpreter can get it.
+ */
+static void Html_tag_open_style(DilloHtml *html, char *tag, gint tagsize)
+{
+ Html_push_tag(html, tag, tagsize);
+ Html_stash_init(html);
+ html->stack[html->stack_top].parse_mode = DILLO_HTML_PARSE_MODE_SCRIPT;
+}
+
+/*
+ * Handle close STYLE
+ */
+static void Html_tag_close_style(DilloHtml *html, char *tag, gint tagsize)
+{
+ /* eventually the stash will be sent to an interpreter for parsing */
+ Html_pop_tag(html, tag, tagsize);
+}
+
+/*
* <BODY>
*/
static void Html_tag_open_body(DilloHtml *html, char *tag, gint tagsize)
@@ -2503,7 +2525,7 @@
TagFunct open, close;
} TagInfo;

-#define NTAGS 54
+#define NTAGS 55
static TagInfo Tags[NTAGS] = {
{"a", Html_tag_open_a, Html_tag_close_default}, /* 0 */
/* abbr */
@@ -2574,7 +2596,7 @@
/* span */
{"strike", Html_tag_open_strike, Html_tag_close_default},
{"strong", Html_tag_open_strong, Html_tag_close_default},/* 42 */
- /* style */
+ {"style", Html_tag_open_style, Html_tag_close_style},
{"sub", Html_tag_open_sub, Html_tag_close_default},
{"sup", Html_tag_open_sup, Html_tag_close_default},
/* table */ 



Re: [Dillo-dev]Handling of style and script elements

From: Sam Dennis <sam@ma...> - 2001-02-27 00:19

On Sun, Feb 25, 2001 at 08:55:50PM +0000, Mark McLoughlin wrote:
> diff -ur ./dillo-old/src/html.c ./dillo/src/html.c
> ...
> + /* spec suggests STYLE is only valid inside HEAD */
> + if (html->InTag != DILLO_HTML_IN_HEAD)
> + return;

The style tag may only be valid inside head, but that doesn't mean that we
shouldn't catch it elsewhere, especially as we're just ignoring the content
for now.

> + DILLO_HTML_PARSE_MODE_STYLE,

Do we really need two functionally identical parsing modes? Why not just use
DILLO_HTML_PARSE_MODE_SCRIPT?

-- 
Sam Dennis <sam@ma...>
"The strstr() function finds the first occurrence of the substring needle in
the string haystack." 



RE: [Dillo-dev]Handling of style and script elements

From: Eric GAUDET <egaudet@in...> - 2001-02-26 01:27

Please make an entry in the bugtrack engine for this, with your email followed
by '100%', and submit your patch to Jorge.
This way we'll all keep in mind this has been fixed and avoid duplicate work.

Eric

-- En reponse de "[Dillo-dev]Handling of style and script elements" de Mark
McLoughlin, le 25-Feb-2001 :
> Hi all,
> The html 4.01 spec says that style sheet info shouldn't
> be displayed if the UA cannot handle it.. I think it can also
> be assumed that the same is true for SCRIPT elements?
> 
> <quote>
> The STYLE element allows authors to put style sheet rules in the head of
> the document. HTML permits any number of STYLE elements in the HEAD section
> of a document.
> </quote>
> 
> Attached is a small patch to do this.
> 
> Cheers,
> Mark

------------------------------------
Eric GAUDET <egaudet@in...>
Le 26-Feb-2001 a 10:26:40
"In theory, there's no difference between 
theory and practice; in practice, there is.
------------------------------------ 



Re: [Dillo-dev]Handling of style and script elements

From: Mark McLoughlin <mark@cs...> - 2001-02-25 20:54

Attachments: HandleStyleElementsAgainst_dillo-0.4.0.update      

Apologies, forgot to take out my debugging info. Attached
is the real patch ;)

Cheers,
Mark 



[Dillo-dev]Handling of style and script elements

From: Mark McLoughlin <mark@cs...> - 2001-02-25 20:33

Attachments: HandleStyleElementsAgainst_dillo-0.4.0.patch      

Hi all,
The html 4.01 spec says that style sheet info shouldn't
be displayed if the UA cannot handle it.. I think it can also
be assumed that the same is true for SCRIPT elements?

<quote>
The STYLE element allows authors to put style sheet rules in the head of
the document. HTML permits any number of STYLE elements in the HEAD section
of a document.
</quote>

Attached is a small patch to do this.

Cheers,
Mark 



RE: [Dillo-dev]Bug #1015

From: Eric GAUDET <egaudet@in...> - 2001-02-24 01:29

Humm ... sometime the page (text only) aren't rendered at all. But it's quite
rare and I can't reproduce it. Seems to occur at the first paint of a page, not
when resizing or reloading from the cache. (not sure)
'Can be the same bug then.

-- En reponse de "[Dillo-dev]Bug #1015" de Sebastian Geerken, le 23-Feb-2001 :
> Hi Jorge,
> 
> I don't know how much you traced down bug #1015, but I've looked a
> bit at it:
> 
> 1. Anything in dw_image.c works fine, the images are created,
> resized, and get a buffer with the image data.
> 
> 2. I've tested a modified version, where I added "width=10%" to
> every <img>. In this case, the bug occurs, too, but after
> resizing the window, all images are displayed.
> 
> Since in the latter case resizing works different, I guess that the
> bug lies either in DwPage, or in the resize_queue code of DwWidget.
> I'll continue to investigate it.
> 
> Sebastian
> 
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> http://lists.so....net/lists/listinfo/dillo-dev

------------------------------------
Eric GAUDET <egaudet@in...>
Le 24-Feb-2001 a 19:26:30
"In theory, there's no difference between 
theory and practice; in practice, there is.
------------------------------------ 



[Dillo-dev]Bug #1015

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-23 16:50

Hi Jorge,

I don't know how much you traced down bug #1015, but I've looked a
bit at it:

1. Anything in dw_image.c works fine, the images are created,
resized, and get a buffer with the image data.

2. I've tested a modified version, where I added "width=10%" to
every <img>. In this case, the bug occurs, too, but after
resizing the window, all images are displayed.

Since in the latter case resizing works different, I guess that the
bug lies either in DwPage, or in the resize_queue code of DwWidget.
I'll continue to investigate it.

Sebastian 



[Dillo-dev]dillo-0.3.2 release

From: Jorge Arellano Cid <jcid@em...> - 2001-02-22 22:14

Hi there!

I just finished releasing the code that was in the 0.3.x
branch. The new code is worth a download and it will probably be
the last release before 0.4.0 comes out. So, go get it!

Seriously, 0.4.0 is expected to be ready very soon, after
BUG#1015 is nailed down, and a few more things get added.


Cheers
Jorge.-


Ps: Bug#124 (problems compiling png code) was deleted because
that's a matter of updating the png-library! 



Re: [Dillo-dev]Menubar & Preferences

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-21 18:58

On Mon, Feb 19, 2001 at 12:49:18PM +0100, Bruno Widmann wrote:
> 
> I would love to have a way to quickly change certain
> preferences Items while dillo is running (eg. force_my_colors).
> [...] 
> I would like to add code in dillo for such a Settings menu if nobody
> raises some serious objections..

Currently, Dw provides no possibility to change change the look of a
widget (colors, fonts etc.) dynamically. I plan this as a part of the
common style mechanism (it will e.g. be *one* - probably the simplest
- step towards an implementation of asynchronously read HTML and
CSS), but the design and implementation will take a while. So you
could

1. reread the page from the cache (will be quite fast), or
2. write a hack to change some values in the DwPage etc, and then
request a redraw (this would, of course, be a subject of
change), or
3. you start the style mechanism ;-).

Sebastian 



RE: [Dillo-dev]Menubar & Preferences

From: Eric GAUDET <egaudet@in...> - 2001-02-20 02:40

Instead of a menu, what do you think of checkboxes in the buttons bar, say
beside the progress bars ?
Please keep a room for "run animations".

I like the load images thing, I only hope there will be a default widget in
place of each unloaded images should be (with a "download image" in an image
popup-menu ?)

Eric

-- En reponse de "[Dillo-dev]Menubar & Preferences" de Bruno Widmann, le
19-Feb-2001 :
> 
> I would love to have a way to quickly change certain
> preferences Items while dillo is running (eg. force_my_colors).
> 
> I think that the Galeon browser (and also konqueror) has a good way
> to handle it. A "Settings" Menu in the main Menubar which looks
> like:
> 
> __________________________
> ... Settings ...
> ---+--------------------+-
> | Load images >|
> | [ ] Use own fonts |
> | [ ] Use own colors |
> | [x] other items.. |
> |--------------------|
> | Preferences... |
> `--------------------'
> 
> So if you can't read the text on some webpage because of a bad BG
> color you just bring up the Settings Menu and have solved the
> problem with two mouseclicks.
> 
> I would like to add code in dillo for such a Settings menu if nobody
> raises some serious objections..
> 
> 
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> http://lists.so....net/lists/listinfo/dillo-dev

------------------------------------
Eric GAUDET <egaudet@in...>
Le 20-Feb-2001 a 11:32:01
"In theory, there's no difference between 
theory and practice; in practice, there is.
------------------------------------ 



[Dillo-dev]Menubar & Preferences

From: Bruno Widmann <bwidmann@ut...> - 2001-02-19 11:48

I would love to have a way to quickly change certain
preferences Items while dillo is running (eg. force_my_colors).

I think that the Galeon browser (and also konqueror) has a good way
to handle it. A "Settings" Menu in the main Menubar which looks
like:

__________________________
... Settings ...
---+--------------------+-
| Load images >|
| [ ] Use own fonts |
| [ ] Use own colors |
| [x] other items.. |
|--------------------|
| Preferences... |
`--------------------'

So if you can't read the text on some webpage because of a bad BG
color you just bring up the Settings Menu and have solved the
problem with two mouseclicks.

I would like to add code in dillo for such a Settings menu if nobody
raises some serious objections.. 



[Dillo-dev]Font factor

From: Jorge Arellano Cid <jcid@em...> - 2001-02-18 13:50

Hi there!


Sometime ago (not much) I included a patch from Bruno, in the
040 branch, that allows a font-factor in dillorc to scale font
sizes in dillo.

I've been playing around with it for some time and frankly,
I'm very happy. Just download the latest CVS (or the updated
tarball), test it and enjoy!

I know that FONT size is an issue, specially with high
screen resolutions, and bad eyes :-).

Ah, some of you may notice that it would be nice to have a
chance to change font-size on the fly, but let's wait until the
preferences plugin can handle that...


Jorge.- 



RE: [Dillo-dev]Getting 040 branch by CVS

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-18 11:59

EG wrote:
> [...]
> Dillo is actually rendering the page correctly if the window is large enough,
> which is not the case with the default size.

This is a bug ;-)

> It seems that dillo's having problems computing a _new_ page width when <pre>
> text is larger than the window. Once the longest line have been fully rendered
> by enlarging the window, shrinking it will make hsliders show when necessary.

This bug occurs in indented lines, the real_width is not calculated
correctly. Following seems to work (in Dw_page_new_word):

if (new_line)
page->real_width = MAX(page->real_width,
line->x_size + Attr->left_indent_first);

instead of

if (new_line)
page->real_width = MAX(page->real_width, line->x_size);

Expect an upload soon.

Sebastian 



RE: [Dillo-dev]Getting 040 branch by CVS

From: Eric GAUDET <egaudet@in...> - 2001-02-18 02:06

-- En reponse de "[Dillo-dev]Getting 040 branch by CVS" de Jorge Arellano Cid,
le 18-Feb-2001 :
> 
> Hi there!
> 
> 
> The new branch is showing excelent progress and is very close
> to a new release.
> 
> Well, I just fixed a mistake on the directions for anonymous
> downloading using CVS. I checked it also, but note that dillo
> doesn't render the page right; you have been warned.
> 

Dillo is actually rendering the page correctly if the window is large enough,
which is not the case with the default size.
It seems that dillo's having problems computing a _new_ page width when <pre>
text is larger than the window. Once the longest line have been fully rendered
by enlarging the window, shrinking it will make hsliders show when necessary.

> 
> Cheers
> Jorge.-
> 
> 
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> http://lists.so....net/lists/listinfo/dillo-dev

------------------------------------
Eric GAUDET <egaudet@in...>
Le 18-Feb-2001 a 11:01:57
"In theory, there's no difference between 
theory and practice; in practice, there is.
------------------------------------ 



[Dillo-dev]Getting 040 branch by CVS

From: Jorge Arellano Cid <jcid@em...> - 2001-02-18 00:32

Hi there!


The new branch is showing excelent progress and is very close
to a new release.

Well, I just fixed a mistake on the directions for anonymous
downloading using CVS. I checked it also, but note that dillo
doesn't render the page right; you have been warned.


Cheers
Jorge.- 



Re: [Dillo-dev]misc on Dw

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-16 11:19

Jörgen Viksell wrote:
> BTW, I have some code that moves DwPageWord down to DwPage and just defines 
> the position in DwPageLine. It makes rewraps a bit faster. Is it something 
> to continue to work on?

Yes, definitely! I also planned this, and Allan wrote me once about
this, too. This will not only speed up rewrapping, but also make it
simpler in future to refer to single words. Send me your patch when
it is usable.

Sebastian 



Re: [Dillo-dev]misc on Dw

From: Jörgen Viksell <vsksga@ho...> - 2001-02-16 00:44

>Just a few thoughts which I think are worth to share:
>
>- While working on bugs #1011 and #1012 (these are identical),

I must have submitted #1012 a couple of seconds after You. Sorry about that! 
;-)

>- To make all the stuff with attributes and GC's simpler, I thought
> of a common style scheme, similar to GtkStyle, or CSS styles. There
> should be a structure DwStyle, which contains attributes and X
> resources (fonts, colors, GC's) for drawing in a specific way. The
> creation of such structures should be optimized in that way, that
> several widgets, words etc. may share the same DwStyle. Memory
> management could be done simply by reference counters.

A while ago I made an experiment with adding a GC to each DwPageWord. That 
made my poor computer reboot. So I definitly agree on the sharing! :-)

BTW, I have some code that moves DwPageWord down to DwPage and just defines 
the position in DwPageLine. It makes rewraps a bit faster. Is it something 
to continue to work on?

// Jörgen
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. 



[Dillo-dev]misc on Dw

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-15 13:00

Hi!

Just a few thoughts which I think are worth to share:

- While working on bugs #1011 and #1012 (these are identical), I'm
also trying to untie Dw from the rest of the code. The code for
context menus etc. is not anymore inside dw_page.c, but in html.c,
and they are connected via Gtk+ signals. This will e.g. make unit
tests easier.

- I'll probably also put the code for image maps into the image
widget, and the <map>'s will move into the html linkblock.

And two ideas for the future (after the 0.4.0 release):

- Like the old Dw, the page flickers quite much while being loaded. A
possible solution could be the use of pixmap buffers, so the
viewport hasn't to be cleared before the redraw.

- To make all the stuff with attributes and GC's simpler, I thought
of a common style scheme, similar to GtkStyle, or CSS styles. There
should be a structure DwStyle, which contains attributes and X
resources (fonts, colors, GC's) for drawing in a specific way. The
creation of such structures should be optimized in that way, that
several widgets, words etc. may share the same DwStyle. Memory
management could be done simply by reference counters.

Furthermore, I think it is useful to distinguish between (i) look
and (ii) behavior, e.g. a link is something which is (i) blue and
underlined, and (ii) causes something to happen when you click on
it. According to (ii), a link could also be used for a possible
implementation of the <label> tag: if you click on the <label>,
this event is delivered to the form element specified by the "for"
attribute. (This is only a silly example, I admit that would huge
changes in the code were necessary for this. And I don't plan a
common "behavior scheme" in the near future.)

Any comments? Further ideas? Disagreements?

Sebastian 



RE: [Dillo-dev]Just a word about bug #1009

From: Sebastian Geerken <S.Geerken@pi...> - 2001-02-14 17:36

Hi,

I hope this mail will arrive the list :-/

Jörgen Viksell writes:
>I am wondering about a related issue.
>If You imagine a rectangle around all rendered text. You can't click outside 
>of that area.
>In the case of bug #1009 or a page that Dillo can't render, it's impossible 
>to right click and view the source to determine the problem.

This is the correct behavior of the DwWidget (will e.g. be needed for
tables). Instead, the button press event should be connected to the
viewport. I'm working on it.

Sebastian 



Re: [Dillo-dev]Just a word about bug #1009

From: Eric GAUDET <egaudet@in...> - 2001-02-13 01:44

-- En reponse de "Re: [Dillo-dev]Just a word about bug #1009" de Livio Baldini
Soares, le 12-Feb-2001 :
> Hi Eric!
> 
> Eric GAUDET writes:
>> Ok, my previous patch for bug#1009 and so has problems sometimes. I think
>> this
>> one is better:
> 
> 
> This is why I love open-source! You come up with a minimal trace of
> the problem, and in the next day, someone already has a working patch
> to fix it!
> 
> Nice work!
> 

That's what you call working around the clock ! ;-)

> By the way the page in
> http://www.rti-zone.org/dillo/Html.testsuite/jorge/A_tag.html has a
> missing <BODY> tag after </HEAD>, but I don't know if that's not there
> on purpose...
> 

That's because Jorge's pages are mostly live pages (pages he found on the net
"as-is", not corrected), wether mine are built page where every mistake is made
on purpose ;-) (there's faulty pages in the testsuite to test missing tags such
as <body>)
Anyway, Dillo's great at ignoring such problems.

> best regards,
> 
> -- 
> Livio <livio@li...>
> 
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> http://lists.so....net/lists/listinfo/dillo-dev

------------------------------------
Eric GAUDET <egaudet@in...>
Le 13-Feb-2001 a 10:41:38
"In theory, there's no difference between 
theory and practice; in practice, there is.
------------------------------------ 



Re: [Dillo-dev]Just a word about bug #1009

From: Livio Baldini Soares <livio@li...> - 2001-02-12 17:11

Hi Eric!

Eric GAUDET writes:
> Ok, my previous patch for bug#1009 and so has problems sometimes. I think this
> one is better:


This is why I love open-source! You come up with a minimal trace of
the problem, and in the next day, someone already has a working patch
to fix it!

Nice work!

By the way the page in
http://www.rti-zone.org/dillo/Html.testsuite/jorge/A_tag.html has a
missing <BODY> tag after </HEAD>, but I don't know if that's not there
on purpose...

best regards,

-- 
Livio <livio@li...> 



RE: [Dillo-dev]Just a word about bug #1009

From: Eric GAUDET <egaudet@in...> - 2001-02-12 15:39

-- En reponse de "RE: [Dillo-dev]Just a word about bug #1009" de Jvrgen
Viksell, le 12-Feb-2001 :
>>Ok, my previous patch for bug#1009 and so has problems sometimes. I think 
>>this
>>one is better:
> <snip>
> 
> Works great here!
> 
> I am wondering about a related issue.
> If You imagine a rectangle around all rendered text. You can't click outside 
> of that area.
> In the case of bug #1009 or a page that Dillo can't render, it's impossible 
> to right click and view the source to determine the problem.
> 

You're right: there's definitely a problem here. please make a bug entry for
this.

> Cheers,
> Jvrgen
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> http://lists.so....net/lists/listinfo/dillo-dev

------------------------------------
Eric GAUDET <egaudet@in...>
Le 13-Feb-2001 a 00:39:15
"In theory, there's no difference between 
theory and practice; in practice, there is.
------------------------------------ 



RE: [Dillo-dev]Just a word about bug #1009

From: Jörgen Viksell <vsksga@ho...> - 2001-02-12 15:04

>Ok, my previous patch for bug#1009 and so has problems sometimes. I think 
>this
>one is better:
<snip>

Works great here!

I am wondering about a related issue.
If You imagine a rectangle around all rendered text. You can't click outside 
of that area.
In the case of bug #1009 or a page that Dillo can't render, it's impossible 
to right click and view the source to determine the problem.

Cheers,
Jörgen
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. 



RE: [Dillo-dev]Just a word about bug #1009

From: Eric GAUDET <egaudet@in...> - 2001-02-12 14:01

Attachments: patch.dillo-0.4.0pl2.bug#1009.2      

Ok, my previous patch for bug#1009 and so has problems sometimes. I think this
one is better:

--- dillo-0.4.0pl2/src/dw_page.c Tue Feb 6 23:44:05 2001
+++ dillo-0.4.0pl2.bug#1009/src/dw_page.c Mon Feb 12 22:58:09 2001
@@ -782,6 +783,9 @@ static void Dw_page_rewrap(DwPage *page)
g_free(old_line->words);
}
g_free(old_lines);
+
+ if(page->num_lines == 1)
+ page->real_width = page->lines[0].x_size;
}

------------------------------------
Eric GAUDET <egaudet@in...>
Le 12-Feb-2001 a 23:00:06
"In theory, there's no difference between theory and
practice; in practice, there is.
------------------------------------ 



RE: [Dillo-dev]Just a word about bug #1009

From: Eric GAUDET <egaudet@in...> - 2001-02-12 09:11

Attachments: patch.dillo-0.4.0pl2.bug#1009      

Ok, here's a patch for fixing bug#1009 and bug#1010 and bugs related to 1-line
painting.
I'm not sure it's the right way to do this, because I didn't look very closely
to new_line and new_word pages, and it's quite possible I don't understand
everything in this code.
Anyway it seems better to compute real_witdh in new_line, after each line, than
in new_word, after some strange tests of new_line being either hard or soft.

cheers,
Eric

--- dillo-0.4.0pl2/src/dw_page.c Tue Feb 6 23:44:05 2001
+++ dillo-0.4.0pl2.bug#1009/src/dw_page.c Mon Feb 12 17:57:29 2001
@@ -628,9 +628,6 @@ static DwPageWord *Dw_page_new_word(DwPa
new_line = TRUE;
}
}
- 
- if (new_line)
- page->real_width = MAX(page->real_width, line->x_size);
}

if (new_line) {
@@ -775,6 +772,8 @@ static void Dw_page_rewrap(DwPage *page)
} 
}

+ page->real_width = MAX(page->real_width,
page->lines[page->num_lines-1].x_size);
+
if (old_line->hard) {
a_Dw_page_linebreak(page);
page->lines[page->num_lines - 1].y_space = old_line->y_space;

------------------------------------
Eric GAUDET <egaudet@in...>
Le 12-Feb-2001 a 17:59:23
"In theory, there's no difference between theory and
practice; in practice, there is.
------------------------------------ 



RE: [Dillo-dev]Just a word about bug #1009

From: Eric GAUDET <egaudet@in...> - 2001-02-12 08:23

Ok, I've been testing a lot, and it appears that two bugs #1009 and #1010
didn't exist in the first release of dillo 'Dw-040' tarball (d040b.tgz). 
There was almost no change in html.c between d040b and d040d2.
The only major difference I see is the change in the scrollers code, which is
closely related to the pagemarks Livio was talking about: I think the page is
parsed correctly, but for whatever reason it never paints. Or it paints but the
scrollers are not initialized correctly and the page is painted outside the
visible area of the viewport (but then we should be able to have a popup menu
to see the source, and we don't, so it's probably not that).
Anyway, I think the changes in the scroller code removed some important init
(or miss some that weren't needed before). And it seems that a single pagemark
(called by a H tag) or anchor does what's needed so the init is done.
Sebastian, do you have a clue ?

... hum ... maybe it's not that after all. Let's try this:
<html>
Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla Bla
</html>

The page isn't drawn ... because the text fits on only one line ! Just resize
the browser so the text is rewrapped in a second line, and the text is painted
!!

... more on this in a couple of hours ;-)


-- En reponse de "RE: [Dillo-dev]Just a word about bug #1009" de Eric GAUDET,
le 12-Feb-2001 :
> 
> All these pages are very look-alike. It seems that not all html tags do
> what's
> needed for the page to render. As you noticed, H1 seems to do the job! I'm
> investigating this right now.
> ... more on this in a couple of hours ;-)
> 
------------------------------------
Eric GAUDET <egaudet@in...>
Le 12-Feb-2001 a 16:50:24
"In theory, there's no difference between theory and
practice; in practice, there is.
------------------------------------ 



RE: [Dillo-dev]Just a word about bug #1009

From: Eric GAUDET <egaudet@in...> - 2001-02-12 07:26

-- En reponse de "[Dillo-dev]Just a word about bug #1009" de Livio Baldini
Soares, le 12-Feb-2001 :
> Hi guys!
> 
Hi Livio, good to see you again.

...
> 
> Just a thought about bug #1009; the bug doesn't seem to be related
> to A-tag splitting, but worst. CVS Dw-040 doesn't even render this
> page:
> 
> ----------------
> <html>
> <body>
> Hello!
> </body>
> </html>
> -----------------
> 
...
> 
> I can't yet tell what this means, but by the looks of things,
> something's not being initialized correctly and that's why a "simple"
> HTML (without <h1>, etc) doesn't render correctly. I'm pretty sure
> that's what's causing bug #1009, and not the A-tag splitting suggested
> in that bug report.
> 

Since you found that, I think this is _exactly_ the same with bug#1010 ! (I did
the two entries for these bugs, only by looking at each page of the testsuite,
no investigation in the sources)
I did a corrected version of A_tag.html, the page that gives errors for
bug#1009, and the bug remains.
(see all sources of this pages at the end of this mail)

All these pages are very look-alike. It seems that not all html tags do what's
needed for the page to render. As you noticed, H1 seems to do the job! I'm
investigating this right now.
... more on this in a couple of hours ;-)



PS: Here are the involved pages source:
BUG#1009:(jorge/A_tag.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Test Page for Apache Installation on Web Site</TITLE>
</HEAD>
<P>
The Apache
<A
HREF="manual/index.html"
>documentation</A>
has been included with this distribution.
</P>
</BODY>
</HTML>

BUG#1010:(jorge/fool_raw.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<BODY>
<IMG SRC="maj00s.gif">
</BODY>

Corrected page:(jorge/A_tag2.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Test Page for Apache Installation on Web Site</TITLE>
</HEAD>
<P>
The Apache
<A HREF="manual/index.html">documentation</A>
has been included with this distribution.
</P>
</BODY>
</HTML>


------------------------------------
Eric GAUDET <egaudet@in...>
Le 12-Feb-2001 a 16:10:37
"In theory, there's no difference between theory and
practice; in practice, there is.
------------------------------------ 



[Dillo-dev]Just a word about bug #1009

From: Livio Baldini Soares <livio@li...> - 2001-02-12 05:07

Hi guys!

I'm sorry about the long time absent, but I ran into some time
consuming problems, and I think I'm finally getting rid of them. In a
while (less then a month), I'll have some time to put into Dillo.

Just a thought about bug #1009; the bug doesn't seem to be related
to A-tag splitting, but worst. CVS Dw-040 doesn't even render this
page:

----------------
<html>
<body>
Hello!
</body>
</html>
-----------------

But strangely adding a loose <h1> will fix things up. So this page
Dillo will render ok:

-----------
<html>
<body>
Hello!
<h1>
</body>
</html>
-----------

Strange, eh? I've tracked down to a call in H1 which makes the
`Hello!' show.

It seems to be the a_Menu_pagemarks_add() in
html.c:Html_tag_open_h:(around line 766).

Which calls a_Dw_page_add_anchor() in
menu.c:a_Menu_pagemarks_add:(around line 261).

And then inside in a_Dw_page_add_anchor, the "important" call seems to
be Dw_page_new_word() (which is too long for me to trace tonight...)

I can't yet tell what this means, but by the looks of things,
something's not being initialized correctly and that's why a "simple"
HTML (without <h1>, etc) doesn't render correctly. I'm pretty sure
that's what's causing bug #1009, and not the A-tag splitting suggested
in that bug report.

Any one got any ideas? I'm too tired and sleepy to think
anymore... when I have time I'll take a better look.

best regards to all,

-- 
Livio <livio@li...> 



[Dillo-dev]Readings

From: Eric GAUDET <egaudet@in...> - 2001-02-09 03:57

This was on slashdot, but I think everyone of us wants to read what a good
browser should do:

http://www.w3.org/TR/2001/NOTE-cuap-20010206

------------------------------------
Eric GAUDET <egaudet@in...>
Le 09-Feb-2001 a 12:55:22
"I remember Y1K, every abacus had to get another bead"
------------------------------------ 



[Dillo-dev]Dw [Message from Sebastian]

From: Jorge Arellano Cid <jcid@em...> - 2001-02-07 01:39

Hi!

A few words about two bugs:

- Bug #1007 seems to be a bug of Gtk+ (tested with version 1.2.8),
not of Dw. I've attached an example which demonstrates it. Button
"baz" has a position > 2**31, and isn't focusable correctly.

I'll submit this bug to the the Gtk+ developers, and perhaps think
about a workaround or so.

- Bug #1006 is somehow caused by the decrease of the width when the
right scrollbar appears (this will change the allocation of the
viewport). I've committed a workaround which sets the right
scrollbar always visible, so this problem does not occur, but I
think, there should be a better solution. A starting point for
someone who wants to examine this bug, is to add some debug
messages into Dw_gtk_size_allocate.

And I've commented the line to connect the "key_press_event" signal
of the URI location entry, so you can only scroll the viewport by
keys by focusing it. It is simple to deactivate the old
functionality, and, unlike in 0.3.1, focusing the viewport by keys
works. This breaks a bit the "standard behavior" of Gtk+ GUIs, so
what is your opinion about it?

Sebastian 



[Dillo-dev]Re: about dillo + libc5 (fwd)

From: Jorge Arellano Cid <jcid@em...> - 2001-02-05 13:28

Hi,

I'm answering this email to the list because I received it twice...

Jorge.-

---------- Forwarded message ----------
Date: Thu, 1 Feb 2001 18:59:34 -0300 (CLST)
From: Jorge Arellano Cid <jcid@in...>
To: nikolaos roumbos <nikroub@ho...>
Subject: Re: about dillo + libc5


Nikolaos,

Hi, I noticed you in the mailing list a long time ago, and now
you show!

> Hi my name is nikos
> and i'm writting you from athens, greece.I'm following dillo since last
> summer, in fact i subscribed to the list in the middle of july
> and as this is the first time that i'm contacting with someone from this
> project i would like to say a grate bravo to all of you for this application
> and espacially to you the hard maintainer.

Thanks indeed.

> I count myself quite familiar with dillo but in general i'm supposed to be a
> newby in the Linux world.
> Recently i managed to compile dillo-0.3.0 statically under Red Hat 6.0 which
> is a libc6 distribution, and afterwards i've ported it in a custom tiny
> distribution supported with libc5 libraries.
> Everything works fine except that dillo can't resolve domain names, it works
> only if i give in the url entry IP adresses.
> For example it can't resolve http://localhost but works fine
> with http://127.0.0.1.
> Today i found out that the problem is in the source file
> dns.c. I commented out line 47 (as you mention in the readme file)
> and compiled dillo but a get an error in dns.c in fuction "Dns_server".
> My question is if it's possible to compile dillo with libc6
> now that i've edited dns.c and then port it to a libc5 distribution,
> or should i to compile it in libc5 distribution so as to work
> with a libc5 distribution.

OK, several things:

- Use 0.3.1 or even better, the 0.3.2-pre from CVS. This will
not solve your problem, but you'll get a better dillo ;-)

- You have problems because libc5 and libc6 differ in the
domain resolving function (reentrancy) concerns.

There're two ways around it:

I) Statically compile your version in a libc5 system
(Define: G_DNS_THREADED and LIBC5; lines 46 and 51)
or

II) Leave line 46 uncommented and set 1 server on line 56.
(and compile as you explained)

Of both I) is better cause you'll have a multiple channel
(faster) dns solver. With II) it will work but somewhat slower.



> Your help will be valuable.
> Thanks in advance, and keep up this grate work.

Hope this helps
Jorge.-