![]() |
#16 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: May 2009
Device: iRex DR1000s
|
Helping us non-programmers
"It's simple."
Well, yes it is once you've told us how to do it. Please write up your notes into a default home page, so that people like me (who only have 20 or so years' experience programming, writing technical manuals, and administering their own Linux boxes) can be aware of how to resolve issues with the package you're distributing. I look forward to using Midori and I'm grateful to you for porting it; many of the people who might want to use it will not even know how to do the "simple" things you've outlined in your reply above. Part of doing a port is documenting how the port works; I think that is necessary in this case. |
![]() |
![]() |
![]() |
#17 |
Member
![]() ![]() Posts: 13
Karma: 163
Join Date: Aug 2009
Device: iRex DR1000S
|
Sorry, it was the first time I ported something. Actually I just wanted to read HTML files and after I did that I decided to share my results because I thought somebody else could find that useful too.
So here is the second version (MD5: 403c0b7f5e3adedecc4f3e2381329c08). Changes: * a config file added that specify default home page and contain a lot of interface improvements (Viacheslav) * a few menu items are disabled now * updated startup script that should make it possible to associate html files with midori (Viacheslav) It may be a good idea to remove directory "_midori" located in "Programs" directory on your device before installing a new version. To KarlSchroeder: in this release the default home page is simply a Midori documentation page that does not contain any information specific to this port. But the browser looks much better now and I hope that significantly reduced the need for such kind of notes. I am not good at writing documentation but let me know if you still want to see something specific and I will try to include that in the next release (that will probably be the hardest part). To tjdean256: I made a quick look at that thread but I did not notice the sources. If someone can show me how to modify the file dialog I will try to do that because I do not like the current one too. To Viacheslav: thank you, I really like how the browser looks now. I will probably explain how to compile it but that's a long story, so it's unlikely that it will happen this week. I like the idea to work on the browser, but before doing that I want to port Evince to be able to read DjVu and DVI files. It was very easy to compile DjVuLible but Evince has a lot of Gnome-related bells and whistles that should be removed somehow before it can be ported. I want to work on this task now of course unless somebody else is already working on it. And besides that I saw that iRex already have a web browser and it's possible that they may release it soon. On the other hand I did not see that they are going to release a DjVu and DVI viewer. Last edited by dixon; 09-03-2009 at 01:05 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 371
Karma: 1002274
Join Date: Mar 2008
Location: Australia
Device: Kindle
|
Thanks a lot dixon and Viacheslav! This midori browser will be very useful.
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: May 2009
Device: iRex DR1000s
|
Fantastic work!
Thank you so much for doing this! This is the sort of effort the iRex community needs to make this reader the most versatile one on the market. Once again this proves the value of open development standards.
|
![]() |
![]() |
![]() |
#20 |
ExtraSolar
![]() Posts: 10
Karma: 10
Join Date: Aug 2009
Location: Portugal(Lisbon)
Device: Kobo Glo
|
CHM files and
The Midori browser works really well - Thanks.
![]() But it's a pity it can't open CHM files - for that i have to use FBreader, which does it with a lot of limitations(the Html Links don't work). |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
How do you associate htm(l) files with Midori?
It works really well if I run the programme and then open an html file, but I cannot just click on a file and get midori to open. regards Howard |
![]() |
![]() |
![]() |
#22 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
It seems I need to post more sources to this forum... ![]() Have a look at the function create_file_selector() in the file selector.c of leafpad. The function switches between gtk_file_chooser and gtk_file_selecion. The gtk_file_chooser for the DR is patched to have a very small size, gtk_file_selection is not patched. gtk_file_selection is depricated, but still works correctly in the gtk version used on the DR. See here for a leafpad version with the gtk_file_selector. |
|
![]() |
![]() |
![]() |
#23 | |
Connoisseur
![]() ![]() ![]() Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
|
Quote:
After I upgraded to 1.7 I could check the browser, and it working pretty well. Thanks for your work. |
|
![]() |
![]() |
![]() |
#24 |
Addict
![]() ![]() ![]() Posts: 234
Karma: 214
Join Date: Nov 2008
Device: Galaxy Note 3, Galaxy NotePro 12.2, InkBook
|
Thanks, it's brilliant! :-)
|
![]() |
![]() |
![]() |
#25 | |
Sheet music reader
![]() Posts: 5
Karma: 10
Join Date: Sep 2009
Location: Netherlands
Device: DR1000S
|
![]() Quote:
thanks for the midori-zip file for the DR1000S. Works fine and is much faster as linking with PDF. ![]() The tool is developed by Christian Dywan at www.twotoasts.de and updates are available at his website. But before they can be used they have to be compiled I suppose for the DR1000S. As dummy I don't know how that works. ![]() My present experience shows that the vertical scrollbar space stays claimed as an white useless area even when the page fits the screen and the scrollbars are not present anymore. This is a pitty. ![]() Secondly links directly to pictures are translated as text pages rather then images. Only if they are embedded in a html page an image will show up. Thirdly the window which shows the files at "open" is much too small to read the filenames. The config file cannot be changes I noticed since it will always be replaced by the original one. ![]() May be it all is due to my limited knowledge but I'm just a simple user. ![]() ![]() Last edited by robvh; 09-30-2009 at 03:48 PM. |
|
![]() |
![]() |
![]() |
#26 |
Member
![]() ![]() Posts: 13
Karma: 163
Join Date: Aug 2009
Device: iRex DR1000S
|
Hi,
here is a new version of the Midori browser for firmware v1.7 (MD5: 3810a2c6ef4a0449ab15867256b88db9). List of changes:
To install a new version remove the _midori directory and the file midori.desktop in the Programs directory. It may be a good idea to make a backup of the file Programs/_midori/config/config if you made changes to browser's configuration. After that unpack the attached midori-0.1.10-dr-0.1.zip archive into the root of your device To associate HTML files with Midori browser I edited the System/dr1000.ini file and changed the following line: Code:
/apps/er/sys/ctb/filetypes/doc-html/viewer_cmd=/media/mmcblk0p1/Programs/_midori/bin/midori To ExtraSF: I have not found CHM files among mime types supported by WebKit, so I think they will not be supported. To robvh:
To Viacheslav: I know you prefer making start scripts to avoid the "Please, wait..." box, but I found that sometimes I see no changes while the application is starting and I think that is confusing. So I prefer to be annoyed rather than confused ![]() Thanks to all of you who posted in this thread. Last edited by dixon; 10-06-2009 at 06:55 PM. |
![]() |
![]() |
![]() |
#27 |
Member
![]() ![]() Posts: 13
Karma: 163
Join Date: Aug 2009
Device: iRex DR1000S
|
I also promised to post the build instructions. So here they are.
If you are using the tap0 interface you may want to apply the attached poky_tap.patch (you may adjust it to the number of tap interfaces you use). First you need to compile a mime database. Copy the file /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/bin/update-mime-database and the attached freedesktop.org.xml to emulator. The last one is the file /usr/share/mime/packages/freedesktop.org.xml from my build system with only a few mime types supported by WebKit in it. Execute the following commands on emulator: Code:
mkdir -p /media/mmcblk0p1/Programs/_midori/share/mime/packages/ mv /home/root/freedesktop.org.xml /media/mmcblk0p1/Programs/_midori/share/mime/packages/ /home/root/update-mime-database /media/mmcblk0p1/Programs/_midori/share/mime cd /media/mmcblk0p1/Programs/ tar cvf /home/root/midori-mime.tar _midori Download libsoup-2.26.3.tar.bz2 from http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.26/ , set environment variables from the attached file irex_env.sh and execute the following commands: Code:
tar jxf libsoup-2.26.3.tar.bz2 mkdir libsoup_build cd libsoup_build LDFLAGS=-L/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib ../libsoup-2.26.3/configure --prefix=/media/mmcblk0p1/Programs/_midori --host=arm-poky-linux-gnueabi --without-gnome --disable-static --disable-ssl --disable-glibtest make make install sed -e 's,-L[^ ]*,-L/media/mmcblk0p1/Programs/_midori/lib,' -i /media/mmcblk0p1/Programs/_midori/lib/libsoup-2.4.la sed -e 's, /usr/lib/, /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib/,g' -i /media/mmcblk0p1/Programs/_midori/lib/libsoup-2.4.la Code:
svn co http://svn.webkit.org/repository/webkit/releases/WebKitGTK/webkit-1.1.1 webkit cd webkit sed -e '$s/^/echo /' -i autogen.sh ./autogen.sh mkdir -p WebKitBuild/Release cd WebKitBuild/Release LDFLAGS=-L/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib LIBSOUP_CFLAGS=-I/media/mmcblk0p1/Programs/_midori/include/libsoup-2.4 LIBSOUP_LIBS='-L/media/mmcblk0p1/Programs/_midori/lib -lsoup-2.4' icu_config='/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/bin/icu-config' ../../configure --prefix=/media/mmcblk0p1/Programs/_midori --host=arm-poky-linux-gnueabi --disable-database --disable-dom-storage --disable-gnomekeyring --disable-icon-database --disable-offline-web-applications --disable-3D-transforms --disable-channel-messaging --disable-svg --disable-svg-animation --disable-svg-filters --disable-svg-foreign-object --disable-svg-fonts --disable-svg-as-image --disable-svg-use-element --enable-xpath --enable-xslt --disable-wml --disable-video --disable-web-workers --disable-coverage --disable-debug --disable-dashboard-support --enable-shared --disable-static make make install Code:
tar jxf midori-0.1.10.tar.bz2 patch -p0 < midori-0.1.10.patch cd midori-0.1.10 LDFLAGS='-L/media/mmcblk0p1/Programs/_midori/lib -L/usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib' PKG_CONFIG_PATH="/media/mmcblk0p1/Programs/_midori/lib/pkgconfig:$PKG_CONFIG_PATH" CFLAGS='-O2 -I/media/mmcblk0p1/Programs/_midori/include/libsoup-2.4 -I/media/mmcblk0p1/Programs/_midori/include/webkit-1.0' ./configure --prefix=/media/mmcblk0p1/Programs/_midori --disable-docs --disable-hildon sed -e "s;gnueabi/media;gnueabi/usr/lib', '/media;" -i ./_build_/c4che/default.cache.py make make install Code:
cp /usr/local/poky/eabi-glibc/arm/arm-poky-linux-gnueabi/usr/lib/{libXt.so.6,libicudata.so.36,libicui18n.so.36,libicuuc.so.36,libxslt.so.1} /media/mmcblk0p1/Programs/_midori/lib Last edited by dixon; 10-06-2009 at 07:00 PM. |
![]() |
![]() |
![]() |
#28 |
Fanatic
![]() ![]() ![]() ![]() ![]() Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
|
Dixon,
I have a problem: If I open Midori and then use the Menu (DR Menu not midori) to move to a different folder, I cannot then go back to midori without a reset. I just get an error box saying it cannot be opened and to try re-installing. Also, I cannot get the file association to work, but I'll keep fiddling with that ![]() Last edited by pthwaite; 10-07-2009 at 09:15 AM. Reason: spelling and clarity? |
![]() |
![]() |
![]() |
#29 | |
Member
![]() ![]() Posts: 13
Karma: 163
Join Date: Aug 2009
Device: iRex DR1000S
|
Quote:
Sorry for stupid question but have you restarted your device after changing that file? |
|
![]() |
![]() |
![]() |
#30 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
Quote:
2) If I remember well the dr1000.ini file is written when shutting down, so I think it is better to change it on your computer when the DR is shutdown. (Or that it is only written when some setting is changed in the settings menu.) It is only read when starting the DR, so you need to restart before the changes become active. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reader in web-browser | Toxaris | Alternative Devices | 12 | 09-16-2010 04:12 AM |
Troubleshooting web browser problem | kz9726 | Amazon Kindle | 2 | 09-14-2010 02:01 AM |
Classic Using 3G with Nook Web browser? | Arwen17 | Barnes & Noble NOOK | 2 | 08-20-2010 02:42 PM |
Kindle DX as a web browser | Daithi | Amazon Kindle | 7 | 05-06-2009 09:08 PM |
Webkit based browser for DR1000S | andiskater | iRex | 1 | 11-16-2008 05:03 PM |