mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Update a few words
This commit is contained in:
parent
5060ff27d4
commit
c228c20f4b
@ -1,4 +1,4 @@
|
||||
<words>
|
||||
<words>
|
||||
<word>50s</word>
|
||||
<word>9/11</word>
|
||||
<word>a.m.</word>
|
||||
@ -16,6 +16,7 @@
|
||||
<word>amnio</word>
|
||||
<word>amygdala</word>
|
||||
<word>anonymized</word>
|
||||
<word>anthropomorphize</word>
|
||||
<word>antimony</word>
|
||||
<word>apologise</word>
|
||||
<word>appétit</word>
|
||||
@ -91,6 +92,7 @@
|
||||
<word>darndest</word>
|
||||
<word>decompensating</word>
|
||||
<word>defendable</word>
|
||||
<word>defibrillation</word>
|
||||
<word>dialogue</word>
|
||||
<word>dipshit</word>
|
||||
<word>disorderlies</word>
|
||||
@ -264,6 +266,7 @@
|
||||
<word>recalibrated</word>
|
||||
<word>recognise</word>
|
||||
<word>recognised</word>
|
||||
<word>reframe</word>
|
||||
<word>resect</word>
|
||||
<word>retractor</word>
|
||||
<word>rhenium</word>
|
||||
@ -379,4 +382,11 @@
|
||||
<word>yukina</word>
|
||||
<word>zinc</word>
|
||||
<word>zirconium</word>
|
||||
<word>astrometry</word>
|
||||
<word>esophaguses</word>
|
||||
<word>micrografting</word>
|
||||
<word>multispectral</word>
|
||||
<word>reacclimate</word>
|
||||
<word>reacclimating</word>
|
||||
<word>skank</word>
|
||||
</words>
|
@ -6232,6 +6232,7 @@ This file is generated/updated by Multi Translator
|
||||
<name>Zambia</name>
|
||||
<name>Zane</name>
|
||||
<name>Zanus</name>
|
||||
<name>Zanzibar</name>
|
||||
<name>Zavala</name>
|
||||
<name>Zealand</name>
|
||||
<name>Zedd</name>
|
||||
|
@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@ -70,22 +69,19 @@ namespace Nikse.SubtitleEdit.Core.SpellCheck
|
||||
{
|
||||
var userWordDictionary = new XmlDocument();
|
||||
userWordDictionary.Load(dictionaryFolder + languageName + "_user.xml");
|
||||
if (userWordDictionary.DocumentElement != null)
|
||||
var xmlNodeList = userWordDictionary.DocumentElement?.SelectNodes("word");
|
||||
if (xmlNodeList != null)
|
||||
{
|
||||
var xmlNodeList = userWordDictionary.DocumentElement.SelectNodes("word");
|
||||
if (xmlNodeList != null)
|
||||
foreach (XmlNode node in xmlNodeList)
|
||||
{
|
||||
foreach (XmlNode node in xmlNodeList)
|
||||
string word = node.InnerText.Trim().ToLowerInvariant();
|
||||
if (word.Contains(' '))
|
||||
{
|
||||
string word = node.InnerText.Trim().ToLowerInvariant();
|
||||
if (word.Contains(' '))
|
||||
{
|
||||
_userPhraseList.Add(word);
|
||||
}
|
||||
else
|
||||
{
|
||||
_userWordList.Add(word);
|
||||
}
|
||||
_userPhraseList.Add(word);
|
||||
}
|
||||
else
|
||||
{
|
||||
_userWordList.Add(word);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -203,9 +199,12 @@ namespace Nikse.SubtitleEdit.Core.SpellCheck
|
||||
f.Value = kvp.Key;
|
||||
var t = xmlDoc.CreateAttribute("to");
|
||||
t.Value = kvp.Value;
|
||||
node.Attributes.Append(f);
|
||||
node.Attributes.Append(t);
|
||||
xmlDoc.DocumentElement.AppendChild(node);
|
||||
if (node.Attributes != null)
|
||||
{
|
||||
node.Attributes.Append(f);
|
||||
node.Attributes.Append(t);
|
||||
}
|
||||
xmlDoc.DocumentElement?.AppendChild(node);
|
||||
}
|
||||
xmlDoc.Save(GetUseAlwaysListFileName());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user