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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-05-2013, 03:25 AM   #4036
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 817
Karma: 178742
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1
delf

Code:
hg clone https://code.google.com/p/prs-plus.v2-0/
Notice the Repository - Dropdown-List in Sources-Tab?
Mark Nord is offline   Reply With Quote
Old 03-05-2013, 04:17 AM   #4037
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
Quote:
Originally Posted by Mark Nord View Post
delf

Code:
hg clone https://code.google.com/p/prs-plus.v2-0/
Notice the Repository - Dropdown-List in Sources-Tab?
Just noticed!
Thanks!
Like You said in 2.1.02alph my reader got crash...
delf is offline   Reply With Quote
Old 03-05-2013, 05:34 AM   #4038
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
It's working
Thanks for You help
Will finish it...
delf is offline   Reply With Quote
Old 03-06-2013, 01:11 AM   #4039
BenChen
Chess for PRS!
BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.
 
Posts: 420
Karma: 20680
Join Date: Dec 2010
Device: PRS-600, PRS-650
Quote:
Originally Posted by delf View Post
It's working
Thanks for You help
Will finish it...
Well done! It is a good feeling when you see your app running on your reader...
BenChen is offline   Reply With Quote
Old 03-11-2013, 09:02 AM   #4040
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
How can I play a .wav(or mp3) file?
delf is offline   Reply With Quote
Old 03-12-2013, 01:11 AM   #4041
BenChen
Chess for PRS!
BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.
 
Posts: 420
Karma: 20680
Join Date: Dec 2010
Device: PRS-600, PRS-650
Quote:
Originally Posted by delf View Post
How can I play a .wav(or mp3) file?
You can't play wav files. But mp3 files can be played using "Browse Folders".
BenChen is offline   Reply With Quote
Old 03-12-2013, 05:44 AM   #4042
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
Quote:
Originally Posted by BenChen View Post
You can't play wav files. But mp3 files can be played using "Browse Folders".
I mean how I can play sound file from my application?
in Browse Folders, i can found only creation of Node for folders and files(also browsing function doOpenSongHere,oldPlaySongCallback,newDoGotoFirstS ong,..)
How can i play sound file from Path?
delf is offline   Reply With Quote
Old 03-12-2013, 06:22 AM   #4043
BenChen
Chess for PRS!
BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.
 
Posts: 420
Karma: 20680
Join Date: Dec 2010
Device: PRS-600, PRS-650
Quote:
Originally Posted by delf View Post
I mean how I can play sound file from my application?
in Browse Folders, i can found only creation of Node for folders and files(also browsing function doOpenSongHere,oldPlaySongCallback,newDoGotoFirstS ong,..)
How can i play sound file from Path?
As far as I know, it is all done with nodes. To play an mp3, you create an audio node, and then you activate the node.

