summaryrefslogtreecommitdiff
path: root/old/oldmail/200208.txt
blob: 90d3fbf6e2a636b2dd0f49f2725f7d9605712919 (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
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
[Dillo-dev]End of ematic account.

From: Jorge Arellano Cid <jcid@so...> - 2002-08-30 20:32

**** Important ****

Hi there!


Ematic did it again, but this will be the last time!

I switched my email address, so please update your bookmarks.


Thanks
Jorge.-


PD: Don't ask where! 



[Dillo-dev]Tuxscreen: No Images

From: Brad Colbert <brad@rn...> - 2002-08-30 05:19

Hi folks,

I finally got dillo to compile and run on a Tuxscreen phone but it won't
seem to render images. I compiled it against both, jpeglib and pnglib
but it doesn't seem to matter.

Has anyone else had a similar problem? If so, did you fix it? If so
how?

Thanks,
Brad 



Re: [Dillo-dev]Dpi progress

From: Jamin W. Collins <jcollins@as...> - 2002-08-27 18:34

On Tue, 27 Aug 2002 14:09:37 -0400 (CLT)
Jorge Arellano Cid <jcid@em...> wrote:

> -----------
> The Problem
> -----------
> 
> My Thinkpad laptop decided to go dark,
> and as I keep all of my dillo project stuff in it,
> it's a serious problem.
> 
> 
> The LCD is hard to read, maybe showing 50% of the brightness it
> should. May it be the inverter? I don't know.
> 
> Just in case there's someone knowledgeable here, any help would
> be highly appreciated.

Perhaps a bit of over simplication, but how about pulling the data off
said laptop and putting it into a CVS server or other storage location. I
(and I'm sure others) can offer storage and replication of the data. 

Doesn't help much with the laptop, but it does preserve the data.

-- 
Jamin W. Collins 



[Dillo-dev]Hyperlinks as images

From: <jbradford@di...> - 2002-08-27 18:15

Hi everyone,

I thought of this idea a while ago, but I'm not sure how useful/practical it would be in practice, but at least it is an original, (as far as I know) and interesting idea:

How about an option to render all hyperlinks as small, (e.g. 128x128), thumbnails of the page they link to? Ignoring the fact that it would be wasteful of bandwidth, (fetching the html and inline images of all the linked pages), I can think of at least one instance where it would be very useful - locating a site that you found by following 20 links from one page to another, and then didn't bother to bookmark, but wished you had. Everybody has done it from time to time, you can 'see' the page in your head, but none or your searches turns it up. Now, if you could quickly glance down a load of thumbails of search results, wouldn't that help?

Even if this isn't deemed a workable idea, at least I can use this post as prior art when somebody patents the idea, (which they are bound to try to do eventually) :-).

John. 



Re: [Dillo-dev]Downloads & hacking

From: Jorge Arellano Cid <jcid@em...> - 2002-08-27 18:14

Matthieu,

On 24 Aug 2002, Matthieu Sozeau wrote:

> Hello dillo devs,
>
> this is my first post to this list so first I thank you for this
> lightning-fast browser.

Thanks, and welcome aboard.

> I hacked up a download manager as I see no
> volunteer had come to it until now. I made it similar to the Opera's
> transfer manager, in a separate window, which can be hidden at
> will. Just to name a few problems, there is no progress bar, first
> because GtkCList do not support widget cell's in gtk-1.2 and second,
> because the CacheClient_t struct has not the total length in it. As
> this cache client is not attached to a browser window, it segfaults
> when cache wants to remove its clients. There are "beware of
> downloads, transitory code" messages around this functions, so I
> hope we can find a nice solution.

Well, the latest idea is to implement downloads with the new
dpi framework (one minor glitch is that I haven't finished coding
it yet! :).

The point is to write an external program (dpi server) that
handles download requests.

Here's what you can do while I work on the dpi framework (my
next post will be on my progress):

Write a server that listens on a certain port for commands
(don't care about cmd. syntax now). If it can queue the commands,
and service them from there, that's enough.

That is:

--------------
<some cmd> -----> | Dpi server |
--------------
|
<answer> <-------------'


Note: <answer may be void if an action is taken>


So far you have a "get this URL" command and started
downloading it to some local directory. If you keep the time it
started, the downloaded bytes and the total size, some stats can
be given back when required.

For instance:

--------------
<stats please> -----> | Dpi server |
--------------
|
<html answer> <-------------'


A simple HTML page can do the trick:

>>

<h1>Downloads</h1>
<table bgcolor='white' width='70%' border='1'>
<tr>
<td> file1.tgz </td>
<td> 63000/100000 </td>
<td> 63% </td>
<td width='100%'> <table width='100%' cellpadding='8' cellspacing='1'>
<tr><td bgcolor='blue' width='63%'></td>
<td bgcolor='gray' width='37%'></td></tr>
</table> </td>
</tr>
</table>

>>

That solves the status bar issue!

There are some good advantages for this scheme.

You may like to read my previous posts about the new dpi, and
certainly the one I'm about to write :).

Ok, if you code it as sketched above, you'd end up with a
server that can listen to commands while it downloads, and
consequently answer some statistics about what's going on.

The details should become clear when I release the first
version of a dpi-program, that is: bookmarks.

>
> Anyway, I'm really willing to help this project grow rapidly, and
> there are things I'd like to do when i understand it more, like
> tabs, XML-ability or gestures. For now I just wait for your
> comments/advices/flame and walks around the bug database :)
>
>
> my diff is at http://mattam.ath.cx/progs/dillo/dl.diff.gz

I read your diff, and hope this lines get you started.

Tabs?

I already have a patch for tabs, it may eventually get in, but
as dpi is the bottleneck and first concern, I'm 99% on it.


Cheers
Jorge.- 



[Dillo-dev]Dpi progress

From: Jorge Arellano Cid <jcid@em...> - 2002-08-27 18:14

Hi there!

After some hard work on the required CCCs for the dpi, it all
seemed to work smoothly, but after adding some random delays to
fake asynchronous behaviour, it became clear that there were race
conditions, and some events were not being generated.

A deep analysis showed that forcing the events somehow could
fix the problems, but I couldn't find a witty (and simple and
portable) way to do the trick. Then, there was a stance for
generating the events as glib does (very dangerous), and also of
forcing the actions those events trigger, but frankly, that is
asking for trouble because code maintenance becomes a nightmare
from then.

Hmmm, there was also the possibility of using threads; that way
the events are generated automatically, but it also involved all
the inherent complexity of threads.

Tough decision.

...


After some more thoughts I decided to try the threaded stuff.

Quite complex, if you ask me: threads always look simpler than
they really are.

Well, now I have a fancy thread (with mutex, conditions and
local tricks), that does the job OK.

Now, I need to test it on the querying branch (currently it
sends the built-up HTML from DPI to the ordinary IO-Cache
answer branch).

Up to this point, it works.

After setting it on the querying branch, it would be a matter
of designing the appropriate CCCs for error control and message
passing. From then, some improving of the bookmarks dpi-program,
writing some docs and it could go to the CVS.



