On Friday 29 October 2010 13:34:56 Luke Bergen wrote:
> Sorry, yes, I was providing very rough pseudocode for my script. I do look
> from left to right. But since rafsi are always 3 letters (minus any
> ' characters and excluding 4 letter rafsi), I take them in chunks of 3.
>
> an example with morsi would be "xamymro". My code would go like:
> grab left most three chars, check for .y'ys and grab a fourth char if there
> is a .y'y
> look up the rafsi, chop off what you found to be the "leftmost" rafsi and
> loop again with what you have left
> Now we're looking at "ymro"
> Strip off "y" and we're left with "mro". Now because I'm assuming that
> "r", "l", "m", or "n" followed by a consonant is a buffer vowel, I see
> "mro" and think "ok, the 'm' is a buffer vowel so grab another char so
> we're back to a 3 letter rafsi", I then try to grab whatever comes after
> "o" and get a null-pointer or some such.
The way I do it in valfendi is first break the prospective lujvo at the
y-hyphens, then look for r-hyphens. An r-hyphen occurs only after the first
rafsi, which must be a CVV (or CV'V) rafsi. Make sure it does the right thing
with "fu'arka".
"m" is a syllabic consonant, but not a hyphen-letter. The hyphen-letters
are "r" and "n" in lujvo, and also "l" in fu'ivla.
The program is at http://phma.optus.nu/Language/valfendi.html . I haven't
touched it in years, but probably will early next year.
Pierre
--
lo ponse be lo mruli po'o cu ga'ezga roda lo ka dinko
--