In the interchunk stage I am adding a word, which happens to be very often
at the beginning of a sentence. So I face two issues. On the one hand, to
put an initial capital letter to the word I add, if needed, and, on the
other hand, to remove the initial capital letter from the following word,
if needed too. For the former, I can more or less figure out how to do it,
although I have my doubts. For the following word, I don't see how: in
interchunk I don't have access to the word itself, so I don't know whether
it is capitalised or not; in postchunk I only have access to the individual
words, so I lack context; and in postgeneration it doesn't seem to be
possible to change words from uppercase to lowercase.

Does anyone have any suggestions?

$ echo "C'est une maison." | apertium -d . fra-oci_gascon
qu'Ei un ostau.

Hèctor
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to