Okay, so if I understand this right, both dobj and iobj can be appended
with a preposition in Turkish, the order should be the other way around
and the verb is the last word of the command.
I think this is possible when you:
1. turn around verb, dobj and iobj in the parse_cmd.c file. (might
take a little more effort than just turning them around)
2. use the match_object patch and move the object-matching in-MOO
(taking care of the composed dobj+prepstr case).
http://sourceforge.net/p/lambdamoo/patches/11/
One concern I have is that you basically introduce an extra preposition
after the iobj (or dobj in the Turkish form). That kind of breaks with
the <any> <prep> <any> format that MOO uses. Perhaps it could be an
option to tell your end-users to only used the composed form? In that
case, the above 2 actions should suffice.
It's a pretty interesting case though, since MOO's been pretty much been
English-focused throughout the years..
One of the other problems you're going to run into is the lack of
support for special characters, because I know Turkish uses some
cyrillic characters. They can be printed from moo > user, but input from
the user to the moo is simply ignored.. I have seen a working solution
once on UtopiaMOO, but unfortunately I never got a hold of the code..
Op 2-1-2016 om 15:29 schreef Semih BUDAK:
> Hello Tim,
> I've extended the list of prepositions like you've said. Let me give
> you an example of the second thing that I want, so we can see if it's
> doable or not. In Turkish, 'den' means, 'from'. You can either type
> 'Tim den', or you can get rid of the space and type 'Timden'. I need
> to tell the parser to match the end of the string to the preposition
> list, if it matches and the rest of the string matches to an object,
> give it to me as dobj or iobj.
> Thanks again,
> Semih Budak.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "MOO Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to
MOO-talk+u...@googlegroups.com.
>> To post to this group, send email to
MOO-...@googlegroups.com.
>> Visit this group at
https://groups.google.com/group/MOO-talk.
>> For more options, visit
https://groups.google.com/d/optout.
>>