-----------
The Problem
-----------

My Thinkpad laptop decided to go dark,
and as I keep all of my dillo project stuff in it,
it's a serious problem.


The LCD is hard to read, maybe showing 50% of the brightness it
should. May it be the inverter? I don't know.

Just in case there's someone knowledgeable here, any help would
be highly appreciated.



Cheers
Jorge.- 



Re: [Dillo-dev][patch] Bug 220 - saving entered datas in forms

From: Jamin W. Collins <jcollins@as...> - 2002-08-27 13:42

On Tue, 27 Aug 2002 20:25:41 +0700
"Nikita V. Borodikhin" <eliterr@tk...> wrote:

> Question: Should we save values when user just filled controls
> and pushes the back button whithout submitting ?

IMO, yes.

-- 
Jamin W. Collins 



Re: [Dillo-dev][patch] Bug 220 - saving entered datas in forms

From: <jbradford@di...> - 2002-08-27 13:40

Hi,

> I made a patch that fixes bug 220.

Thanks, that was one that irritated me quite a lot :-)

> P.S.
> Question: Should we save values when user just filled controls
> and pushes the back button whithout submitting ?

Best make it a configure option

On a related note, could we make it so that middle clicking a form submit button opens the link in a new window? Amaya does this, and I liked it a lot.

John. 



[Dillo-dev][patch] Bug 220 - saving entered datas in forms

From: Nikita V. Borodikhin <eliterr@tk...> - 2002-08-27 13:31

Hello all Dillo developers !

I made a patch that fixes bug 220.

This is a description of how it shold work:
-------------------------------------------------------------
When user submits any form from page to server current values
of all changable input elements in all forms are saved
in array in browser window's history.

If user shows this page again using backward/forward controls
then input elements are filled with their last values again.

Restoring of course if not performed when page is reloaded or
the same URL is opened in other dillo's window or even when it
is opened in the same window but in other position in history.
--------------------------------------------------------------

I tested this patch and found it works as I mean so enjoy.
...and catch possible bugs

Patch against current CVS tree:
http://www.tkk.ru/~eliterr/dillo/dillo-saving-values.diff

P.S.
Question: Should we save values when user just filled controls
and pushes the back button whithout submitting ?

Nikita V. Borodikhin 



[Dillo-dev]Downloads & hacking

From: Matthieu Sozeau <mattam@ne...> - 2002-08-24 02:51

Hello dillo devs,

this is my first post to this list so first I thank you for this
lightning-fast browser. I hacked up a download manager as I see no
volunteer had come to it until now. I made it similar to the Opera's
transfer manager, in a separate window, which can be hidden at
will. Just to name a few problems, there is no progress bar, first 
because GtkCList do not support widget cell's in gtk-1.2 and second,
because the CacheClient_t struct has not the total length in it. As
this cache client is not attached to a browser window, it segfaults
when cache wants to remove its clients. There are "beware of
downloads, transitory code" messages around this functions, so I
hope we can find a nice solution.

Anyway, I'm really willing to help this project grow rapidly, and
there are things I'd like to do when i understand it more, like
tabs, XML-ability or gestures. For now I just wait for your
comments/advices/flame and walks around the bug database :)


my diff is at http://mattam.ath.cx/progs/dillo/dl.diff.gz

-- 
"There are two ways of constructing a software design; one way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
- C. A. R. Hoare 



Re: [Dillo-dev]CVS

From: Jamin W. Collins <jcollins@as...> - 2002-08-23 22:12

On Fri, 23 Aug 2002 23:02:04 +0100
jbradford@di... wrote:

> I've been happily using Dillo for a couple of months, and I thought the
> project had died - looking at CVS nothing has changed since about 1982 -
> but now I've found everybody lurking on this mailing list :-)

Not sure which CVS server you're looking at. Take a look here:

http://cvs.so....net/cgi-bin/viewcvs.cgi/dillo/dillo/

> So, basically, I was just wondering if there was a reason for not
> updating the CVS tree, (apart from lack of time), because I don't really
> feel like going through a couple of months of mailing list archive just
> to pick out all the patches :-).

You seem to be little out of touch with the current status. The project
is now hosted here:

http://dillo.cipsga.org.br/

HTH

-- 
Jamin W. Collins 



[Dillo-dev]CVS

From: <jbradford@di...> - 2002-08-23 21:54

Hi,

I've been happily using Dillo for a couple of months, and I thought the project had died - looking at CVS nothing has changed since about 1982 - but now I've found everybody lurking on this mailing list :-)

So, basically, I was just wondering if there was a reason for not updating the CVS tree, (apart from lack of time), because I don't really feel like going through a couple of months of mailing list archive just to pick out all the patches :-).

Does the CVS tree need a maintainer or something? Can I help?

Anyway, good work on Dillo, I've noticed a few unusual, and not-frequently-reproduced bugs, but they may well have been attended to since the begining of June, so I'll wait until I'm up to date with the lastest 'pre-patches' to comment :-).

John. 



Re: [Dillo-dev]Getting Dillo to work on arm7

From: Philip Blundell <pb@ne...> - 2002-08-19 07:38

On Sun, 2002-08-18 at 07:06, Alan DuBoff wrote:
> Has anyone compiled Dillo and have it running on an arm7 cpu? I think one of 
> the psions might have that chip, can't remember.

The binary from Debian should work on an EP7312. You will indeed need
an X server; TinyX is probably your best bet, but "big X" with the fbdev
driver would be OK also.

p. 



[Dillo-dev]Getting Dillo to work on arm7

From: Alan DuBoff <aland@So...> - 2002-08-18 06:09

I'm trying to get Dillo running on a Cirrus Logic EP7312, which has an arm7 
chip in it.

I have downloaded the latest source 0.6.6 and grabbed the gtk+-1.2.10 and 
glib-1.2.10 sources as well.

I think I'll need some flavor of X, and I wasn't sure if I can do that with 
MicroWindows/Nano-X, or if I'll need some other X server.

I wasn't able to find a list of dependancies, but I'm sure it's somewhere.

Has anyone compiled Dillo and have it running on an arm7 cpu? I think one of 
the psions might have that chip, can't remember.

-- 

Alan DuBoff
Software Orchestration, Inc.
GPG: 1024D/B7A9EBEE 5E00 57CD 5336 5E0B 288B 4126 0D49 0D99 B7A9 EBEE 



[Dillo-dev]anchor support for navigation (back/forward) [PATCH]

From: Frank Gevaerts <frank@ge...> - 2002-08-16 18:58

Hi,

I needed a small fast browser for some html we have produced. I needed
navigation within the html file, which dillo does not provide as of
v0.66. So I had a look and came up with the following patch. Can you
advise me on whether this is the right way to do it ? It seems to work
here.

Frank


diff -ur dillo-0.6.6/src/history.c dillo-0.6.6.fg/src/history.c
--- dillo-0.6.6/src/history.c 2002-04-10 02:53:58.000000000 +0200
+++ dillo-0.6.6.fg/src/history.c 2002-08-16 17:58:55.000000000 +0200
@@ -38,7 +38,7 @@
gint i, idx;

