Giter Site home page Giter Site logo

epubsharp's People

Contributors

asido avatar d1mnewz avatar erlenddahl avatar jacedeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

epubsharp's Issues

nuget installation error for version 1.1.5

Trying to install via nuget a receive the following error

Install-Package : Could not install package 'EpubSharp.dll 1.1.5'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible
with that framework. For more information, contact the package author.
At line:1 char:1

  • Install-Package EpubSharp.dll
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    

Would like to open the code in Visual Studio 2015

Hi Asido,

OK - so I've started using your library; and would like to make some improvements.

But I need Visual Studio 2015 installed on my computer.

Is there a way I can open the project in VS 2015..?

Distribute via nuget

Looks like a cool project that I'm keen to have a play with. Thanks for your hard work on it!

EPubwriter

Thank you for this great project. Do you have plans to still work on the EPubWriter?

Exception parsing epub 3.0.1 with roman numeral page numbers

I am trying to parse an EPUB 3.0.1 which successfully validates using EpubCheck version 4.0.2.

EpubReader.Read() throws on line 41 of NcxReader.cs.

Value = (int?)elem.Attribute(NcxPageTarget.Attributes.Value)

I cannot share the book but the content of the element is as follows. As you can see, the value of the attribute is "i" and not an integer.

<pageTarget id="navPoint43" type="normal" value="i" xmlns="http://www.daisy.org/z3986/2005/ncx/">
  <navLabel>
    <text>i</text>
  </navLabel>
  <content src="xhtml/02_Title_Page.xhtml#page_i" />
</pageTarget>

Stack trace:

Unhandled Exception: System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(ReadOnlySpan`1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(ReadOnlySpan`1 s, NumberStyles style, NumberFormatInfo info)
   at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider)
   at System.Xml.XmlConvert.ToInt32(String s)
   at System.Xml.Linq.XAttribute.op_Explicit(XAttribute attribute)
   at EpubSharp.Format.Readers.NcxReader.<>c.<Read>b__0_1(XElement elem)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at EpubSharp.Format.Readers.NcxReader.Read(XDocument xml)
   at EpubSharp.EpubReader.Read(Stream stream, Boolean leaveOpen)

The books parses without exceptions if NcxPageTarget.Value is changed to a string.

This one ebook doesn't read...

https://1drv.ms/u/s!AjG9pmUcv66_ts8zXPWPprsz8L-sug?e=NfR7fl

Throws exception System.FormatException: 'Input string was not in a correct format.'
at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(ReadOnlySpan1 s, NumberStyles style, NumberFormatInfo info)
at System.Xml.Linq.XAttribute.op_Explicit(XAttribute attribute)
at EpubSharp.Format.Readers.NcxReader.<>c.b__0_1(XElement elem)
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Collections.Generic.List1.AddEnumerable(IEnumerable1 enumerable)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at EpubSharp.Format.Readers.NcxReader.Read(XDocument xml)
at EpubSharp.EpubReader.Read(Stream stream, Boolean leaveOpen)
at SimpleEpubReader.FileWizards.GutenbergFileWizard.d__0.MoveNext() in C:\Users\toomr\source\repos\SimpleEpubReader\SimpleEpubReader\FileWizards\GutenbergFileWizard.cs:line 50

This is somewhat random ebook I grabbed in order to test your library in my new ebook reader. So far, most ebooks area read by your library perfectly (testing includes books from the UN, USDA, NASA, Project Gutenberg and archive.org, plus others as I find them)

Other ebook readers (Nook and Freda) can read it OK.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.