mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06:11:10 +00:00
Renames project content from Lumina to Nemera
This commit is contained in:
1 parent
0f659a4877
commit
c583c9327c
6127 files changed
+41884
-41884
No files matched your search
@@ -1,11 +1,11 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Plugins.Contracts.Core.Reading;
|
||||
using Lumina.Plugins.Pdf.Core;
|
||||
using Nemera.Plugins.Contracts.Core.Reading;
|
||||
using Nemera.Plugins.Pdf.Core;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.Common.DependencyInjection;
|
||||
namespace Nemera.Plugins.Pdf.Common.DependencyInjection;
|
||||
|
||||
/// <summary>
|
||||
/// Utility class for registering the services of the PDF format reader into the Dependency Injection container.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Nemera.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using PDFtoImage;
|
||||
using SkiaSharp;
|
||||
using System;
|
||||
@@ -15,7 +15,7 @@ using UglyToad.PdfPig.Content;
|
||||
using UglyToad.PdfPig.Outline;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.Core.Pdf;
|
||||
namespace Nemera.Plugins.Pdf.Core.Pdf;
|
||||
|
||||
/// <summary>
|
||||
/// Parses a PDF into a normalized reading document, extracting the text of its pages into a working directory.
|
||||
@@ -99,7 +99,7 @@ internal static class PdfDocumentParser
|
||||
string resourceKey = $"page:{page.Number}";
|
||||
string imageFileName = $"page-{page.Number}.png";
|
||||
string fileName = $"{page.Number}.html";
|
||||
string sectionHtml = $"<section><img data-lumina-resource=\"{resourceKey}\" alt=\"{WebUtility.HtmlEncode(locationRef)}\" /></section>";
|
||||
string sectionHtml = $"<section><img data-nemera-resource=\"{resourceKey}\" alt=\"{WebUtility.HtmlEncode(locationRef)}\" /></section>";
|
||||
File.WriteAllText(Path.Combine(sectionsDirectory, fileName), sectionHtml, Encoding.UTF8);
|
||||
spine.Add(new ReadingSpineItemDto(locationRef, null, $"sections/{fileName}"));
|
||||
// The resource is registered with its expected file path, but the image is rendered lazily, when the resource is
|
||||
@@ -125,7 +125,7 @@ internal static class PdfDocumentParser
|
||||
/// <remarks>
|
||||
/// The PDFtoImage and SkiaSharp APIs used by this method are annotated with the supported platforms of the rendering engine, so this
|
||||
/// method must repeat that restriction or the CA1416 analyzer, which is a build error here, flags the call. The attributes must not
|
||||
/// be removed, even though Windows, Linux and macOS are the only platforms Lumina runs on.
|
||||
/// be removed, even though Windows, Linux and macOS are the only platforms Nemera runs on.
|
||||
/// </remarks>
|
||||
[SupportedOSPlatform("windows")]
|
||||
[SupportedOSPlatform("linux")]
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Plugins.Contracts.Common.Models.DTO.Settings;
|
||||
using Lumina.Plugins.Contracts.Core.Plugins;
|
||||
using Lumina.Plugins.Pdf.Common.DependencyInjection;
|
||||
using Nemera.Plugins.Contracts.Common.Models.DTO.Settings;
|
||||
using Nemera.Plugins.Contracts.Core.Plugins;
|
||||
using Nemera.Plugins.Pdf.Common.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.Core;
|
||||
namespace Nemera.Plugins.Pdf.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Plugin that decodes PDF books into a normalized reading document.
|
||||
@@ -32,7 +32,7 @@ public sealed class PdfPlugin : IPlugin, IPluginServiceRegistrator
|
||||
/// <summary>
|
||||
/// Gets the author of the plugin.
|
||||
/// </summary>
|
||||
public string Author => "Lumina";
|
||||
public string Author => "Nemera";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the version of the plugin.
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using Lumina.Plugins.Contracts.Core.Reading;
|
||||
using Lumina.Plugins.Pdf.Core.Pdf;
|
||||
using Nemera.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Nemera.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using Nemera.Plugins.Contracts.Core.Reading;
|
||||
using Nemera.Plugins.Pdf.Core.Pdf;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.Core;
|
||||
namespace Nemera.Plugins.Pdf.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Book reader for the PDF format.
|
||||
@@ -57,7 +57,7 @@ internal sealed class PdfReader : IBookReader
|
||||
/// <remarks>
|
||||
/// The PDFtoImage and SkiaSharp APIs used by <see cref="PdfDocumentParser.RenderResource"/> are annotated with the supported
|
||||
/// platforms of the rendering engine, so this method must repeat that restriction or the CA1416 analyzer, which is a build error
|
||||
/// here, flags the call. The attributes must not be removed, even though Windows, Linux and macOS are the only platforms Lumina runs on.
|
||||
/// here, flags the call. The attributes must not be removed, even though Windows, Linux and macOS are the only platforms Nemera runs on.
|
||||
/// </remarks>
|
||||
[SupportedOSPlatform("windows")]
|
||||
[SupportedOSPlatform("linux")]
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
<!-- The native libraries are what make the PDF reader work at runtime, so a build that produced none is a build that would deploy
|
||||
a silently broken plugin; failing here makes a missing RuntimeIdentifier visible at build time instead of as a runtime
|
||||
DllNotFoundException. -->
|
||||
<Error Condition="'@(_CurrentRidNatives)' == ''" Text="No native libraries were produced under '$(OutDir)runtimes\$(NETCoreSdkRuntimeIdentifier)\native'. Build the Lumina.Plugins.Pdf project with an explicit runtime identifier (for example: dotnet build -r win-x64) so the PDF reader ships its native rendering libraries." />
|
||||
<Error Condition="'@(_CurrentRidNatives)' == ''" Text="No native libraries were produced under '$(OutDir)runtimes\$(NETCoreSdkRuntimeIdentifier)\native'. Build the Nemera.Plugins.Pdf project with an explicit runtime identifier (for example: dotnet build -r win-x64) so the PDF reader ships its native rendering libraries." />
|
||||
<Copy SourceFiles="@(_CurrentRidNatives)" DestinationFolder="$(SolutionDir)..\bin\api\$(Configuration)\$(TargetFramework)\plugins\" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj">
|
||||
<ProjectReference Include="..\..\src\Nemera.Plugins.Contracts\Nemera.Plugins.Contracts.csproj">
|
||||
<Private>false</Private><!--Do not copy this assembly in the output directory, it's loaded from somewhere else.-->
|
||||
<ExcludeAssets>runtime</ExcludeAssets>
|
||||
</ProjectReference>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: InternalsVisibleTo("Lumina.Plugins.Pdf.UnitTests")]
|
||||
[assembly: InternalsVisibleTo("Lumina.Plugins.Pdf.IntegrationTests")]
|
||||
[assembly: InternalsVisibleTo("Lumina.Plugins.Pdf.Fixtures")]
|
||||
[assembly: InternalsVisibleTo("Nemera.Plugins.Pdf.UnitTests")]
|
||||
[assembly: InternalsVisibleTo("Nemera.Plugins.Pdf.IntegrationTests")]
|
||||
[assembly: InternalsVisibleTo("Nemera.Plugins.Pdf.Fixtures")]
|
||||
Reference in new issue
Block a user