for (i = 0; i < history_size; ++i)
- if (a_Url_cmp(history[i].url, url) == 0)
+ if (a_Url_cmp(history[i].url, url) == 0 && URL_STRCAMP_EQ(history[i].url->fragment,url->fragment))
return i;

idx = history_size;
diff -ur dillo-0.6.6/src/nav.c dillo-0.6.6.fg/src/nav.c
--- dillo-0.6.6/src/nav.c 2002-04-10 03:10:16.000000000 +0200
+++ dillo-0.6.6.fg/src/nav.c 2002-08-16 20:34:52.000000000 +0200
@@ -176,7 +176,7 @@
MustLoad = ForceReload || !old_url;
if (old_url){
MustLoad |= a_Url_cmp(old_url, url);
- MustLoad |= strcmp(URL_STR(old_url), a_Interface_get_location_text(bw));
+ MustLoad |= strcmp(URL_STR_NOANCHOR(old_url), a_Interface_get_location_text(bw));
}

if ( MustLoad ) {
@@ -195,9 +195,19 @@
a_Interface_set_cursor(bw, GDK_LEFT_PTR);
}

- /* Jump to #anchor position */
+ /* Push on stack and jump to #anchor position */
if (URL_FRAGMENT_(url)) {
- /* todo: push on stack */
+ gint idx;
+ DilloUrl *hist_url=a_Url_dup(url);
+
+ /* unset E2EReload before adding this url to history */
+ a_Url_set_flags(hist_url, URL_FLAGS(hist_url) & ~URL_E2EReload);
+ idx = a_History_add_url(hist_url);
+ Nav_stack_add(bw, idx);
+ Nav_stack_clean(bw);
+ a_Interface_set_button_sens(bw);
+ a_Url_free(hist_url);
+
a_Dw_gtk_scrolled_window_set_anchor(
GTK_DW_SCROLLED_WINDOW(bw->docwin), URL_FRAGMENT_(url));
}
diff -ur dillo-0.6.6/src/url.c dillo-0.6.6.fg/src/url.c
--- dillo-0.6.6/src/url.c 2002-04-10 03:10:28.000000000 +0200
+++ dillo-0.6.6.fg/src/url.c 2002-08-16 20:20:59.000000000 +0200
@@ -56,19 +56,47 @@

if (!url->url_string) {
url->url_string = g_string_sized_new(60);
- g_string_sprintf(
- url->url_string, "%s%s%s%s%s%s%s%s%s%s",
- url->scheme ? url->scheme : "",
- url->scheme ? ":" : "",
- url->authority ? "//" : "",
- url->authority ? url->authority : "",
- (url->path && url->path[0] != '/' && url->authority) ? "/" : "",
- url->path ? url->path : "",
- url->query ? "?" : "",
- url->query ? url->query : "",
- url->fragment ? "#" : "",
- url->fragment ? url->fragment : "");
}
+ g_string_sprintf(
+ url->url_string, "%s%s%s%s%s%s%s%s%s%s",
+ url->scheme ? url->scheme : "",
+ url->scheme ? ":" : "",
+ url->authority ? "//" : "",
+ url->authority ? url->authority : "",
+ (url->path && url->path[0] != '/' && url->authority) ? "/" : "",
+ url->path ? url->path : "",
+ url->query ? "?" : "",
+ url->query ? url->query : "",
+ url->fragment ? "#" : "",
+ url->fragment ? url->fragment : "");
+
+ return url->url_string->str;
+}
+
+/*
+ * Return the url as a string, without the anchor part.
+ * (initializing 'url_string' camp if necessary)
+ */
+gchar *a_Url_str_noanchor(const DilloUrl *u)
+{
+ /* Internal url handling IS transparent to the caller */
+ DilloUrl *url = (DilloUrl *) u;
+
+ g_return_val_if_fail (url != NULL, NULL);
+
+ if (!url->url_string) {
+ url->url_string = g_string_sized_new(60);
+ }
+ g_string_sprintf(
+ url->url_string, "%s%s%s%s%s%s%s%s",
+ url->scheme ? url->scheme : "",
+ url->scheme ? ":" : "",
+ url->authority ? "//" : "",
+ url->authority ? url->authority : "",
+ (url->path && url->path[0] != '/' && url->authority) ? "/" : "",
+ url->path ? url->path : "",
+ url->query ? "?" : "",
+ url->query ? url->query : "");

return url->url_string->str;
}
diff -ur dillo-0.6.6/src/url.h dillo-0.6.6.fg/src/url.h
--- dillo-0.6.6/src/url.h 2002-04-10 03:05:43.000000000 +0200
+++ dillo-0.6.6.fg/src/url.h 2002-08-16 20:25:02.000000000 +0200
@@ -56,6 +56,7 @@
#define URL_ALT_(u) u->alt
#define URL_POS_(u) u->scrolling_position
#define URL_STR_(u) a_Url_str(u)
+#define URL_STR_NOANCHOR_(u) a_Url_str_noanchor(u)

