[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lojban] lujvo deconstruction



Hmm, another thing just occurred to me.  Given your description of what you did with valfendi, how do you differentiate between "y" hyphens and the "y" that happen in "trocy".  It seems like your parser could potentially get weirdness if it sees "y" as a hyphen there.

On Fri, Oct 29, 2010 at 5:32 PM, Pierre Abbat <phma@phma.optus.nu> wrote:
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

--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to lojban@googlegroups.com.
To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.


--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to lojban@googlegroups.com.
To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.