<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vis-spellcheck/spellcheck.lua, branch syntax_aware</title>
<subtitle>spellchecking plugin for the vis editor</subtitle>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/'/>
<entry>
<title>escape magic characters in typos</title>
<updated>2020-08-28T14:45:06+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T14:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=4b08e0a08ca2b3d776186e71a743eb4a7fd2652c'/>
<id>4b08e0a08ca2b3d776186e71a743eb4a7fd2652c</id>
<content type='text'>
If the typo itself contains magic pattern characters we can't reliable find
it in the text.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the typo itself contains magic pattern characters we can't reliable find
it in the text.
</pre>
</div>
</content>
</entry>
<entry>
<title>don't stop iterating over typos when an empty one is encountered</title>
<updated>2020-08-28T14:42:52+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T14:42:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=8af2f0f18350078ae8d70a62c95e161b2d43a0af'/>
<id>8af2f0f18350078ae8d70a62c95e161b2d43a0af</id>
<content type='text'>
An iterator in lua stops if it returns nil.
This change will get a new typo from the unfiltered_iterator if
we encounter an empty one instead of returning nil.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An iterator in lua stops if it returns nil.
This change will get a new typo from the unfiltered_iterator if
we encounter an empty one instead of returning nil.
</pre>
</div>
</content>
</entry>
<entry>
<title>ignore empty typos</title>
<updated>2020-08-28T13:21:51+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T13:21:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=500a12c36f8112a7b66a5e10f0733b3374e3c1f0'/>
<id>500a12c36f8112a7b66a5e10f0733b3374e3c1f0</id>
<content type='text'>
apparently in the typo list produced by aspell there is a blank line
which messes with our search for typos.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
apparently in the typo list produced by aspell there is a blank line
which messes with our search for typos.
</pre>
</div>
</content>
</entry>
<entry>
<title>reset last_data when enabling spellcheck to enforce new highlighting</title>
<updated>2020-08-28T12:31:40+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T12:31:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=a8212fda377d6527c7b76547aa7fb816c5cc62cb'/>
<id>a8212fda377d6527c7b76547aa7fb816c5cc62cb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>return early if we can't get the typos from our external spellchecker</title>
<updated>2020-08-28T11:16:06+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T11:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=85bfeb5b9f5dc8b9f0cd504282c4bd56afc14e99'/>
<id>85bfeb5b9f5dc8b9f0cd504282c4bd56afc14e99</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't fail if the first and only typo is at the end of the text.</title>
<updated>2020-08-28T11:11:26+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T11:11:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=bf3badc73dc5d43df3aab9070cf9faef37b96326'/>
<id>bf3badc73dc5d43df3aab9070cf9faef37b96326</id>
<content type='text'>
Before this change we assumed that when we are at the beginning of the
text (index == 1) and don't find the typo is must be the beginning of the
text but it can also be the end of the text.
We now also check the end if the beginning was not what we were lookig for.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this change we assumed that when we are at the beginning of the
text (index == 1) and don't find the typo is must be the beginning of the
text but it can also be the end of the text.
We now also check the end if the beginning was not what we were lookig for.
</pre>
</div>
</content>
</entry>
<entry>
<title>force a redraw for syntax aware highlighting when spelllang changes</title>
<updated>2020-08-28T11:01:41+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-28T11:01:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=96bf9b1b50c641671390ef4e9d84206c69137150'/>
<id>96bf9b1b50c641671390ef4e9d84206c69137150</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add vis.lexers.DEFAULT to the tokens we spellcheck</title>
<updated>2020-08-27T13:53:43+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-27T13:53:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=e23acde38af03a1610dacfb236dc7a2b303faac0'/>
<id>e23acde38af03a1610dacfb236dc7a2b303faac0</id>
<content type='text'>
This activates spellchecking for most "text focused" languages like
latex or markdown.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This activates spellchecking for most "text focused" languages like
latex or markdown.
</pre>
</div>
</content>
</entry>
<entry>
<title>don't loop infinitely if a typo spans multiple tokens</title>
<updated>2020-08-27T13:43:34+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-27T13:43:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=04ab455907fe7da054aeefe05b0be0b534affccd'/>
<id>04ab455907fe7da054aeefe05b0be0b534affccd</id>
<content type='text'>
This happens because the "default" token gets emitted for each not matched
char resulting in lots of small "default" tokens.

This markdown:

&gt; typu

will result in the token stream
{"default", 2, "default", 3, "default", 4, "default", 5}
and a typo stream with a single entry spanning all of the tokens
{{"typu", 1, 5}}.

Not checking if the typo is longer then the current token leads to an infinite
loop where the typo is always inserted in the new token stream without advancing
the token stream.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This happens because the "default" token gets emitted for each not matched
char resulting in lots of small "default" tokens.

This markdown:

&gt; typu

will result in the token stream
{"default", 2, "default", 3, "default", 4, "default", 5}
and a typo stream with a single entry spanning all of the tokens
{{"typu", 1, 5}}.

Not checking if the typo is longer then the current token leads to an infinite
loop where the typo is always inserted in the new token stream without advancing
the token stream.
</pre>
</div>
</content>
</entry>
<entry>
<title>special case typos at the beginning of text as well</title>
<updated>2020-08-27T13:42:01+00:00</updated>
<author>
<name>Florian Fischer</name>
<email>florian.fl.fischer@fau.de</email>
</author>
<published>2020-08-27T13:42:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.muhq.space/vis-spellcheck/commit/?id=819f67b78f2bc64f39fc0a48613908c36c674621'/>
<id>819f67b78f2bc64f39fc0a48613908c36c674621</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
