Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : dillo web browser for the iliad


Antartica
12-03-2006, 06:33 AM
What is it:
Dillo is a web browser for PDAs and similar devices. It doesn't offer the features of a full-fledged web browser (not comparable in any way to firefox, opera or safari), but is amazingly fast and works with very little resources.

How to install:
1. First of all, you need to have shell access enabled. To have it enabled in your iliad, you have to request it to iRex in this page: https://myirex.irexnet.com/user.php/developer. After that you have to connect the iliad to iDS to fetch the update. More information in the wiki (http://wiki.mobileread.com/wiki/Iliad_shell_access).
2. Download the lastest release of dillo and the connect scripts: dillo-0.8.6_iliad-0.7.zip (http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-0.8.6_iliad-0.7.zip) connection-scripts-1.0.zip (http://projects.mobileread.com/iliad/users/antartica/dillo/connection-scripts-1.0.zip)
3. Connect the iliad to your PC and uncompress the two zip files to one of the directories of the iliad (for example in "documents")
4. Disconnect the iliad from you PC

How to run:
1. Go to the place you installed (unzipped) the programs (i.e "DOCS")
2. Click on the "Lan/Wifi On" item. The led should blink for some seconds. If it only blinks once, it's probable that the shell access package is not installed (try to launch dillo, if it can launch, then it's correctly installed and the problem is elsewhere).
3. Click on the "Dillo" item. The web browser should open. If the screen doesn't refresh correctly the first time, just tap with the stylus in the screen and it will refresh again.
4. Once you have finished web browsing, click on the underlined "F" in the menu bar, then "Exit", to quit dillo.
5. Click on the "Lan/Wifi Off" item to disconnect from the internet.

Limitations of dillo in the iliad:
- Only accepts latin-1 characters (that is, no unicode, no east-europe encodings, no chinese, no japanese... read this as "only works for pages in english, french, spanish, portuguese, german, italian and similar languages").
- There is support for opening local files, but is rough (report problems, please)
- No bookmark support
- No SSL support (https will not work)
- No download support.

And that is it, more or less.
===Original Message follows===
Hi All!

Using the knowledge gained from the unfinished port of ted to the iliad, I've finally added the bits needed to make dillo work in the iliad.

It's somewhat rough around the edges (after using any hardware button, it lefts the busy led blinking, and it crashes frequently), but it works for some sites.

You have it here, for your testing pleasure:

http://projects.mobileread.com/iliad/users/antartica/dillo/

Have fun!

P.S.: You have to enable the network (using a shell script or whatever) before launching dillo.
P.S.2: Caution, this is not thoroughly tested, perhaps you'll have to reset your iliad after using it, etc.

narve
12-03-2006, 07:53 AM
Would you mind uploading a pre-built binary, for the benefit of us non-developers?

Antartica
12-03-2006, 10:01 AM
Would you mind uploading a pre-built binary, for the benefit of us non-developers?

The file at

http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-0.8.6_iliad-0.4.tar.gz

is a prebuilt binary. In fact, is a tar.gz to untar in the iliad, that creates a folder with the needed run.sh et al (but without manifest.xml and icon).

WinRar supports uncompressing tar.gz (IIRC), if that is what you're asking ;-).

I can pack it also in zip, if using winrar isn't feasible.

jęd
12-03-2006, 02:51 PM
is a prebuilt binary. In fact, is a tar.gz to untar in the iliad, that creates a folder with the needed run.sh et al (but without manifest.xml and icon).

Looks cool, and least you've included source code / diffs from a published dillo version...:)

(This is why patches + src are so important... The Illiad is under constant development so binaries might not always run on different versions... )

narve
12-03-2006, 05:41 PM
The file at

http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-0.8.6_iliad-0.4.tar.gz

is a prebuilt binary. In fact, is a tar.gz to untar in the iliad, that creates a folder with the needed run.sh et al (but without manifest.xml and icon).

WinRar supports uncompressing tar.gz (IIRC), if that is what you're asking ;-).

I can pack it also in zip, if using winrar isn't feasible.
Aha, I thought it was only the source code. Tar.gz is fine with me, I prefer .zip since I use Windows but 7-zip handles most formats. Will give it a try!

k2r
12-04-2006, 06:05 AM
Using the knowledge gained from the unfinished port of ted to the iliad,
Could you please share some of this knowlegde in the wiki? It does not have to be a well-structured tutorial, but some hints about what you did where in the source would be great.

Antartica
12-05-2006, 07:55 AM
Could you please share some of this knowlegde in the wiki? It does not have to be a well-structured tutorial, but some hints about what you did where in the source would be great.

Sure!

I was waiting to have all the tools I use uploaded to
http://projects.mobileread.com/iliad/projects/toolchains/
but I can begin to document it now.

I'll start a new thread when I put that page up ;-).

emkay
12-05-2006, 10:39 AM
Antartica, how do you close Dillo? I think on my iLiad, it doesn't quite fit the screen. Seems like I can just see the edge of a button on the toolbar on the top left? Can't select it with the stylus though.

narve
12-05-2006, 10:47 AM
Antartica, how do you close Dillo? I think on my iLiad, it doesn't quite fit the screen. Seems like I can just see the edge of a button on the toolbar on the top left? Can't select it with the stylus though.
I remember closing it -- clicking the F icon and then choosing exit?

Antartica
12-05-2006, 11:19 AM
Antartica, how do you close Dillo? I think on my iLiad, it doesn't quite fit the screen. Seems like I can just see the edge of a button on the toolbar on the top left? Can't select it with the stylus though.

Narve is right. You have to use the stylus to "click" on the "F" menu, and the "click" on the "Exit Dillo" option.

OTOH, as the stylus is not calibrated, you may try in places near the "F"...

But it should fit your iliad... I'll try to make a shot (or a screenshot O:-) of my iliad running dillo so you can compare it with yours.

emkay
12-05-2006, 02:12 PM
Aha, thanks.
Yes it would be interesting to see a screen capture too...

jęd
12-07-2006, 09:16 AM
Has anyone checked the compatability of this with 2.8...?

emkay
12-07-2006, 10:59 AM
Yes, still working. It's quite a nice fast browser.

I was thinking, how difficult would it be to write an application which scans the local wireless networks, and lists them (with info about which are encrypted) as links? Click on the link to connect to the network you want to use, maybe with an option to enter an encryption key if necessary.
(Something like the built in network profile manager, but allowing connections without calling IDS.)
This would be really useful when out and about. Quite often there are unsecured networks one can use to pull down web content (like your Guardian 24 script jaed).
Also when Sylpheed Claws is ready, this would be really useful.
I must say I'm finding web browsing on the iLiad really useful too, for text based sites like Wikipedia.
I could do this in java, but I'm not a Linux developer. Anyone have an idea if it's easy or not?

