Epubs built by PreText yields errors when submitted to Google Books

オープン
#2,835 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
css
領域
build-system

調査の方向性

Start by building an EPUB and inspecting the generated EPUB/css/epub.css around lines 1004-1007 and 1379-1385, where Google Books rejects .code-display, .autopermalink, and a. Trace those rules back to the XSLT/CSS templates that emit the EPUB stylesheet, then reproduce with an EPUB build and compare epubcheck output against Google Books' parser. Done means the generated CSS no longer contains the rejected constructs and Google Books accepts the EPUB.

索引モデルが issue の本文から書いたものです。

説明

Despite the build to epub yielding 0 errors, and the output epub passing epubcheck with 0 errors as well, I get these errors when I submit the epub to Google Books:
EPUB/css/epub.css:1004, 20: An error occurred while parsing the CSS: Token ".code-display" not allowed here.

EPUB/css/epub.css:1004, 20: An error occurred while parsing the CSS: Token ".code-display" not allowed here.

EPUB/css/epub.css:1007, 20: An error occurred while parsing the CSS: Token ".code-display" not allowed here.

EPUB/css/epub.css:1007, 20: An error occurred while parsing the CSS: Token ".code-display" not allowed here.

EPUB/css/epub.css:1379, 18: An error occurred while parsing the CSS: Token ".autopermalink" not allowed here.

EPUB/css/epub.css:1379, 18: An error occurred while parsing the CSS: Token ".autopermalink" not allowed here.

EPUB/css/epub.css:1382, 18: An error occurred while parsing the CSS: Token ".autopermalink" not allowed here.

EPUB/css/epub.css:1382, 18: An error occurred while parsing the CSS: Token ".autopermalink" not allowed here.

EPUB/css/epub.css:1385, 20: An error occurred while parsing the CSS: Token "a" not allowed here.

EPUB/css/epub.css:1385, 20: An error occurred while parsing the CSS: Token "a" not allowed here.

May I know why is this so, and how to solve?

(Screenshot attached below also:)

Image
主要言語
XSLT
スター
466
フォーク
251
平均マージ
4分
マージ済み PR(30日)
13

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PreTeXtBook/pretext のほかの issue

PreTeXtBook/pretext の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。