Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2010, 03:07 AM   #16
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 fekhner View Post
I made a short test on a large chm file that I had problems with before and it seems to work very well on DR1000, it indeed creates its own tab ...
Hi Glenn,

How do you scroll down on a large help section? Are you using the stylus or a key combination that I do not know yet? In 0.10.7 a short-press would scroll one page down and a long-press would get you to the next section. Is there a new trick in 0.12.10?

Marcel.
Mackx is offline   Reply With Quote
Old 12-10-2010, 08:28 AM   #17
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Hi Marcel,

Quote:
Originally Posted by Mackx View Post
Hi Glenn,

How do you scroll down on a large help section? Are you using the stylus or a key combination that I do not know yet? In 0.10.7 a short-press would scroll one page down and a long-press would get you to the next section. Is there a new trick in 0.12.10?

Marcel.
These are all the posible actions (from "fbreader/src/fbreader/FBReaderActionCode.cpp"):

Spoiler:
Code:
const std::string ActionCode::SHOW_READING = "showReading";
const std::string ActionCode::SHOW_LIBRARY = "showLibrary";
const std::string ActionCode::SHOW_NETWORK_LIBRARY = "showNetLibrary";
const std::string ActionCode::SHOW_TOC = "toc";
const std::string ActionCode::SHOW_HELP = "showHelp";
const std::string ActionCode::SHOW_BOOK_INFO_DIALOG = "bookInfo";
const std::string ActionCode::SHOW_OPTIONS_DIALOG = "preferences";
const std::string ActionCode::UNDO = "undo";
const std::string ActionCode::REDO = "redo";
const std::string ActionCode::SEARCH = "search";
const std::string ActionCode::FIND_PREVIOUS = "findPrevious";
const std::string ActionCode::FIND_NEXT = "findNext";
const std::string ActionCode::PAGE_SCROLL_FORWARD = "pageForward";
const std::string ActionCode::PAGE_SCROLL_BACKWARD = "pageBackward";
const std::string ActionCode::LINE_SCROLL_FORWARD = "lineForward";
const std::string ActionCode::LINE_SCROLL_BACKWARD = "lineBackward";
const std::string ActionCode::MOUSE_SCROLL_FORWARD = "mouseScrollForward";
const std::string ActionCode::MOUSE_SCROLL_BACKWARD = "mouseScrollBackward";
const std::string ActionCode::TAP_SCROLL_FORWARD = "tapScrollForward";
const std::string ActionCode::TAP_SCROLL_BACKWARD = "tapScrollBackward";
const std::string ActionCode::SCROLL_TO_HOME = "gotoHome";
const std::string ActionCode::SCROLL_TO_START_OF_TEXT = "gotoSectionStart";
const std::string ActionCode::SCROLL_TO_END_OF_TEXT = "gotoSectionEnd";
const std::string ActionCode::CANCEL = "cancel";
const std::string ActionCode::INCREASE_FONT = "increaseFont";
const std::string ActionCode::DECREASE_FONT = "decreaseFont";
const std::string ActionCode::SHOW_HIDE_POSITION_INDICATOR = "toggleIndicator";
const std::string ActionCode::TOGGLE_FULLSCREEN = "toggleFullscreen";
const std::string ActionCode::FULLSCREEN_ON = "onFullscreen";
const std::string ActionCode::ADD_BOOK = "addBook";
const std::string ActionCode::ROTATE_SCREEN = "rotate";
const std::string ActionCode::QUIT = "quit";
const std::string ActionCode::FORCE_QUIT = "forceQuit";
const std::string ActionCode::OPEN_PREVIOUS_BOOK = "previousBook";
const std::string ActionCode::GOTO_NEXT_TOC_SECTION = "nextTOCSection";
const std::string ActionCode::GOTO_PREVIOUS_TOC_SECTION = "previousTOCSection";
const std::string ActionCode::COPY_SELECTED_TEXT_TO_CLIPBOARD = "copyToClipboard";
const std::string ActionCode::CLEAR_SELECTION = "clearSelection";
const std::string ActionCode::OPEN_SELECTED_TEXT_IN_DICTIONARY = "openInDictionary";
const std::string ActionCode::GOTO_PAGE_NUMBER = "gotoPageNumber";
const std::string ActionCode::GOTO_PAGE_NUMBER_WITH_PARAMETER = "gotoPageNumberWithParameter";
const std::string ActionCode::SEARCH_ON_NETWORK = "searchOnNetwork";
const std::string ActionCode::ADVANCED_SEARCH_ON_NETWORK = "advancedSearchOnNetwork";
const std::string ActionCode::ORGANIZE_BOOKS_BY_AUTHOR = "byAuthor";
const std::string ActionCode::ORGANIZE_BOOKS_BY_TAG = "byTag";
const std::string ActionCode::FILTER_LIBRARY = "filterLibrary";