/*
* Access methods that always return a string:
@@ -75,6 +76,7 @@
#define URL_ALT(u) NPTR2STR(URL_ALT_(u))
#define URL_POS(u) URL_POS_(u)
#define URL_STR(u) NPTR2STR(URL_STR_(u))
+#define URL_STR_NOANCHOR(u) NPTR2STR(URL_STR_NOANCHOR_(u))



@@ -117,6 +119,7 @@
gint flags, gint pos);
void a_Url_free(DilloUrl *u);
gchar *a_Url_str(const DilloUrl *url);
+gchar *a_Url_str_noanchor(const DilloUrl *url);
const gchar *a_Url_hostname(const DilloUrl *u);
DilloUrl* a_Url_dup(const DilloUrl *u);
gint a_Url_cmp(const DilloUrl* A, const DilloUrl* B); 



Re: [Dillo-dev]turning images off

From: madis <madis@cy...> - 2002-08-15 22:09

On Sat, 10 Aug 2002, Lex Hider wrote:

> I have done a bit of a patch for my own use
> that gives a preference option to
> turn images on or off. 
> check it out.

Dillo does not draw alt text for images and image links without alt text 
are quite uncomfortable to use, when image is not loaded. I read this 
patch and seems that it would not add ability drawing alt text. Here is a 
patch to do this:

diff -pru -x CVS -x 'Makefile*' -x config.h.in dillo-cvs/src/dw_image.c 
dillo/src/dw_image.c
--- dillo-cvs/src/dw_image.c 2002-04-10 16:08:18.000000000 +0300
+++ dillo/src/dw_image.c 2002-08-16 00:48:50.000000000 +0300
@@ -281,19 +281,19 @@ static void Dw_image_draw (DwWidget *wid

p_Dw_widget_draw_widget_box (widget, area);

- if (image->buffer) {
- content.x = p_Dw_style_box_offset_x (widget->style);
- content.y = p_Dw_style_box_offset_y (widget->style);
- content.width =
- widget->allocation.width - p_Dw_style_box_diff_width (widget->style);
- content.height = widget->allocation.ascent + widget->allocation.descent -
- p_Dw_style_box_diff_height (widget->style);
-
- if (p_Dw_rectangle_intersect (area, &content, &intersection)) {
- vx = p_Dw_widget_x_world_to_viewport (widget, widget->allocation.x);
- vy = p_Dw_widget_y_world_to_viewport (widget, widget->allocation.y);
- gc = widget->style->color->gc;
+ content.x = p_Dw_style_box_offset_x (widget->style);
+ content.y = p_Dw_style_box_offset_y (widget->style);
+ content.width =
+ widget->allocation.width - p_Dw_style_box_diff_width (widget->style);
+ content.height = widget->allocation.ascent + widget->allocation.descent -
+ p_Dw_style_box_diff_height (widget->style);
+
+ if (p_Dw_rectangle_intersect (area, &content, &intersection)) {
+ vx = p_Dw_widget_x_world_to_viewport (widget, widget->allocation.x);
+ vy = p_Dw_widget_y_world_to_viewport (widget, widget->allocation.y);
+ gc = widget->style->color->gc;

+ if (image->buffer) {
if (image->scaled_buffer)
buffer = image->scaled_buffer;
else
@@ -309,6 +309,39 @@ static void Dw_image_draw (DwWidget *wid
vx + intersection.x, vy + intersection.y,
intersection.width, intersection.height, GDK_RGB_DITHER_MAX,
bstart, content.width * 3);
+ } else if (image->alt_tooltip) {
+ GdkFont *font;
+ const gchar *s;
+ int width = 0;
+
+ font = widget->style->font->font;
+ if (content.width) {
+ for (s = image->alt_tooltip->text; *s && width < content.width; )
+ width += gdk_char_width(font, *(s++));
+ } else
+ s = image->alt_tooltip->text + strlen(image->alt_tooltip->text);
+ gdk_draw_text(DW_WIDGET_WINDOW (widget), font, gc, vx, vy +
+ (content.height + font->ascent - font->descent) / 2,
+ image->alt_tooltip->text, s - image->alt_tooltip->text);
+ } else if (content.width > 2 && content.height > 2) {
+ int lx, ly, cx, cy;
+ 
+ lx = vx + intersection.x + intersection.width - 1;
+ ly = vy + intersection.y + intersection.height - 1;
+ cx = vx + content.width - 1;
+ cy = vy + content.height - 1;
+ if (!intersection.x)
+ gdk_draw_line(DW_WIDGET_WINDOW (widget), gc,
+ vx, vy + intersection.y, vx, ly);
+ if (!intersection.y)
+ gdk_draw_line(DW_WIDGET_WINDOW (widget), gc,
+ vx + intersection.x, vy, lx, vy);
+ if (cx <= lx)
+ gdk_draw_line(DW_WIDGET_WINDOW (widget), gc,
+ cx, vy + intersection.y, cx, ly);
+ if (cy <= ly)
+ gdk_draw_line(DW_WIDGET_WINDOW (widget), gc,
+ vx + intersection.x, cy, lx, cy);
}
}
}


-- 
mzz 



Re: [Dillo-dev]Hello

From: higuita <higuita@GM...> - 2002-08-14 23:47

Attachments: Message as HTML      

On Fri, 9 Aug 2002 13:01:18 +0100 (BST), first last
<prelude_2_murder@ya...> wrote:
> This idea is to have a filtering proxy to enable disable images and/or 
> cookies on a per-site basis.

use the privoxy, the new version of junkbuster
the new version, 3.0 is almost done, in some weeks will
be released
it was build to be portable, runs in almost all unix and win32

just search in google, should be the first link

> This proxy would be running on the computer when Dillo runs (if the 
> option is set in the dillorc file) and Dillo would have an option in
> one
> of the menus (or maybe a button) to enable/disable images from the 
> site, which communicates with the proxy (maybe the proxy accepts http 
> get or post requests using a cgi interface, so no extra communication 
> protocol has to be developed).

privoxy talks with the user via some cgi to enable, disable, edit
and other
just bookmark the options or make a small patch to add a static
bookmark in the right click

> The proxy does not do html parsing, as this is too processor intensive,
> but only filters files based on extension and/or mime type (or request 
> type, I don't know that much of http yet).

privoxy does html parsing in full mode, but you can configure it
to the plain old junkbuster url&extension block

privoxy use the html parsing to disable ads by size, pop-ups, 
javascript cookies, web-bugs and many other things
it can be used too to fix/change pages, like new theme for
slashdot, fix bad html code that only work in IE to a more
standard code that works in all browsers

i run it in a old 486 in full filtering and never saw the cpu
getting too high because of filtering

> The reason for this is that for modem users like me, images are a 
> nuisance most of the time and also we can enable ad-filtering. I know 
> that i could use links or relatives, but the brower is the application 
> that I think that it has to be graphical.

you can use too lynx or links, this way you dont get any images,
just stuff that matters
lynx and links are still the faster browsers for modem users, 
especially old/slow modems

but a well tuned privoxy will make miracles too

higuita
-- 
One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone bind them. 



[Dillo-dev]Current progress (14/Aug)

From: Jorge Arellano Cid <jcid@em...> - 2002-08-14 16:57

Hi there!


It's been a tough week of work here; I was squeezing my brains
trying to get the extended CCC theory delineated. Now, I need a
couple of days of rest before resuming.

It has been very productive though!, maybe 70% of it is done,
with _maybe_ just 20-30% of coding to reach the point that
asserts that the whole theory can implement the dpi framework as
thought.

That's the twilight-zone between theory and practice.

Full time dedication yields its gains, but as a side effect, a
lot of other interesting, less prioritized ideas, have to wait.

My first priority by now, is to get the dpi framework done,
so please be patient.

BTW, I have enough to-review patches and ideas, to build up a
new release; but they need some work.

To name a few:

IPv6, auto{conf/make} fixes, push consistency, command line
options (enabling integration with sylpheed), meta refresh
warning message (in HTML) with a link, an some other ideas.

Ah, before I forget, please read the nice article about FreeSW
and UI from the links section of our site [Livio: please place a
new-icon there. Obrigado!].

With all that, plus a few dpi-programs we'll have more than
enough for a full blown 0.7.0 release, but we need the dpi
framework first...

----

We have been trying with Livio, to finish setting the CVS
server and mailing lists from CIPSGA since more than a month, but
none of us has been able to contact a sysadmin there! (?)

Livio: please place note right in the front page of our site
asking for a sysadmin from CIPSGA to contact us.

[Lex wrote:]
> Just thought people would be interested in the mention
> in Linux Journal that dillo gets.
>
> http://www.linuxjournal.com/article.php?sid=6169

Thanks a lot Lex.

BTW, it'd be great to add it to our press section and also in
the front page.

(As you may have noticed, Livio and I maintain the site).


Cheers
Jorge.-


PD: sorry for the "poutpourri" style, but there was a lot of
little things to say ;) 



Re: [Dillo-dev][patch] build dillo in a separate tree to the source code

From: Matias Aguirre <yo_soy@fa...> - 2002-08-14 11:00

On Wed, 14 Aug 2002 12:52:27 +0200
Tomas Guemes <tomas@pa...> wrote:

> Hi all,
> 
> I tried to build dillo in a separate tree to the source code
> 
> %mkdir dillo-build && cd dillo-build
> %../dillo-0.6.6/configure
> %make
> 
> <skip>
> 
> gcc -DHAVE_CONFIG_H -I. -I../../dillo-0.6.6/src -I.. 
> -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
> -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -Wall -Waggregate-return -c ../../dillo-0.6.6/src/cache.c
> In file included from ../../dillo-0.6.6/src/cache.c:27:
> ../../dillo-0.6.6/src/IO/Url.h:5: ../../config.h: No such file or
> directory
> 
> I just change all the #include "config.h" to <config.h>
> 

It is the same file?
Maybe <config.h> call to other header...i dont know

Greetings

-- 
Matias Aguirre
Software Engineer
Sinatec S.A.
Linux User #: 78193

Buenos Aires, Argentina 



[Dillo-dev][patch] build dillo in a separate tree to the source code

From: Tomas Guemes <tomas@pa...> - 2002-08-14 10:48

Hi all,

I tried to build dillo in a separate tree to the source code

%mkdir dillo-build && cd dillo-build
%../dillo-0.6.6/configure
%make

<skip>

gcc -DHAVE_CONFIG_H -I. -I../../dillo-0.6.6/src -I.. 
-I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -D_REENTRANT
-D_THREAD_SAFE -Wall -Waggregate-return -c ../../dillo-0.6.6/src/cache.c
In file included from ../../dillo-0.6.6/src/cache.c:27:
../../dillo-0.6.6/src/IO/Url.h:5: ../../config.h: No such file or
directory

I just change all the #include "config.h" to <config.h>

You can find the patch in http://pasky.dhs.org/tomas/dillo/

greetings 

tomas 



[Dillo-dev]linux journal mention

From: <lexxx_h@ya...> - 2002-08-14 03:02

Just thought people would be interested in the mention
in Linux Journal that dillo gets.

http://www.linuxjournal.com/article.php?sid=6169

It's an article about running linux without it hogging
all your resources.

Says that dillo's memory usage is "rather impressive".

Lex.

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC! 



[Dillo-dev]Patch: updated command line options

From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-08-14 00:42

Hi,

Instead of posting the patch here, I have filed a bug concerning the command
line options (is this what Jorge suggested in his last mail to the ML?). I
updated the patch and it is 100% complete. It is available at:

http://melvin.hadasht.free.fr/home/dillo/cli/index.html

In short, it adds:
- portable short and long options (without using get_opt_long)
- options can have optional arguments
- support of '--' as a separator between options and URL/FILEs arguments
- automatic help text creation.

Any comments and suggestions are welcome (especially that I could find any
improvement possibilities.)

I'll update my other patches to support this new CLI patch in the coming days,
so they could act as a reference implementation for the CLI options.

-- 
Melvin Hadasht 



[Dillo-dev]sending patches

From: <lexxx_h@ya...> - 2002-08-12 01:35

Hi everyone,

sorry about sending the patches I was unaware of this
etiquette and I won't do it again.

As far as the rules regarding patches made the patches
for my own use and then realised someonelse might
find them useful.

Lex.

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC! 



[Dillo-dev]cookies date format problem

From: madis <madis@cy...> - 2002-08-11 20:04

I found that cookies didn't work very well in dillo when speaking with 
forum.zone.ee server starting from some dillo version and reason is:

This is HTTP header sent by server:

HTTP/1.1 200 OK
Date: Sun, 11 Aug 2002 19:21:23 GMT
Server: Apache/1.3.26 (Unix) mod_fastcgi/2.2.10 PHP/4.1.2
X-Powered-By: PHP/4.1.2
Set-Cookie: sessionhash=8a534d4b820feafd422ab005bd8bf74e; path=/; domain=forum.zone.ee
Set-Cookie: bblastvisit=1029093683; expires=Mon, 11-Aug-03 19:21:23 GMT; path=/; domain=forum.zone.ee
Content-Length: 49478
Connection: close
Content-Type: text/html


The cookies timestamp is in format that is almost RFC-850, but the weekday 
is Mon instead Monday, which you would expect from RFC-850 date.
This is probably a bug in PHP or vBulletin forum software (I'm not sure 
which one).

Dillo looks it and tells that this is a crap:

Parsing cookie string `bblastvisit=1029094010; expires=Mon, 11-Aug-03 19:26:50 GMT; path=/; domain=forum.zone.ee'
Cookies: Expire date is malformed! Ignoring cookie...
Removing cookie 'bblastvisit'

And result is that cookies don't work.

It is possible to allow this kind RFC-850 date with short weekday name 
(dillo doesn't use the weekday anyway) using trivial modification in 
cookies.c Cookies_create_timestamp function:

--- dillo-cvs/src/cookies.c 2002-05-29 17:44:46.000000000 +0300
+++ dillo/src/cookies.c 2002-08-11 22:44:47.000000000 +0300
@@ -386,8 +386,8 @@ static time_t Cookies_create_timestamp(c
minutes = strtol(cp + 14, NULL, 10); /* minutes */
seconds = strtol(cp + 17, NULL, 10); /* seconds */

