专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

nlbdev/nordic-epub3-dtbook-migrator Docker 镜像 - 轩辕镜像

nordic-epub3-dtbook-migrator
nlbdev/nordic-epub3-dtbook-migrator
Tools for converting between a strict subset of DTBook and EPUB3.
0 次下载
🙃 代码没问题,结果发布失败在拉镜像
镜像简介版本下载
🙃 代码没问题,结果发布失败在拉镜像

Nordic EPUB3/DTBook Migrator

Project status

The current focus is on:

  • finalizing and releasing an official version for validating EPUBs according to the 2020-1 guidelines
  • removing the dependency on Pipeline 2

See more details for the current development phase here: [***]

2015

The first goal of this project was to provide a EPUB3 to DTBook conversion tool for the libraries in the Nordic countries providing accessible litterature to visually impaired readers (NLB, MTM, SPSM, Celia, Nota and SBS). The conversion is implemented in XProc and XSLT and provided as a DAISY Pipeline 2 script. This conversion allows the organizations to continue to use their respective DTBook-based tools for production of Braille and Synthetic Speech, as long as those are necessary, and gradually start using EPUB when their production tools are ready.

This tool attempts to map EPUB3 to DTBook with as little loss as possible (a 1:1 mapping).

While the EPUB3 will consist of multiple HTML files internally, an intermediate single-page HTML representation is useful for converting to and from DTBook.

2020

A revision of the guidelines was started in 2020. The participating organisations are Celia, Dedicon, HBS, MTM, NLB, Nota, SBS, SPSM, and Statped.

As a result, an updated validator was needed, and EPUB validation for the new guidelines were implemented. There is not (at least not yet) any conversion path between previous versions of the guidelines (EPUB 2015-1 or DTBook 2011-2) and the new version (EPUB 2020-1).

Scripts

This project provides the following Pipeline 2 scripts:

  • EPUB3 to DTBook
  • EPUB3 to HTML
  • EPUB3 Validator
  • EPUB3 ASCIIMath to MathML
  • HTML to EPUB3
  • HTML to DTBook
  • HTML Validator
  • DTBook to EPUB3
  • DTBook to HTML
  • DTBook Validator

The only script that currently supports the 2020-1 guidelines is the EPUB3 Validator script.

The EPUB3 to DTBook script allows new EPUB3 files to be used with legacy DTBook-based systems.

The DTBook to EPUB3 script allows legacy DTBooks to be upgraded to new EPUB3-based production systems.

Scripts for converting between the intermediary single-HTML representation of the publications are also provided. These are useful either for debugging, or if a single-document HTML representation is needed as input to or output from a HTML-based production system.

Validators for EPUB3, DTBook and single-document HTML files are provided. The EPUB3 validator allows us to check that new EPUB3 files are valid according to the nordic markup guidelines. The DTBook and HTML validators can be useful for DTBook- or HTML-based production systems.

In the nordic markup guidelines (version 2015-1), math is marked up using ASCIIMath. An experimental script for converting this ASCIIMath to MathML is provided.

The grammar used in the EPUB3, HTML and DTBook files is a strict subset of EPUB3, HTML and DTBook, and is defined in the Nordic markup guidelines. Most DTBooks will work with these scripts, there are few limitations to the input DTBook grammar. There are more limitations to the HTML/EPUB3 grammar however, because there must be a way to convert it to DTBook. Most notably, multimedia such as audio and video are currently not allowed in these EPUB3s.

Building

Install dependencies:

bash
sudo apt install git maven gpg

Clone the repository:

bash
git clone [***]

The Nordic Migrator can be built with Maven, either directly (with for instance mvn clean package), or indirectly with Docker (with for instance docker build .).

Testing is part of the build process, but can be explicitly invoked with mvn test.

Releasing

First, make sure you have a GPG key: [***]

And also make sure that you have set your GPG key as default in ~/.gnupg/gpg.conf:

default-key ABCDEF123

Add your Github credentials to your local ~/.m2/settings.xml (you should use a personal access token as the password):

xml
  <server>
    <id>github</id>
    <username><!-- your github username here --></username>
    <password><!-- your personal access token here --></password>
  </server>

The convention has been to release from a feature branch or dedicated release branch, and then merge into the master branch in a merge commit.

Prepare the release:

bash
mvn release:prepare

You will be asked:

  • What is the release version (…)?
    • use semantic versioning to choose the version number. For bugfixes and similar, the default is fine: a bumped patch version number
  • What is SCM release tag or label (…)?
    • the tags we use are a "v" followed by the release version; this is also what is suggested by default
  • What is the new development version (…)?
    • just use the default here, which is the release version with a bumped patch version and a "-SNAPSHOT" suffix

At this point, Maven will update the version in the POM and run all the tests. This will take a few minutes.

If you look in the git log when it's done, you'll find:

HEAD        [maven-release-plugin] prepare for next development iteration
tag: vX.X.X [maven-release-plugin] prepare release vX.X.X

Then, you can publish the release artifacts using:

bash
mvn release:perform

Also, remember to push the tag upstream:

git push origin vX.X.X

The project is set up so that the branch mvn-repo is used as a maven repository. Artifacts will be published to that branch.

If you want to use nordic migrator as a maven package in another project; add this repository to your project:

xml
    <repository>
        <id>nordic-epub3-dtbook-migrator-mvn-repo</id>
        <url>[***]</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
    </repository>
Docker images:

Commits tagged with a version are built and tagged automatically on Docker Hub. The tag is created automatically by mvn release:prepare, and when you push the git tag to Github with git push origin vX.X.X, a webhook will tell Docker Hub to build a new image.

All commits on the master branch will be built on Docker Hub. The latest commit will be available as :latest.

References

See the project homepage for more information.

查看更多 nordic-epub3-dtbook-migrator 相关镜像 →
docker/v1.10-migrator logo
docker/v1.10-migrator
为Docker图形目录准备内容可寻址性
8100K+ pulls
上次更新:未知
artifacthub/db-migrator logo
artifacthub/db-migrator
支持查找、安装和发布Kubernetes包的Docker镜像
100K+ pulls
上次更新:未知
docker/migrator logo
docker/migrator
用于将Docker镜像从v1仓库迁移到v2仓库的工具
810K+ pulls
上次更新:未知
goharbor/harbor-migrator logo
goharbor/harbor-migrator
暂无描述
2500K+ pulls
上次更新:未知
datastax/cassandra-data-migrator logo
datastax/cassandra-data-migrator
暂无描述
150K+ pulls
上次更新:未知
goharbor/harbor-db-migrator logo
goharbor/harbor-db-migrator
暂无描述
110K+ pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
nlbdev/nordic-epub3-dtbook-migrator
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.