Can't you use any of these:

Code:
PAGE_SCROLL_FORWARD = "pageForward";
PAGE_SCROLL_BACKWARD = "pageBackward";
LINE_SCROLL_FORWARD = "lineForward";
LINE_SCROLL_BACKWARD = "lineBackward";
MOUSE_SCROLL_FORWARD = "mouseScrollForward";
MOUSE_SCROLL_BACKWARD = "mouseScrollBackward";
TAP_SCROLL_FORWARD = "tapScrollForward";
TAP_SCROLL_BACKWARD = "tapScrollBackward";
SCROLL_TO_HOME = "gotoHome";
SCROLL_TO_START_OF_TEXT = "gotoSectionStart";
SCROLL_TO_END_OF_TEXT = "gotoSectionEnd";
Look at the ones you are using in 0.10.x, check the new name for those actions and rebind them in preferences->keys.
I think pageForward and pageBackward are the actions you are looking for.

To bind a key, go to tab "keys" in preferences, click on the entry to the right of label "Action for key", press the key, and select the wanted action on the dropbox that will appear below.
Then repeat for all the keys you want to bind.

They are stored in <config_path>/.FBReader/options.xml.
Here is my file:
Spoiler:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<group name="Encoding">
<option name="UseWindows1252Hack" value="false"/>
</group>
<group name="Keys">
<option name="Action0" value="pageForward"/>
<option name="Action1" value="nextTOCSection"/>
<option name="Action2" value="previousTOCSection"/>
<option name="Action3" value="pageBackward"/>
<option name="Key0" value="&lt;DownArrow&gt;"/>
<option name="Key1" value="&lt;PageDown&gt;"/>
<option name="Key2" value="&lt;PageUp&gt;"/>
<option name="Key3" value="&lt;UpArrow&gt;"/>
<option name="Number" value="4"/>
</group>
<group name="Options">
<option name="ScanSubdirs" value="true"/>
</group>
<group name="Web Browser">
<option name="Enabled" value="false"/>
<option name="Name" value="Browser"/>
</group>
</config>


Hope it helps,
Iņigo

Last edited by Iņigo; 12-10-2010 at 08:30 AM.
Iņigo is offline   Reply With Quote
Advert
Old 12-10-2010, 11:03 AM   #18
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
Hi Iņigo,

I was looking at Programs\_fbreader\share\FBReader\default\keymap.x ml, that was the wrong file. Thanks for pointing at options.xml.

So for all others: Check your options.xml file for the following entries:
<option name="Action0" value="pageForward"/>
<option name="Action1" value="nextTOCSection"/>
<option name="Action2" value="previousTOCSection"/>
<option name="Action3" value="pageBackward"/>
<option name="Key0" value="&lt;DownArrow&gt;"/>
<option name="Key1" value="&lt;PageDown&gt;"/>
<option name="Key2" value="&lt;PageUp&gt;"/>
<option name="Key3" value="&lt;UpArrow&gt;"/>

I had to change the bold parts.

Thanks again,
I am switching to 0.12.10

Marcel.
Mackx is offline   Reply With Quote
Old 12-10-2010, 11:52 AM   #19
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
I was using the stylus, but now, after changing the options file, I can also use the sensors
fekhner is offline   Reply With Quote
Old 12-10-2010, 12:02 PM   #20
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by Mackx View Post
Hi Iņigo,

I was looking at Programs\_fbreader\share\FBReader\default\keymap.x ml, that was the wrong file. Thanks for pointing at options.xml.

So for all others: Check your options.xml file for the following entries:
<option name="Action0" value="pageForward"/>
<option name="Action1" value="nextTOCSection"/>
<option name="Action2" value="previousTOCSection"/>
<option name="Action3" value="pageBackward"/>
<option name="Key0" value="&lt;DownArrow&gt;"/>
<option name="Key1" value="&lt;PageDown&gt;"/>
<option name="Key2" value="&lt;PageUp&gt;"/>
<option name="Key3" value="&lt;UpArrow&gt;"/>

