mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10: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,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")]
|
||||
|
||||
Reference in new issue
Block a user