Closed albbas closed 2 years ago
what pipe is this, se-smegramrelease?
It is the default one, which should be smegramrelease
.
$ echo 'don" mii' | divvun-checker -l se
{"errs":[["\" mii",3,8,"punct-aistton-left","Boasttuaisttonmearkkat",["”mii"],"Aisttonmearkkat"]],"text":"don\" mii"}
$ echo 'don" mii' |bash smegramrelease.sh
"<don>"
"don" Pron Sem/Hum Pers Sg2 Nom <W:0.0> <firstCohort> @HNOUN
"<">"
""" PUNCT <W:0.0> &punct-aistton-left ID:2 R:RIGHT:3
punct-aistton-left
""" PUNCT <W:0.0> "”mii"S &punct-aistton-left &SUGGESTWF ID:2 R:RIGHT:3
punct-aistton-left
"”" PUNCT RIGHT Err/Orth <W:0.0> ID:2 R:RIGHT:3
:
"<mii>"
"mii" Pron Indef Sg Nom <W:0.0> <LastCohort> &LINK &punct-aistton-left ID:3
punct-aistton-left
"mii" Pron Rel Sg Nom <W:0.0> <LastCohort> &LINK &punct-aistton-left ID:3
punct-aistton-left
"mun" Pron Sem/Hum Pers Pl1 Nom <W:0.0> <LastCohort> &LINK &punct-aistton-left ID:3
punct-aistton-left
:\n
The rule that adds the suggestion
# Generer forslag for hermeteikn på _venstre_ side:
COPY:punct-aistton-left-sugg KEEPORDER (VSTR:"”$1"S &SUGGESTWF) TARGET (&punct-aistton-left) IF
puts the suggestion on (the left of) mii
since mii
got the &punct-aistton-left
tag.
So why didn't don"
get &punct-aistton-right
instead? There is no such rule – the rules either assume we have wrong aisttons on both sides of the word, or on the left (only "»" can get &punct-aistton-right
).
The reason is probably that we don't in CG know where the space is.
This issue could be solved by
<spaceAfterAistton>
if there's a space after a "
.&punct-aisston-left
to "
if there is NOT <spaceAfterAistton>
, while we add &punct-aisston-right
to "
if <spaceAfterAistton>
is there.This works now in both MS Word and GDocs.
don" mii
is corrected todon”mii
Tested in Google Docs/Firefox/Linux