arivero
12-07-2006, 11:13 AM
Yes, still working. It's quite a nice fast browser.

I was thinking, how difficult would it be to write an application which scans the local wireless networks, and lists them (with info about which are encrypted) as links? Click on the link to connect to the network you want to use, maybe with an option to enter an encryption key if necessary.
...
I could do this in java, but I'm not a Linux developer. Anyone have an idea if it's easy or not?

Use shell scripting and the terminal. It is practically the same thing to click in the dialog box that to click in a number in the keyboard, and it keeps the user informed that he is really doing a geeky thing.

Matthijs
12-07-2006, 12:53 PM
Or you can just use the connectionMgr to enable your network...
Tip: try "connectionMgr --help", esp. the --execute is useful.

Antartica
03-01-2007, 03:13 PM
Hi!

I've uploaded a new version. Has better browsing experience (scroll with the stylus) URL is:

http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-0.8.6_iliad-0.6.zip

And modified Yokos connection scripts to make two entries, one for connecting, and another for disconnecting.

http://projects.mobileread.com/iliad/users/antartica/dillo/connection-scripts-1.0.zip

I've incorporated Yokos manifest.xml and icons, too :-). Thanks Yokos :-b.

The GreatGonzo
03-01-2007, 04:58 PM
A little help, please, for the clueless (surely there's more than just me?):

When I unzip the dillo package, I get - among other things - a lot of .gz files. Do I unpack these, too, before transferring the folder to the Iliad?

Also, will dillo run without a wifi connection present? (I don't have a LAN/WLAN connection that I can use right now, but I'd like to know if the browser is installed correctly before I venture out in search of a hotspot...)

Thanks!

Mambo
03-01-2007, 05:40 PM
Antartica: I have not checked the new version but I will try.

Otherwise when I tried last time, I got so disappointed that browsing has consumed the battery of my iliad in just 2 hours (as opposed to reading was possible for 10 hours).
Now I've got the idea, that would it be possible to close the wireless every time a page has been downloaded and put the CPU in idle mode, or at least do nothing. But when you click on a link reconnect again to the wireless network in the background, download the webpage and disconnect again?
This way you could browse the net for 10 hours (with the exception of a few sites, where you need to log on and stay connected)

I hope somebody here knows how to do this and would help us to achieve this!

Antartica
03-02-2007, 03:18 AM
A little help, please, for the clueless (surely there's more than just me?):

When I unzip the dillo package, I get - among other things - a lot of .gz files. Do I unpack these, too, before transferring the folder to the Iliad?

No, you should unzip the package as-is in the iliad. For example, i have unzipped both files inside the documents folder of the iliad (I have reserved the iliad "documents" folder for programs -- and moved all documents to another place O:-).

Also, will dillo run without a wifi connection present? (I don't have a LAN/WLAN connection that I can use right now, but I'd like to know if the browser is installed correctly before I venture out in search of a hotspot...)

Yes. You can open dillo without a connection present.

The problem is that you cannot use (yet) the "File->Open file" dialog to open local files (because it requires the dpid daemon, that I have not compiled...). I'll look at it at some point into the future (ugh! dillo 0.7.3 didn't had this dependency -- it opened loal files without the the dpid daemon installed :-? -- it must be a new feature of the 0.8.x series of dillo).

Antartica
03-02-2007, 03:29 AM
Otherwise when I tried last time, I got so disappointed that browsing has consumed the battery of my iliad in just 2 hours (as opposed to reading was possible for 10 hours).
Now I've got the idea, that would it be possible to close the wireless every time a page has been downloaded and put the CPU in idle mode, or at least do nothing. But when you click on a link reconnect again to the wireless network in the background, download the webpage and disconnect again?
This way you could browse the net for 10 hours (with the exception of a few sites, where you need to log on and stay connected)

I hope somebody here knows how to do this and would help us to achieve this!

Hey! That was how the Apple Newton worked (AFAIK) :rolleyes5 .

If there is a way to bypass using connectionManager to do the connection, perhaps it can be done fast enough to be usable. Right now using connectionManager, it's like 5-8 seconds to connect in my setup (although I have the access point is quite far), and I don't think it'll be very usable this way if we connect/fetch page/disconnect. Anyway, in the zaurus it's like 3 seconds to connect, and I don't think that it can be done better than that.

P.S.: I had the impression that the batteries lasted more than 2h with wifi... I'll have to do some tests.

emkay
03-02-2007, 06:00 AM
Nice work Antartica.

Is there any way to scroll using the up / down hardware keys? The vertical scroll bar is really difficult to use here because it's so narrow and my stylus isn't calibrated.

Antartica
03-02-2007, 06:54 AM
Nice work Antartica.

Thanks :-).

Is there any way to scroll using the up / down hardware keys? The vertical scroll bar is really difficult to use here because it's so narrow and my stylus isn't calibrated.

Mine isn't well calibrated and I had that problem too: one of the improvements in this version, is that you can "pan" the page with the stylus.

Drag with the stylus any plain area (text or just background) and the page should scroll the amount you moved the stylus.

As for the vertical scrollbar and bad calibrated iliads: A nice thing of the wacom tablet of the iliad, is that it responds to events that are away from the physical screen. That means that you can click on the case next to the vertcal scrollbar and it will work (in fact, dragging also works this way). But I'm worried that using the stylus in the iliad case will damage it somehow... so I cannot recomend it :-(.

As to the hardware keys: the flipbar works, but there is a bug in my code that doesn't reset the busy led, so it's somewhat anoying. Personally, I only use the stylus while in dillo.

emkay
03-02-2007, 07:19 AM
T
Drag with the stylus any plain area (text or just background) and the page should scroll the amount you moved the stylus.


Wow, excellent! I missed that.

The GreatGonzo
03-03-2007, 08:51 AM
Thanks for the help, got one more:

<edit> Never mind, figured it out, unzipping error, sorry....

The GreatGonzo
03-04-2007, 10:15 PM
Quick thank you to everybody who worked on this; runs like a charm, I'm enjoying it immensely...

kapoira
03-05-2007, 03:24 PM
It's to me or the dillo browser have stopped to work in the 2.9....

now i will go to the forum of irex and see the people there ;-)

yokos
03-06-2007, 11:39 AM
dillo complains it can't find the shared library "libXp.so.6".
So cping this file in the lib directory should maybe solve starting problems. :scholar:

I attached a screenshot of dillo [firmware 2.8] - because there is no one in this thread.

[EDIT:] iLiad's os 2.9 likes dillo again. :cool:
Please copy the file "libXp.so.6" in the attached zip file to the subdirectory "lib" in your dillo directory.
[EDIT II:] changed zip-file [I added a short readme.txt]