- } else if (cp && ((cp - expires == 3 && strlen(cp) == 26) ||
- (cp - expires > 5 && strlen(cp) == 24))) {
+ } else if (cp && ((cp - expires > 5 && cp - expires <= 10) ||
+ cp - expires == 3) && (strlen(cp) == 24 || strlen(cp) == 26)) {
/* RFC-1123 | RFC-850 format */
day = strtol(cp + 2, NULL, 10);
month = Cookies_get_month(cp + 5);


But I suspect this would not met very well dillo's goal to not support 
bugs.

--
mzz 



Re: [Dillo-dev]check out these dodgy patches

From: Jamin W. Collins <jcollins@as...> - 2002-08-10 18:59

On Sat, 10 Aug 2002 12:26:56 -0400 (CLT) Jorge Arellano Cid
<jcid@em...> wrote:

> On Sat, 10 Aug 2002, Lex Hider wrote:
> 
> > I've done these few patches for my own use.
> > Just wondering if anyone thought they were useful.
> 
> OK Lex, would you mind reading the mailing list etiquette and
> the patching directions in our site?

I just took a second look at the site and it's guidelines regarding the
list, I don't see where Lex did anything wrong. According to the site:

<quote>
If your patch is small and you need to share it for advice, send it to the
mailing list. 
</quote>

Seems to be right in line with what Lex did. I don't consider 9 KB for
two patches to be _big_. Granted Lex might have gzip'd them prior to
adding them, but we are still only talking about 9 KB.

As far as ettiquette, his post was very clear and concise. Can't speak
for the patching portition as I haven't devel'd that far into Dillo.

-- 
Jamin W. Collins 



Re: [Dillo-dev]check out these dodgy patches

From: Jorge Arellano Cid <jcid@em...> - 2002-08-10 16:30

On Sat, 10 Aug 2002, Lex Hider wrote:

> I've done these few patches for my own use.
> Just wondering if anyone thought they were useful.

OK Lex, would you mind reading the mailing list etiquette and
the patching directions in our site?


Jorge.- 



[Dillo-dev]check out these dodgy patches

From: <lexxx_h@ya...> - 2002-08-10 12:54

Attachments: keys.diff      menu.diff      

I've done these few patches for my own use.
Just wondering if anyone thought they were useful.

menu.diff adds functionality to the right click menu.
keys.diff adds vi-style movement keys.

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC! 



[Dillo-dev]turning images off

From: <lexxx_h@ya...> - 2002-08-10 12:45

Attachments: images-new.diff      

I have done a bit of a patch for my own use
that gives a preference option to
turn images on or off. 
check it out.

Lex.

http://digital.yahoo.com.au - Yahoo! Digital How To
- Get the best out of your PC! 



[Dillo-dev]Re: Patch to use an external html source code viewer.

From: Cyril Bouthors <cyril@bo...> - 2002-08-09 21:59

Attachments: external_viewer_doc.patch      Bindings.txt      

I've forgot to include the tiny documentation I've made about this
source viewer patch and binding. I've described the "source_viewer"
option in the sample dillo initialization file and described generic
bindings into a new file called doc/Bindings.txt.

I felt the need to write Bindings.txt when I discovered that the
bindings for "backward" and "forward" functions (ALT+, and ALT+.) were
documented nowhere else than in the source code. :) 



