Skip to content

Commit

Permalink
Fix for reading play order attribute in EPUB 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vers-one committed Apr 9, 2019
1 parent 0b3bcb8 commit 171f293
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ foreach (Epub2NcxHeadMeta meta in epub2Ncx.Head)
}

// EPUB 3 navigation
Epub3NavDocument epub3NavDocument = epubBook.Schema.Epub3NavDocument
Epub3NavDocument epub3NavDocument = epubBook.Schema.Epub3NavDocument;

// Accessing structural semantics data of the head item
StructuralSemanticsProperty? ssp = epub3NavDocument.Navs.First().Type;
Expand All @@ -154,15 +154,15 @@ StructuralSemanticsProperty? ssp = epub3NavDocument.Navs.First().Type;
## Download latest stable release
[Via NuGet package from nuget.org](https://www.nuget.org/packages/VersOne.Epub)

DLL file from GitHub: [for .NET Framework](https://github.com/vers-one/EpubReader/releases/download/v3.0.0/VersOne.Epub.Net46.zip) (38.3 KB) / [for .NET Core](https://github.com/vers-one/EpubReader/releases/download/v3.0.0/VersOne.Epub.NetCore.zip) (38.4 KB) / [for .NET Standard](https://github.com/vers-one/EpubReader/releases/download/v3.0.0/VersOne.Epub.NetStandard.zip) (38.4 KB)
DLL file from GitHub: [for .NET Framework](https://github.com/vers-one/EpubReader/releases/download/v3.0.1/VersOne.Epub.Net46.zip) (38.3 KB) / [for .NET Core](https://github.com/vers-one/EpubReader/releases/download/v3.0.1/VersOne.Epub.NetCore.zip) (38.4 KB) / [for .NET Standard](https://github.com/vers-one/EpubReader/releases/download/v3.0.1/VersOne.Epub.NetStandard.zip) (38.4 KB)

## Demo apps
[Download WPF demo app](https://github.com/vers-one/EpubReader/releases/download/v3.0.0/WpfDemo.zip) (WpfDemo.zip, 479 KB)
[Download WPF demo app](https://github.com/vers-one/EpubReader/releases/download/v3.0.1/WpfDemo.zip) (WpfDemo.zip, 479 KB)

This .NET Framework application demonstrates how to open EPUB books and extract their content using the library.

HTML renderer used in this demo app may have difficulties while rendering HTML content for some of the books if the HTML structure is too complicated.

[Download .NET Core console demo app](https://github.com/vers-one/EpubReader/releases/download/v3.0.0/NetCoreDemo.zip) (NetCoreDemo.zip, 17.6 MB)
[Download .NET Core console demo app](https://github.com/vers-one/EpubReader/releases/download/v3.0.1/NetCoreDemo.zip) (NetCoreDemo.zip, 17.6 MB)

This .NET Core console application demonstrates how to open EPUB books and retrieve their text content.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Product />
<Description />
<Copyright>vers, 2015-2019</Copyright>
<Version>3.0.0</Version>
<Version>3.0.1</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="HtmlAgilityPack" Version="1.11.2" />
Expand Down
4 changes: 2 additions & 2 deletions Source/VersOne.Epub.WpfDemo/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[assembly: AssemblyTitle("VersOne.Epub.WpfDemo")]
[assembly: AssemblyDescription("WPF demo application for VersOne.Epub library")]
[assembly: AssemblyCopyright("Unlicense <http://unlicense.org>")]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.0.0.0")]
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyFileVersion("3.0.1.0")]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[assembly: ComVisible(false)]
6 changes: 3 additions & 3 deletions Source/VersOne.Epub/Readers/Epub2NcxReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private static Epub2NcxNavigationPoint ReadNavigationPoint(XElement navigationPo
case "class":
result.Class = attributeValue;
break;
case "playOrder":
case "playorder":
result.PlayOrder = attributeValue;
break;
}
Expand Down Expand Up @@ -297,7 +297,7 @@ private static Epub2NcxPageTarget ReadNavigationPageTarget(XElement navigationPa
case "class":
result.Class = attributeValue;
break;
case "playOrder":
case "playorder":
result.PlayOrder = attributeValue;
break;
}
Expand Down Expand Up @@ -380,7 +380,7 @@ private static Epub2NcxNavigationTarget ReadNavigationTarget(XElement navigation
case "class":
result.Class = attributeValue;
break;
case "playOrder":
case "playorder":
result.PlayOrder = attributeValue;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion Source/VersOne.Epub/VersOne.Epub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Product />
<Description />
<Copyright>vers, 2015-2019</Copyright>
<Version>3.0.0</Version>
<Version>3.0.1</Version>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Source/VersOne.Epub/VersOne.Epub.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>VersOne.Epub</id>
<version>3.0.0</version>
<version>3.0.1</version>
<title>EPUB reader</title>
<description>.NET library for reading EPUB files</description>
<authors>vers</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">Unlicense</license>
<projectUrl>https://github.com/vers-one/EpubReader</projectUrl>
<releaseNotes>Better EPUB 3 support. Has breaking changes. For migration instruction please refer to https://github.com/vers-one/EpubReader/wiki/Migrating-from-2.x-to-3.x </releaseNotes>
<releaseNotes>Better EPUB 3 support, fix for reading play order attribute in EPUB 2. Has breaking changes. For migration instruction please refer to https://github.com/vers-one/EpubReader/wiki/Migrating-from-2.x-to-3.x </releaseNotes>
<copyright>Unlicense &lt;http://unlicense.org&gt;</copyright>
<tags>epub</tags>
<dependencies>
Expand Down

0 comments on commit 171f293

Please sign in to comment.