mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19:50 -04:00
Added parser to create search index in json format, and began code to create json objects for bible.
This commit is contained in:
parent
382a2e6541
commit
e75a38bd15
@ -0,0 +1,3 @@
|
||||
syntax: glob
|
||||
DynamicBibleUtility/DynamicBibleUtility/bin
|
||||
DynamicBibleUtility/DynamicBibleUtility/obj
|
20
DynamicBibleUtility/DynamicBibleUtility.sln
Normal file
20
DynamicBibleUtility/DynamicBibleUtility.sln
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicBibleUtility", "DynamicBibleUtility\DynamicBibleUtility.csproj", "{61450C93-04B8-4BB7-8D26-6B7EB6AA6B8B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{61450C93-04B8-4BB7-8D26-6B7EB6AA6B8B}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{61450C93-04B8-4BB7-8D26-6B7EB6AA6B8B}.Debug|x86.Build.0 = Debug|x86
|
||||
{61450C93-04B8-4BB7-8D26-6B7EB6AA6B8B}.Release|x86.ActiveCfg = Release|x86
|
||||
{61450C93-04B8-4BB7-8D26-6B7EB6AA6B8B}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
BIN
DynamicBibleUtility/DynamicBibleUtility.suo
Normal file
BIN
DynamicBibleUtility/DynamicBibleUtility.suo
Normal file
Binary file not shown.
BIN
DynamicBibleUtility/DynamicBibleUtility/AjaxPro.2.dll
Normal file
BIN
DynamicBibleUtility/DynamicBibleUtility/AjaxPro.2.dll
Normal file
Binary file not shown.
@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{61450C93-04B8-4BB7-8D26-6B7EB6AA6B8B}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>DynamicBibleUtility</RootNamespace>
|
||||
<AssemblyName>DynamicBibleUtility</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="AjaxPro.2">
|
||||
<HintPath>.\AjaxPro.2.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration.Install" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="VAE.Data">
|
||||
<HintPath>..\..\VAE.Data.XML\VAE.Data.XML\bin\Debug\VAE.Data.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="frmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmMain.Designer.cs">
|
||||
<DependentUpon>frmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Helpers.cs" />
|
||||
<Compile Include="Index.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="sf_kjv_strongs_rev1b.cs">
|
||||
<DependentUpon>sf_kjv_strongs_rev1b.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Text.cs" />
|
||||
<EmbeddedResource Include="frmMain.resx">
|
||||
<DependentUpon>frmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<None Include="sf_kjv_strongs_rev1b.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="kjv.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="sf_kjv_strongs_rev1b.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
11
DynamicBibleUtility/DynamicBibleUtility/Helpers.cs
Normal file
11
DynamicBibleUtility/DynamicBibleUtility/Helpers.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DynamicBibleUtility
|
||||
{
|
||||
class Helpers
|
||||
{
|
||||
}
|
||||
}
|
20
DynamicBibleUtility/DynamicBibleUtility/Index.cs
Normal file
20
DynamicBibleUtility/DynamicBibleUtility/Index.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DynamicBibleUtility
|
||||
{
|
||||
public class Index : List<IndexItem>
|
||||
{
|
||||
public IndexItem GetItem(string word)
|
||||
{
|
||||
return this.Find(i => i.word == word);
|
||||
}
|
||||
}
|
||||
public class IndexItem
|
||||
{
|
||||
public string word = "";
|
||||
public List<string> refs = new List<string>();
|
||||
}
|
||||
}
|
21
DynamicBibleUtility/DynamicBibleUtility/Program.cs
Normal file
21
DynamicBibleUtility/DynamicBibleUtility/Program.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DynamicBibleUtility
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new frmMain());
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("DynamicBibleUtility")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("DynamicBibleUtility")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("b791e4e0-bdc7-41cf-8a04-ab68f3156a0b")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
63
DynamicBibleUtility/DynamicBibleUtility/Properties/Resources.Designer.cs
generated
Normal file
63
DynamicBibleUtility/DynamicBibleUtility/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.269
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DynamicBibleUtility.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DynamicBibleUtility.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
26
DynamicBibleUtility/DynamicBibleUtility/Properties/Settings.Designer.cs
generated
Normal file
26
DynamicBibleUtility/DynamicBibleUtility/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.269
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DynamicBibleUtility.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
28
DynamicBibleUtility/DynamicBibleUtility/Text.cs
Normal file
28
DynamicBibleUtility/DynamicBibleUtility/Text.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DynamicBibleUtility
|
||||
{
|
||||
public class Book
|
||||
{
|
||||
public string bk = "";
|
||||
public List<Chapter> chs = new List<Chapter>();
|
||||
}
|
||||
public class Chapter
|
||||
{
|
||||
public string ch = "";
|
||||
public List<Verse> vss = new List<Verse>();
|
||||
}
|
||||
public class Verse
|
||||
{
|
||||
public string vs = "";
|
||||
public List<object> words = new List<object>();
|
||||
}
|
||||
public class Text
|
||||
{
|
||||
public string txt = "";
|
||||
public string str = "";
|
||||
}
|
||||
}
|
3
DynamicBibleUtility/DynamicBibleUtility/app.config
Normal file
3
DynamicBibleUtility/DynamicBibleUtility/app.config
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
33637
DynamicBibleUtility/DynamicBibleUtility/asv.xml
Normal file
33637
DynamicBibleUtility/DynamicBibleUtility/asv.xml
Normal file
File diff suppressed because it is too large
Load Diff
89
DynamicBibleUtility/DynamicBibleUtility/frmMain.Designer.cs
generated
Normal file
89
DynamicBibleUtility/DynamicBibleUtility/frmMain.Designer.cs
generated
Normal file
@ -0,0 +1,89 @@
|
||||
namespace DynamicBibleUtility
|
||||
{
|
||||
partial class frmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.btnCreateIndex = new System.Windows.Forms.Button();
|
||||
this.txtStatus = new System.Windows.Forms.TextBox();
|
||||
this.btnCreateText = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnCreateIndex
|
||||
//
|
||||
this.btnCreateIndex.Location = new System.Drawing.Point(12, 12);
|
||||
this.btnCreateIndex.Name = "btnCreateIndex";
|
||||
this.btnCreateIndex.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCreateIndex.TabIndex = 0;
|
||||
this.btnCreateIndex.Text = "Create Index";
|
||||
this.btnCreateIndex.UseVisualStyleBackColor = true;
|
||||
this.btnCreateIndex.Click += new System.EventHandler(this.CreateIndex_Click);
|
||||
//
|
||||
// txtStatus
|
||||
//
|
||||
this.txtStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtStatus.Location = new System.Drawing.Point(13, 42);
|
||||
this.txtStatus.Multiline = true;
|
||||
this.txtStatus.Name = "txtStatus";
|
||||
this.txtStatus.Size = new System.Drawing.Size(544, 397);
|
||||
this.txtStatus.TabIndex = 1;
|
||||
//
|
||||
// btnCreateText
|
||||
//
|
||||
this.btnCreateText.Location = new System.Drawing.Point(94, 13);
|
||||
this.btnCreateText.Name = "btnCreateText";
|
||||
this.btnCreateText.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnCreateText.TabIndex = 2;
|
||||
this.btnCreateText.Text = "CreateText";
|
||||
this.btnCreateText.UseVisualStyleBackColor = true;
|
||||
this.btnCreateText.Click += new System.EventHandler(this.btnCreateText_Click);
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(569, 451);
|
||||
this.Controls.Add(this.btnCreateText);
|
||||
this.Controls.Add(this.txtStatus);
|
||||
this.Controls.Add(this.btnCreateIndex);
|
||||
this.Name = "frmMain";
|
||||
this.Text = "Dynamic Bible Utility";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnCreateIndex;
|
||||
private System.Windows.Forms.TextBox txtStatus;
|
||||
private System.Windows.Forms.Button btnCreateText;
|
||||
}
|
||||
}
|
||||
|
401
DynamicBibleUtility/DynamicBibleUtility/frmMain.cs
Normal file
401
DynamicBibleUtility/DynamicBibleUtility/frmMain.cs
Normal file
@ -0,0 +1,401 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace DynamicBibleUtility
|
||||
{
|
||||
public partial class frmMain : Form
|
||||
{
|
||||
List<string> _words = new List<string>();
|
||||
Index _idx = new Index();
|
||||
public frmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private List<string> _exclusions = new List<string>() { "us", "these", "her", "saith", "shalt", "let", "do", "your", "we", "no", "go", "if", "at", "an", "so", "before", "also", "on", "had", "you", "there", "then", "up", "by", "upon", "were", "are", "this", "when", "thee", "their", "ye", "will", "as", "thy", "my", "me", "have", "from", "was", "but", "which", "thou", "all", "it", "with", "them", "him", "they", "is", "be", "not", "his", "i", "shall", "a", "for", "unto", "he", "in", "to", "that", "of", "and", "the" };
|
||||
private char[] _trims = new char[] {'\'', ',', ':', ';', '"', '?', '.', '[', ']', '{', '}', '<', '>', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '=', '+' };
|
||||
|
||||
public delegate void UpdateStatusDelegate(string status);
|
||||
private void UpdateStatus(string statusMsg)
|
||||
{
|
||||
if (this.txtStatus.InvokeRequired)
|
||||
{
|
||||
txtStatus.Invoke(new UpdateStatusDelegate(UpdateStatus), statusMsg);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtStatus.AppendText(statusMsg);
|
||||
txtStatus.ScrollToCaret();
|
||||
}
|
||||
}
|
||||
|
||||
#region Index
|
||||
private void AddWordToIndex(string s, string bk, string ch, string vs)
|
||||
{
|
||||
s = s.Trim().ToLower().TrimEnd(_trims).TrimStart(_trims);
|
||||
if (s != "" && !_exclusions.Contains(s))
|
||||
{
|
||||
// add the word to the index
|
||||
if (!_words.Contains(s))
|
||||
{
|
||||
_words.Add(s);
|
||||
IndexItem i = new IndexItem();
|
||||
i.word = s;
|
||||
i.refs.Add(bk + ":" + ch + ":" + vs);
|
||||
_idx.Add(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
IndexItem i = _idx.GetItem(s);
|
||||
if (!i.refs.Contains(bk + ":" + ch + ":" + vs))
|
||||
{
|
||||
i.refs.Add(bk + ":" + ch + ":" + vs);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateIndex_Click(object sender, EventArgs e)
|
||||
{
|
||||
_idx.Clear();
|
||||
_words.Clear();
|
||||
txtStatus.Text = "";
|
||||
|
||||
System.Threading.Thread _thread = new System.Threading.Thread(CreateIndex);
|
||||
_thread.SetApartmentState(ApartmentState.STA);
|
||||
_thread.IsBackground = true;
|
||||
_thread.Start();
|
||||
}
|
||||
private void CreateIndex()
|
||||
{
|
||||
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
|
||||
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE b = (DynamicBible.Schemas.XMLBIBLE)VAE.Data.XML.GetData(typeof(DynamicBible.Schemas.XMLBIBLE), ofd.FileName);
|
||||
|
||||
// to index, you need to iterate through every word in the bible.
|
||||
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_BOOK bk in b.BIBLEBOOKS)
|
||||
{
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_CHAPTER ch in bk.CHAPTERS)
|
||||
{
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_VERSES vs in ch.VERSES)
|
||||
{
|
||||
if (vs.Items != null)
|
||||
{
|
||||
foreach (object w in vs.Items)
|
||||
{
|
||||
// for each word, add an entry.
|
||||
if (w.GetType() == typeof(DynamicBible.Schemas.XMLBIBLE_GR))
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_GR gr = ((DynamicBible.Schemas.XMLBIBLE_GR)w);
|
||||
if (gr.Text != null)
|
||||
{
|
||||
foreach (string t in gr.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (w.GetType() == typeof(DynamicBible.Schemas.XMLBIBLE_STYLE_ITEM))
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_STYLE_ITEM o = ((DynamicBible.Schemas.XMLBIBLE_STYLE_ITEM)w);
|
||||
if (o.Text != null)
|
||||
{
|
||||
foreach (string t in o.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (o.gr != null)
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_STYLE_GR gr = o.gr;
|
||||
if (gr.Text != null)
|
||||
{
|
||||
foreach (string t in gr.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (o.STYLE != null)
|
||||
{
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_STYLE_STYLE so in o.STYLE)
|
||||
{
|
||||
if (so.Text != null)
|
||||
{
|
||||
foreach (string t in so.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (so.gr != null)
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_STYLE_STYLE_GR gr = so.gr;
|
||||
if (gr.Value != null)
|
||||
{
|
||||
foreach (string s in gr.Value.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vs.Text != null)
|
||||
{
|
||||
foreach (string w in vs.Text)
|
||||
{
|
||||
foreach (string s in w.Split(' '))
|
||||
{
|
||||
if (s != null && s.Trim() != "")
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
UpdateStatus("Book: " + bk.bnumber + ", Word Count: " + _words.Count + "\r\n");
|
||||
}
|
||||
|
||||
//_idx.Sort(CompareIndexCount);
|
||||
//foreach (IndexItem i in _idx)
|
||||
//{
|
||||
// if (i.word.Split(' ').Count() > 1)
|
||||
// {
|
||||
// this.txtStatus.Text += ("Oops, ");
|
||||
// this.txtStatus.Text += (i.word + ": " + i.refs.Count+"\r\n");
|
||||
// }
|
||||
// else if (i.refs.Count > 2000)
|
||||
// {
|
||||
// this.txtStatus.Text += ("\"" + i.word + "\",");
|
||||
// }
|
||||
|
||||
//}
|
||||
FolderBrowserDialog fbd = new FolderBrowserDialog();
|
||||
if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
_idx.Sort(CompareIndexByWord);
|
||||
Index tmp = new Index();
|
||||
for (int i = 0; i < _idx.Count; i++)
|
||||
{
|
||||
if (i % 100 == 99 || i == _idx.Count - 1)
|
||||
{
|
||||
tmp.Add(_idx[i]);
|
||||
System.IO.File.WriteAllText(fbd.SelectedPath + @"\" + _idx[i].word + "idx.json", Serialize(tmp));
|
||||
tmp.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
tmp.Add(_idx[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Sorters
|
||||
private static int CompareIndexByWord(IndexItem x, IndexItem y)
|
||||
{
|
||||
return x.word.CompareTo(y.word);
|
||||
}
|
||||
private static int CompareIndexByCount(IndexItem x, IndexItem y)
|
||||
{
|
||||
return x.refs.Count.CompareTo(y.refs.Count);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region JSON Serialization Functions
|
||||
private object Deserialize(string s, System.Type t)
|
||||
{
|
||||
return AjaxPro.JavaScriptDeserializer.DeserializeFromJson(s, t);
|
||||
}
|
||||
private string Serialize(object o)
|
||||
{
|
||||
System.Text.StringBuilder sb = new System.Text.StringBuilder();
|
||||
AjaxPro.JavaScriptSerializer.Serialize(o, sb);
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void btnCreateText_Click(object sender, EventArgs e)
|
||||
{
|
||||
txtStatus.Text = "";
|
||||
|
||||
System.Threading.Thread _thread = new System.Threading.Thread(CreateText);
|
||||
_thread.SetApartmentState(ApartmentState.STA);
|
||||
_thread.IsBackground = true;
|
||||
_thread.Start();
|
||||
}
|
||||
private void CreateText()
|
||||
{
|
||||
// iterate through text, output json format.
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
List<Book> bbl = new System.Collections.Generic.List<Book>();
|
||||
|
||||
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
var doc = XDocument.Load(ofd.FileName);
|
||||
|
||||
foreach (XNode n in doc.Root.Nodes())
|
||||
{
|
||||
if (n.NodeType == XmlNodeType.Element)
|
||||
{
|
||||
XElement el = (XElement)n;
|
||||
if (el.Name == "BIBLEBOOK")
|
||||
{
|
||||
Book bk = new Book();
|
||||
bk.bk = el.FirstAttribute.Value.ToString();
|
||||
foreach (XElement chn in el.Descendants())
|
||||
{
|
||||
Chapter ch = new Chapter();
|
||||
ch.ch = chn.FirstAttribute.Value;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// to index, you need to iterate through every word in the bible.
|
||||
/*
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_BOOK bk in b.BIBLEBOOKS)
|
||||
{
|
||||
Book book = new Book();
|
||||
book.bk = bk.bnumber.ToString();
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_CHAPTER ch in bk.CHAPTERS)
|
||||
{
|
||||
Chapter chapter = new Chapter();
|
||||
chapter.ch = ch.cnumber.ToString();
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_VERSES vs in ch.VERSES)
|
||||
{
|
||||
Verse verse = new Verse();
|
||||
verse.vs = vs.vnumber.ToString();
|
||||
if (vs.Items != null)
|
||||
{
|
||||
foreach (object w in vs.Items)
|
||||
{
|
||||
// for each word, add an entry.
|
||||
if (w.GetType() == typeof(DynamicBible.Schemas.XMLBIBLE_GR))
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_GR gr = ((DynamicBible.Schemas.XMLBIBLE_GR)w);
|
||||
if (gr.Text != null)
|
||||
{
|
||||
foreach (string t in gr.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (w.GetType() == typeof(DynamicBible.Schemas.XMLBIBLE_STYLE_ITEM))
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_STYLE_ITEM o = ((DynamicBible.Schemas.XMLBIBLE_STYLE_ITEM)w);
|
||||
if (o.Text != null)
|
||||
{
|
||||
foreach (string t in o.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (o.gr != null)
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_STYLE_GR gr = o.gr;
|
||||
if (gr.Text != null)
|
||||
{
|
||||
foreach (string t in gr.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (o.STYLE != null)
|
||||
{
|
||||
foreach (DynamicBible.Schemas.XMLBIBLE_STYLE_STYLE so in o.STYLE)
|
||||
{
|
||||
if (so.Text != null)
|
||||
{
|
||||
foreach (string t in so.Text)
|
||||
{
|
||||
foreach (string s in t.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (so.gr != null)
|
||||
{
|
||||
DynamicBible.Schemas.XMLBIBLE_STYLE_STYLE_GR gr = so.gr;
|
||||
if (gr.Value != null)
|
||||
{
|
||||
foreach (string s in gr.Value.Split(' '))
|
||||
{
|
||||
AddWordToIndex(s, bk.bnumber.ToString(), ch.cnumber.ToString(), vs.vnumber.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (vs.Text != null)
|
||||
{
|
||||
foreach (string w in vs.Text)
|
||||
{
|
||||
foreach (string s in w.Split(' '))
|
||||
{
|
||||
if (s != null && s.Trim() != "")
|
||||
{
|
||||
verse.words.Add(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
chapter.vss.Add(verse);
|
||||
}
|
||||
|
||||
book.chs.Add(chapter);
|
||||
}
|
||||
bbl.Add(book);
|
||||
UpdateStatus("Book: " + bk.bnumber + ", Word Count: " + _words.Count + "\r\n");
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
120
DynamicBibleUtility/DynamicBibleUtility/frmMain.resx
Normal file
120
DynamicBibleUtility/DynamicBibleUtility/frmMain.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
33765
DynamicBibleUtility/DynamicBibleUtility/kjv.xml
Normal file
33765
DynamicBibleUtility/DynamicBibleUtility/kjv.xml
Normal file
File diff suppressed because it is too large
Load Diff
310
DynamicBibleUtility/DynamicBibleUtility/sf_kjv_strongs_rev1b.cs
Normal file
310
DynamicBibleUtility/DynamicBibleUtility/sf_kjv_strongs_rev1b.cs
Normal file
@ -0,0 +1,310 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.5456
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System.Xml.Serialization;
|
||||
|
||||
//
|
||||
// This source code was auto-generated by xsd, Version=2.0.50727.3038.
|
||||
//
|
||||
namespace DynamicBible.Schemas
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
|
||||
public partial class XMLBIBLE
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
public XMLBIBLEINFORMATION INFORMATION;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlElementAttribute("BIBLEBOOK")]
|
||||
public XMLBIBLE_BOOK[] BIBLEBOOKS;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string version;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string status;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public byte revision;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string type;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string biblename;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLEINFORMATION
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
public string title;
|
||||
|
||||
/// <remarks/>
|
||||
public string subject;
|
||||
|
||||
/// <remarks/>
|
||||
public string publisher;
|
||||
|
||||
/// <remarks/>
|
||||
public string format;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlElementAttribute(DataType = "date")]
|
||||
public System.DateTime date;
|
||||
|
||||
/// <remarks/>
|
||||
public string creator;
|
||||
|
||||
/// <remarks/>
|
||||
public string description;
|
||||
|
||||
/// <remarks/>
|
||||
public string contributors;
|
||||
|
||||
/// <remarks/>
|
||||
public string language;
|
||||
|
||||
/// <remarks/>
|
||||
public string identifier;
|
||||
|
||||
/// <remarks/>
|
||||
public object type;
|
||||
|
||||
/// <remarks/>
|
||||
public object source;
|
||||
|
||||
/// <remarks/>
|
||||
public object coverage;
|
||||
|
||||
/// <remarks/>
|
||||
public object rights;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_BOOK
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlElementAttribute("CHAPTER")]
|
||||
public XMLBIBLE_CHAPTER[] CHAPTERS;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public byte bnumber;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string bname;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string bsname;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_CHAPTER
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlElementAttribute("VERS")]
|
||||
public XMLBIBLE_VERSES[] VERSES;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public byte cnumber;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_VERSES
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlElementAttribute("STYLE", typeof(XMLBIBLE_STYLE_ITEM))]
|
||||
[System.Xml.Serialization.XmlElementAttribute("gr", typeof(XMLBIBLE_GR))]
|
||||
public object[] Items;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlTextAttribute()]
|
||||
public string[] Text;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public byte vnumber;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_STYLE_ITEM
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlElementAttribute("STYLE")]
|
||||
public XMLBIBLE_STYLE_STYLE[] STYLE;
|
||||
|
||||
/// <remarks/>
|
||||
public XMLBIBLE_STYLE_GR gr;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlTextAttribute()]
|
||||
public string[] Text;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string css;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_STYLE_STYLE
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
public XMLBIBLE_STYLE_STYLE_GR gr;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlTextAttribute()]
|
||||
public string[] Text;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string css;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_STYLE_STYLE_GR
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string str;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlTextAttribute()]
|
||||
public string Value;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_STYLE_GR
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
public XMLBIBLE_STYLE_GRGR gr;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlTextAttribute()]
|
||||
public string[] Text;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string str;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_STYLE_GRGR
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string str;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_GR
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
public XMLBIBLE_GR_GR gr;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlTextAttribute()]
|
||||
public string[] Text;
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string str;
|
||||
}
|
||||
|
||||
/// <remarks/>
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
|
||||
[System.SerializableAttribute()]
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class XMLBIBLE_GR_GR
|
||||
{
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlAttributeAttribute()]
|
||||
public string str;
|
||||
}
|
||||
}
|
126451
DynamicBibleUtility/DynamicBibleUtility/sf_kjv_strongs_rev1b.xml
Normal file
126451
DynamicBibleUtility/DynamicBibleUtility/sf_kjv_strongs_rev1b.xml
Normal file
File diff suppressed because it is too large
Load Diff
106
DynamicBibleUtility/DynamicBibleUtility/sf_kjv_strongs_rev1b.xsd
Normal file
106
DynamicBibleUtility/DynamicBibleUtility/sf_kjv_strongs_rev1b.xsd
Normal file
@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="XMLBIBLE">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="INFORMATION">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="title" type="xs:string" />
|
||||
<xs:element name="subject" type="xs:string" />
|
||||
<xs:element name="publisher" type="xs:string" />
|
||||
<xs:element name="format" type="xs:string" />
|
||||
<xs:element name="date" type="xs:date" />
|
||||
<xs:element name="creator" type="xs:string" />
|
||||
<xs:element name="description" type="xs:string" />
|
||||
<xs:element name="contributors" type="xs:string" />
|
||||
<xs:element name="language" type="xs:string" />
|
||||
<xs:element name="identifier" type="xs:string" />
|
||||
<xs:element name="type" />
|
||||
<xs:element name="source" />
|
||||
<xs:element name="coverage" />
|
||||
<xs:element name="rights" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element maxOccurs="unbounded" name="BIBLEBOOK">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" name="CHAPTER">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element maxOccurs="unbounded" name="VERS">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence>
|
||||
<xs:choice maxOccurs="unbounded">
|
||||
<xs:element maxOccurs="unbounded" name="gr">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="gr">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="str" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="str" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="STYLE">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element minOccurs="0" maxOccurs="unbounded" name="STYLE">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="gr">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute name="str" type="xs:string" use="required" />
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="css" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element minOccurs="0" name="gr">
|
||||
<xs:complexType mixed="true">
|
||||
<xs:sequence minOccurs="0">
|
||||
<xs:element name="gr">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="str" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="str" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="css" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="vnumber" type="xs:unsignedByte" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="cnumber" type="xs:unsignedByte" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="bnumber" type="xs:unsignedByte" use="required" />
|
||||
<xs:attribute name="bname" type="xs:string" use="required" />
|
||||
<xs:attribute name="bsname" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="version" type="xs:string" use="required" />
|
||||
<xs:attribute name="status" type="xs:string" use="required" />
|
||||
<xs:attribute name="revision" type="xs:unsignedByte" use="required" />
|
||||
<xs:attribute name="type" type="xs:string" use="required" />
|
||||
<xs:attribute name="biblename" type="xs:string" use="required" />
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
Loading…
x
Reference in New Issue
Block a user