Skip to content

Commit

Permalink
going to add export to senses.
Browse files Browse the repository at this point in the history
  • Loading branch information
lavedon committed May 5, 2021
1 parent 09bf80c commit da4ee8a
Show file tree
Hide file tree
Showing 596 changed files with 2,264 additions and 6,810 deletions.
49 changes: 38 additions & 11 deletions OED-export.xml
Original file line number Diff line number Diff line change
@@ -1,48 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<SuperMemoCollection>
<Count>5</Count>
<Count>8</Count>
<SuperMemoElement>
<ID>1</ID>
<Title>W. Turner - 1548</Title>
<Title>W. R. Dawson - 1450</Title>
<Type>Topic</Type>
<Content>
<Question>Carettes growe in al countreis in plentie. --W. Turner, 1548</Question>
<Question>Giff it to a dogge that goþe assaut, and he will forsake the biche, and she will go wode. --W. R. Dawson, 1450</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>2</ID>
<Title>T. Cooper - 1565</Title>
<Title>G. Booth - 1700</Title>
<Type>Topic</Type>
<Content>
<Question>Carota..the wilde caret. --T. Cooper, 1565</Question>
<Question>Some..say, that he set the end of the Spear against the Wall, and attempted to run himself upon the point. --G. Booth, 1700</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>3</ID>
<Title> - 1634</Title>
<Title>J. Shirley - 1703</Title>
<Type>Topic</Type>
<Content>
<Question>Parsenipps and carrootes. --, 1634</Question>
<Question>The furious Sword ran through his right Side. --J. Shirley, 1703</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>4</ID>
<Title>R. Cotgrave - 1611</Title>
<Title>D. Defoe - 1725</Title>
<Type>Topic</Type>
<Content>
<Question>Calculateur, a reckoner, calculator. --R. Cotgrave, 1611</Question>
<Question>The second Messenger came in and delivered his Part of the Errand. --D. Defoe, 1725</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>5</ID>
<Title>D. Defoe - 1722</Title>
<Title>J. Thomson - 1727</Title>
<Type>Topic</Type>
<Content>
<Question>Calculators of Nativities. --D. Defoe, 1722</Question>
<Question>Immortal Forms, On heavenly Errands bent. --J. Thomson, 1727</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>6</ID>
<Title>T. B. Macaulay - 1833</Title>
<Type>Topic</Type>
<Content>
<Question>The American dependencies of the Castilian crown still extended far to the North of Cancer and far to the South of Capricorn. --T. B. Macaulay, 1833</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>7</ID>
<Title>E. B. Denison - 1867</Title>
<Type>Topic</Type>
<Content>
<Question>The tropic of Capricorn, which the sun reaches in our winter and the southern midsummer. --E. B. Denison, 1867</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>8</ID>
<Title>‘E. Kirk’ - 1894</Title>
<Type>Topic</Type>
<Content>
<Question>Capricorn people resent all interference, and never meddle with the affairs of others. --‘E. Kirk’, 1894</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
Expand Down
32 changes: 29 additions & 3 deletions OptionsMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,19 @@ public static void ShowOptionsMenu(CurrentQuery query)
Console.WriteLine($"Is a date range set?: {yesNo}");
if (query.DateRangeSet)
{
Console.WriteLine($"Year Range: {query.StartYear} - {query.EndYear}");
string printStart = "";
string printEnd = "";
if (!query.OpenStart)
{
printStart = query.StartYear.ToString();
}
if (!query.OpenEnd)
{
printEnd = query.EndYear.ToString();

}

Console.WriteLine($"Year Range: {printStart} - {printEnd}");
}

Console.WriteLine("----------------------------");
Expand All @@ -64,10 +76,10 @@ public static void ShowOptionsMenu(CurrentQuery query)
{
case ("o" or "obsolete" or "ob"):
Console.WriteLine("Toggle Obsolete");
query.IncludeObsolete = false;
query.IncludeObsolete = !query.IncludeObsolete;
break;
case ("e" or "export" or "delete"):
SavedQueries.DeleteOnExport = true;
SavedQueries.DeleteOnExport = !SavedQueries.DeleteOnExport;
break;

case ("d" or "date" or "date range"):
Expand All @@ -92,6 +104,16 @@ public static void ShowOptionsMenu(CurrentQuery query)
var setYearsRunning = true;
while (setYearsRunning)
{
if (query.DateRangeSet) {
Console.WriteLine("Turn off date range? Y/N");
string result = Console.ReadLine().ToLower().Trim();
if (result == "y" || result == "yes")
{
query.DateRangeSet = !query.DateRangeSet;
setYearsRunning = !setYearsRunning;
break;
}
}
Console.WriteLine("Only get results within this date range:");
Console.WriteLine("Starting Year: ");
Console.WriteLine("(or Press Enter for open ended start)");
Expand All @@ -103,6 +125,7 @@ public static void ShowOptionsMenu(CurrentQuery query)
Console.WriteLine("Set to open ended start year.");
}
else if (validate(startYear)) {
query.OpenStart = false;
startYearInt = Int16.Parse(startYear);
} else {
break;
Expand All @@ -115,15 +138,18 @@ public static void ShowOptionsMenu(CurrentQuery query)
Console.WriteLine("You can not have both an open start and an open end date.");
query.DateRangeSet = false;
Console.WriteLine("Please start over.");
Console.ReadLine();
break;
}
query.OpenEnd = true;
endYearInt = 0;
Console.WriteLine("Set to open ended end year.");
query.DateRangeSet = true;
setYearsRunning = false;
break;
}
else if (validate(endYear)) {
query.OpenEnd = false;
endYearInt = Int16.Parse(endYear);
query.DateRangeSet = true;
setYearsRunning = false;
Expand Down
Binary file modified bin/Debug/net5.0/OxfordV2.dll
Binary file not shown.
Binary file modified bin/Debug/net5.0/OxfordV2.pdb
Binary file not shown.
Binary file added bin/Release/net5.0/release-5-4-2021.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions bin/Release/net5.0/win10-x64/OED-export.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<SuperMemoCollection>
<Count>2</Count>
<SuperMemoElement>
<ID>1</ID>
<Title>P. Holland - 1600</Title>
<Type>Topic</Type>
<Content>
<Question>The Dictatour and Generall..exhibited the games called Cereales..to the honour of Ceres. --P. Holland, 1600</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>2</ID>
<Title>C. Darwin - 1868</Title>
<Type>Topic</Type>
<Content>
<Question>The slow and gradual improvement of our cereals. --C. Darwin, 1868</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
</SuperMemoCollection>
Loading

0 comments on commit da4ee8a

Please sign in to comment.