2 Replies - 3777 Views - Last Post: 27 October 2012 - 03:10 PM

#1 designmolvi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-October 12

programming a software tool

Posted 22 October 2012 - 03:47 PM

Hello everyone,

I am looking for a tool similar to http://www.downes.ca/memorization.htm to help me memorize arabic text

The tool should be able to extract up to first 3 letters of an Arabic word when I copy paste the Arabic text into the field box.

Can this be done automatically or will I need this be done manually where someone goes through the text and inserts first 3 letters from each word. What programming language can this be coded in? Which would give the best result? I want it to be a fluid user experience.

Please read here for more info - http://www.productiv...batim-text/294/

Here is an example of Arabic text - http://www.allahsquran.com/learn/


Is This A Good Question/Topic? 0
  • +

Replies To: programming a software tool

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon

Reputation: 13965
  • View blog
  • Posts: 55,749
  • Joined: 12-June 08

Re: programming a software tool

Posted 22 October 2012 - 04:49 PM

Moving to 'share your project'.
Was This Post Helpful? 0
  • +
  • -

#3 RexGrammer  Icon User is offline

  • Coding Dynamo
  • member icon

Reputation: 183
  • View blog
  • Posts: 785
  • Joined: 27-October 11

Re: programming a software tool

Posted 27 October 2012 - 03:10 PM

It can be coded in any programming language you want, it's really your choice.

I'll throw in a few pointers about doing it in .NET:

1. Every string implements a char array. So you can access any letter in a string just like you could access a variable in an array, or List<> or any IEnumerable.

2. The "String" class implements a Split() method. It splits the string into several strings on a character that you pass as a parameter. It returns an array of strings.

3. You can do a operation upon each member of an array by using a 'for' loop. (NOTE: You can also use the 'foreach' loop but you can't change array members directly using the 'foreach')

If you can't figure out on which character to split, look at this:

So basically what you want to do is:

1. Split the sentence into words
2. Extract the first 3 letter from each word
3. Output the result

Some Suggested Reading:
For Loop
Foreach Loop
String Class
String.Split() Method

This post has been edited by RexGrammer: 27 October 2012 - 03:10 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1