def-gthill / lexurgy

A high-powered sound change applier
GNU General Public License v3.0
42 stars 5 forks source link

Syllable features disappearing when using filter #44

Closed Mardikhouran closed 2 years ago

Mardikhouran commented 2 years ago

With these sound changes:


Diacritic ˈ (before) [+stress]

Class vowel {a, i, u}
Class cons {p, t, k, x}

Syllables:
 @cons? @vowel @cons?

stress-assignement:
 <syl> => [+stress] / _ <syl> $

swapping @vowel:
 u a => a u

And these words:

katak
kuta
pakit
kutuka
akakti

We get:

ˈka.tak
ka.tu
ˈpa.kit
ku.ta.ku
a.ˈkak.ti

However by rewriting swapping not to use a filter:

swapping:
 u [] a => a [] u

We get the expected results with the stress mark still present:

ˈka.tak
ˈka.tu
ˈpa.kit
ku.ˈta.ku
a.ˈkak.ti
def-gthill commented 2 years ago

This is fixed in commit 548803c0efc5d7d5caaeafeffba9f7d01765eaa8 and will be included in the next release (probably along with fixes to the other issues you reported, assuming they aren't as complicated to fix as this one was...)