12-27-2009, 12:01 PM | #1 |
book creator
Posts: 9,656
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
Making FBReader and pdfviewer default viewers
Our german user svenni found out this neat little trick to directly use FBReader as default viewer for ePub and pdfviewer as default viewer for PDF. Just paste extensions.cfg in to your sytem/config folder on your reader. It is only a txt file, so you may manipulate the config yourself.
Just uncompress and paste. Then your ePubs will be directly opened by FBReader. I don't know the names of the Adobe apps right now, so Adobe will be out till tomorrow! Edit: This version is like the original, only ADE is second choice on both ePub and PDF. Please reinstall! Last edited by mtravellerh; 12-28-2009 at 05:12 AM. |
12-27-2009, 12:22 PM | #2 |
Fanatic
Posts: 581
Karma: 1003580
Join Date: Oct 2009
Location: Cambs, UK
Device: PocketBook 360, Sony Reader Touch, Ipod touch & Kindle 2
|
That is wonderful thank you as I prefer fbreader
|
Advert | |
|
12-27-2009, 09:13 PM | #3 |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
It works.
It seems to completely block ADE; long press doesn't offer a choice. But since I don't intend to buy any Adobe DRM'ed books that's no problem. |
12-28-2009, 03:05 AM | #4 | |
Wizard
Posts: 3,455
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Quote:
You can define, for example FBReader as a first chioce, FBReaderSFF as second and ADE as third. Then you can have the original FBReader plus SciFifans version. I will try later to play with the file. The first task would be to start the terminal emulator and have a look at the configuration file from inside the filesystem (the default one) |
|
12-28-2009, 04:52 AM | #5 | |
book creator
Posts: 9,656
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
Quote:
Edit: Found out, thanks to Svenni again. So FBReader is first choice for ePub now, ADE is second choice. For PDF, pdfviewer is first choice, ADE second choice. To restablish the original order, please just remove extensions.cfg from system/config! Last edited by mtravellerh; 12-28-2009 at 05:15 AM. |
|
Advert | |
|
12-28-2009, 07:36 AM | #6 | |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
Quote:
So that if (when?) somebody ports Coolreader over it can be added to the mix gracefully. PB360 looks to have been architected with some serious forethought. We really need a FAQ for all the added features that are popping up... Hmm... |
|
12-29-2009, 05:27 PM | #7 |
Wizard
Posts: 3,455
Karma: 10484861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
So. I used the terminal application to do some actual hacking ;-)
The first step was extracting the contents of the original configuration file. I have started the terminal application and had a look around the filesystem. There is interesting directory called /ebrmain/config with configuration file extensions.cfg So I have issued command cp /ebrmain/config/ex* /mnt/ext2 to copy the extensions.cfg to the memory card. Here are the contents of the default /ebrmain/config/extensions.cfg file Code:
txt:@Text_file:1:fbreader.app:ICON_TXT fb2:@FB2_file:1:fbreader.app:ICON_FB2 htm:@HTML_file:1:fbreader.app:ICON_HTM html:@HTML_file:1:fbreader.app:ICON_HTM php:@HTML_file:1:fbreader.app:ICON_HTM cgi:@HTML_file:1:fbreader.app:ICON_HTM asp:@HTML_file:1:fbreader.app:ICON_HTM jsp:@HTML_file:1:fbreader.app:ICON_HTM pl:@HTML_file:1:fbreader.app:ICON_HTM chm:@Z_HTML_file:1:fbreader.app:ICON_CHM rtf:@RTF_file:1:fbreader.app:ICON_RTF doc:@DOC_file:1:fbreader.app:ICON_DOC docx:@DOC_file:1:fbreader.app:ICON_DOC docm:@DOC_file:1:fbreader.app:ICON_DOC prc:@PRC_file:1:fbreader.app:ICON_PRC pdb:@PRC_file:1:fbreader.app:ICON_PRC mobi:@PRC_file:1:fbreader.app:ICON_PRC tcr:@TCR_file:1:fbreader.app:ICON_TXT pdf:@PDF_file:1:AdobeViewer.app,pdfviewer.app:ICON_PDF djvu:@DJVU_file:1:djviewer.app:ICON_DJVU djv:@DJVU_file:1:djviewer.app:ICON_DJVU epub:@EPUB_file:1:AdobeViewer.app,fbreader.app:ICON_EPUB jpg:@JPEG_image:2:jpegviewer.app:ICON_JPG jpeg:@JPEG_image:2:jpegviewer.app:ICON_JPG png:@PNG_image:2:jpegviewer.app:ICON_PNG bmp:@BMP_image:2:jpegviewer.app:ICON_BMP tif:@TIFF_image:2:jpegviewer.app:ICON_TIFF tiff:@TIFF_image:2:jpegviewer.app:ICON_TIFF mp3:@Music_file:3:play.app:ICON_MP3 wav:@Music_file:3:play.app:ICON_MP3 app:@APP_file:4:start.app:ICON_APP 1. Name of the FBReader application is fbreader.app 2. Name of the Adobe pdf viewer application is AdobeViewer.app 3. Name of the pdfviewer application is pdfviewer.app 4. Name of the djviewer application is djviewer.app 5. Name of the audio player application is play.app 6. Name of the image viewing application is jpegviewer.app 7. The syntax for having several applications available for reading is pdf:@PDF_file:1:AdobeViewer.app,pdfviewer.app:ICON _PDF If we change the line to the pdf:@PDF_file:1:pdfviewer.app,AdobeViewer.app:ICON _PDF we should get pdfviewer as a default application. 8. there are several other possibilities, for example we want to have SciFiFans version of FBRreader to open some files by default, and the original FBReeader other, we change, for example this line txt:@Text_file:1:fbreader.app:ICON_TXT to txt:@Text_file:1:fbreader2.app,fbreader.app:ICON_T XT and then we copy SciFiFans version to the [memory mounted when PB connected to PC]/system/bin under the name fbreader2.app I will try this tomorrow. I will have a look what type of file extensions.cfg (UNIX or DOS text file (cr or CR/LF end of line)) I *THINK* that if I put my tweaked extensions.cfg file to the user mountable /system/config I might get my configuration. |
02-02-2010, 03:39 PM | #8 | |
ego Alpha et Omega
Posts: 59
Karma: 898
Join Date: Dec 2009
Location: Romania
Device: Pocketbook 360
|
Quote:
extensions.cfg is UTF-8, Unix style I think. The linux editor I used does not ask about line ends. |
|
02-02-2010, 05:49 PM | #9 |
book creator
Posts: 9,656
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
I'm wondering if we couldn't solve the HTM HTML problem (extensions in caps that aren't opened by the reader) by just adding those endings to extensions.cfg. Opinions anyone?
|
02-02-2010, 06:40 PM | #10 | |
ego Alpha et Omega
Posts: 59
Karma: 898
Join Date: Dec 2009
Location: Romania
Device: Pocketbook 360
|
Quote:
But I feel a more general approach is more elegant. Any idea on how to map all unknown extensions or even lack of extensions to a app? Anyone? Warning. A bad extensions.cfg can lead to trouble. Last edited by norciom; 02-02-2010 at 09:00 PM. |
|
02-03-2010, 02:30 PM | #11 |
(-:
Posts: 667
Karma: 1310
Join Date: Nov 2009
Location: Frankonia
Device: PocketBook 360°,302
|
Is the extensions.cfg accepting RegEx ?
If yes, the problem could be solved this way |
02-03-2010, 02:44 PM | #12 | |
ego Alpha et Omega
Posts: 59
Karma: 898
Join Date: Dec 2009
Location: Romania
Device: Pocketbook 360
|
Quote:
There needs to be - a default for unmatched files - case insensitive extenstions Maybe in the next firmware version. Some suggestions in this direction have been made on the the-ebook.org |
|
03-05-2010, 07:15 PM | #13 |
Addict
Posts: 322
Karma: 1701842
Join Date: Mar 2010
Device: Kindle Oasis 3
|
|
03-05-2010, 08:21 PM | #14 | |
Grand Sorcerer
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
|
Quote:
When the primary choice can't open a file, the default behavior is to return an error message, not try the alternate option. |
|
03-06-2010, 02:19 PM | #15 |
Addict
Posts: 322
Karma: 1701842
Join Date: Mar 2010
Device: Kindle Oasis 3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FBReader und pdfviewer zu Defaultviewern machen | mtravellerh | PocketBook | 46 | 01-02-2014 03:36 PM |
Just making sure | desertgrandma | Calibre | 25 | 10-06-2010 06:55 PM |
Making ADE my default reader software | Maur | Reading and Management | 1 | 09-20-2010 11:54 AM |
iLiad iLiad OS : eBook formats and viewers? | jharker | iRex Developer's Corner | 15 | 01-09-2009 12:20 PM |
iLiad iLiad 3rd Party Viewers and Applications | Adam B. | iRex Developer's Corner | 0 | 07-19-2007 09:20 AM |