firekat
03-18-2007, 12:13 AM
A quick question to you techie gurus out there. I have been experimenting with some html files to view on the iLiad. To me it seems like it takes a lot of work with xml files to get them configured. I also have some that have some small javascript stuff in them for basic navigation - still trying to find some kind of self contained wiki to run on the iLiad. The thing is would dillo be a better viewer for html than the one currently installed in the iLiad? Could you just point it to a file and have it read just like you would Firefox or any browser that you would have on your PC? If this were the case it would be much more "plug & play" and "point & click" for most people and would be certainly less time consuming than messing with an xml file. Most of the screenshots that I have seen here seem to better formatted than what I have seen on the iLiad. We could even have a back button?

Thanx for any info

Antartica
03-18-2007, 04:11 AM
The thing is would dillo be a better viewer for html than the one currently installed in the iLiad? Could you just point it to a file and have it read just like you would Firefox or any browser that you would have on your PC?

Not yet.

The current port can't open local files, as it tries to execute a helper program (dpid) and a plugin to open such files.

In the next revision I'll try to include the helper program and plugins so it can open local files and also we will get support for https.

narve
03-19-2007, 06:10 AM
Hey! That was how the Apple Newton worked (AFAIK) :rolleyes5 .

If there is a way to bypass using connectionManager to do the connection, perhaps it can be done fast enough to be usable. Right now using connectionManager, it's like 5-8 seconds to connect in my setup (although I have the access point is quite far), and I don't think it'll be very usable this way if we connect/fetch page/disconnect. Anyway, in the zaurus it's like 3 seconds to connect, and I don't think that it can be done better than that.

P.S.: I had the impression that the batteries lasted more than 2h with wifi... I'll have to do some tests.

Nice work!!!

I agree, the connection is way too slow, even on my home network (where I am about 2 meters from my AP). And even 3 seconds extra delay would be irritating when just browsing.

If you actually manage to close connection and throttle CPU, perhaps a better solution would be to close connection and power down CPU after e.g. 10 seconds of network inactivity (i.e., you actually found an article you are going to read, instead of just following links).

emkay
03-23-2007, 10:21 AM
Antartica,
Is it just me, or is the stylus page scroll not working any more (2.9.1)?

Antartica
03-23-2007, 01:26 PM
Antartica,
Is it just me, or is the stylus page scroll not working any more (2.9.1)?

Uh? IIRC I'm still on 2.9. I'll update and see what happens...

Antartica
04-17-2007, 05:14 AM
Hi All!

I've uploaded a new version of the dillo web browser for the iliad. Changes from previous version:
- File URI support: now you can open local html files to view off-line in the iliad. Remember that it also suppots jpg, tif and png, so you can view those too. Even more, if you have a directory of sequentially numbered images, you can go to next image just using the forward button (think of it as a poor's man comic browser).
- Fixed a bug in the forward button guess next URL feature.
- I've put a smaller refresh timeout in the .iliad_refresh.conf. It should refresh the image faster, but if the connection is slow, you will have more spurious refreshes.

You can download it from:
http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-0.8.6_iliad-0.7.zip

Source patches, older versions and tar.gz archives available at:
http://projects.mobileread.com/iliad/users/antartica/dillo/

P.S.: I've not updated yet to 2.9.1, so I have yet to check what's problem with scrolling in that firmware version.

Alexander Turcic
04-17-2007, 04:38 PM
P.S.: I've not updated yet to 2.9.1, so I have yet to check what's problem with scrolling in that firmware version.
Can anyone with the current firmware check? If it works, I'd like to make an "official" announcement of the release ;)

bedwere
05-08-2007, 10:28 PM
I installed dillo on 2.9.5 and it seems to work just fine (many thanks!). However, pages with Unicode text are not displayed correctly.
I did a search and found this Puppy Linux web page (http://puppylinux.org/wikka/LanguageSupport) that explains how to add Unicode support. I downloaded the ARIALUNI.TTF font and put it in the fonts/tff directory. It still doesn't work. Is there any chance to make it work?

Antartica
05-09-2007, 04:03 AM
I installed dillo on 2.9.5 and it seems to work just fine (many thanks!). However, pages with Unicode text are not displayed correctly.
I did a search and found this Puppy Linux web page (http://puppylinux.org/wikka/LanguageSupport) that explains how to add Unicode support. I downloaded the ARIALUNI.TTF font and put it in the fonts/tff directory. It still doesn't work. Is there any chance to make it work?

Dillo for the iliad is based on the official gtk1.x version, not the [old] gtk-xft nor the [older] gtk2 version, so it cannot use ttf fonts.

OTOH, I have a patch so as to be able to display latin1 UTF-8. I haven't used that patch in the iliad version because I didn't find it all that necessary, but if this is what you need, just ask. I've tested the patch in my desktop and it works reasonably well (only tested to view spanish pages using UTF-8, as in es.wikipedia.org).

If you want to be able to view other character sets (eastern-europe, cyrillic, CJK...), the patch will not work, as the fonts dillo has installed only contains the iso8859-1 charset (AKA latin1), and the patch specifically converts those UTF-8 codes to latin1 equivalents, ignoring all others.

EDIT: About the version of dillo used: Well, it's the lastest official version plus some patches to make it usable in the iliad O:-), so it's not the official version :vulcan:

Antartica
05-09-2007, 04:08 AM
Antartica,
Is it just me, or is the stylus page scroll not working any more (2.9.1)?

Have you tested with 2.9.5? In 2.9.5 works correctly (as bedwere just reported, and for me it also works).

emkay
05-10-2007, 04:56 PM
Hi,
I just installed your latest version. The browser is working fine, but the scroll still isn't working for me. I'm on 2.9.5.
I can get it to scroll by clicking on the scroll bar, but the page drag scroll that worked before doesn't work anymore here. Very strange.
Any ideas?

emkay
05-18-2007, 07:07 PM
:)
OK it's working. l was scrolling from top to bottom, instead of bottom to top. Duh!!
l wrote this post on the iliad, in Dillo, btw :)

Snas
05-30-2007, 01:25 PM
Thanks a lot, it works perfectly on my iLiad (with latest software) :happy2:

scotty1024
06-04-2007, 08:42 PM
The new right Click Stylus works with Dilllo!

Hans_Poppel
06-20-2007, 09:44 AM
If you want to be able to view other character sets (eastern-europe, cyrillic, CJK...), the patch will not work, as the fonts dillo has installed only contains the iso8859-1 charset (AKA latin1), and the patch specifically converts those UTF-8 codes to latin1 equivalents, ignoring all others.

EDIT: About the version of dillo used: Well, it's the lastest official version plus some patches to make it usable in the iliad O:-), so it's not the official version :vulcan:

Hi,
i'm successfully build dillo with this patch (http://teki.jpn.ph/pc/software/index-e.shtml#dillo-i18n). UTF-8 cyrillic sites looks reasonably

bedwere
06-20-2007, 06:44 PM
I'd love to have it!

Hans_Poppel
06-21-2007, 02:12 AM
I'd love to have it!
Hi bedwere,
this is Antarctica's package with replaced dillo. Please consider, it is testing build without some features (like ssl and jpeg support). And possible, with some bugs :-).

bedwere
06-21-2007, 06:06 PM
It works with polytonic Greek, but the font is huge. I tried to open the configuration window but was not able to.

Hans_Poppel
06-22-2007, 01:15 AM
Hi,
You may change font scaling by editing dillorc file. Options dialog is a separate program which edit the same file. I shall correct options, but it is not priority for me now

Antartica
06-22-2007, 04:35 AM
Hi,
i'm successfully build dillo with this patch (http://teki.jpn.ph/pc/software/index-e.shtml#dillo-i18n). UTF-8 cyrillic sites looks reasonably

Ok. I see that they have updated the patch since the last time I tried it :). Hope they have improved the stability.

