From 30925f4f1f82502fb0e24f5df3d9004fe3b6ff11 Mon Sep 17 00:00:00 2001 From: MurakamiShinyu Date: Sun, 6 Oct 2024 23:41:36 +0900 Subject: [PATCH 1/4] fix(theme-epub3j): EPUB TOC requires ordered list --- packages/@vivliostyle/theme-epub3j/example/p-toc.md | 10 +++++----- .../@vivliostyle/theme-epub3j/vivliostyle.config.js | 7 +++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/@vivliostyle/theme-epub3j/example/p-toc.md b/packages/@vivliostyle/theme-epub3j/example/p-toc.md index a4c0daf..3790afc 100644 --- a/packages/@vivliostyle/theme-epub3j/example/p-toc.md +++ b/packages/@vivliostyle/theme-epub3j/example/p-toc.md @@ -6,11 +6,11 @@ class: vrtl p-toc diff --git a/packages/@vivliostyle/theme-epub3j/vivliostyle.config.js b/packages/@vivliostyle/theme-epub3j/vivliostyle.config.js index ebdab1d..42a0cc9 100644 --- a/packages/@vivliostyle/theme-epub3j/vivliostyle.config.js +++ b/packages/@vivliostyle/theme-epub3j/vivliostyle.config.js @@ -18,8 +18,11 @@ module.exports = { 'example/p-colophon.md', ], cover: 'example/assets/cover.jpg', - // toc: true, - // tocTitle: '目次', + // toc: { + // htmlPath: 'example/toc.html', + // title: '目次', + // sectionDepth: 2, + // }, workspaceDir: '.vivliostyle', output: [ 'book.pdf', From 4f38ea8285d5011915aba7025f1216436458759f Mon Sep 17 00:00:00 2001 From: MurakamiShinyu Date: Sun, 6 Oct 2024 23:44:02 +0900 Subject: [PATCH 2/4] fix(theme-epub3j): text-spacing-trim and hanging-punctuation setting --- packages/@vivliostyle/theme-epub3j/theme.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/@vivliostyle/theme-epub3j/theme.css b/packages/@vivliostyle/theme-epub3j/theme.css index 5eda953..8aca81d 100644 --- a/packages/@vivliostyle/theme-epub3j/theme.css +++ b/packages/@vivliostyle/theme-epub3j/theme.css @@ -96,6 +96,13 @@ nav ul, nav ol { list-style: none; } +/* 約物の処理 +---------------------------------------------------------------- */ +body { + text-spacing-trim: space-first; /* 折り返し行頭の約物を詰める */ + hanging-punctuation: allow-end; /* 行末の句読点のぶら下げあり */ +} + /* 簡易印刷スタイル(Vivliostyle用。通常のEPUBリーダーでは無視される) ---------------------------------------------------------------- */ From e0edca37e41919d874a26808537fe2aa14538e57 Mon Sep 17 00:00:00 2001 From: MurakamiShinyu Date: Mon, 7 Oct 2024 22:42:41 +0900 Subject: [PATCH 3/4] Add changeset --- .changeset/violet-bobcats-repeat.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/violet-bobcats-repeat.md diff --git a/.changeset/violet-bobcats-repeat.md b/.changeset/violet-bobcats-repeat.md new file mode 100644 index 0000000..91d1b33 --- /dev/null +++ b/.changeset/violet-bobcats-repeat.md @@ -0,0 +1,8 @@ +--- +"@vivliostyle/theme-epub3j": major +--- + +Update EPUB3-Japanese Theme + +- EPUB TOC requires ordered list +- text-spacing-trim and hanging-punctuation setting From 9b687556ac64b711d30ffa123d3520f933fad21d Mon Sep 17 00:00:00 2001 From: TAMADA Akihiro Date: Sun, 27 Oct 2024 13:47:05 +0900 Subject: [PATCH 4/4] Update changeset --- .changeset/violet-bobcats-repeat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/violet-bobcats-repeat.md b/.changeset/violet-bobcats-repeat.md index 91d1b33..e5486a0 100644 --- a/.changeset/violet-bobcats-repeat.md +++ b/.changeset/violet-bobcats-repeat.md @@ -1,5 +1,5 @@ --- -"@vivliostyle/theme-epub3j": major +"@vivliostyle/theme-epub3j": minor --- Update EPUB3-Japanese Theme