Improve spell check slightly

This commit is contained in:
Nikolaj Olsson 2021-06-06 09:13:08 +02:00
parent 7b655b68cc
commit bd792d4a29
3 changed files with 14 additions and 4 deletions

View File

@ -10,6 +10,7 @@
<word>ahhhh</word> <word>ahhhh</word>
<word>aioli</word> <word>aioli</word>
<word>ajit</word> <word>ajit</word>
<word>allodynic</word>
<word>aluminium</word> <word>aluminium</word>
<word>aluminum</word> <word>aluminum</word>
<word>americium</word> <word>americium</word>
@ -36,6 +37,7 @@
<word>barium</word> <word>barium</word>
<word>behaviour</word> <word>behaviour</word>
<word>beheadings</word> <word>beheadings</word>
<word>benzilate</word>
<word>berkelium</word> <word>berkelium</word>
<word>beryllium</word> <word>beryllium</word>
<word>bismuth</word> <word>bismuth</word>
@ -119,6 +121,7 @@
<word>episiotomy</word> <word>episiotomy</word>
<word>erbium</word> <word>erbium</word>
<word>esophaguses</word> <word>esophaguses</word>
<word>et cetera</word>
<word>euro</word> <word>euro</word>
<word>europium</word> <word>europium</word>
<word>euros</word> <word>euros</word>
@ -155,6 +158,7 @@
<word>giancarlo</word> <word>giancarlo</word>
<word>gigabit</word> <word>gigabit</word>
<word>glioma</word> <word>glioma</word>
<word>glitchy</word>
<word>glossopharyngeal</word> <word>glossopharyngeal</word>
<word>glowy</word> <word>glowy</word>
<word>goddamned</word> <word>goddamned</word>
@ -182,6 +186,7 @@
<word>hydrogen</word> <word>hydrogen</word>
<word>hypotensive</word> <word>hypotensive</word>
<word>hypothermic</word> <word>hypothermic</word>
<word>immersive</word>
<word>immunotherapy</word> <word>immunotherapy</word>
<word>incontinentia</word> <word>incontinentia</word>
<word>indium</word> <word>indium</word>
@ -202,6 +207,7 @@
<word>keychain</word> <word>keychain</word>
<word>kid'll</word> <word>kid'll</word>
<word>krypton</word> <word>krypton</word>
<word>kryptonite</word>
<word>kuwabara-kun</word> <word>kuwabara-kun</word>
<word>labelled</word> <word>labelled</word>
<word>lanthanum</word> <word>lanthanum</word>
@ -213,6 +219,7 @@
<word>lead</word> <word>lead</word>
<word>lithium</word> <word>lithium</word>
<word>lobectomy</word> <word>lobectomy</word>
<word>lockdown</word>
<word>loudmouth</word> <word>loudmouth</word>
<word>loupe</word> <word>loupe</word>
<word>lutetium</word> <word>lutetium</word>

View File

@ -4299,6 +4299,7 @@ This file is case sensitive.
<name>Pennsylvania</name> <name>Pennsylvania</name>
<name>Pentagon</name> <name>Pentagon</name>
<name>Pentagons</name> <name>Pentagons</name>
<name>Pentothal</name>
<name>Pepperwood</name> <name>Pepperwood</name>
<name>Pepsi</name> <name>Pepsi</name>
<name>Perce</name> <name>Perce</name>
@ -4667,6 +4668,7 @@ This file is case sensitive.
<name>Rosenbaum</name> <name>Rosenbaum</name>
<name>Rosenberg</name> <name>Rosenberg</name>
<name>Rosenstein</name> <name>Rosenstein</name>
<name>Rosetti</name>
<name>Rosie</name> <name>Rosie</name>
<name>Rosita</name> <name>Rosita</name>
<name>Roslin</name> <name>Roslin</name>

View File

@ -734,13 +734,14 @@ namespace Nikse.SubtitleEdit.Forms
correct = DoSpell(wordWithDash); correct = DoSpell(wordWithDash);
} }
if (!correct) if (!correct)
{
correct = _spellCheckWordLists.HasUserWord(wordWithDash);
}
if (!correct)
{ {
correct = _spellCheckWordLists.HasUserWord(wordWithDash.Replace("", "-")); correct = _spellCheckWordLists.HasUserWord(wordWithDash.Replace("", "-"));
} }
if (!correct && _spellCheckWordLists.HasName(wordWithDash.Replace("", "-")))
{
correct = true;
_noOfNames++;
}
} }
} }
else else