Right now I've no time, but ASAP I'll post the patch for iliad support broken up in little patches. Hope they also apply with that (huge) patch applied.

When I manage to do it, I'll post here for your info.

Hans_Poppel
06-22-2007, 03:28 PM
Thank you, i shall look forward

Antartica
06-23-2007, 10:07 AM
Thank you, i shall look forward

I've uploaded the splitted patches. They are in

http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-patch-splitted/

The last distributed version of dillo only had incorporated the lines included in:
- iliad-support
- file
- next-v3

The one I mentioned for supporting latin1 utf-8 characters is in
- utf-support-v2

I only have applied the utf-support patch on my desktop machine, not in the iliad version, but if it's of any interest, here it is.

Good Luck with your hacking of the intl version ;-).

P.S.: Yokos reminded me that the included README in the dillo package is obsolete and we should stop distributing it as it may confuse new users :).

tido
07-13-2007, 04:39 AM
Hi!

Does dillo run "out-of-the-box", or do I have to request shell access from iRex first?

I tried the "dillo-0.8.6_iliad-0.7.zip"-Version together with the lan-on/of-scripts, but it did not work (no error message; using version 2.10.2 of iLiad's OS).

Antartica
07-13-2007, 05:14 AM
Does dillo run "out-of-the-box", or do I have to request shell access from iRex first?

You need the shell access first. Sorry.

rangababu
07-14-2007, 03:42 AM
hello ,is dillo is suitable for mobile browser
and XML and XHTML how wiill i open in dillo-0.8.6 please answer my queries

Antartica
07-14-2007, 04:56 AM
hello ,is dillo is suitable for mobile browser
and XML and XHTML how wiill i open in dillo-0.8.6 please answer my queries

I don't understand what do you mean for mobile browser. If you mean WAP, dillo doesn't support that. Also bear in mind that while it's a small and fast web browser, it lacks a lot of modern web technologies. In the mailing lists there is talk about supporting CSS and javascript, when (if) the new codebase is released (and as it's based in FLTK 2.x it would also bring in UTF-8 support and antialiasing). But don't bet on having it released very soon (they're still sorting some problems between difference of opinions of the main developers).

XML will not be correctly shown in current dillo (it lacks xslt support).

XHTML should work, AFAICT.

rangababu
07-20-2007, 03:25 AM
would u suggest which browser supports Wap application but our require ment is its take less memory i dont find any in opensource or for paid if know please inform me

Antartica
07-20-2007, 06:33 AM
would u suggest which browser supports Wap application but our require ment is its take less memory i dont find any in opensource or for paid if know please inform me

I thought WAP was a flop. Anyway, the trend right now is to have a server convert on-the-fly regular HTML content to an specialized "mobile" format, as is done with Opera mini.

If that suits you, I would consider inquiring Opera ( www.opera.com) about availability/cost of porting of Opera mini to your intended platform (the iRex iliad?)

Good luck.

Zebio
01-31-2008, 04:10 PM
Hello All greatfull coders & developers!
I'm patiently wait for usable browser for iLiad.
The most big problem for me in dillo is impossibility read web on cyrillic.
Just want ask is it possible in near future to repair dillo fonts?
But I understand that our time if you wake up and don't have at least one problem then you dead man, but I'm also amazing about fonts problem in 2008 Y.
Bests,
igor