It may be possible to do it directly, though it is unexplored territory. Here's some functions from the 650's kbook file (which should be pretty much the same as the 950's one):

Code:
	this.kbook.model.playSong = function (node) {
		var parent, i, c, model, view, indexs, menu, index;
		<global>.kbook.movieData.setData(null);
		if (this.currentSong) {
			this.currentSong.unlockPath();
		}
		this.currentSong = node;
		node.lockPath();
		this.SONG = node.media.title;
		this.ARTIST = node.media.artist;
		this.ALBUM = node.media.album;
		parent = node.parent;
		i = parent.shuffleList.getPlayIndex(parent.getIndex(node)) + 1;
		c = parent.length;
		this.SONG_INDEX_COUNT = i + 'fskin:/l/strings/STR_UI_PARTS_OF'.idToString() + c;
		this.container.sandbox.control = 1;
		this.container.sandbox.volumeVisibilityChanged();
		node.media.load(node.cache, this, this.playSongCallback);
		this.changed();
		model = <global>.kbook.model;
		view = null;
		indexs = null;
		if (model.STATE == 'MENU' && if (model.getCurrentDeleteNode() || model.editingNodeListFlag) {) {
			menu = this.container.findContent('MENU');
			view = menu.sandbox.detailsView;
			indexs = view.getSelectedIndexs();
		}
		<global>.kbook.menuData.changed();
		while (indexs) {
			i = 0;
			while (i < indexs.length) {
				index = indexs[i];
				view.setValueToCheckBox(index, true);
				i++;
			}
		}
	};
	this.kbook.model.playSongCallback = function (data) {
		var art, value, firstSongStopFlag;
		if (!data) {
			return;
		}
		<global>.kbook.movieData.setData(data);
		if (this.resumeStartFlg) {
			<global>.kbook.movieData.setTime(this.currentSongPos);
		}
		this.resumeStartFlg = false;
		art = data.getMetaData('AlbumArt');
		if (art) {
			try {
				art = new <global>.Bitmap(art, art.format);
			}
			catch (e)
			{
				art = null;
			}
		}
		<global>.kbook.artData.setData(art);
		this.setVolume();
		value = this.container.getVariable('STANDBY_STATE');
		firstSongStopFlag = this.container.getVariable('FIRST_SONG_STOP_FLAG');
		if (value && !firstSongStopFlag) {
			<global>.kbook.movieData.start();
		}
	};
So it may be possible to set up kbook.movieData and then start it. But the setting up might be quite difficult, and then what happens when you want to stop playback? You might need to use a timer that would activate kbook.movieData.stop(). All that would be extremely difficult, I'm afraid...
BenChen is offline   Reply With Quote
Old 03-12-2013, 06:28 AM   #4044
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
In any case great thanks
delf is offline   Reply With Quote
Old 03-29-2013, 02:06 PM   #4045
raiderkilo
Connoisseur
raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.raiderkilo is not intimidated by interfenestral monkeys.
 
raiderkilo's Avatar
 
Posts: 79
Karma: 26768
Join Date: Nov 2009
Location: Slovakia
Device: PRS-350 "PRS+"
Custom Dictionaries works very well.
THX

Last edited by raiderkilo; 03-29-2013 at 03:17 PM. Reason: Find solution through google search
raiderkilo is offline   Reply With Quote
Old 04-06-2013, 08:20 AM   #4046
BenChen
Chess for PRS!
BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.
 
Posts: 420
Karma: 20680
Join Date: Dec 2010
Device: PRS-600, PRS-650
Hey everyone,
Just to alert you to the new app in the app repository: StudyWord, programmed by delf. Check it out in the Sim, on the second page of apps.
Well done, delf. I think this app will be quite popular. A flashcard app was one of the feature requests the rest of us PRS+ developers never got around to!
Sincerely,
Ben.
BenChen is offline   Reply With Quote
Old 04-07-2013, 11:12 AM   #4047
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 BenChen View Post
Hey everyone,
Just to alert you to the new app in the app repository: StudyWord, programmed by delf. Check it out in the Sim, on the second page of apps.
Well done, delf. I think this app will be quite popular. A flashcard app was one of the feature requests the rest of us PRS+ developers never got around to!
Sincerely,
Ben.
Is there any way to exit to StudyWord? Apart from, I don't know how the program works or what is its use.

thanks
VICTORSJG is offline   Reply With Quote
Old 04-07-2013, 11:28 PM   #4048
BenChen
Chess for PRS!
BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.BenChen can self-interpret dreams as they happen.
 
Posts: 420
Karma: 20680
Join Date: Dec 2010
Device: PRS-600, PRS-650
Quote:
Originally Posted by VICTORSJG View Post
Is there any way to exit to StudyWord? Apart from, I don't know how the program works or what is its use.

thanks
To exit, just tap the icon in the top left. Note that the app is only for touch screens. I haven't tested it on a reader, but I believe delf runs it on a 950.

The app is for learning vocabulary in a second language. Currently, the app's dictionary is for a Russian speaker learning English. (But it also works for an English speaker learning Russian!)

There are various levels. In level 1, the app displays a word and its translation. If the user knows this word, you can click the "check mark" icon (near the top left) and the word will not appear again. (You can reset this on the Settings dialog.) Otherwise, click the Next button. After a number of words have been shown, level 2 begins. There are two columns of buttons. The user should click one word on the left and the matching word on the right. Keep going until all words have been matched. This repeats with another batch of words.

At some point, level 3 starts. Here, you have to type the matching word. I haven't gone beyond this point much, but there are other screens and word-matching activities as far as I can see.

delf, please feel free to provide a fuller explanation!
BenChen is offline   Reply With Quote
Old 04-08-2013, 02:18 AM   #4049
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
The brief description

The program loads the block from 10 words and in the random order offers to execute for each of them one of exercises.
The change from one exercise to another depends correct or not you have executed it (for each word).
For the correct answer 3 points will be added to you, for incorrect will be subtracted 2.

The detailed description


the program loads the block from several words (default is 10, the meaning changes in 'Options\Levels');
for each word of the block the set of exercises is carried out;
the exercises are assigned to sequence 6 levels (by a degree of difficulty);
for the correctly executed exercise 3 numbers are added, the incorrect answer is fined (-2 points, the amounts of points can be changed in 'Settings');
the change from one exercise to another possible only on achievement the points limit (for each word).
words from the block replace each other in the random order;
the cycle of study of words in the block repeats so long as all words of the block do not become learned (will collect enough of points);
the word can be excluded from study (is marked learned), pressing of the button (V), thus the new word will added in the block for study.



Level1:On the screen the word card consisting of three parts: an learned word (1), a phonetic transcription (comment) (2) and translation (3).

In this mode the cards "word-transcription-translation" will be presented for the first know of the word.

Level2:Here is two columns:
- the first column is studied words of the block;
- the second is translations of words.

You should mark the word from the left column and his translation from the right column.
You will add points for the correct answer. You will lost points for the wrong answer.

To choose a word it is possible having pressed above them the left button of the mouse, thus the specified word is selected.
Repeated pressing on the selected word removes a choice. Pressing other word in the same column transfers a choice to the specified word.

Level3:It is necessary to choose from seven variants of translation the correct one.
Develops associative connection "word - translation".
If your answer is correct, you will add points and program will show the following word.
For the wrong answer you get penalty points. The incorrect answer is crossed out.

Level4:The translation you should recall (on one's own).
The exercise fixes association "word - translation".
You can shows the correct answer (studied word).

If you recalled the correct translation - press the button "Remember", if you did not recalled - press the button "Forgot".

Exercise "Answer" - on the screen is shown the translation and the word is offered to be recollected.

Level6:Translation of the studied word is shown on the screen.
You must write the word in the field.

The amount of letters in the studied word show on the screen.
Having written your answer in the field, press the button "Compare".
"Answer" show the studied word.
delf is offline   Reply With Quote
Old 04-08-2013, 02:51 AM   #4050
delf
Member
delf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-booksdelf has learned how to read e-books
 
Posts: 12
Karma: 962
Join Date: Jan 2013
Device: prs-950
In the reader in the folder "words" have a file "word.dic". It contains a description of the dictionary in the format:
Original word; Transcription; Translation;

for level 6, by default loaded English keyboard to type the words, but you can load any other language, listing all the letters in the file "lan.kbd". The name of the file as prescribed in the file "word.dic" before the description of the dictionary in the format:
# lan

For example:
#eng
word1; transcription1; translation1
word2; transcription2; translation2
word 3; transcription 3; translation 3
delf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using HD Folders as Collections on Sony PRS-505 fglaysher Calibre 8 07-26-2010 10:55 PM
Enhanced Firmware for V3 keng2000 HanLin eBook 12 04-12-2010 10:30 AM
Poll: Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 70 02-18-2009 07:34 PM
Sony Reader PRS-505 upgrade to Sony PRS-700 Kris777 Sony Reader 23 12-08-2008 07:56 AM
Sub folders in firmware v1.08 Prince Hal Amazon Kindle 28 10-23-2008 04:20 PM


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


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