There two things in:

    <e>      <p>        <l><a/>nk<b/></l>        <r>ng<b/></r>      </p>    </e>

First is the <a/> that must precede (that's the ~ Kevin said because it is
shown as a tilde in the output). If you don't have it, there won't be any
matching.

Second, is the <b/>, i.e. a space. So nk- will not match, but only nk
followed by a blank (a preceded by an <a/>). If matched, it will be
replaced by ng followed by a blank to.

Hèctor


Missatge de Zanga Chimombo <z.chimo...@gmail.com> del dia dj., 27 d’ag.
2020 a les 12:31:

> Not sure I know what you mean by "~"...? Sorry. I'm new to this
>
> The input is "nkutenda". Expected output: "ngutenda".
>
> On Thu, Aug 27, 2020 at 11:26 AM Kevin Brubeck Unhammer
> <unham...@fsfe.org> wrote:
> >
> > Zanga Chimombo <z.chimo...@gmail.com>
> > čálii:
> >
> > > One of the processes that occurs in one of the languages I am dealing
> > > with is "nk-" becoming "ng-"
> > >
> > > I thought I would be able to fix this using the post generator here:
> > >
> https://gitlab.com/zangaphee/CiBantu/-/blob/master/twoc/apertium-yao/apertium-yao.post-yao.dix
> > >
> > > However, that doesn't fix it. Have I done it incorrectly? Should I
> > > even be using PG to do this?
> >
> > If there's a ~ before every nk, then I think that should
> > work. What's the exact input to pgen?
> >
> > (There's an open issue on not requiring the
> > `~` https://github.com/apertium/lttoolbox/issues/42 )
> > _______________________________________________
> > Apertium-stuff mailing list
> > Apertium-stuff@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to