serge
01-31-2008, 06:48 PM
The most big problem for me in dillo is impossibility read web on cyrillic.
There is an internationalized dillo version (http://www.mobileread.com/forums/showpost.php?p=75928&postcount=44) which allows one to read Cyrillic utf-8 pages. I wrote a bit about it here (http://www.mobileread.com/forums/showpost.php?p=142592&postcount=8).
and here (http://www.the-ebook.org/forum/viewtopic.php?t=5430&start=570).
In order to convert non-unicode pages to utf-8 one can use (in Linux):
iconv -f WINDOWS-1251 -t UTF-8 file_in.html > file_out.html Whether this can be done on the fly in dillo, I am not sure, but I guess this functionality could be added. Just needs one of the great developers to get excited about it. Which may happen or not...

wallcraft
01-31-2008, 10:01 PM
The screenshot illustrates the following changes to .dillo/dillorc
font_factor=2.0

panel_size=large
Since the iLiad screen is tall, the larger panel isn't too intrusive (and much easier to use).

However, I can't get bookmarks to work. They require dpid, which I thought was there now (for local files). I am using dillo-0.8.6_iliad-0.7.

wallcraft
01-31-2008, 10:16 PM
Dillo has several alternative toolbar icon sets, as seen here (http://www.dillo.org/Icons/). I'm not sure which would look best on the iLiad, perhaps "transparent", but it would be worth trying them. Unfortunately, each requires a recompile.

The Grantham main icon is also a bit washed out on the iLiad. I attach a greyscale version of Eric's icon (possible replacement for cover.png)

stelpa
03-22-2008, 04:41 PM
Hi bedwere,
this is Antarctica's package with replaced dillo. Please consider, it is testing build without some features (like ssl and jpeg support). And possible, with some bugs :-).

Iam Greek. I want to read greek sites and forums. I downloaded the patch but....I dont know where to place it. Do i have to place it onto dillo folder or i have to do something else?

disposable
03-24-2008, 02:30 AM
I'm a new iLiad user. I have requested the shell access, connected, downloaded and installed the thing from iRex. Now is there anything that will show that the shell access install is successful? It said downloading, then zipping/installing or something, said complete and then restarted.

I then donloaded the dillio browser, connection manager, manifest and libXp.so.6, unzipped it all and transferred to main memory of iLiad all as described here: http://wiki.mobileread.com/wiki/Iliad_Software#dillo. But the link to libXp.so.6 that was given on that page is no longer available.
As a result I went here(page 4 of this thread):


Antartica
You can download it from:
http://projects.mobileread.com/iliad..._iliad-0.7.zip

Source patches, older versions and tar.gz archives available at:
http://projects.mobileread.com/iliad...tartica/dillo/

and downloaded the new version.

And before all of the above, I started my donloads from this thread: http://www.mobileread.com/forums/showthread.php?t=8965&highlight=shell+access+iliad

So all I want to say is: I love my iLiad and I'm really impressed by all the effort of the developers among the iLiad users. But sincerely speaking it seems all you guys are doing these things for yourselves not for the rest of us that do not know anything about programming/scripts/linux etc.

Why do isn't everything organized into a single page with a clear step by step guide. The entry on the wiki page is good, but one of the links (for libXp.so.6) is not working.

I wish there is a single page dedicated for each application, so that once there is any new version, the old version is deleted immediately. Also, all supporting files should be mentioned withing that same page. So that someone who has not been following these multiple threads for the past 3yrs would easily understand what's going on.

You see I started with a thread. Read all the posts only to realize later that that thread is for an old version of the application. I followed the newer one with some inactive links. I then followed another one that contains a directory with several files with weired extensions that I have no clue what opens them etc.

Consider the way Joomla extensions are organized. You don't have to follow several links to find all you need about an extension. Everything is organized within a single page. Once there is an update, anything old is ramoved.

Consider for instance in one of the links I followed to install this browser, it was mentioned regarding the libXp.so.6:
With 2.9 firmware there is no libXp.so.6, so the bundled xset program won't run. You can find a tarfile with it here and copy it into the dillo/lib directory.
Now the 2.12v is available. What if it already updated with this file, but i don't know? I followed the link and the link is dead. I then search online, only to find unlimited results most of which look like this: http://rpmfind.net/linux/rpm2html/search.php?query=libXp.so.6
I then get confused and wouldnt know waht to do, cos I don't have the vaguest idea what all that means.

I hope you guys understand what I mean. It's really painful to make all these things work on the iLiad for people like me. It took me days to make the wireless connection work. I tried installing the minimo browser, without any success. I also tried installing the file manager by Adam B., also didnt succeed. I think the only thing I managed to install was a mobipocket dictionay lol. So can u guys please take some time and organize your invaluable works, so we could all benefit from it, please?

Thank you all and I wish all of you luck in your various endeavours.

Luka Trifunovic
03-30-2008, 02:05 AM
Dillo is working but I can't open local files nor use bookmarks. Also I can see just english letters (not even german etc..). When I start dillo from console I get following errors:
./xset: bad font path element (#56), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
./xset: bad font path element (#56), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
./xset: bad font path element (#56), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax

Gdk-WARNING **: locale not supported by Xlib, locale set to C
dillorc:95: unexpected string constant "force_visited_color", expected symbol
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
Nav_open_url: Url=>about:splash<
Type check: [Srv: text/html Det: text/html]
Nav_open_url: Url=>dpi:/bm/<
Dpi_start_dpid (child): No such file or directory
Dpi_start_dpid: No such file or directory
dpi.c: ERROR, can't start dpi daemon
Nav_open_url: Url=>file:/mnt/free/dillo/Readme.txt<
Dpi_start_dpid (child): No such file or directory

And last error (can't start dpi deamon) I get when I try to open file. Does anybody have similar problem? (using 2.12)
How to solve it?

And one more thing: Why dillo refreshes whole screen for every little change? Why it doesn't use partial refresh (it would be much faster)?

Antartica
04-05-2008, 06:03 PM
So all I want to say is: I love my iLiad and I'm really impressed by all the effort of the developers among the iLiad users. But sincerely speaking it seems all you guys are doing these things for yourselves not for the rest of us that do not know anything about programming/scripts/linux etc.

Point taken. I've updated a bit the first post on this thread to make it more understandable, but have done so "relying on my memory" (without checking the steps in the iliad), so it may have some "bugs". If someone can test it, I would appreciate it :-).

Update:: I've just tested the instructions in the first post with my iliad (2.12, received it a few days ago from the repair center and I didn't had installed the developer package yet, so I have tested the procedure from beginning to end) and it works with them. I've also corrected a few minor errors (in the menu names O:-).

Antartica
04-05-2008, 06:08 PM
Dillo is working but I can't open local files nor use bookmarks. Also I can see just english letters (not even german etc..).
(...)
And last error (can't start dpi deamon) I get when I try to open file. Does anybody have similar problem? (using 2.12)
How to solve it?

And one more thing: Why dillo refreshes whole screen for every little change? Why it doesn't use partial refresh (it would be much faster)?

German should be displayed correctly, and local files should be opened without trying to launch the dpi daemon (that error is shown because I have not compiled/bundled-with-dillo the dpi daemon in the iliad port). Check that you're using the 0.7 version. If you are, complain again...

OTOH, the reason as to not using partial refreshes is that the screen degrades fast with partial refreshes. In my experience, partial refreshes only seem to use 4-colour, and is a lot worse with ghosting, so in a few pages the text is really difficult to read (maybe not difficult, but annoying nevertheless :-).

Update:: I've just seen that I didn't replied to the bookmarks issue. The answer is that bookmarks don't work in this port (it doesn't have all the parts needed for bookmarks to work).

DiaLogical
04-13-2008, 01:53 PM
Is there a way to change the homepage of the Dillo browser?

Antartica
04-27-2008, 07:58 AM
Is there a way to change the homepage of the Dillo browser?

Yes.

After you decompressed the dillo zip, it created a "dillo" subdirectory (for example, if you uncompressed it in documents, it should have a documents/dillo subdirectory).

Inside that dillo directory, there is a "hidden" subdirectory named ".dillo" (note the dot, hidden directories start with a dot), and inside it a configuration file named dillorc.

That dillo/.dillo/dillorc is the file you have to edit to change the homepage. Search for a line that says:
home=http://www.mobileread.com/

and change it to suit your needs ;-).

disposable
05-02-2008, 10:22 PM
I still can't get any browser to work on my iLiad.
Is there any hope that iRex would come up with one, or incorporate these ones into a future update?

geppi
07-24-2008, 01:23 PM
What I'm desperately missing is the ability to download files, e.g. pdf-documents to my iLiad when clicking on a link.

As far as I understand this is due to the lack of a dpi daemon port.

In the developer thread about iLiad webbrowsing I read a remark from Antarctica that this could change if the dillo-fltk would be ported to the iLiad.

Is there anything on the horizon ?

Antartica
07-28-2008, 05:04 PM
What I'm desperately missing is the ability to download files, e.g. pdf-documents to my iLiad when clicking on a link.

As far as I understand this is due to the lack of a dpi daemon port.

In the developer thread about iLiad webbrowsing I read a remark from Antarctica that this could change if the dillo-fltk would be ported to the iLiad.

Is there anything on the horizon ?

Yes. The dillo-fltk branch is now usable; in fact the developers are considering doing a release soon. I'm testing it on the desktop again, and it is working ok for me.

I hope to release a port of dillo-fltk for the iliad in a month or so (but don't depend on it; I was intending on using xepdmgr to avoid using the hacked libX11, and I still have to finish the first version of xepdmgr!).

bard69
08-01-2008, 08:37 AM
I have installed the Dillo and WiFi on/off utilities and can see the appropriate icons on the iLiad. But when I activate the 'LAN/WIFI On' utility the activity light starts to flash and the progress bar pulshes without end. The only way to stop it is to reboot. The may be a fundamental misunderstanding on my part with regards to how this is supposed to work. I am able to connect to the Irex IDS just fine. I have a wireless access point in my house (DSL) but it doesn't seem to be connecting. Does this not work directly with a wireless access point? What could I be doing wrong?

Bard69

Antartica
08-15-2008, 07:17 AM
I have installed the Dillo and WiFi on/off utilities and can see the appropriate icons on the iLiad. But when I activate the 'LAN/WIFI On' utility the activity light starts to flash and the progress bar pulshes without end. The only way to stop it is to reboot. The may be a fundamental misunderstanding on my part with regards to how this is supposed to work. I am able to connect to the Irex IDS just fine. I have a wireless access point in my house (DSL) but it doesn't seem to be connecting. Does this not work directly with a wireless access point? What could I be doing wrong?

Sorry for the late reply.

The "LAN/Wifi on" just calls connectionmanager to stablish the default connection.

It should work for a wireless access point, but my experience is that it fails sometimes.

If you're using WEP and can use an static IP address there is an alternative: I did long ago a script for connecting the iliad to my AP bypassing connectionmnager. It was quicker and didn't fail. Alas, when I sent my iliad for repairs, it was reflashed (?) and I lost my script.

If you're using WEP, I can try to write the script again. If you use WPA I cannot help because I don't have a WPA-enabled AP to test (so I don't have experience with the configuration of wpa_supplicant that would be needed for that case)...

P.S.: Can you test if it works with a wired connection?

bard69
08-22-2008, 09:45 AM
Sorry for the late reply.

The "LAN/Wifi on" just calls connectionmanager to stablish the default connection.

It should work for a wireless access point, but my experience is that it fails sometimes.

If you're using WEP and can use an static IP address there is an alternative: I did long ago a script for connecting the iliad to my AP bypassing connectionmnager. It was quicker and didn't fail. Alas, when I sent my iliad for repairs, it was reflashed (?) and I lost my script.

If you're using WEP, I can try to write the script again. If you use WPA I cannot help because I don't have a WPA-enabled AP to test (so I don't have experience with the configuration of wpa_supplicant that would be needed for that case)...

P.S.: Can you test if it works with a wired connection?

With a little patience I was finally able to login and now it works reasonably consistently on non-secured wireless access points that don't require additional web-based authentication. This allows me to use it home and in coffee houses, which is good. But at work we have web-authenticated (multi-level) wireless access points and the iLiad has difficulty logging into them. The web authenticated access points will present a dynamically allocated internet protocol address but the subsequent use of the access point will redirect to an authentication page before allowing access. The iLiad login attempt fails. This is also the case for all paid-for internet wireless services like Boingo, but this is a great start.

Leite
08-24-2008, 04:20 AM
Hi, I'm a new dillo (and iLiad) user. I don't manage to open any article of the New York Times, I click a few times but it remainds me to the same page. With other newspapers it works fine, is the NYT that doesn't give the access to articles that are available for free with a normal pc?
Thanks in advance.

Antartica
08-24-2008, 08:39 AM
Hi, I'm a new dillo (and iLiad) user. I don't manage to open any article of the New York Times, I click a few times but it remainds me to the same page. With other newspapers it works fine, is the NYT that doesn't give the access to articles that are available for free with a normal pc?
Thanks in advance.

Does the following text appears?

Warning:This page uses the NON-STANDARD meta refresh tag.
The HTML 4.01 SPEC (sec 7.4.4) recommends explicitly to avoid it.The author wanted you to go _here_ after 17 seconds.

If that is the case, click on the underlined "here" to view the article.

Leite
08-24-2008, 10:58 AM
no, unfortunately
dillo, after "sending the query", doesn't open the page www.nytimes.com......(and something about the login)
I tried to make the login but after cliccking on the "send" button nothing happens
by the way I try to access to articles that are accessible even to a non-subscriber (it's the only newspaper's site that does something like that)

chungo
09-04-2008, 04:34 AM
Hi,
First of all, I have to say it's amazing what you (Antartica) are capable of - you're a real tweak master...
I read in the posting from the 08-15-2008 that you were able to use Wlan (WEP) with a static Ip by employing a script. As this is exactly what I am looking for to access the DMZ at work I'd be endlessly greatful if you could post that script (in case u found an backup) or - if it's not to difficult for someone with programming but no porting experience (me ;) ) - give me some hints on how to write one on my own. But only, if it's not asking to much, of course!

Antartica
09-04-2008, 04:50 PM
Hi,
First of all, I have to say it's amazing what you (Antartica) are capable of - you're a real tweak master...
I read in the posting from the 08-15-2008 that you were able to use Wlan (WEP) with a static Ip by employing a script. As this is exactly what I am looking for to access the DMZ at work I'd be endlessly greatful if you could post that script (in case u found an backup) or - if it's not to difficult for someone with programming but no porting experience (me ;) ) - give me some hints on how to write one on my own. But only, if it's not asking to much, of course!

I basically recorded what was done in the irex scripts to setup the wlan driver and then modified the script i use in the zaurus to do exactly those things prior to calling ifconfig for the Ip an iwconfig for the WEP parameters.

Right now I'm trying to advance a little xepdmgr; if the previous paragraph was not chinese for you, I can look-up what is the name of the irex script and post here my script for the zaurus, just in case you dare to do it yourself.

chungo
09-05-2008, 03:25 AM
That would be great!! As my superior explicitly gave me the order to "play around " with the iLiad and make it work in WLAN I think I can take the risk of bricking the good thing (after all it's not mine ;) ) And many thanx for your prompt reply :thanks:

Antartica
09-06-2008, 05:12 PM
That would be great!! As my superior explicitly gave me the order to "play around " with the iLiad and make it work in WLAN I think I can take the risk of bricking the good thing (after all it's not mine ;) ) And many thanx for your prompt reply :thanks:

The irex script is in /usr/bin/wireless.sh

My script for the zaurus is as simple as:
#!/bin/sh
IP=192.168.1.2
GATEWAY=192.168.1.1
IFACE=eth0
SSID="homewlan"
WEPKEY=a0a0a0a0a0a0a0a0a0a0a0a0a0

ifconfig $IFACE $IP
iwconfig $IFACE essid $SSID mode Managed enc $WEPKEY
route add default gw $GATEWAY


The changes needed to adapt my script for the iliad are:
- IFACE is wlan0 in the iliad:
IFACE=wlan0
- At the start of the script, load the wireless driver, with something like:
rmmod cf8385
rmmod cfio
modprobe cf8385
- It is possible that after setting th wep key, you have to enable it with
iwconfig $IFACE key on
- You have to be sure to have a valid nameserver in /etc/resolv.conf:
echo nameserver 208.67.222.222 > /etc/resolv.conf
echo nameserver 208.67.220.220 >> /etc/resolv.conf

I hope I have not forgotten anything and it works with the above modifications.

Antartica
10-17-2008, 10:23 AM
This post is only to mention that there is a new version of dillo available upstream (2.0). I'll adapt it to the iliad as time permits.

Expect a new release of dillo for the iliad soon (weeks, not days :).

ericshliao
12-04-2008, 03:38 AM
Here is a dillo 0.8.6 for iliad with xepdmgr.
I built this and found Antartica had buit it two years ago. so I put it here.

Major difference:
With xepdmgr controlling display refreshing, it made me feel better when browsing.

I also wanted to build dillo 2, but failed when building fltk2. So I switched to dillo 0.86.

Added:
Forgot to describe how to install.
Unpack the attachment to "/media/card/programs" and run from contentlister.

Dabon
12-04-2008, 12:46 PM
Thank you Ericshliao for this software!
1. Should we install an additional piece of software "xepdmgr" before installing the new version of Dillo (Please excuse my ignorance here...No notion of programming or whatsoever...I am from the medical field...)
2. Could you please let us know how to deal with the previous version of Dillo installed under media/card?. Should we uninstall (how?) the previous version before installing the new inversion or does your new installer will take of that detail?

Thank you for your help!

Dabon.

ericshliao
12-04-2008, 07:02 PM
The package that I uploaded is the same the same version with Antartica's. Both are working on memory card, and won't install any file to you system. You can safely do anything with them without fearing screwing up you system.

ericshliao
12-05-2008, 03:08 AM
To antartica,
I just noticed that you have some patch files in your dillo project directory. What's that for? Do you still remember? 'cause I didn't patch anything to dillo source code and it works well, except not being able to open local file.

Added:
I have built fltk2 and dillo2 for iLiad. But fltk2 seems to crash on not being able to get fixed width font name from Xlib api.

Antartica
12-05-2008, 03:50 AM
To antartica,
I just noticed that you have some patch files in your dillo project directory. What's that for? Do you still remember? 'cause I didn't patch anything to dillo source code and it works well, except not being able to open local file.

Yes, I recall what they were for :).

The patches on http://projects.mobileread.com/iliad/users/antartica/dillo/dillo-patch-splitted/ are for the following:

dillo-0.8.6-file.patch - Make opening local files work (code: loads the file in its entirety to memory and feeds that to the parser; not optimal but was the easiest route)
dillo-0.8.6-iliad-support.patch - Page scroll with left mouse button instead of middle button; this is: when you drag the page with the stylus, it scrolls (code: swap the references to left mouse button with the ones for middle mouse button in some places; add the list of changes in the about page).
dillo-0.8.6-next-v3.patch - If you press the next button (right arrow in the toolbar) and there is no next page in the page cache history, it will try to guess the next page and load it; did it to act as a rough comic book viewer (code: look for the last number in the URL, increment it and try to load that page)
dillo-0.8.6-utf8-support-v2.patch - Some support for utf-8 pages, so that it can show properly the Spanish Wikipedia; only supports the latin1 part of utf-8, and only transforms the pages that announce themselves as utf-8 (code: if the page advertises itself as utf-8, convert the latin1 utf-8 codes to latin1 codes; latin1 is iso-8859-1 codepage, the one supported in dillo 0.8.6).

And that's all. The patches are simple but not trivial. They just make dillo more usable on the iliad (at least for me ;).

So, apply them to your build (they don't cause unstabilities AFAIK :) ). Also, you should modify the about page in dillo-0.8.6-iliad-support.patch to note your changes/additions :).

P.S.: About the dillo2 port: the fixed font is installed (the X server won't start without it), so that error is strange.

P.S.2: Ups! Those posts are material for the devel's corner...

ericshliao
12-05-2008, 04:47 AM
About the dillo2 port: the fixed font is installed (the X server won't start without it), so that error is strange.

Thanx for your detailed reply. I will try your patch files.

As to the fixed width font problem, I executed dillo2 in mrxvt, and it printed "bad font: variable" and stopped.
So I found the following code in fltk2's "Font_xlfd.cxx"

FontSize::FontSize(const char* name, const char* nname) {
this->name = nname ? nname : name;
font = XLoadQueryFont(xdisplay, name);
if (!font) {
warning("bad font: %s", name);
font = XLoadQueryFont(xdisplay, "fixed"); // if fixed fails we crash
}
encoding = 0;
opengl_id = 0;
}

You can see it said that "if fixed fails we crash".

michelev
03-29-2009, 07:09 AM
after I launch Dillo (after tapping wi-fi icon first), the browser seems to work fine, but then, after a few seconds, the wi-fi icon becomes white againa automatically and I cannot connect to any web site anymore...
any hint?
thank you

liyiwen
04-11-2009, 02:19 AM
Toaday I tried Dillo, overview feeling is good, only think we still need more language for internet, any one know how to make it happen, for example, how to get Chinese....

Second, reaction speed seems stiil need to improve...

Seb7
05-05-2009, 05:25 PM
Antartica, ericshliao... any luck with Dillo 2? It looks really worth having if it can be made to work! ;)

Here are the new features:
Lightweight, Linux-compatible browser evolves (http://www.desktoplinux.com/news/NS6922044112.html)

Antartica
05-12-2009, 05:43 AM
Antartica, ericshliao... any luck with Dillo 2? It looks really worth having if it can be made to work! ;)

No, not yet. Have had very little time to play with it. liyiwen also asked for info... and compelled me to try dillo2 exporting the display to the iliad.

Dillo2 has the additional issue that it redraws the whole window for every little change, so it is somewhat irritating.

But you're right. The dillo guys are making great advancements in the browser. The most impressive upgrade right now is the CSS support.

I intend to work in it, but I'm really out of time. No idea on when I'll have something usable. Sorry.

liyiwen
05-15-2009, 03:50 AM
Antartica,
understand your situation.... anyway still appreciate your contribution very much..... we can wait for ... don't worry....

Antartica
07-10-2009, 09:31 AM
Hi all,

Thanks to the kind guys over dillo-dev mailing list, now I have compiled successfully dillo2 for the iliad! :2thumbsup

This is a straight compile, so no input yet (argh!), but it is coming. See attached screenshot.

If you want to test it yourself, the binary is also attached, but beware that it isn't very useful yet because of the lacking soft-keyboard support.

ericshliao
07-10-2009, 09:44 AM
You are really brillant. I tried to build dillo2 for iLiad several time in the 6 months and got nothing success.

So, is this dillo 2.0, 2.1 or 2.1.1?

cbell
07-10-2009, 08:33 PM
Antartica, many, many thanks for working on this!

ericshliao
07-10-2009, 10:01 PM
It's dillo 2.1.1, and it's really fast. FLTK is so amazing.

Added:
Antartica,
did you build FLTK with freetype enabled? The dillo2 that you built seems can't display homepage with Chinese text. I am not sure if it's the nature of dillo2 or something else. IIRC, dillo2 on my desktop Linux can dispaly Chinese text.

Added 2:
Just found that I am wrong. Dillo2 on my desktop can't dispaly Chinese text, eighter.

Antartica
07-13-2009, 10:58 AM
Just found that I am wrong. Dillo2 on my desktop can't dispaly Chinese text, eighter.

I'll have to investigate it, because I intended to be able to browse japanese sites with it!

Can it be because the default fonts it chooses? Can you try to change in the dillorc file the font used to display proportional text to one you know has the necessary glyphs?

ericshliao
07-13-2009, 01:15 PM
Can you try to change in the dillorc file the font used to display proportional text to one you know has the necessary glyphs?

I would like to try, but I am having difficult in build dillo2 for my desktop. I just screwed up my desktop Linux, and after re-installed Linux and FLTK2, I always failed at building dillo2. I am still trying to figure it out.

ericshliao
07-13-2009, 01:55 PM
Since I can't try it on my desktop, I tried it on iLiad. I added several lines to specify fontname in dillorc and put dillorc in $HOME/.dillo. I also changed the start_page to Google. dillorc was loaded when dillo2 started, but it failed to display proper font.

Antartica
07-14-2009, 11:48 AM
Since I can't try it on my desktop, I tried it on iLiad. I added several lines to specify fontname in dillorc and put dillorc in $HOME/.dillo. I also changed the start_page to Google. dillorc was loaded when dillo2 started, but it failed to display proper font.

What a pity. Thanks a lot for the test.

I will try to fix it when I have some time... but after releasing one dillo2 with keyboard support :).

ericshliao
07-14-2009, 01:14 PM
I finally managed to build dillo2 for iLiad now. Still failed for desktop.

I did a small test and found that maybe FLTK2 does not support Chinese and Japanese text dispaly. I adopted the hello world example from FLTK2 tutorial, and inserted some Chinese and Japanese text after "Hello World". Sadly, only "Hello World!" can be dispalyed. Chinese and Japanese text were showed in empty blocks, just like what I saw on Dillo2.

I put the program here for you to test. Unpack the attachment to anywhere and execute from contentlister. Source code is included.

ericshliao
07-14-2009, 01:44 PM
I wrote a small program (as follows) to print available fonts for FLTK2. The result is correct. I have to do some more test.


#include <fltk/Window.h>
#include <fltk/Widget.h>
#include <fltk/Font.h>
#include <fltk/run.h>
#include <stdio.h>

using namespace fltk;

int main(int argc, char **argv) {
Font ** arrayp;
int n = list_fonts(arrayp);
printf("Number of font items: %d\n", n);
}

Antartica
07-15-2009, 12:33 PM
I finally managed to build dillo2 for iLiad now. Still failed for desktop.

I forgot to put here a reference to the needed change to FLTK2 so that it doesn't crash with kdrive with embedded fixed font (i.o.w., with the iliad X server):

http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-July/006705.html

I assume that you have applied this patch (or that fltk.org guys have already incorporated the patch in fltk2).

I did a small test and found that maybe FLTK2 does not support Chinese and Japanese text dispaly. I adopted the hello world example from FLTK2 tutorial, and inserted some Chinese and Japanese text after "Hello World". Sadly, only "Hello World!" can be dispalyed. Chinese and Japanese text were showed in empty blocks, just like what I saw on Dillo2.

I put the program here for you to test. Unpack the attachment to anywhere and execute from contentlister. Source code is included.

Ok. Thanks :).

Antartica
07-15-2009, 12:58 PM
(from a message in xeepdmgr thread in iliad dev)

I can build dillo2 on my desktop now. It still failed to dispaly Chinese and Japanese text. I also tried a hello world program, only English letters can be dispalyed. So, I guess the problem must be dealt within FLTK2.

One thing is certain, it is a simple compilation flags problem, as there are people in the dillo-dev mailing list using dillo2 with chinese/japanese:

http://lists.auriga.wearlab.de/pipermail/dillo-dev/2008-November/005427.html

ericshliao
07-15-2009, 01:31 PM
:eek: I didn't know any patch until you mentioned. I am using "fltk-2.0.x-r6793".

Yes, I also read about the thread discussing text wrapping problem. But I don't know how did they managed to display Chinese and Japanese text.

I just joined fltk-dev mailing list several hours ago, and I threw my text dispaly problem there. Hope it can be solved.

ericshliao
07-17-2009, 01:58 PM
With the help of fltk-dev mail list, I know how to compile single FLTK2 program to support non-English text now. It is: "fltk2-config --compile mycode.cxx". In fact, fltk2-config will call gcc with proper option. But how to use fltk2-config to compile dillo2?:blink:

Antartica
07-19-2009, 03:15 PM
With the help of fltk-dev mail list, I know how to compile single FLTK2 program to support non-English text now. It is: "fltk2-config --compile mycode.cxx". In fact, fltk2-config will call gcc with proper option. But how to use fltk2-config to compile dillo2?:blink:

Perfect!

First you have to write down the right compile options. If fltk2-config has a verbose option use it. If no, rename gcc to something else and link in its place a simple echo and run it. After the test, switch back gcc to its normal self.

With the options, you can put them in the CFLAGS and/or LDFLAGS environment variables and try to compile dillo2.

If that doesnt work, you would have to modify the dillo Makefile to include those options in its CFLAGS and LDFLAGS.

ericshliao
07-20-2009, 08:51 AM
The gcc command and options called by "fltk2-config --compile" is:
gcc -I/usr/local/include -I/usr/include/freetype2 -Wno-non-virtual-dtor -o my_code my_code.cxx
-L/usr/local/lib /usr/local/lib/libfltk2.a -lX11 -lXi -lXinerama -lXcursor -lXft -lpthread -lm -lXext -lsupc++


I tried to put the options to ./configure LIBS= LDFLAGS=, but still no success. I have to try more combinations.