Skip to content

Commit

Permalink
add acx to treat apostrophe variants as equal to '
Browse files Browse the repository at this point in the history
  • Loading branch information
unhammer committed Jul 31, 2019
1 parent 86377ec commit 947beca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ $(LANG1).autogen.bin: $(BASENAME).$(LANG1).dix
apertium-validate-dictionary $<
lt-comp rl $< $@

$(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix
$(LANG1).automorf.bin: $(BASENAME).$(LANG1).dix $(BASENAME).$(LANG1).acx
apertium-validate-dictionary $<
test ! -f ./test-scandivoc || ./test-scandivoc
lt-comp lr $< $@
apertium-validate-acx $(BASENAME).$(LANG1).acx
lt-comp lr $< $@ $(BASENAME).$(LANG1).acx

$(LANG1).autogen.att.gz: $(LANG1).autogen.bin
lt-print $< | gzip -9 -c -n > $@
Expand Down
10 changes: 10 additions & 0 deletions apertium-nob.nob.acx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<analysis-chars>
<!-- Make apostrophe variants equal ' -->
<char value="'">
<equiv-char value="&#x2019;"/>
<equiv-char value="&#x2BC;"/>
<equiv-char value="&#8217;"/>
<equiv-char value="&#39;"/>
</char>
</analysis-chars>

0 comments on commit 947beca

Please sign in to comment.