[Dillo-dev]Patch to use an external html source code viewer.

From: Cyril Bouthors <cyril@bo...> - 2002-08-09 21:30

Attachments: external_viewer.patch      

Hello,

As discussed briefly with Livio on #dillo on OPN, I've made a patch to
allow an external program to view the HTML source code in Dillo. The
external viewer can be customized with the variable "source_viewer" in
user and system wide configuration files. If "source_viewer" is
different than "internal", Dillo will run the external viewer in the
background. Otherwise, "source_viewer" is defined as "internal" by
default and Dillo will use the standard "internal" GTK viewer.

I've also added a keyboard binding for the "view source" function (C-u
as in Galeon and Mozilla).

I hope the code is clean enough to be included in the CVS branch,
please do not hesitate to tell me what you think about that.

The patch is attached to this email. 



Re: [Dillo-dev]plugins

From: Jorge Arellano Cid <jcid@em...> - 2002-08-09 20:06

On 9 Aug 2002, Lars Clausen wrote:

> [...]
> > I want you to know that it wouldn't have been possible without
> > the hourly consulting contract I got from metro-techs to help
> > coding a feature they needed with dillo.
> >
> > In fact, I was looking for a job when they sprung-in. Now, as
> > you read the technical parts, please think about it, because it
> > could have not been there.
>
> This is very good news! I am so happy for you, and for Dillo.

Thanks Lars.

BTW, don't get me wrong, that contract is done. Nobody knows
what will happen next month.


> > After carefully reading the latest plugins' thread, I decided
> > to answer it as a whole, telling you some news.
> >
> > It's been a long effort to get to dpi spec, mainly working with
> > Eric, and at the latter time with Geoff. As you may know, the
> > main point of dpi is to become a powerful extension framework for
> > dillo.
> [...]
>
> I don't remember if I talked about this yet or not, but I have this idea
> for a system to handle unknown mime types, only slightly similar to my
> external handlers patch. As far as I can read the dpi spec, my idea
> wouldn't be workable by dpi unless you allow dpi to handle "mime types not
> handled by anybody else".

Well, I think a "last-resort" dpi should do it.


Cheers
Jorge.- 



Re: [Dillo-dev]plugins

From: Lars Clausen <lrclause@cs...> - 2002-08-09 18:20

On Fri, 9 Aug 2002, Jorge Arellano Cid wrote:
>=20
> Hi developers,
>=20
>=20
> I'm breaking my silence to tell you some news:
>=20
> I know this is an excellent project, some of you also know, and
> most of the people following our project wandering if they could
> make use of it in their products, also know that.
[...]
> I want you to know that it wouldn't have been possible without
> the hourly consulting contract I got from metro-techs to help
> coding a feature they needed with dillo.
>=20
> In fact, I was looking for a job when they sprung-in. Now, as
> you read the technical parts, please think about it, because it
> could have not been there.

This is very good news! I am so happy for you, and for Dillo.

> After carefully reading the latest plugins' thread, I decided
> to answer it as a whole, telling you some news.
>=20
> It's been a long effort to get to dpi spec, mainly working with
> Eric, and at the latter time with Geoff. As you may know, the
> main point of dpi is to become a powerful extension framework for
> dillo.
[...]

I don't remember if I talked about this yet or not, but I have this idea
for a system to handle unknown mime types, only slightly similar to my
external handlers patch. As far as I can read the dpi spec, my idea
wouldn't be workable by dpi unless you allow dpi to handle "mime types not
handled by anybody else".

