Skip to content

slack q and a 2020 05 03

akabeko edited this page Jun 14, 2020 · 1 revision

2020-05-03

Time (UTC) Icon Name Message
07:40 shinyu I don’t think it’s a good idea to include CSS specific for Vivliostyle in EPUB. The extended CSS syntax such as @-epubx-page-master {...} is not recognized as a valid CSS syntax in EPUB 3 and causes errors in EPUBCheck validator.
07:40 Kiara Translation 🇯🇵: EPUBにVivliostyleに固有のCSSを含めるのは良い考えではないと思います。 @ -epubx-page-master {...}などの拡張CSS構文は、EPUB 3では有効なCSS構文として認識されず、EPUBCheckバリデーターでエラーが発生します。
07:41 shinyu Using media query may make sense if you use same HTML files for both Web-pages version and Web-book version of a book with different stylesheets for normal Web-pages and for Web-book with Vivliostyle.

Vivliostyle treats pages as “print” media type and not “screen” media type even in Vivliostyle Viewer displaying pages in screen. So “@media print” can be used for stylesheets for Vivliostyle. Additionally, the Vivliostyle specific media type “vivliostyle” can be also used. This may be useful when you specify stylesheets specific only for Vivliostyle and not for normal printing in browser.
07:41 Kiara Translation 🇯🇵: メディアクエリを使用することは、通常のWebページとVivliostyleを使用するWebブックのスタイルシートが異なるブックのWebページバージョンとWebブックバージョンの両方に同じHTMLファイルを使用する場合に意味があります。

Vivliostyleは、ページを画面に表示するVivliostyleビューアでも、ページを「印刷」メディアタイプとして扱い、「画面」メディアタイプとして扱いません。したがって、「@ media print」はVivliostyleのスタイルシートに使用できます。さらに、Vivliostyle固有のメディアタイプ「vivliostyle」も使用できます。これは、ブラウザーでの通常の印刷ではなく、Vivliostyleにのみ固有のスタイルシートを指定する場合に役立ちます。
07:44 shinyu
3. CSS Page Templates in ePUB 3.0: Do basic ereader devices use this, is it usable on Kindle, is there a good guide available?
No. “CSS Page Templates” is not an official specification for EPUB 3.0. There was such an attempt in IDPF, and the result was EPUB Adaptive Layout http://idpf.org/epub/pgt/, but the status is an “informational document” (not a standard) and not supported in ebook readers, except in Vivliostyle and Peter Sorotokin’s original “Adapt” implementation.
07:44 Kiara Translation 🇯🇵: > 3. ePUB 3.0のCSSページテンプレート:基本的なereaderデバイスはこれを使用しますか、Kindleで使用できますか?優れたガイドはありますか?
いいえ。「CSSページテンプレート」はEPUB 3.0の公式仕様ではありません。 IDPFでそのような試みがあり、結果はEPUB Adaptive Layout http://idpf.org/epub/pgt/でしたが、ステータスは「情報ドキュメント」(標準ではない)であり、電子ブックリーダーではサポートされていません、ただし、VivliostyleおよびPeter Sorotokinのオリジナルの「Adapt」実装を除く。
13:04 Simon Worthington Thanks for the feedback, much appreciated. I'll mentally process this and see what I come up with as a formulation of how to structure our CSS and template setup. Thanks again 🙂
13:04 Kiara Translation 🇯🇵: フィードバックをお寄せいただきありがとうございます。私はこれを精神的に処理し、CSSとテンプレートのセットアップを構造化する方法の定式化として思いついたものを確認します。もう一度ありがとう:slightly_smiling_face:
Clone this wiki locally