I had to change the bold parts.

Thanks again,
I am switching to 0.12.10

Marcel.


let's hope it doesn't crash too much ;-)
Iņigo is offline   Reply With Quote
Advert
Old 12-10-2010, 01:50 PM   #21
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Looking for feedback

Hello out there,

as I mentioned in a previous post, I'm thinking on different changes for the default configuration before releasing a version of the package, please comment with your opinions and ideas:

CHANGES:
- start FBReader in fullscreen mode
- change toolbar items
as some features are reachable from menu I think we could reduce / change the number of items on the toolbar.

To remove:
<button id="gotoHome"/>
<button id="undo"/>
<button id="redo"/>
<textField id="gotoPageNumberWithParameter" parameterId="pageIndex" maxWidth="5" symbols="digits"/>
<button id="preferences"/>
<button id="bookInfo"/>
<button id="rotate"/>

To remove? (I'd leave them if there is enough room)
<button id="search"/>
<button id="findPrevious"/>
<button id="findNext"/>

To add:
<button id="increaseFont"/>
<button id="decreaseFont"/>


BUGS:
By now, after some periods of light reading (~20 mins. each), the only bug I've found is that if I open various files with FBReader (f.e. a .fb2 and a .chm) and I close one of them, and then go to Home or Books, I can't come back to FBReader. Running it again does not work either because is running on background.
I think this is related to the "is_multidoc" parameter Mackx commented, but as I had to use another initialization method, I don't know if I can do something with this... Have to study deeper...


FINAL THOUGHTS:
Don't know if it's my own mind, but this version feels a bit faster than 0.10.x.
I also tested some forgotten big .chm files (~40 MB) and it's very usable.


Now, your comments below the line ;-)

__________________________________________________
__________________________________________________
__________________________________________________
__________________________________________________
__________________________________________________
Iņigo is offline   Reply With Quote
Old 12-10-2010, 04:23 PM   #22
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
I am sorry but I cannot comment yet as I am not so far a serious user of fbreader ...
fekhner is offline   Reply With Quote
Old 12-10-2010, 08:18 PM   #23
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Ok, if nobody finds something wrong this will be the final v2 package, to be released on saturday or sunday.
Attached Files
File Type: gz FBReader-0.12.10-dr-v2.tar.gz (1.86 MB, 354 views)
Iņigo is offline   Reply With Quote
Old 12-11-2010, 07:40 AM   #24
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 Iņigo View Post
I think this is related to the "is_multidoc" parameter Mackx commented, but as I had to use another initialization method, I don't know if I can do something with this... Have to study deeper...
If I remember well, setting is_multidoc to false makes sure that the program is send to the foreground when the program is 'started' again (although I am not 100% sure). I see in the code that it is now put to TRUE, in the 0.10.7 is was FALSE.
Code:
eripc_sysd_startup_complete( eripcClient, getpid(), TRUE, xid);
Mackx is offline   Reply With Quote
Old 12-11-2010, 09:23 AM   #25
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by Mackx View Post
If I remember well, setting is_multidoc to false makes sure that the program is send to the foreground when the program is 'started' again (although I am not 100% sure). I see in the code that it is now put to TRUE, in the 0.10.7 is was FALSE.
Code:
eripc_sysd_startup_complete( eripcClient, getpid(), TRUE, xid);
It works. Thanks Mackx again.
Iņigo is offline   Reply With Quote
Old 12-11-2010, 10:25 AM   #26
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Released!

The port is now oficially in-the-wild!

https://www.mobileread.com/forums/sho....php?p=1265744

Thanks Mackx and everyone for the all the ideas and help.
Iņigo is offline   Reply With Quote
Reply

Tags
fbreader, v0.12.x

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iLiad uzbl for iLiad (experimental) ericshliao iRex Developer's Corner 5 09-19-2009 01:05 PM
FBReader port to (Lbook|Hanlin) V3 lunohod HanLin eBook 39 06-26-2009 11:18 AM
FBReader OSX Port wallcraft Reading and Management 5 03-19-2009 09:41 AM
PRS-500 FBReader? Is anyone working on a port? delphidb96 Sony Reader Dev Corner 3 07-29-2008 03:08 AM
iLiad FBReader 0.8.1d for iLiad port finished (fixes/new features) Adam B. iRex Developer's Corner 29 04-30-2008 09:23 AM


All times are GMT -4. The time now is 10:11 PM.


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