A Farsi Add-in For Classpad
#1
Posted 17 August 2006 - 03:24 PM
Does anybody have a Farsi add-in for ClassPad?
Is someone building one?
Is someone going to build one?
Regards.
#2
Posted 24 August 2006 - 08:09 PM
Farsi Negar فارسینگار
('Farsi Negar' means Farsi-Writer)
Thanks to: Brian Maguire, Kilburn, Orwell.
You can download it from here (GeoCities).
Of course this is the first version, so the program is veeery simple (it is good for nothing).
Note: Read the 'ReadMe-Fast.html' file before using the add-in.
Here is a sample screenshot:
Nice day.
#3
Posted 25 August 2006 - 04:36 AM
Well, introducing the first Farsi add-in for CASIO ClassPad 300: Now you can write Farsi on ClassPad!
Farsi Negar فارسینگار
('Farsi Negar' means Farsi-Writer)
Thanks to: Brian Maguire, Kilburn, Orwell.
You can download it from here (GeoCities).
Of course this is the first version, so the program is veeery simple (it is good for nothing).
Note: Read the 'ReadMe-Fast.html' file before using the add-in.
Nice day.
Nice work! you have been making it for some time, congratulations you made it!!!
I'll check it!!!
#4
Posted 25 August 2006 - 03:22 PM
#5
Posted 26 August 2006 - 09:04 AM
there is a little bug! the horizontal slider doesn't work correctly in editing mode.
یک مشکل کوچیک تویه لغزنده افقی هست. وقتی متن از پنجره خارج بشه با حرکت دادن لغزنده متن به هم می ریزه.
باز هم متشکر به خاطره برنامه خوبت.
به امید موفقیت بیشتر.
#6
Posted 27 August 2006 - 09:33 PM
#7
Posted 28 August 2006 - 07:22 AM
If someone who doesn't speak Farsi wanted to check the add-in, the Farsi message at the start is this: 'Please turn your ClassPad off and on'.
About the horizontal scroll bar: There was nothing wrong with it on my ClassPad! Does anyabody else has this problem too?
The bug can also be because of the OS: What is your OS version?
#8
Posted 28 August 2006 - 10:22 AM
The bug can also be because of the OS: What is your OS version?
My classpad OS version is 02.20.3000
#9
Posted 28 August 2006 - 12:26 PM
You should integrate the Farsi keyboard in the CP keyboard (add a "far" tab), I know it's possible (look for CPKeyboardManager class here: http://www.cpsdk.com...topic.php?t=119 )
And, a simple question, how did you do the links between letters?
#10
Posted 30 August 2006 - 07:45 AM
I have no idea why this happens in your CP. :s Please answer some more questions maybe I could find a bug or something:My classpad OS version is 02.20.3000
1. (Again) Does anybody else has this problem?
2. Does the text return to its original state when you save and re-open the file?
3. Does the cursor move to an unexpected position when you type? e.g you type something at the start of the line and the cursor goes to the end of the line.
AFAIK it is impossible: http://www.cpsdk.com...wtopic.php?t=68You should integrate the Farsi keyboard in the CP keyboard (add a "far" tab), I know it's possible
Actually there are four characters for each of the Farsi letters in the font, which represent the four styles of the Farsi letters. With each key press, the add-in checks to see which style of the letter should be entered (according to the position of the cursor), and then the correct character is entered.And, a simple question, how did you do the links between letters?
If you didn't understand the descriptions, tell me (I myself didn't understand them ).
About the start-up screen:
I rechecked the source code and I think that the add-in is bug-free (except the scroll-bar).
So... Here is the way you can use the add-in without restarting your CP:
When you start the add-in, click on that boring message, then press [Clear], and you see a message box. Answer 'yes', and then you can use the add-in.
Remember, however, that there may be unrecognized bugs, so you are using the above way at your own risk.
#11
Posted 30 August 2006 - 08:48 AM
Just define a CPKeyboardManager class in a header:
// File CPKeyboardManager.h #ifndef CP_KEYBOARD_MANAGER_H #define CP_KEYBOARD_MANAGER_H #include "peg.hpp" /////////////////////////// // // IDs for built-in keyboards // enum KeyboardTab { KEYBOARD_MA = 0, // Must be 0 based index KEYBOARD_ABC, KEYBOARD_CAT, KEYBOARD_2D }; /////////////////////////////////////////////////// // Base class for any soft keypad class CPKeyboardManager : public PegNotebook { public: CPKeyboardManager(const PegRect &Rect); virtual ~CPKeyboardManager(); void Draw(void); void AddEditButtons(); // Change the current keyboard void SetKeyboard(UCHAR uTab) { SelectTab(uTab); } // Query the current keyboard UCHAR GetKeyboard() { return GetCurrentPage(); } protected: PegRect GetMyRectFromAppRect(PegRect rect); void ForwardMessageToCurrentThing(PegMessage &Mesg); }; /////////////////////////////////////////////////// // Built-in soft keypad class CPKeypad: public CPKeyboardManager { public: CPKeypad(const PegRect &Rect); // Rect: should be retreived from CPMainFrame::BottomAppRectangle() // The keypad manager will automatically expand this // area. }; #endif
And in PegAppInitialize:
CPMainFrame *mw = new CPMainFrame(Rect); ... CPKeyboardManager* keyb = mw->Keypad(); keyb->ResetNumTabs(5); keyb->SetTabString(4, "far"); CPWindow *win = new CPWindow(keyb->mReal,FF_NONE); // Add buttons to CPWindow* win keyb->SetPageClient(4,win);
There is just one problem: how can you manually set the tab width? As you add one more tab, this one will be hidden by the Edit buttons, and it's not good. (look at the red rectangle on the screenshot) But i'm sure it can be easily fixed.
#12
Posted 30 August 2006 - 10:28 AM
I have no idea why this happens in your CP. :s Please answer some more questions maybe I could find a bug or something:
2. Does the text return to its original state when you save and re-open the file?
3. Does the cursor move to an unexpected position when you type? e.g you type something at the start of the line and the cursor goes to the end of the line.
explaining the problem (sorry that i have to explain in farsi ):
ba salam.
hich moshkeli dar zaman edit kardan vojood nadare, hamechiz dorost kar mikone.
moshkel faghat zamani pish miyad ke az mode edit be mode view (ya har chize dige ke esmesh hast) taghire halat midam.
save va re-open ro ham emtehan kardam va hamchenin matn haye motefavet ro emtehan kardam vali in moshkel baz-ham hast.
man fekr mikonam in moshkel bi ertebat be matni hast ke type mishe. ya az classpad man hast ya az codi ke baraye slider neveshteh shode.
man ghablan khodam barnameh farsi saz neveshtam va fekr mikonam age moshkel az code slider bashe ehtemalan slider 1 character kam ba chap ya be rast baste be in ke slider ro be kodoom taraf mizani bere (albate ba dokme-haye jahat dare slider) , matn ro jabeja mikone.
masalan matne zir ro behesh dadam:
با سلام خدمت همه دوستان گرامی. در مورد خطای پیش آمده
bade az mode edit kharej misham (toye mode edit slider dorost kar mikone (pas shayad OS moshkel nadashte bashe.))
va be mode view miram. bad slider ro 1 harf be samte chap mizanam bere ( ba dokme haye jahat dare slider)
matn injoori mishe:
با سلام خدمت همه دوستان گرامی ی
va baz ham agar tekrar konam ی faghat varede safhe mishe.
bad az chan bar tekrar in joori mishe:
رامی ی ی ی ی ی ی ی ی ی ی ی ی
hala slider be entehaye samte chap reside , be samte rast bar migardam ( na ba keshidane slider ba dokme jahat dar)
in joori mishe:
با با با با با با با رامی ی ی ی ی ی
va be avale jomle ke mirese in joori mishe:
بلا با با با با با با با با با با با با رامی
albate لا arabi na balke hamoon ببا hast ke bejaye dandoone dovom yek ا gharar gerefte bashe.
--------------------------------------------
dobare varede mode edit misham (slider dar samte rast yani ebtedaye jomleh hast).
az mode edit be view bar mogardam , jomle dorost mishe.
in bar khode badane slider ro ba keshidan be chap va rast ja be ja mikonam.
slider ro az samte rast be samte chap ta enteha mikesham va in joori mishe:
امی لام خدمت همه دوستان گرامی
ke baz ham لا arabi nist balke لا chasban be ghablesh boodeh.
slider dan samte chap hast vali hanooz jomle ba yek be ham rikhtegi dar ebteda hanooz dar ebteda gharar dare.
slider ro be entehaye rast bar migardoonam jomle kamel va dorost mishe.
slider ro be vasat mibaram in joori mishe:
دوستان گرامیهمه دوستان گرامی
slider ro ta enteha be chap mibaram:
امیهمه دوستان گرامیستان گرامی
slider be vasat:
با سلام خدمت هامیهمه دوستان
albate ه (vasate jomle chasbideh be alef) 'he' akhar naboodeh balke 'he' aval hast.
--------------------------------------------------
yek nokte digar in ke:
ager slider dar entehaye samte chap bashe va be tore kamel be entehaye samte rast keshideh beshe jomle be tore sahih namayesh dadeh mishavad.
vali agar ebteda slider be miyaneh keshideh beshe va bad be samte rast jomleh be ham rikhteh mishe.
--------------------------------------------------
dar enteha man bazham nazare khodam ro migam ke shayad kamelan eshebah bashe:
chon slider dar mode edit kamelan dorost kar mikoneh vali dar mode view moshkel dare pas moshkel az OS nemitooneh bashe.
agar ehtemalan shoma code slider ro baraye mode edit aval neveshteh bashid va sepas baraye mode view copy kardeh bashid (bedoone taghir) ehtemal dare be khatere tafavot-haye in do mode, code moshkel dar shodeh bashe.
albate bayad begardim bebinim ke aya kase digari ham chenin moshkeli dare ya na.
fekr konam bayad az behnoud ham beporsim.
-------------------------------------------------
be har hal baz ham moteshaker az barname khoobet.
movafagh bashi.
man ehtemalan baraye 1 hafte ya bishtar be forum sar nemizanam.
khodahafez
-----------------------------------------------------
end of explanation in fingilish! (farsi written in english).
#13
Posted 07 September 2006 - 07:44 PM
Do you need any help?
All of us need some Application to transfer
Farsi (Persian) text to our CP and vice versa.
Are you planning to develope your own?
I can't help u programming but
if there is any other duty, don't hesitate!
#14
Posted 08 September 2006 - 08:29 AM
far2055: I read your post carefully... That's not a bug, that's a big bear!!
It occures on everybody's CP and it is because of the incompatibility of the ClassPad and Right-To-Left texts. Unfortunately I can do nothing about it, until I (or someone else, more probably) makes a RTL textbox for ClassPad.
Behnoud: I was thinking of releasing the PC version of Farsi Negar (emulator), and do sth so that when you set your PC's keyboard language to 'FA', you can write Farsi in the emulator... About the conversion of PC files, the only idea that I have for now is copy/pasting a text from Word or Notepad into the Farsi Negar emulator, but I should work on it, so I don't think such ability will be present soon...
If you know C++ or any other programming language, or if you have other ideas, help me please... I will be thankful.
Ehem... Farsi Negar 1.1 will be ready soon... Nothing improved about RTL, textboxes, etc, but I've done something for the low speed...
#15
Posted 10 September 2006 - 07:48 AM
If you don't have the add-in, download the Full Version.
If you already have it, you can download it separately: (If you read the information below, you don't need to download the help.)
The Add-in - Help Files - The Full Source Code
What's New?
1. I removed the startup screen.
2. I have added the ability of having multiple pages in one file, so when the speed becomes slow in one page, you can simply create a new, empty page and again type fast in it. Just when you felt that the add-in is running slow, click the 'Next' button and answer 'Yes' to create a new page. Read the descriptions:
Toolbar buttons:
1. Previous Page: Go to the previous page.
2. Go to page: Jump to the page that you select.
3. Next Page: It has two usages: 1. It shows the next page; 2. When you are in the last page, it creates a new page.
(Please let me know what do you think about the pages)
* Current page number and number of pages in the file is displayed in the status bar, in front of the file name.
* When you want to do anything related to pages (going, coming, jumping, running, etc) you should answer the 'Save Changes?' message (except deleting).
* 'Page>Insert' inserts a page before the current page.
* 'Page>Delete' deletes the current page (without showing the 'Save Changes?' dialog).
If you have any serious documents written with Farsi Negar 1.0, you can not open them with 1.1. But you should open your file with ver1.0, then select all of the text and then Edit>Copy. Then go to ver1.1 and choose 'Edit>Paste'.
This is just for the current version, if I changed the file format in the future versions, I build a convertor, too. Don't worry!
BTW I will probably start working on the PC version next week, so that you can type sth in PC and transfer it to ClassPad (NOT conversion, just typing).
Bye.
#16
Posted 10 September 2006 - 11:08 AM
Such a thing which import/export between CP & PC is really necessary!
Good luck
#17
Posted 14 September 2006 - 10:11 PM
change to view mode
again change to edit mode
exception happend!
#18
Posted 16 September 2006 - 02:53 PM
Sorry your data was lost, Farbod. I shouldn't have removed the startup screen.
Redownload the file and the problem is fixed.
#19
Posted 16 September 2006 - 05:21 PM
I have an idea . Can you add an auto learn (and surely auto compelete) capability to your program?
It makes typing more and more easy.
A capability like "IntelliComplete" software.
#20
Posted 18 September 2006 - 01:08 PM
Your idea is very nice! There are some problems however:
1. If I add Auto-complete, the prog's speed becomes even less (Of course not a big problem, you can have multiple pages).
2. Writing a Farsi vocabulary is so hard... It takes time, and also it is difficult by itself. For example, this long term:
"\xEC\x56\xEC\xA4\xEC\x81\xEC\xDE"
represents a Farsi word with just four letters!
3. The vocabulary fills the memory of your ClassPad.
However I'll think about it.
A QUESTION:
Do you need the '2D' tab? It is useless in the Farsi Negar's environment. I was thinking of deleting it, so that the poor 'Fa' tab gains more space.
What is you idea about it?
#21
Posted 19 September 2006 - 12:33 AM
#22
Posted 20 September 2006 - 03:21 PM
#23
Posted 20 September 2006 - 07:13 PM
2. Writing a Farsi vocabulary is so hard... It takes time, and also it is difficult by itself. For example, this long term:
"\xEC\x56\xEC\xA4\xEC\x81\xEC\xDE"
represents a Farsi word with just four letters!
3. The vocabulary fills the memory of your ClassPad.
I mean just an auto learning system not a complete vocabulary!!!
For example if I use "سلام" for 3 times then automatically this word added to the vocabulary.
Or even more simple! adding words manually not automatically so speed will improve.
I don't need it too.Do you need the '2D' tab? It is useless in the Farsi Negar's environment.
#24
Posted 21 September 2006 - 09:41 AM
Can SDK make a function can work in the main app.(TI supported)?
#25
Posted 24 September 2006 - 07:27 PM
With the SDK, you can execute 'Main' using an unsupported function, but no way can you build a function that runs in main (Except the standard 'FUNC' files which you can create with the 'Program' app).
What do you mean 'emulating the unicode on classpad'?
#26
Posted 25 September 2006 - 10:40 AM
#27
Posted 26 September 2006 - 09:52 PM
Nice to see a Parsi addin on the classpad .
#28
Posted 27 September 2006 - 09:37 AM
what is farsinegar file format ( for PC to CP ) ?congratulations MicroPro Programmer .
Nice to see a Parsi addin on the classpad .
#29
Posted 27 September 2006 - 12:16 PM
We are waiting for the PC emulator too.
#30
Posted 07 October 2006 - 08:09 PM
vanhoa, if you are here: 2^16 chars wowow! But most of the chars are useless chars in CP, e.g Hebrew and Thai chars. Who needs them?
And now... Here is a trial version 1.2: I don't warranty that the program works on everybody's PC, so you are downloading the above files with the risk of wasting your time.
The emulator
This DLL (ClassPadDLLgcc.dll) is required to run the EXE file. (If you have downloaded the SDK (Dev-C++), you already have this dll. Just look in the SDK_PATH\bin folder) If you couldn't download the files, refresh your browser to download them.
THE ABOVE ARCHIVES ARE IN *.RAR FORMAT, THEY AREN'T REAL ZIPs.
HOW IT WORKS:
OK. When you put your keyboard language to 'FA', you can type Farsi in the emulator. PC->CP conversion is possible but CP->PC isn't. For PC->CP conversion, do this on your PC:
NOTE : In all of the steps below, the keyboard language of the PC should be on 'FA' mode (Press Shift+Alt).
* Run the emulator.
* Go to Windows and open the file you want, example: you open a file with NotePad. Then select the text and Edit>Copy.
* Come to the emulator and right-click and then select Edt>Paste Windows Clipboard.
* You see that some [ x ] chars are entered. Delete all of them. Choose PC>Conv & Paste. Converted! Save your file and close the emulator (DO NOT USE THE DOS WINDOW, PRESS ON/OFF to close it).
* With your CP manager, transfer the contents of the file 'save.mcs' to CP. ('save.mcs' is automatocally created on first run).
=== If you want to transfer a text from Word, you may experience problems. Try to copy it to NotePad, and then from NotePad copy it to the emulator.
=== In the options dialog, 'Neviseh' is the Farsi word for 'Character'.
=== Again I say: I'm not sure that it works.
Also please tell me is the doswnload speed acceptable?
Thanks, bye.
#31
Posted 18 November 2006 - 07:27 PM
http://www.geocities...pro/FaNegar.zip
(It is a RAR archive)
Could you use it?
#32
Posted 25 November 2006 - 05:57 PM
I can't download it
#33
Posted 25 November 2006 - 11:46 PM
#34
Posted 26 November 2006 - 11:47 AM
Unfortunatly there is a bug with emulator.
If you past some farsi test then you will get some error and windows close your APP.
I found that if you save your work in a file first and then paste your text (using FaNegar paste not emulator) you will not get that error and Fanegar works great.
And a suggestion:
Please save files in flash memory not in the cla$$pad RAM. Thanks.
#35
Posted 26 November 2006 - 12:00 PM
#36
Posted 28 November 2006 - 07:10 PM
I did so.Use proxy...
But there are some restriction which don't allow to download
or even open some URLs!
#37
Posted 26 December 2006 - 06:45 AM
Just wait some days, I'll upload it somewhere else so you can download it.Please share it on Casiocalc.org.
I can't download it banghead.gif
First you should right-click and choose 'Edit>Paste Windows Clipboard', then you should click 'PC>Conv&Patse'. As far as I know this way it doesn't crash.Hi.
Unfortunatly there is a bug with emulator.
If you past some farsi test then you will get some error and windows close your APP.
I found that if you save your work in a file first and then paste your text (using FaNegar paste not emulator) you will not get that error and Fanegar works great. smile.gif
Unfortunately it is not possible. (Or at least nobody knows how to do it)And a suggestion:
Please save files in flash memory not in the cla$$pad RAM. Thanks.
#38
Posted 13 February 2007 - 07:14 AM
Update:
CPA: http://www.esnips.co...43f2210/FaNegar
EXE: http://www.esnips.co...ea30482/FaNegar
The DLL required for the exe: http://www.esnips.co...980eea/CPDLLGCC
I fixed some bugs and added a new option: Imagine that you convert a very long text from Win to CP. It looks like this:
یک متن بسیار بسیار طولانی که این متن اگر باعث نمایش دادهشدن لغزندهی افقی شود خواندن را مشکل میکند
If you go to 'Format>ArrangeLines' then the text looks like this:
یک متن بسیار بسیار طولانی
که این متن اگر باعث نمایش
دادهشدن لغزندهی افقی شود
خواندن را مشکل میکند
Again about the Win>>CP conversion:
* The correct way is: First right-click and choose 'Edit>PatseWindowsClipboard', then delete all of the chars, and then
choose PC>Conv&Paste.
* The unwanted chars at the start or end of the converted text are usual.
* If you use the correct way, but still windows closes your app, try to change the selection a little. For example if you
can't convert:
یک جملهی ساده
try to convert
جملهی ساده
Any other bugs?
PS. Behnoud: Can you download it?
#39
Posted 15 February 2007 - 04:13 PM
thanks for the new version and new features!!
farsi negar has realy helped me through my exams ( by cheating )
well , I found the first bug in the new version!!
I wrote a long text in cp using the Farsi Keyboard!! then I used 'Format>ArrangeLines' and got the expected result !! then I added another line in that page .. again another long text!! and I tried to use 'Format>ArrangeLines' again to make this text in the correct order too. but when I pressed 'Format>ArrangeLines' .. the third line of the previous line arrangement was gone!! and I had a missing line!!!
I dont know whether I was clear complaining the bug or not!!
if not .. tell me to explain more!!
thanks again for really helpful farsi negar!!
#40
Posted 15 February 2007 - 07:23 PM
Yeah!PS. Behnoud: Can you download it?
Thanks a lot!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users