Skip to content

Commit

Permalink
Fix LT-21892: NotOnClitics box does not work as expected (#164)
Browse files Browse the repository at this point in the history
Fix (possibly) LT-21892: NotOnClitics box does not work as expected
  • Loading branch information
jtmaxwell3 authored Sep 24, 2024
1 parent c638a3b commit 5dce2e1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Src/LexText/ParserCore/HCLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,11 @@ private void LoadLanguage()
RewriteRule hcRegRule = LoadRewriteRule(regRule);
if (hcRegRule == null)
continue;
m_morphophonemic.PhonologicalRules.Add(hcRegRule);
// Choose which stratum the phonological rules apply on.
if (!m_notOnClitics)
m_clitic.PhonologicalRules.Add(hcRegRule);
else
m_morphophonemic.PhonologicalRules.Add(hcRegRule);
m_language.PhonologicalRules.Add(hcRegRule);
}
break;
Expand All @@ -250,9 +252,12 @@ private void LoadLanguage()
if (metaRule.LeftSwitchIndex != -1 && metaRule.RightSwitchIndex != -1)
{
MetathesisRule hcMetaRule = LoadMetathesisRule(metaRule);
m_morphophonemic.PhonologicalRules.Add(hcMetaRule);

// Choose which stratum the phonological rules apply on.
if (!m_notOnClitics)
m_clitic.PhonologicalRules.Add(hcMetaRule);
else
m_morphophonemic.PhonologicalRules.Add(hcMetaRule);
m_language.PhonologicalRules.Add(hcMetaRule);
}
break;
Expand Down

0 comments on commit 5dce2e1

Please sign in to comment.