|
I've decided that ConjuGNU
will run on a class system because that would be the easiest way (I
think) to call certain values. For example, to check the subject in a
sentence you might look to see if the variable "subject" is equal to
en.p1s.name (which would be English, 1st person singular, name of).
That is, the subject would be checked against the word "I". The
trouble is in setting up a hierarchy where values are repeated only
once. I would really appreciate some advice on creating this system.
I'm also including my current structure and an example of how I used it
for Spanish. Why am I using struct instead of class? For some reason
gcc doesn't like class, but I don't need any private or protected
members so that's alright. -Luke struct tense { char name[128]; char ar[128]; char er[128]; char ir[128]; }; struct person { char name[128]; struct tense present; struct tense past; struct tense imperfect; struct tense progressive; struct tense future; }; struct language { char name[128]; struct person p1s; struct person p2s; struct person p3s; struct person p1p; struct person p2p; struct person p3p; }; struct language es={"Español (es)\0"}; strcpy(es.p1s.name,"Yo\0"); strcpy(es.p1s.present.name,"Presente\0"); strcpy(es.p1s.present.ar,"o\0"); strcpy(es.p1s.present.er,"o\0"); strcpy(es.p1s.present.ir,"o\0"); strcpy(es.p1s.past.name,"Preterito\0"); strcpy(es.p1s.imperfect.name,"Imperfecto\0"); strcpy(es.p1s.progressive.name,"Progresivo\0"); strcpy(es.p1s.future.name,"Futuro\0"); strcpy(es.p2s.name,"Tú\0"); strcpy(es.p2s.present.name,"Presente\0"); strcpy(es.p1s.present.ar,"as\0"); strcpy(es.p1s.present.er,"es\0"); strcpy(es.p1s.present.ir,"es\0"); strcpy(es.p2s.past.name,"Preterito\0"); strcpy(es.p2s.imperfect.name,"Imperfecto\0"); strcpy(es.p2s.progressive.name,"Progresivo\0"); strcpy(es.p2s.future.name,"Futuro\0"); strcpy(es.p3s.name,"Él\\Ella\\Usted\0"); strcpy(es.p3s.present.name,"Presente\0"); strcpy(es.p1s.present.ar,"a\0"); strcpy(es.p1s.present.er,"e\0"); strcpy(es.p1s.present.ir,"e\0"); strcpy(es.p3s.past.name,"Preterito\0"); strcpy(es.p3s.imperfect.name,"Imperfecto\0"); strcpy(es.p3s.progressive.name,"Progresivo\0"); strcpy(es.p3s.future.name,"Futuro\0"); strcpy(es.p1p.name,"Nosotros\0"); strcpy(es.p1p.present.name,"Presente\0"); strcpy(es.p1s.present.ar,"amos\0"); strcpy(es.p1s.present.er,"emos\0"); strcpy(es.p1s.present.ir,"imos\0"); strcpy(es.p1p.past.name,"Preterito\0"); strcpy(es.p1p.imperfect.name,"Imperfecto\0"); strcpy(es.p1p.progressive.name,"Progresivo\0"); strcpy(es.p1p.future.name,"Futuro\0"); strcpy(es.p2p.name,"Vosotros\0"); strcpy(es.p2p.present.name,"Presente\0"); strcpy(es.p1s.present.ar,"áis\0"); strcpy(es.p1s.present.er,"éis\0"); strcpy(es.p1s.present.ir,"ís\0"); strcpy(es.p2p.past.name,"Preterito\0"); strcpy(es.p2p.imperfect.name,"Imperfecto\0"); strcpy(es.p2p.progressive.name,"Progresivo\0"); strcpy(es.p2p.future.name,"Futuro\0"); strcpy(es.p3p.name,"Ellos\\Ellas\\Ustedes\0"); strcpy(es.p3p.present.name,"Presente\0"); strcpy(es.p1s.present.ar,"an\0"); strcpy(es.p1s.present.er,"en\0"); strcpy(es.p1s.present.ir,"en\0"); strcpy(es.p3p.past.name,"Preterito\0"); strcpy(es.p3p.imperfect.name,"Imperfecto\0"); strcpy(es.p3p.progressive.name,"Progresivo\0"); strcpy(es.p3p.future.name,"Futuro\0"); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
