Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
1.0.0-preview2-003121
  • Loading branch information
al1b committed Sep 9, 2016
1 parent c4738e0 commit d1480bd
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 55 deletions.
9 changes: 9 additions & 0 deletions Nuget.config
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -11,7 +11,7 @@ Kindle Text Optimizer for Persian eBooks.

![Default Font](https://al1b.github.io/KTOP/kindle-default-font.jpg)

Users and publishers can ship/embedded custom fonts into their `epub`, `mobi` and `azw3` eBook files. Amazon Kindle doesn't display Persian and Arabic eBooks properly with custom fonts. It will display letters separated.
Books can be published with embedded fonts but Amazon Kindle won't display Persian and Arabic eBooks properly with embedded fonts and It will display characters separated.


![separated letters](https://al1b.github.io/KTOP/kindle-seperated-persian-text.jpg)
Expand Down Expand Up @@ -46,7 +46,7 @@ Example:

```
Windows:
KTOP.exe "d:\my-books\programming\csharp.epub"
KTOP.exe "d:/my-books/programming/csharp.epub"
Linux and Mac:
./KTOP "./csharp.epub"
Expand All @@ -67,7 +67,6 @@ Depend on what distro you are using you need to install .NET Core runtime.
3. [.NET Core Fedora 23](http://www.microsoft.com/net/core#fedora)
4. [.NET Core CentOS 7.1 & Oracle Linux 7.1](http://www.microsoft.com/net/core#centos)
5. [.NET Core openSUSE 13.2](http://www.microsoft.com/net/core#opensuse)
6. [.NET Core openSUSE 13.2](http://www.microsoft.com/net/core#opensuse)

***Mac OS X:***
[.NET Core For Mac OS X 10.11](http://www.microsoft.com/net/core#macos)
Expand Down
4 changes: 2 additions & 2 deletions global.json
@@ -1,6 +1,6 @@
{
"projects": [ "src", "test" ],
"projects": [ "src" ],
"sdk": {
"version": "1.0.0-preview1-002702"
"version": "1.0.0-preview2-003121"
}
}
2 changes: 1 addition & 1 deletion src/ArabicShaping/project.json
Expand Up @@ -9,7 +9,7 @@

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"

}
}
}
2 changes: 1 addition & 1 deletion src/KTOP.Base/project.json
Expand Up @@ -16,7 +16,7 @@

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"

}
}
}
24 changes: 0 additions & 24 deletions src/KTOP.CLI/Program.cs
Expand Up @@ -47,8 +47,6 @@ static void Main(string[] args)
watch.Stop();
Console.WriteLine($"The book has successfully optmized in {watch.Elapsed.Minutes} minutes and {watch.Elapsed.Seconds} seconds.\r\n");
Console.WriteLine($"File has saved in:\r\n{path}");


}
catch (Exception ex)
{
Expand Down Expand Up @@ -111,27 +109,5 @@ static BookEngineConfig CreateConfig(string[] args)

throw new Exceptions.ParameterException();
}

/// <summary>
/// Each file might have several mistakes in spelling, this method will create a well-formed log of them
/// </summary>
/// <param name="erros"></param>
/// <returns></returns>
static string GenerateErrorSpellingLog(Dictionary<string, List<string>> erros)
{
var builder = new StringBuilder();

foreach (var key in erros.Keys)
{
builder.AppendLine(key);
builder.AppendLine("--------------------");
foreach (var item in erros[key])
builder.AppendLine(item);

builder.AppendLine();
}

return builder.ToString();
}
}
}
2 changes: 1 addition & 1 deletion src/KTOP.CLI/Properties/PublishProfiles/aaaa.pubxml
Expand Up @@ -15,6 +15,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<UsePowerShell>True</UsePowerShell>
<publishUrl>.\bin\Release\PublishOutput</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
<PublishRuntime>linux-x64</PublishRuntime>
<PublishRuntime>win7-x64</PublishRuntime>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions src/KTOP.CLI/project.json
Expand Up @@ -17,13 +17,13 @@
"KTOP.Base": "1.0.0-*",
"KTOP.Helper": "1.0.0-*",
"Microsoft.NETCore.App": {
//"type": "platform",
"version": "1.0.0"
}
},

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
"netcoreapp1.0": {
}
}
}
2 changes: 1 addition & 1 deletion src/KTOP.EBookReader/project.json
Expand Up @@ -11,7 +11,7 @@

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"

}
}
}
7 changes: 1 addition & 6 deletions src/KTOP.Helper/project.json
@@ -1,11 +1,6 @@
{
"version": "1.0.0-*",

"runtimes": {
"linux-x64": {},
"win7-x64": {}
},

"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0"
Expand All @@ -14,7 +9,7 @@

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"

}
}
}
4 changes: 1 addition & 3 deletions src/NHazm/project.json
Expand Up @@ -8,8 +8,6 @@
},

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
"netcoreapp1.0": {}
}
}
22 changes: 11 additions & 11 deletions src/Tests/KTOP.Tests/project.json
@@ -1,22 +1,22 @@
{
"version": "1.0.0-*",
"testRunner": "xunit",
"version": "1.0.0-*",
"testRunner": "xunit",
"dependencies": {
"xunit": "2.2.0-beta2-build3300",
//"dotnet-test-xunit": "2.2.0-preview2-build1029",
"NHazm": "1.0.0-*",
"KTOP.Helper": "1.0.0-*",
"KTOP.Base": "1.0.0-*",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"ArabicShaping": "1.0.0-*"
},
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
}
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
}
}
}
}

0 comments on commit d1480bd

Please sign in to comment.