F.O.S.K.-based Text Editor Released

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

F.O.S.K.-based Text Editor Released

Post by mrn »

============================================
F.O.S.K. - http://fosk4psp.dynamicweb.hu/
============================================

F.O.S.K. is the Fast On-Screen Keyboard-based TEXT EDITOR
requiring only two (!) keystrokes to enter any character.

How does it work?
-----------------
The on-screen QWERTY keyboard is divided into 7 blocks, each one with a square shape,
containing 3x3=9 on-screen buttons (therefore icon.png .)
The first keystroke selects such a block, while the second one takes one of the nine chars inside the block.
- To move up/down/left/right inside the block .. the arrow keys are used
- To move up-left .. square, down-left .. cross, down-right..circele, up-right .. triangle keys used.
- To choose the mid char from the block .. the 'Select' keys is used.

The keyboard has 3 MODES (1~normal, 2~CapsLock, 3~CursorMode), each one having its own spcial functions:
Mode1: NORMAL MODE
----------------------
- to type text at the cursor position proceed as described above ('How does it work?')
- to scroll the text Up/Down use buttons R and L
- Special functions in this mode:
- Tab...Tabulator
- Del...Delete from Right
- Back..Delete to Left
- Home..Jump to the beginning of line
- Vsbl..Make the Text Visible or Not
- NwLn..add a New Line
- Copy..not implemented yet
- Cut...not implemented yet
- Pste..not implemented yet

Mode2: CAPS LOCK
----------------------
- Special functions in this mode:
- Open..Open another text file (should be of length at least 3 lines)
- NewF..Make a new file
- Clse..not implemented yet
- Save..Save the file we just edited
- Prnt..Print the screen immediately to a file with a filename extracted from the date like "1_00.15.34.png"
- Xprt..Save the text immediately to a file with a filename extracted from the date: "Note_1_00.05.38.txt"
- Find.. not implemented yet
- Repl.. not implemented yet
- Ins... not implemented yet

Mode3: CURSOR MODE
----------------------
- Special functions in this mode:
- Move cursor Up, Left, Down, Right (Arrow keys)
- Move 5 characters Up, Left, Down, Right (Triangle, Square, Circle, Cross)
- PageUp/PageDown (button L and R)

To switch inbetween the 3 modes press "Select"
To Exit F.O.S.K. press "Start".
Last edited by mrn on Tue Dec 13, 2005 6:03 pm, edited 1 time in total.
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

The last version is online with fixed bug when using standard fonts.
It requires LuaPlayer 0.15!!!

Last changes: (ver. 0.22.. Dec.12, 2005)
- square button printed as Rect,
- printing in dispText corrected by removing "%s" (see forum on Luaplayer 0.15)
- browser : oldPad added, so it is no more so sensitive
- ttf.. first trial -> really slow (see forum on Luaplayer 0.15)
- ttf vs. Standard font switchable manually in index.lua
- Battery status in % added with changing color
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

F.O.S.K 0.24 is online (edited.).

Most important new features:
- Save and SaveAs (SaveAs part of Save)
- Find and Find Next (sutable for dictionaries, just load ENHU.dic ;)
- vertical scrollbar with changing height acc to the filesize
- analog joystick-based cursor movement during edit mode
- auto-scrolling the text in all directions!

Minor changes:
- dispAscii added to see what's available .)
- Esc/Enter added to the "Find/SaveAs" menu
- new chars added to the keyboard (<|>)
- added "Back" to Caps-mode
- auto-init filename for new file
- "square" now printed as Rect,
- ttf vs. Standard font switchable (ttf is really slow and requires to implement caching!!)

Hints:
-When in SaveAs mode,
"New line" clears the filename entry field
"L" cancels the entry
"R" is like "Enter"
"Back" is like Backspace
(Del and cursor does not work in this mode)

- In readFosk.lua at point when calling the NewFile part,
you can easily invoke dispAscii() to fill your new file with the
available Ascii characters of the standard PSP (or ttf) font-set.
i saw nothing special :( there.
Last edited by mrn on Mon Dec 19, 2005 7:31 pm, edited 3 times in total.
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

uh, website still showing .24?
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

yeah, sorry, wrong number. website is ok. I'll edit.
.. and Bob, thanks for showing interest and mirroring F.o.s.k!!!
Wraggster
Posts: 121
Joined: Fri Aug 26, 2005 7:40 am
Contact:

Post by Wraggster »

yeah i had the same problem when i posted news last night ;)
Webmaster of http://www.dcemu.co.uk

DCEMU The Worlds Only Homebrew & Gaming Network of Sites.
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

New file has been mirrored on my site.

www.247364.com
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

thnx, bob! your're going to have a nice page!
btw, have you ever considered building a full package (virtual os + Apps)
like OSi, or PSPWin?

I mean one with
- IR, WiFI, Serial Test cripts inside, and
- a package easily expandable by further applications?

I think what we need is.. you know what, I'll start a new thread on it.)
Bob535
Posts: 56
Joined: Fri Nov 04, 2005 6:52 am

Post by Bob535 »

ugh, too much work.
mrn
Posts: 116
Joined: Wed Nov 02, 2005 2:26 am

Post by mrn »

ugh, too much work.
Shine already did put a lot of work with his colleagues,
so why not to start sthng coordinated, which is not
really controlled, just showing some directions...?
Post Reply