The idea is to have a handler for unknown mime types that opens a dialog
for the user. The dialog should allow as-text, save-to-disk,
browse-for-app and most importantly a selection of appropriate handlers as
found in /etc/mailcap and ~/.mailcap. This will give the user enough
choice to find his or her preference (which the current external handlers
patch doesn't) yet narrow the choice down to the sensible candidates.
The users choice should of course be persistently saved.

While I haven't had much time for Dillo since I became co-maintainer of
Dia, I would like to do this, whether or not it can be done with dpi.

-Lars

--=20
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| H=E5rdgrim of Numenor
"I do not agree with a word that you say, but I |------------------------=
----
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbas=
ket? 



Re: [Dillo-dev]plugins

From: Jorge Arellano Cid <jcid@em...> - 2002-08-09 17:48

Hi developers,


I'm breaking my silence to tell you some news:

I know this is an excellent project, some of you also know, and
most of the people following our project wandering if they could
make use of it in their products, also know that.

That makes a good point, because it signals recognition.

Now, a project as complex as a web browser can't be developed
in a spare time basis. I know that, and so I'm trying to get some
funds to assemble a small team of core developers.

It may be that we still don't get to the break point where
everyone sees dillo as a very useful tool that's better to have
and preserve.

The good news is that dillo project is about to get to a new
milestone that will prove it even better. That is: plugins.

I want you to know that it wouldn't have been possible without
the hourly consulting contract I got from metro-techs to help
coding a feature they needed with dillo.

In fact, I was looking for a job when they sprung-in. Now, as
you read the technical parts, please think about it, because it
could have not been there.

Specially those of you working for a company that's evaluating
or trying to decide whether to deploy dillo or not, this is the
right time to help. A small consulting contract wouldn't hurt and
it may keep the boat afloat.


--------------
Technical part
--------------

After carefully reading the latest plugins' thread, I decided
to answer it as a whole, telling you some news.

It's been a long effort to get to dpi spec, mainly working with
Eric, and at the latter time with Geoff. As you may know, the
main point of dpi is to become a powerful extension framework for
dillo.

This is by no means an easy task, as it involves core parts of
dillo as the concomitant callback chain, IO engine and cache to
name a few. So progress had been very slow.

A month ago or so, an inspiring idea hit me bringing a somewhat
different way of implementing dpi; as Geoff was working on the
official dpi SPEC, I decided to give it a silent try and worked
some prototype code, it went good, and I kept working changes on
my dillo tree.

At this moment it's not complete, but I have changes worth a
70KB diff. That is, a new IO API, and an extension of the CCC
theory to accomodate what Geoff accurately points as multi-phase
exchanges vs. the single request-response scheme that dillo is
happiest with.

In other words, the CCC extensions were done to cope with the
multi-phase exchanges.

What do I have now?

A new scheme that's potentially able to cope with:

- One-request/One-response dpi
- Multi-phase exchanges
- dpis that exit when finished
- dpis that keep resident when finished (servers)
- message passing (back/forward)
- special task requests (as setting preferences)
- handling of FORM request data

This is enough for:

- Bookmarks, preferences, FTP, downloads, https, info, man, etc.
- Being an API for embedded platforms

Yes, dpi IS a powerful idea!


Why do I say "potentially able"?

Because it's not fully proven yet.
I still have to properly code parsing of dpi protocol answers
to be sure that the whole theory is implementation ready.

So far, the exended CCC showed no problems to handle the old
functionality, and I also have coded a resident bookmarks dpi
server that shows/add bookmarks and also passes some messages to
the status bar. So, it's very close!

One of the best things of the dpi extension is that it will
allow developing dillo applets (dpi programs) without having to
know dillo internals, that is, just the dpi API.

Another advantage is that you can use the dpi that best fits
your needs. For instance, a full featured FTP or a light weight
one.

So, my advice is to wait until it's ready.

(Well, unless you're confident enough to implement dpi from the
spec and end with a solution that's better than mine! ;).

But start coding your dpi program right now!

Yes, if you think of FTP (for instance), a program that gets an
FTP-URL at the command line, and then performs the whole FTPing
to retrieve the URL (let's think of a directory), and translates
it to HTML that's sent to stdout, would be a great advance.

In fact, the only thing left to make it a real dpi, would be
encapsulating it into dpi protocol.

If you need an answer from the browser, as with https'
allow/deny certificate, just assume you have the answer, and fake
a routine to do it. When dpi is finished, it will be a matter of
replacing it with the proper call.

Well, you've got the idea.



Sincerely
Jorge.-


PS: expect some news about it in a week or so. 



[Dillo-dev]Hello

From: <prelude_2_murder@ya...> - 2002-08-09 12:01

Hello everyone. I just joined this list because Dillo really matches my

ideas of what a useful browser should be and I would like to contribute

to it.

I have a couple of ideas that I would like to share with you.

The first one is that I would like to have an option to not display
images at all, but instead of doing it like Mozilla does (not
displaying 
anything), do it like Opera, displaying the "alt" text within a border 
or "image" if there is no "alt" text.

The way I thought of doing this was linking the code that renders the 
image to check for a variable and then call the image renderer or a 
table renderer instead, so it displays what I said before.

This is an idea, and I am more than open to suggestions on how to do it

correctly and in a way that would be accepted by the developers (no,
I'm
not keen on quick hacks and do agree that "properly written" code is 
the most important thing for maintainability).

The second one is something that I initially thought that it could be 
added to Dillo itself, but I realised that it does not go well with the

"do one thing and do it small" philosophy, so I thought of doing it 
apart.

This idea is to have a filtering proxy to enable disable images and/or 
cookies on a per-site basis.

This proxy would be running on the computer when Dillo runs (if the 
option is set in the dillorc file) and Dillo would have an option in
one
of the menus (or maybe a button) to enable/disable images from the 
site, which communicates with the proxy (maybe the proxy accepts http 
get or post requests using a cgi interface, so no extra communication 
protocol has to be developed).

The proxy does not do html parsing, as this is too processor intensive,

but only filters files based on extension and/or mime type (or request 
type, I don't know that much of http yet).

The reason for this is that for modem users like me, images are a 
nuisance most of the time and also we can enable ad-filtering. I know 
that i could use links or relatives, but the brower is the application 
that I think that it has to be graphical.

Sorry if this message is too long, but I wanted everyone to 
understand what I want and to contribute with ideas on what/how should
be done (or just convince me to forget about it if you're not
interested).

Thanks for reading this

Gabriel

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com 



Re: [Dillo-dev]https

From: madis <madis@cy...> - 2002-08-09 00:51

On Tue, 6 Aug 2002, Lars Segerlund wrote:

> 
> Got any idea of how to do the https <-> dillo interaction ?
> 
> 1. quite easy to handle encryption.
> 
> 2. not so easy to handle certificates ?
> 
> If I got everyting right, a plugin must make dillo recognize its url 
> type ? after this dillo will invoke it, thus it needs to be configured 
> somewhere ... or have the ability to autoconfigure ( wich would be nicer 
> ) but in this case this has to be able to be overrun ?
> 

Some thoughts (which may be wrong, of course) :

Dillo must have knowledge about plugin existing, or it don't know that it 
should start plugin (Dpi1 doc PI initialization paragraph has also remark 
about pluginsrc file). When dillo sees url that matches one described in 
pluginsrc and has no instance (process) of this plugin which is able to
serve it, dillo should do fork-exec to create plugin process (i think 
that there can be plugins which serve only one request and die after that 
and such a plugin is not able to serve any request after receiveing first 
request).

Certificates - SSL plugin should be such a plugin, which serves all 
requests within one process (and this process will not die before dillo 
tells to it quit or quits by itself and closes pipe).
Plugin gets other side's certificate with connection. Plugin may have a 
some CA's public keys stored and if the certificate is signed by one of 
these CA's check signatures validity. If it does not have public key it 
would be nice to prompt to the user some choices: allow/deny certificate 
or provide CA public key's URI. Prompting is possible in two ways:

1. plugin talks with X.
2. dpi protocol allows requesting dialog box from dillo.

-- 
mzz 



Re: [Dillo-dev]plugins

From: Geoff Lane <zzassgl@tw...> - 2002-08-07 08:53

> Okie, are there any code for the plugins ? or only the proposal ?
> If not I will get working on it.

I'm supposed to be working on the plugin code but circumstances have meant
I've had little time to work on it so far.

If it's OK with the rest of the project, I'm happy to let someone else with
more time available take over.

I do have a some comments on the plugin concept I may as well share right
now. 

One of the first things I did when looking at implementing plugins was to
add ftp: support directly into dillo as an internal facility. This is a
total hack and currently breaks in "interesting" ways (ie ways I don't fully
understand yet) under some conditions. Under Linux the stripped dillo+ftp
binary increased in size by less than 6K.

I did this by ignoring libraries such as cURL and libftp and coded the
protocol directly. The basic ftp protocol is very simple. Within dillo the
major implementation problem arises because ftp (as used within browsers) is
a multi-phase exchange and dillo is happiest with a single request-response
protocol as used by http. The multi-phase exchange was dealt with by
running the protocol within a thread which communicates (via a pipe) with
the dillo IO engine (which has no real idea where the data is actually
coming from.)

Using cURL results in a binary size increase of around 2Mb. For that you get
a fuller implementation of the ftp protocol (active/passive transfers and
proxy support for example) but you lose your small browser footprint _even_
if the plugin is running as a seperate process. As a method of prototyping,
using cURL is fine but if you care about size and performance you really
have to hand craft the protocol code.

Running protocols within threads is a powerful design concept for a browser
as all kinds of protocol stuff can be hidden and all the IO engine sees is a
simple datastream.


-- 
/\ Geoff. Lane. /\ Manchester Computing /\ Manchester /\ M13 9PL /\ England /\ 



[Dillo-dev]about plug ins

From: Lars Segerlund <lars.segerlund@co...> - 2002-08-07 08:40

Is there any work done on the plugins at all ?

I am thinking of starting an implementation by the spec. 



Re: [Dillo-dev]Patch: command line options support

From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-08-07 08:34

Hi Andreas,

on Wed, 7 Aug 2002 04:19:57 -0400
Andreas Schweitzer <andy@ph...> wrote:

> Hi,
> 
> > Having done a few patches that needed command line options, Jorge suggested
to
> > add a real command line options support to Dillo. 
> 
> > Any comments and ideas are welcome!
> 
> I have been thinking about command line options myself.
> I was thinking about adding something like :
> -o "dillorc-string"
> which would allow to override settings in dillorc with the same
> syntax. I think ssh has options like that, for example.
> I have just moved, and, therefore, have not been able
> to follow dillo very much but I may soon look into this.

Yes, this will allow different profiles. This is another reason why I put the
command line parsing before any serious initialisation. 




Cheers


-- 
Melvin Hadasht 



Re: [Dillo-dev]Patch: command line options support

From: Andreas Schweitzer <andy@ph...> - 2002-08-07 08:20

Hi,

> Having done a few patches that needed command line options, Jorge suggested to
> add a real command line options support to Dillo. 

> Any comments and ideas are welcome!

I have been thinking about command line options myself.
I was thinking about adding something like :
-o "dillorc-string"
which would allow to override settings in dillorc with the same
syntax. I think ssh has options like that, for example.
I have just moved, and, therefore, have not been able
to follow dillo very much but I may soon look into this.

Cheers
Andreas

-- 
**************************** NEW ADDRESS ******************************
Hamburger Sternwarte
Gojenbergsweg 112
D-21029 Hamburg, Germany 



[Dillo-dev]Patch: command line options support

From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-08-06 20:04

Attachments: dillo-cvs-2002-08-06-cli.patch      

[Jorge, I'm CCing to you for patch reviewing as advised on Dillo's home page.]

Hi,

Having done a few patches that needed command line options, Jorge suggested to
add a real command line options support to Dillo. 
This would provide a framework so developers won't have to add the command line
option parsing every time.

So here is my proposal:

This patch is a proposal for a simple and extensible command line options
support in Dillo. It is based on the getopt() function found in unistd.h. It
supports only short options, as the long options function getopt_long() is a GNU
extension and is thus not portable. Though, it could be easily added.

The patch comes with two command line options -v and -h to display version
number and a short help message. The options are to be passed before any URL or
filename. As a by-product of this patch, it is now possible to call Dillo with
more than one URL/filename. In that case, more than one window will be opened.

The command line options are parsed before any serious initialisation (even
before display initialisation). Two #defines define the help message and the
string of all known options. Some other define a flag for each option. These
flags will be ORed and stored in an integer to remember later all the options
found. They are not really used in this patch, but they are included for
consistency. (For reference, my other patches[1] use them.)

So to add a new option, it is a matter to update the DILLO_CLI_HELP_MESSAGE and
the DILLO_CLI_OPTIONS. If the option is to be processed outside of the option
parsing loop, you may add a "#define DILLO_CLI_YOUR_OPTION 1 << x" (as I did in
this patch, but they are actually not really used) and a cli_option |=
DILLO_CLI_YOUR_OPTION in the classical switch-case.

Any comments and ideas are welcome!

[1] The patch is also available at:
http://melvin.hadasht.free.fr/home/dillo/cli/index.html




-- 
Melvin Hadasht 



[Dillo-dev]https

From: Lars Segerlund <lars.segerlund@co...> - 2002-08-06 17:51

Got any idea of how to do the https <-> dillo interaction ?

1. quite easy to handle encryption.

2. not so easy to handle certificates ?

If I got everyting right, a plugin must make dillo recognize its url 
type ? after this dillo will invoke it, thus it needs to be configured 
somewhere ... or have the ability to autoconfigure ( wich would be nicer 
) but in this case this has to be able to be overrun ?

/ Segerlund. 



[Dillo-dev]plugins

From: Lars Segerlund <lars.segerlund@co...> - 2002-08-06 17:33

Okie, are there any code for the plugins ? or only the proposal ?

If not I will get working on it. 



RE: [Dillo-dev]makefiles

From: Eric Gaudet <ericg@ta...> - 2002-08-06 16:53

Hi Lars,

About your makefile, I don't know. Png should be detected by the
./configure. Did you see it?

About hadling url type, this is actually what plugins are designed for. It
might not be clear in the current proposal (there is an example with
prefix=bm, though), but my original version stated it explicititly in "2)
Prefixed call to a Dillo-plugin".

I don't know what's the status of plugins implementation.

References:
Current DPI1: http://dillo.cipsga.org.br/dpi1.html
Original DPI: http://www.rti-zone.org/dillo/Plugins.txt.gz

> -----Original Message-----
> From: Lars Segerlund [mailto:lars.segerlund@co...]
> Sent: Tuesday, August 06, 2002 3:58 AM
> To: dillo-dev@li...
> Subject: [Dillo-dev]makefiles
> 
> 
> 
> Hmm ... I had to edit src/Makefile and add -lpng to compile ??
> 
> Also, I had a look at the handling of url types ( https: , 
> mailto: ) 
> and I am wondering if there is a way to handle this with the plugin 
> interface ? And the specification for the plugins seems to be 
> done, but 
> I haven't been able to find this in the code ? could anyone send a 
> reference ( file:lineno ? ).
> 
> / Lars Segerlund.
> 
> 
> 
> -------------------------------------------------------
> This s...net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
> 



[Dillo-dev]makefiles

From: Lars Segerlund <lars.segerlund@co...> - 2002-08-06 10:58

Hmm ... I had to edit src/Makefile and add -lpng to compile ??

Also, I had a look at the handling of url types ( https: , mailto: ) 
and I am wondering if there is a way to handle this with the plugin 
interface ? And the specification for the plugins seems to be done, but 
I haven't been able to find this in the code ? could anyone send a 
reference ( file:lineno ? ).

/ Lars Segerlund.