Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2011, 01:59 AM   #436
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by surquizu View Post
I like the calendar! Good job!
Thanks Ben

In the 505 works fine but crashes when I push the enter when OK is selected to change the starting day of the week.

Nor do I know how to add events on the calendar. I don´t see any option.
TJ27 has already answered the question about adding events. It would be nice to work out how to add events directly on the reader, but that either means using the system keyboard (which I don't know how to do) or creating my own keyboard popup (which would be english only). So I am not planning on doing anything about it in the short term.

What I am planning on doing is getting the calendar app to create a help file in the Calendar data folder with instructions about the different types of events that can be added when manually editing the data file.

I am sorry about the crash. I haven't yet tested the settings pop up on my 600. If you want to change the setting so that the week starts on Monday, simply add a text file to the Calendar data folder called settings.dat with the following text:

Code:
WeekBeginsWith:Mon
(Note the extra blank line: it may be needed!)

Hope that helps!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 07-18-2011, 02:19 AM   #437
TJ27
Enthusiast
TJ27 doesn't litterTJ27 doesn't litter
 
Posts: 44
Karma: 198
Join Date: Mar 2011
Location: Russia, Saratov
Device: Sony PRS-350
BenChen All work fine, but color of today square not different from other (on my 350)
P.S. In mode "Monday first"

Last edited by TJ27; 07-18-2011 at 02:23 AM.
TJ27 is offline   Reply With Quote
Old 07-18-2011, 02:26 AM   #438
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by TJ27 View Post
BenChen All work fine, but color of today square not different from other (on my 350)
P.S. In mode "Monday first"
Thanks for that. I will take a look...
BenChen is offline   Reply With Quote
Old 07-18-2011, 02:40 AM   #439
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Hi everyone,

I've fixed the problem with the "today" square not being marked in Monday first mode. Changes pushed to the repository.

I haven't been able to do anything about checking the settings pop-up yet. Sorry!

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 07-18-2011, 05:16 AM   #440
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by BenChen View Post
What I am planning on doing is getting the calendar app to create a help file in the Calendar data folder with instructions about the different types of events that can be added when manually editing the data file.
Just a thought:
Define a "REM" character like # and check for it before pushing to events.

With this you can have the "documentation" within the dat-file

#Y<early;Month; Day; Year; Description
Y;1;1;2006;New Year's Day
#V<alentine's Day Icon;Month;Day;Year; Description
V;2;14;2005;Valentine's Day
#F<loating; 3;0;0;Easter Sunday
F;3;0;0;Easter Sunday
#F<loating;Month;occurrence;DayofWeek; Description
F;11;4;5;Thanksgiving

Regard Mark
PS: Will try to check with my PRS-505

Last edited by Mark Nord; 07-18-2011 at 06:09 AM. Reason: typos (as usual)
Mark Nord is offline   Reply With Quote
Old 07-18-2011, 11:22 AM   #441
VICTORSJG
Addict
VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.
 
Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
Quote:
Originally Posted by TJ27 View Post
surquizu
For add/delete events manually edit file calendar.dat in /data/databook/system/prsplus/gamesave/calendar
Is it /data/databook/system/prsplus/gamesave or /database/system/PRSPlus/GamesSave?

thanks

Last edited by VICTORSJG; 07-18-2011 at 11:31 AM.
VICTORSJG is offline   Reply With Quote
Old 07-18-2011, 11:47 AM   #442
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Hi Victor,

the latter.

BTW: folder (subdirectory) and calendar.dat will be created automatically after the first use.
[EDIT] it wouldn't on PRS300/500 as doHold0() points only to exitif(), should be redirected to doRoot()
[/EDIT]

HTH
Mark

Last edited by Mark Nord; 07-18-2011 at 03:32 PM.
Mark Nord is offline   Reply With Quote
Old 07-18-2011, 11:55 AM   #443
VICTORSJG
Addict
VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.VICTORSJG once ate a cherry pie in a record 7 seconds.
 
Posts: 318
Karma: 1846
Join Date: Dec 2009
Device: PRS-505
Ben, maybe these files might be of help to you, to create and keyboard (i suposse it should be better a keyboard as Mark created for the calculator instead this, but it's an idea to begin, i don't know if it's possible to create differente keyboards to select them like prs x50) to use in calendar and even dictionary. Apart from these files incorporate a shell to use on prsplus like as pc with linux.
Attached Files
File Type: zip VirtualKeyboard.zip (14.4 KB, 161 views)
File Type: zip ShellApp.zip (18.8 KB, 170 views)

Last edited by VICTORSJG; 07-18-2011 at 11:58 AM.
VICTORSJG is offline   Reply With Quote
Old 07-18-2011, 03:39 PM   #444
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Ben,

fixed the settings-dialog for non-touch-readers by assigning doCenter = doCenterF() and pushed it to apps-repository.

Some additional thoughts:

doHold0 should call the same code as doRoot in calendar. Otherwise PRS300/505 will not save calendar.dat!

wordDays[..] could be used instead of string-literals here
Code:
		if (weekBeginsWith=="Mon") {
			this.labelSun.setValue(wordDays[1]);
			this.labelMon.setValue(wordDays[2]);
...
and also near the end of the code.
Giving a first approach for localization.

Regards
Mark

PS: Virtual-Keyboard (re)posted by VictorSJG (originally writen by m-land) is xDicto in the Sim. Non-Touch-Skin is required to use it.
But I'm nearly sure that the build in keyboard could be accessed for 600/x50 touch-type-readers, but as RL is realy busy right now I can't be of great help for the next few weeks.

Last edited by Mark Nord; 07-18-2011 at 03:45 PM.
Mark Nord is offline   Reply With Quote
Old 07-19-2011, 01:52 AM   #445
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by Mark Nord View Post
Ben,

fixed the settings-dialog for non-touch-readers by assigning doCenter = doCenterF() and pushed it to apps-repository.

Some additional thoughts:

doHold0 should call the same code as doRoot in calendar. Otherwise PRS300/505 will not save calendar.dat!

wordDays[..] could be used instead of string-literals here
Code:
		if (weekBeginsWith=="Mon") {
			this.labelSun.setValue(wordDays[1]);
			this.labelMon.setValue(wordDays[2]);
...
and also near the end of the code.
Giving a first approach for localization.

Regards
Mark

PS: Virtual-Keyboard (re)posted by VictorSJG (originally writen by m-land) is xDicto in the Sim. Non-Touch-Skin is required to use it.
But I'm nearly sure that the build in keyboard could be accessed for 600/x50 touch-type-readers, but as RL is realy busy right now I can't be of great help for the next few weeks.
Hi Mark,

Thanks for the fix! I will certainly apply what you suggest.

I have been thinking about keyboards, but the first step is to create an event browser popup. If I can get it working, I might include an English keyboard as well, but try and program it in a way that other keyboard layouts could be swapped in (might be difficult, though!)

I go on holidays later this week, so I probably won't have a lot of time for programming, either. We'll see. At least the calendar app is at a reasonably usable stage, as long as people don't mind editing the event file manually.

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 07-19-2011, 05:21 AM   #446
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Hi Ben,

Please, a little help to edit events on Calendar.dat file. I write:

Yearly events with icon:
<letter;month;day;year;text>
example:
C;12;25;0;Christmas

The year is 0 becouse the event is for all years.
Letter and icons:
C=Christmas
V=Saint Valentin's Day
B=Birhday
A=anniversari

Yearly events without icon:
<Y;month;day;year;text>
example:
Y;11;6;0;Constitution day

Weekly events (no icon);
<W;0;day of week;0;Text>
exemple:
W;0;6;0;Sunday
This event mark all sundays of calendar

Mensualy events:
I do not know how to write the event or I do not know how it works. Does it work well?

Event on only a day:
<D;month;day;year;text>
example:
D;7;22;2011;Go to the theatre
¿Is correct? I see the event on the calendar but but no text is written.

Thanks

Last edited by surquizu; 07-19-2011 at 05:24 AM.
surquizu is offline   Reply With Quote
Old 07-19-2011, 05:32 AM   #447
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by surquizu View Post
Mensualy events:
I do not know how to write the event or I do not know how it works. Does it work well?

Event on only a day:
<D;month;day;year;text>
example:
D;7;22;2011;Go to the theatre
¿Is correct? I see the event on the calendar but but no text is written.
Hi there,

For a one-off event (one that doesn't repeat), leave the first part blank. For example,

Code:
;7;19;2011;One off event
Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 07-19-2011, 08:04 AM   #448
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Hi everyone,

I've just pushed an update to Calendar to the repository. This is an alpha release, suitable for the Sim, but please don't try this on your readers.

@MARK:
I was wondering, if you have the time, can you take a look at this, please. I cannot for the life of me work out why the doPlusMinus function is not triggering when the Event Popup is visible. I would greatly appreciate a second pair of eyes looking at this, since I cannot see why similar code works in MineSweeper and Chess but not here! Thanks in advance...

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 07-19-2011, 10:00 AM   #449
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Ben,

At a first glimpse it might by the "debug"-code.
Try target.bubble() instead of this.bubble()

Can't try anything at work, but will have a closer look in the evening.

Regard
Mark
Mark Nord is offline   Reply With Quote
Old 07-19-2011, 10:13 AM   #450
BenChen
EPUB Metadata ******
BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.BenChen is not intimidated by interfenestral monkeys.
 
Posts: 525
Karma: 26874
Join Date: Dec 2010
Device: Kobo Glo HD
Quote:
Originally Posted by Mark Nord View Post
Ben,

At a first glimpse it might by the "debug"-code.
Try target.bubble() instead of this.bubble()

Can't try anything at work, but will have a closer look in the evening.

Regard
Mark
Hi Mark,

Ooh, well done! That was it.

Now, on with the rest of the debugging...

Sincerely,
Ben.
BenChen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fsk error, code = -13 Brian Charles Sony Reader 4 04-23-2010 04:21 PM
Fsk error code= -43 shrktank Sony Reader 1 12-24-2009 09:32 AM
Just a silly tweak: AUTORUN.INF for Windows Rootman Kindle Developer's Corner 3 12-04-2009 10:17 AM
Request for test in Windows XP kovidgoyal Calibre 5 08-26-2009 01:14 PM
Windows Develpment Environment issue itimpi Calibre 20 01-17-2009 07:15 PM


All times are GMT -4. The time now is 07:21 AM.


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