Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 09-02-2009, 10:30 PM   #16
KarlSchroeder
Junior Member
KarlSchroeder began at the beginning.
 
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.
KarlSchroeder is offline   Reply With Quote
Old 09-03-2009, 12:14 AM   #17
dixon
Member
dixon doesn't litterdixon doesn't litter
 
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.
Attached Files
File Type: zip midori-0.1.9-dr-0.2.zip (10.97 MB, 465 views)

Last edited by dixon; 09-03-2009 at 01:05 AM.
dixon is offline   Reply With Quote
Advert
Old 09-03-2009, 04:47 AM   #18
RobbieClarken
Addict
RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.RobbieClarken ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by dixon View Post
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.
I know that I and many other people would be very appreciative if you could port a DjVu reader. Good luck!
RobbieClarken is offline   Reply With Quote
Old 09-03-2009, 06:24 AM   #19
KarlSchroeder
Junior Member
KarlSchroeder began at the beginning.
 
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.
KarlSchroeder is offline   Reply With Quote
Old 09-03-2009, 08:28 AM   #20
ExtraSF
ExtraSolar
ExtraSF began at the beginning.
 
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).
ExtraSF is offline   Reply With Quote
Advert
Old 09-03-2009, 09:28 AM   #21
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
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
pthwaite is offline   Reply With Quote
Old 09-03-2009, 04:02 PM   #22
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by dixon View Post
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.
Hi dixon,

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.
Mackx is offline   Reply With Quote
Old 09-04-2009, 05:16 AM   #23
godel10
Connoisseur
godel10 doesn't littergodel10 doesn't littergodel10 doesn't litter
 
Posts: 80
Karma: 204
Join Date: Jun 2007
Device: Sony Librie, Irex DR1000S
Quote:
Originally Posted by dixon View Post
P.S. I compiled it for v1.7. I have no idea whether it works on 1.6 or not.
I tried it with firmware 1.6 and unfortunately it is not working: the screen is frozen and a reboot is necessary.

After I upgraded to 1.7 I could check the browser, and it working pretty well. Thanks for your work.
godel10 is offline   Reply With Quote
Old 09-18-2009, 05:10 AM   #24
owl123
Addict
owl123 doesn't litterowl123 doesn't litterowl123 doesn't litter
 
Posts: 234
Karma: 214
Join Date: Nov 2008
Device: Galaxy Note 3, Galaxy NotePro 12.2, InkBook
Thanks, it's brilliant! :-)
owl123 is offline   Reply With Quote
Old 09-30-2009, 10:52 AM   #25
robvh
Sheet music reader
robvh began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Sep 2009
Location: Netherlands
Device: DR1000S
Question Vertical scrollbar space claimed? Link to image=ascii?

Quote:
Originally Posted by dixon View Post
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.
Hi dixon e.o.
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.

in advance robvh

Last edited by robvh; 09-30-2009 at 03:48 PM.
robvh is offline   Reply With Quote
Old 10-06-2009, 06:29 PM   #26
dixon
Member
dixon doesn't litterdixon doesn't litter
 
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:
  • Midori browser upgraded to version 0.1.10
  • MIME database added (i.e. browser can open images now)
  • Full screen mode is allowed
  • File open dialog changed (thanks Mackx for explaining)

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
which requires device restart. Of course it's always a good idea to make a backup of that file before applying any changes.

To ExtraSF: I have not found CHM files among mime types supported by WebKit, so I think they will not be supported.

To robvh:
  1. I have not noticed empty scrollbars on small pages. Maybe it was fixed in 0.1.10.
  2. Links to pictures should work now.
  3. The file open dialog should be better now.
  4. I can't reproduce. I just go to Edit -> Preferences and after browser restart I can see configuration changes I made.

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.
Attached Files
File Type: zip midori-0.1.10-dr-0.1.zip (10.62 MB, 482 views)

Last edited by dixon; 10-06-2009 at 06:55 PM.
dixon is offline   Reply With Quote
Old 10-06-2009, 06:49 PM   #27
dixon
Member
dixon doesn't litterdixon doesn't litter
 
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
Copy midori-mime.tar to your build system and untar it into /media/mmcblk0p1/Programs/ directory.

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
Apply the attached poky_icu.patch in /usr/local . Then download and install WebKit 1.1.1 using the following commands:
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
Download midori-0.1.10.tar.bz2 from http://www.twotoasts.de/index.php?/p...i_summary.html and execute the following commands:
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
Copy some libraries:
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
After that compare your /media/mmcblk0p1/Programs/_midori with content of the archive I attached in my previous post and make necessary adjustments.
Attached Files
File Type: txt poky_tap.patch.txt (1.5 KB, 275 views)
File Type: xml freedesktop.org.xml (42.1 KB, 699 views)
File Type: txt irex_env.sh.txt (583 Bytes, 316 views)
File Type: txt poky_icu.patch.txt (1.3 KB, 282 views)
File Type: txt midori-0.1.10.patch.txt (5.4 KB, 314 views)

Last edited by dixon; 10-06-2009 at 07:00 PM.
dixon is offline   Reply With Quote
Old 10-07-2009, 09:01 AM   #28
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
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?
pthwaite is offline   Reply With Quote
Old 10-07-2009, 03:20 PM   #29
dixon
Member
dixon doesn't litterdixon doesn't litter
 
Posts: 13
Karma: 163
Join Date: Aug 2009
Device: iRex DR1000S
Quote:
Originally Posted by pthwaite View Post
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.
Known feature. The application's source code should be modified for that to work properly. I hope it will be implemented in next release.

Quote:
Originally Posted by pthwaite View Post
Also, I cannot get the file association to work, but I'll keep fiddling with that
Sorry for stupid question but have you restarted your device after changing that file?
dixon is offline   Reply With Quote
Old 10-08-2009, 03:11 AM   #30
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by dixon View Post
1) Known feature. The application's source code should be modified for that to work properly. I hope it will be implemented in next release.

2) Sorry for stupid question but have you restarted your device after changing that file?
1) If you need help on that, please send me a PM, I have done it already on some other apps.

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.
Mackx is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:23 AM.


MobileRead.com is a privately owned, operated and funded community.