Thread: DR800 FB2 plugin
View Single Post
Old 09-28-2010, 09:14 AM   #1
yuri_b
Connoisseur
yuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enough
 
Posts: 71
Karma: 592
Join Date: Aug 2010
Device: irex dr800sg DR1000S
Lightbulb FB2 and DJVU plugins

Hi

new version 1.4: fixes minor bug
DJVU plugin version 1.0

Description of DJVU plugin after FB2

Description of FB2 plugin
I wrote FB2 plugin for DR800/DR1000
I like it more then FBreader
I'm using and testing it in my DR800sg
It supports:
- images, several fonts, most of tags.
- Support encoding in UTF8/window-1251/window-1252/KOI8-RU
- if book compressed with zip, and saved with extension 'fb2' it will open it also!!!
- Sets to data base author name and titles.
- If cover image exist it will show it as first page.

Not supports:
- links.

Please note: it will show first page quickly, but count all pages to display tabs in dr800+ will take time ~ 1-3 minutes, depends on size of book. Also going to full screen will force repaginate all book. You still can go next/previous page, but will no see count of pages.

Install as usual:

1) Unpack in root, you will get
Programs/_fb2plugin
Programs\Install

2) Go to 'Install' directory
- a) If you have FBreader - click on FBReaderRemoveFB2.desktop to remove link FB2 with FBreader
- b) Click on InstallFB2.desktop to install plugin

log:
- version 1.0 first version
- version 1.2 fix rendering bug
- version 1.3 work around of bug in UDS ( close document not called in thumbnail generation), added support for new tags, added capability generate thumbnails it is enabled in GUI.
- version 1.4 - minor BUG fix

Description of DJVU plugin

I use sources of djvu plugin written by luite
It supports:
- Supports text metadata, and search in text, if exist
- Supports "author" and "Title" tags in shared annotation, so you can add Authors name and Title and plugin will store it in database, so CTB will show author and title instead file name.
- Add support for thumbnail creation, when enabled.
- Supports 2 page mode with additional customization: first # pages - single pages, first page: title and back page.

Prepare djvu doc:
To use Author and Titles tags you have to add them to djvu doc, by editing attached file "djvu_xpm.utf8" and "djvu_xpm_2pg.utf8". Note those 2 files are encoded as UTF8!!! (those files are zipped in djvu_xpm.zip)
To use 2 page mode you can add special string in file name or add special tag named "2pagemode" see "djvu_xpm_2pg.utf8", where:
  • 2pg - 2page mode enabled
  • s2pg - 2 page mode with right part of first page as first page and left part of first page as last page.
  • 5f2pg - 2 page mode with 5 first pages as single pages
  • 11f2pg - 2 page mode with 11 first pages as single pages

add annotation with this command:
djvused "djvuname.djvu" -s -f djvu_xpm.utf8

or if use with 2 page mode:
djvused "djvuname.djvu" -s -f djvu_xpm_2pg.utf8

To change 2 page mode without using djvu annotation, change file name to:
orig_name.2pg.djvu


Install as usual:

1) Unpack in root, you will get
Programs/_djvuplugin
Programs\Install

2) Go to 'Install' directory
- Click on InstallDJVU.desktop to install plugin

log:
- version 1.0 first version
Attached Thumbnails
Click image for larger version

Name:	Screenshot-QEMU-1.png
Views:	867
Size:	189.1 KB
ID:	58992   Click image for larger version

Name:	Screenshot-QEMU-2.png
Views:	840
Size:	102.2 KB
ID:	58993  
Attached Files
File Type: zip document-viewer-plugins-4.0_6.zip (534.6 KB, 620 views)
File Type: zip fb2plugin_1.4.zip (215.0 KB, 923 views)
File Type: zip djvuplugin_1.0.zip (868.2 KB, 901 views)
File Type: zip djvu_xpm.zip (884 Bytes, 589 views)

Last edited by yuri_b; 12-10-2010 at 07:41 AM. Reason: new version of FB2 (minor bug fix) + first version of djvu plugin
yuri_b is offline   Reply With Quote