divvun / libdivvun

lib for running gramcheck and other pipelines + cli; modules for CG→spelling, CG→feedback, tagging blanks
https://giellalt.github.io/proof/gramcheck/GrammarCheckerDocumentation.html
GNU General Public License v3.0
9 stars 1 forks source link

Show multiword-suggestions and underlines in divvun-suggest (non-json) #62

Closed unhammer closed 10 months ago

unhammer commented 11 months ago

Suggestions that are "together" will have the same colour, if the next word is not LINK'd to the previous one then we use a different colour.

So where we now have

"<foo>"
  "foo" tags
fixfoo+Tag fixed
"<bar>"
  "bar" tags
fixbar+Tag barfixed

we would want

"<foo>"
  "foo" tags
GREEN fixfoo+Tag fixed
"<bar>"
  "bar" tags
GREEN fixbar+Tag barfixed

if the words are in one underline (eg. &LINK), but

"<foo>"
  "foo" tags
GREEN fixfoo+Tag fixed
"<bar>"
  "bar" tags
RED fixbar+Tag barfixed

if they're separate. So the "default" is that colours just alternate green/red

unhammer commented 10 months ago

@albbas @lynnda-hill vil dette påverka testane? (Bør me gjera det valfritt?)

albbas commented 10 months ago

Testene går etter indeksene som divvun-checker gir. Om dette betyr at indeksene endres, må vi gjøre endringer i .yaml-testene også.

unhammer commented 10 months ago

Køyrer du testar på json output? (Her var det snakk om å endra ikkje-json-formatet.)

albbas commented 10 months ago

Ja, lager json av yaml-setningene som lar seg sammenligne med divvun-checker sitt output.

unhammer commented 10 months ago

image

Ser ↑ OK ut @lynnda-hill ?

Alternativt går det òg an å få med nøyaktig det som blir sendt til pluginen, men då er det ikkje lenger kopla til readings, så då me må skriva det på kohort-nivå:

image

eller det går til og med an å visa begge:

image

unhammer commented 10 months ago

image end result