commit 6aeb124f1150f6431bd5a41374bbc3eb89168c2c Author: Tobias Klika Date: Tue Dec 17 22:41:08 2013 +0100 initial diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1c9dd1a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +; This file is for unifying the coding style for different editors and IDEs +; editorconfig.org + +root = true + +[*] +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f2121f --- /dev/null +++ b/.gitignore @@ -0,0 +1,165 @@ +## Ignore Visual Studio temporary files, build results, and files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +build/ +[Bb]in/ +[Oo]bj/ + +# configuration +Web.Release.config +Web.Debug.config + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.scc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml +*.pubxml + +# NuGet Packages Directory +## TODO: If you have NuGet Package Restore enabled, uncomment the next line +packages/ +*.nupkg + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml +*.pfx +*.publishsettings +.sass-cache +node_modules +*.[L|l]og +tmp +_old +_tmp +Gemfile.lock +WebWorkbench.mswwsettings + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +# ========================= +# Windows detritus +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac crap +.DS_Store + + +# ========================= +# Project +# ========================= diff --git a/Assets/github-header.png b/Assets/github-header.png new file mode 100644 index 0000000..60ab6b6 Binary files /dev/null and b/Assets/github-header.png differ diff --git a/Assets/readsharp.png b/Assets/readsharp.png new file mode 100644 index 0000000..ad6e193 Binary files /dev/null and b/Assets/readsharp.png differ diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..c38ac0f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +### 1.0.0 (coming soon) + +- migrate PocketSharp.Reader to ReadSharp diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..1bf9623 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,22 @@ +Copyright (c) 2014 cee, Tobias Klika + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..41dcc41 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +![ReadSharp](https://raw.github.com/ceee/ReadSharp/master/Assets/github-header.png) + +ReadSharp was previously **PocketSharp.Reader** and is now hosted without the [PocketSharp](https://github.com/ceee/PocketSharp) dependency. + +## What's it all about? + +The library extracts the main content of a website and returns the extracted content as HTML and it's associated title, as well as other useful content (images, icons, ...). + +This content can be encapsulated in a -Tag and displayed as a readable website with a custom CSS (it's up to you!). + +--- + + +## Supported platforms + +ReadSharp is a **Portable Class Library**, therefore it's compatible with multiple platforms: + +- **.NET** >= 4.0.3 (including WPF) +- **Silverlight** >= 4 +- **Windows Phone** >= 7.5 +- **Windows Store** + +## Forked Dependencies + +_forks are included in the primary source code_ + +- [NReadability](https://github.com/marek-stoj/NReadability) +- [SgmlReader](https://github.com/MindTouch/SGMLReader) + +## Contributors +| [![ceee](http://gravatar.com/avatar/9c61b1f4307425f12f05d3adb930ba66?s=70)](https://github.com/ceee "Tobias Klika") | +|---| +| [ceee](https://github.com/ceee) | + +## License + +[MIT License](https://github.com/ceee/ReadSharp/blob/master/LICENSE-MIT) diff --git a/ReadSharp.sln b/ReadSharp.sln new file mode 100644 index 0000000..1158b26 --- /dev/null +++ b/ReadSharp.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReadSharp", "ReadSharp\ReadSharp.csproj", "{06219CAD-E85E-48E2-A216-2539805A9EE8}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {06219CAD-E85E-48E2-A216-2539805A9EE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {06219CAD-E85E-48E2-A216-2539805A9EE8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {06219CAD-E85E-48E2-A216-2539805A9EE8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {06219CAD-E85E-48E2-A216-2539805A9EE8}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ReadSharp/Properties/AssemblyInfo.cs b/ReadSharp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..103b89d --- /dev/null +++ b/ReadSharp/Properties/AssemblyInfo.cs @@ -0,0 +1,30 @@ +using System.Resources; +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("ReadSharp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ReadSharp")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] + +// 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")] diff --git a/ReadSharp/ReadSharp.csproj b/ReadSharp/ReadSharp.csproj new file mode 100644 index 0000000..7c0e29a --- /dev/null +++ b/ReadSharp/ReadSharp.csproj @@ -0,0 +1,49 @@ + + + + + 10.0 + Debug + AnyCPU + {06219CAD-E85E-48E2-A216-2539805A9EE8} + Library + Properties + ReadSharp + ReadSharp + v4.0 + Profile96 + 512 + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + \ No newline at end of file