def-gthill / lexurgy

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

Trace improvements #63

Closed neta-elad closed 1 year ago

def-gthill commented 1 year ago

Thanks, I'll take a look at this on the weekend, along with @AdamantConlanger's bug reports.

def-gthill commented 1 year ago

For commit e4a13fb (save trace when intermediates are off): Good catch on this, yes it's almost certainly a bug. I pretty much always have intermediates on so I missed this. Good work, no changes needed!

For commit 80c7896 (add syllables to trace): Great work again. I'm pretty sure this fixes #55, and in exactly the way I would have fixed it.

For commit d295f61 (show original word in trace): I can see what you're going for here, but I'm not sure I like it as is. If I'm only tracing one word, I get "Applied some-sound-change to cukucaku" over and over again. It's a bit cluttered for no gain.

If I'm tracing more than one word, I think showing the original word like this is a great idea, to make it clear which changes are being applied to which words. At least once I've used the trace feature to figure out why two similar words were diverging, and showing the original word would've helped a lot with that.

My suggestion:

def-gthill commented 1 year ago

Also I really appreciate that you made sure each of your changes had a test case!

neta-elad commented 1 year ago

I fixed your comments and did a small refactor of the code that prints the trace line (to remove code duplication):

def-gthill commented 1 year ago

Thanks, looks good!