Masafumi Yokoyama
null+****@clear*****
Sun Mar 1 00:04:56 JST 2015
Masafumi Yokoyama 2015-03-01 00:04:56 +0900 (Sun, 01 Mar 2015) New Revision: e4892c07aa1f113c63f0136f2daf1dd7d8539023 https://github.com/groonga/groonga-beginners-book-ja/commit/e4892c07aa1f113c63f0136f2daf1dd7d8539023 Message: Import files generated by review-init command Added files: images/.gitkeep layouts/layout.html.erb sty/reviewmacro.sty style.css Removed files: stylesheet.css Modified files: config.yml Modified: config.yml (+89 -142) =================================================================== --- config.yml 2015-02-28 23:19:11 +0900 (f72d313) +++ config.yml 2015-03-01 00:04:56 +0900 (6eaff5b) @@ -6,100 +6,94 @@ # ブック名(ファイル名になるもの。ASCII範囲の文字を使用) bookname: groonga-beginners-book-ja - +# 記述言語。省略した場合はja +language: ja # 書名 booktitle: ゼロからはじめる全文検索エンジンGroonga入門 - -# 著者名。「, 」で区切って複数指定できる +# 固有IDに使用するドメイン。省略した場合は時刻に基づくランダムUUIDが入る +#urnid: urn:uid:http://tatsu-zine.com/books/review-sample-book/1.0.0/ +# ISBN。省略した場合はurnidが入る +# isbn: null +# 著者名。["高橋征義", "John Doe"] のように配列を使うことで複数指定可 aut: ["Masafumi Yokoyama"] +# 出版社。配列書式で複数指定可能 +#prt: 達人出版会 +# 編集者。配列書式で複数指定可能 +#edt: 高橋征義 +# 刊行日。YYYY-MM-DD形式。省略した場合は本日の日付 +#date: 2011-08-03 +# 発行年月。YYYY-MM-DD形式による配列指定。省略した場合はdateを使用する +# 複数指定する場合は次のように記述する +# [["初版第第1刷の日付", "初版第第2刷の日付"], ["第2版第1刷の日付"]] +# 日付の後ろを空白文字で区切り、任意の文字列を置くことも可能。 +#history: [["2011-08-03 v1.0.0版発行"]] +# 権利表記 +#rights: (C) 2011 Masayoshi Takahashi -# 以下はオプション # 以下はオプション(autと同じように配列書式で複数指定可能)。 -# a-が付いているものはcreator側、 -# 付いていないものはcontributor側(二次協力者)に入る -# a-adp, adp: 異なるメディア向けに作り直した者 -# a-ann, ann: 注釈記述者 -# a-arr, arr: アレンジした者 -# a-art, art: グラフィックデザインおよび芸術家 -# a-asn, asn: 関連・かつての所有者・関係者 -# a-aqt, aqt: 大きく引用された人物 -# a-aft, aft: 後書き・奥付の責任者 -# a-aui, aui: 序論・序文・前書きの責任者 -# a-ant, ant: 目録責任者 -# a-bkp, bkp: メディア制作責任者 -# a-clb, clb: 限定参加または補足者 -# a-cmm, cmm: 解釈・分析・考察者 -# a-dsr, dsr: デザイナ -# a-edt, edt: 編集者 -# a-ill, ill: イラストレータ -# a-lyr, lyr: 歌詞作成者 -# a-mdc, mdc: メタデータセットの一次的責任者 -# a-mus, mus: 音楽家 -# a-nrt, nrt: 語り手 -# a-oth, oth: その他 -# a-pht, pht: 撮影責任者 -# a-prt, prt: 出版社 -# a-red, red: 項目の枠組起草者 -# a-rev, rev: 評論者 -# a-spn, spn: 援助者 -# a-ths, ths: 監督者 -# a-trc, trc: 筆記・タイプ作業者 -# a-trl, trl: 翻訳者 - -# rights: 権利表記(配列で複数指定可) -# date: 刊行日(省略した場合は実行時の日付) -# description: 説明 -# subject: 短い説明用タグ(配列で複数指定可) -# type: 書籍のカテゴリーなど(配列で複数指定可) -# format: メディアタイプおよび特徴(配列で複数指定可) -# source: 出版物生成の重要なリソース情報(配列で複数指定可) -# relation: 補助的リソース(配列で複数指定可) -# coverage: 内容の範囲や領域(配列で複数指定可) - - -# デバッグフラグ。nullでないときには一時ファイルをカレントディレクトリに作成し、削除もしない -debug: null +# adp: 異なるメディア向けに作り直した者 +# ann: 注釈記述者 +# arr: アレンジした者 +# art: グラフィックデザインおよび芸術家 +# asn: 関連・かつての所有者・関係者 +# aqt: 大きく引用された人物 +# aft: 後書き・奥付の責任者 +# aui: 序論・序文・前書きの責任者 +# ant: 目録責任者 +# bkp: メディア制作責任者 +# clb: 限定参加または補足者 +# cmm: 解釈・分析・考察者 +# dsr: デザイナ +# edt: 編集者 +# ill: イラストレータ +# lyr: 歌詞作成者 +# mdc: メタデータセットの一次的責任者 +# mus: 音楽家 +# nrt: 語り手 +# oth: その他 +# pht: 撮影責任者 +# red: 項目の枠組起草者 +# rev: 評論者 +# spn: 援助者 +# ths: 監督者 +# trc: 筆記・タイプ作業者 +# trl: 翻訳者 +# description: ブックの説明 +# subject: 短い説明用タグ +# type: 書籍のカテゴリーなど +# format: メディアタイプおよび特徴 +# source: 出版物生成の重要なリソース情報 +# relation: 補助的リソース +# coverage: 内容の範囲や領域 # htmlext: HTMLファイルの拡張子(省略した場合はhtml) -# -# CSSファイル(配列で複数指定可) -stylesheet: ["stylesheet.css"] +# CSSファイル(配列で複数指定可、yamlファイルおよびRe:VIEWファイルを置いたディレクトリにあること) +stylesheet: ["style.css"] -# ePUBのバージョン (2か3) -# epubversion: 2 +# ePUBのバージョン (2か3) 省略した場合は2 +epubversion: 3 # HTMLのバージョン (4か5。epubversionを3にしたときには5にする) -# htmlversion: 4 +# htmlversion: 5 # 目次を作成する。Re:VIEW 1.5.0からデフォルトでは作成されなくなった。 toc: true -# 目次として抽出する見出しレベル -toclevel: 3 - -# 採番の設定。採番させたくない見出しには「==[nonum]」のようにnonum指定をする -# -# 本文でセクション番号を表示する見出しレベル -secnolevel: 2 - -# 付録の連番のスタイル。null(アラビア数字1〜。デフォルト)、alpha(英字A〜)、roman(ローマ数字I〜) -# appendix_format: null - -# 以下のsecnolevelはまだ未実装。 -# 前付でセクション番号を表示する見出しレベル(未実装) -# pre_secnolevel: 0 -# 後付(付録)でセクション番号を表示する見出しレベル(未実装) -# post_secnolevel: 1 -# 部番号を表示する見出しレベル(未実装) -# part_secnolevel: 1 - +# 目次として抽出する見出しレベル。省略した場合は2 +toclevel: 2 +# 本文でセクション番号を表示する見出しレベル。省略した場合は2 +# 採番させたくない見出しには「==[nonum]」のようにnonum指定をする +secnolevel: 3 # EPUB2標準の目次以外に物理目次ファイルを作成するか。省略した場合はnull (作成しない) # ePUB3においてはこの設定によらず必ず作成される # mytoc: true +# 付録の連番のスタイル。null(アラビア数字1〜。デフォルト)、alpha(英字A〜)、roman(ローマ数字I〜) +# appendix_format: null + # 表紙にするHTMLファイル。ファイル名を指定すると表紙として入る -# cover: null -# 表紙に配置し、書籍の影絵にも利用する画像ファイル。省略した場合はnull (画像を使わない)。画像ディレクトリ内に置いてもディレクトリ名は不要(例: cover.jpg) -# coverimage: null +# cover: _cover.html +# 表紙に配置し、書籍の影絵にも利用する画像ファイル。省略した場合はnull (画像を使わない) +#coverimage: cover.jpg # 表紙の後に大扉ページを作成するか。省略した場合はnull (作成しない) # titlepage: null # 自動生成される大扉ページを上書きするファイル。ファイル名を指定すると大扉として入る @@ -108,45 +102,16 @@ secnolevel: 2 # originaltitlefile: null # 権利表記ページファイル。ファイル名を指定すると権利表記として入る # creditfile: null - -# 奥付を作成するか。デフォルトでは作成されない。trueを指定するとデフォルトの奥付、ファイル名を指定するとそれがcolophon.htmlとしてコピーされる -# colophon: true - -# 裏表紙ファイル (画像はcoversまたはimagesに配置する)。ファイル名を指定すると裏表紙として入る -# backcover: null - # プロフィールページファイル。ファイル名を指定すると著者紹介として入る # profile: null # プロフィールページの目次上の見出し # profiletitle: 著者紹介 - # 広告ファイル。ファイル名を指定すると広告として入る # advfile: null - -# 取り込む画像が格納されているディレクトリ。省略した場合は以下 -# imagedir: images - -# 取り込むフォントが格納されているディレクトリ。省略した場合は以下 -# fontdir: fonts - -# imagedir内から取り込まれる対象となるファイル拡張子。省略した場合は以下 -# image_ext: ["png", "gif", "jpg", "jpeg", "svg", "ttf", "woff", "otf"] - -# fontdir内から取り込まれる対象となるファイル拡張子。省略した場合は以下 -# font_ext: ["ttf", "woff", "otf"] - -# review-compileに渡すパラメータ -params: --stylesheet=stylesheet.css -# Pygmentsカラーリングを利用する (pygments外部gemが必要) -# pygments: true - -# カタログファイル名を指定する -catalogfile: catalog.yml -# 1ページの行数文字数と1kbごとのページ数を用紙サイズで指定する(A5 or B5)。 -# page_metric: A5 -# あるいは、配列で指定することもできる -# 各数字の意味は、順にリストの行数、リストの1行字数、テキストの行数、テキストの1行字数、1kバイト毎のページ数 -# page_metric: [40,80,40,80,2] +# 奥付を作成するか。デフォルトでは作成されない。trueを指定するとデフォルトの奥付、ファイル名を指定するとそれがcolophon.htmlとしてコピーされる +colophon: true +# 裏表紙ファイル (画像はcoversまたはimagesに配置する)。ファイル名を指定すると裏表紙として入る +# backcover: null # 以下のパラメータを有効にするときには、 # epubmaker: @@ -199,41 +164,23 @@ catalogfile: catalog.yml # zip_stage2: "zip -Xr9Dq" # ePUBアーカイブに追加するパス(デフォルトはmimetype、META-INF、OEBPS) # zip_addpath: null -# EPUBで表紙をコンテンツに含めるか。デフォルトでは作成されない。yesにするとiBooks等でも最初に表紙が表示されるようになる -# cover_linear: null # # epubmaker:階層を使うものはここまで -# LaTeX用のスタイルファイル(styディレクトリ以下に置くこと) -# texstyle: samplemacro -# LaTeX用のdocumentclassを指定する -# texdocumentclass: ["jsarticle", "b5paper,oneside"] -# LaTeX用のコマンドを指定する(platex or lualatex) -# texcommand: "platex" -# LaTeX用のオプションを指定する(default: "-kanji=#{kanji}") -# texoptions: "-kanji=utf-8" -# LaTeX用のdvi変換コマンドを指定する(dvipdfmx) -# dvicommand: "dvipdfmx" -# LaTeX用のdvi変換コマンドのオプションを指定する -# dvioptions: "-d 5" +# ハイライトを有効にするか。pygments.gemが必要 +# pygments: null -# 以下のパラメータを有効にするときには、 -# pdfmaker: -# パラメータ: 値 -# パラメータ: 値 -# ... -# という構成にする必要がある(インデントさせる) -# -# pdfmaker: -# TeXコンパイル前に実行するプログラム。変換後のTeXソースを調整したいときに使用する。 -# 渡される引数1=作業用展開ディレクトリ、引数2=呼び出しを実行したディレクトリ -# hook_beforetexcompile: null -# TeXコンパイル後に実行するプログラム。索引作業をして再度コンパイルしたいときなどに使用する。 -# 渡される引数1=作業用展開ディレクトリ、引数2=呼び出しを実行したディレクトリ -# hook_aftertexcompile: null -# PDF(book.pdf)作成後に実行するプログラム。PDFに加工を施したいときに使用する。 -# 渡される引数1=作業用展開ディレクトリ、引数2=呼び出しを実行したディレクトリ -# hook_afterdvipdf: null -# -# pdfmaker:階層を使うものはここまで +# 取り込む画像が格納されているディレクトリ。省略した場合は以下 +# imagedir: images + +# 取り込むフォントが格納されているディレクトリ。省略した場合は以下 +# fontdir: fonts + +# imagedir内から取り込まれる対象となるファイル拡張子。省略した場合は以下 +# image_ext: ["png", "gif", "jpg", "jpeg", "svg", "ttf", "woff", "otf"] + +# fontdir内から取り込まれる対象となるファイル拡張子。省略した場合は以下 +# font_ext: ["ttf", "woff", "otf"] +texstyle: reviewmacro +debug: true Added: images/.gitkeep (+0 -0) 100644 =================================================================== --- /dev/null +++ images/.gitkeep 2015-03-01 00:04:56 +0900 (e69de29) Added: layouts/layout.html.erb (+14 -0) 100644 =================================================================== --- /dev/null +++ layouts/layout.html.erb 2015-03-01 00:04:56 +0900 (9852c56) @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ops="http://www.idpf.org/2007/ops" xml:lang="ja"> +<head> + <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> + <meta http-equiv="Content-Style-Type" content="text/css" /> + <link rel="stylesheet" type="text/css" href="style.css" /> + <meta name="generator" content="Re:VIEW" /> + <title><%= title %></title> +</head> +<body> +<%= body %> +</body> +</html> Added: sty/reviewmacro.sty (+39 -0) 100644 =================================================================== --- /dev/null +++ sty/reviewmacro.sty 2015-03-01 00:04:56 +0900 (dac3258) @@ -0,0 +1,39 @@ +%% from review-pdfmaker +\usepackage{fancyhdr} +\pagestyle{fancy} +\lhead{\gtfamily\sffamily\bfseries\upshape \leftmark} +\chead{} +\rhead{\gtfamily\sffamily\bfseries\upshape \rightmark} +\renewcommand{\sectionmark}[1]{\markright{\thesection~#1}{}} +\renewcommand{\chaptermark}[1]{\markboth{\prechaptername\ \thechapter\ \postchaptername~#1}{}} +\renewcommand{\headfont}{\gtfamily\sffamily\bfseries} + +\fancypagestyle{plainhead}{% +\fancyhead{} +\fancyfoot{} % clear all header and footer fields +\fancyfoot[CE,CO]{\thepage} +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt}} + +%% using Helvetica as sans-serif +\renewcommand{\sfdefault}{phv} + +%% for listings +%\renewcommand{\lstlistingname}{List} +%\lstset{% +% breaklines=true,% +% breakautoindent=false,% +% breakindent=0pt,% +% fontadjust=true,% +% backgroundcolor=\color{shadecolor},% +% frame=single,% +% framerule=0pt,% +% basicstyle=\ttfamily\scriptsize,% +% commentstyle=\color{reviewgreen},% +% identifierstyle=\color{reviewblue},% +% stringstyle=\color{reviewred},% +% keywordstyle=\bfseries\color{reviewdarkred},% +%} + + +\sloppy Added: style.css (+251 -0) 100644 =================================================================== --- /dev/null +++ style.css 2015-03-01 00:04:56 +0900 (e80c7f4) @@ -0,0 +1,251 @@ + �� charset "utf-8"; +/* Tatujin-Publishing */ +/* Style sheet for epub */ +/* Ver.0.8b1 */ + +/* +Scale & Rhythm +line-height 1.6 +16px = 1em +x:p:h1:h2:h3 = 12px:14px:16px:24px:30px +*/ +* { +} +body { + margin: 0; + padding: 0; + font-size: 1em; + line-height:1.6; + font-family: "ShinGoPro-Regular","ShinGo-Regular", sans-serif; + /* + word-break: normal; + -webkit-line-break: after-white-space; + */ +} +p, ul, ol, dl, pre, table { + font-family: "ShinGo Regular","ShinGo R","新ゴR","新ゴ R", sans-serif; + font-size: 0.875em; +} +/* Heading */ +h1 { + margin: 0 0 3em; + padding: 0.5em 0 0; + border-top: 14px #326450 solid; + text-align: left; + font-size: 1.875em; + font-weight: bold; +} +h2 { + margin: 3em 0 0.5em; + padding: 0.5em 0 0; + border-top: 2px #326450 solid; + text-align: left; + font-size: 1.5em; + font-weight: bold; +} +h3 { + margin: 3em 0 0.5em; + padding: 0; + text-align: left; + font-size: 1em; + font-weight: bold; +} +h4, h5, h6 { + margin:0.7em 0; + padding: 0; + text-align: left; + line-height: 1.6; + font-weight: bold; +} +/* Paragraph */ +p { + margin:0.7em 0; + padding: 0; + text-align: left; + text-indent: 1em; + line-height: 1.6; +} +div.lead p { + color: #666; + line-height: 1.6; + font-size: 0.75em; +} +/* List */ +ul, ol { + margin: 2em 0 2em 2em; + padding: 0; + list-style-position: outside; +} +ul > li, +ol > li { + margin: 0 0 0.7em 0; + padding: 0; + line-height: 1.6; +} +dl { + margin: 2em 0; + padding: 0; +} +dt { + margin: 0; + padding: 0; + font-weight: bold; +} +dd { + margin: 0 0 1em 2em; + padding: 0; + line-height: 1.6; +} +/* Table +p.tablecaptionではなく +table caption {}を使う方が良いかも? +*/ +table { + margin: 0 auto 2em auto; + border-collapse: collapse; +} +table tr th { + background-color: #eee; + border:1px #aaa solid; + font-size: 0.75em; + font-weight: normal; +} +table tr td { + padding: 0.3em; + border:1px #aaa solid; + font-size: 0.75em; +} +p.tablecaption, table caption { + margin: 0; + color: #666; + font-size: 0.75em; + font-weight: bold; + text-indent: 0; +} +/* Quote */ +blockquote { + margin: 2em 0 2em 2em; + padding: 0.3em 1em; + border: 1px #aaa solid; +} +/* Column Block */ +div.column { + margin: 2em 0 2em 2em; + padding: 0.3em 1em; + background-color: #eee; + -webkit-border-radius: 0.7em; +} +div.column *{ + margin:0.7em 0; +} +div.column ul, +div.column ol { + list-style-position: inside; +} +/* Code Block */ +/* +※シンプルにできるかも +div.code {} +div.code pre.list, +div.code pre.cmd {} +div.code p.caption {} +*/ +div.code, div.caption-code, div.source-code, div.emlist-code, div.emlistnum-code { + margin: 1em 0 2em 2em; + padding: 0; +} +pre.emlist, pre.source, pre.list { + margin: 0; + padding: 5px; + border: 1px #aaa solid; +} +div p.caption { + margin: 0; + color: #666; + font-size: 0.75em; + font-weight: bold; +} +div.cmd-code pre.cmd { + margin: 0; + padding: 5px; + color: #ccc; + font-weight: bold; + background-color: #444; + -webkit-border-radius: 0.5em; +} +pre.cmd, pre.emlist, pre.list, pre.source { + white-space: pre-wrap; +} + +/* Image Block */ +/* div.image p.caption {} +※captionをそろえた方が良いかも?*/ +div.image { + margin: 2em auto; + padding: 0; +} +div.image img { + margin: 0 auto; + padding: 0; + display: block; +} +div.image p.caption { + margin: 0 auto; + text-align: center; + color: #666; + font-size: 0.75em; + font-weight: bold; + text-indent: 0; +} +/* Footnote Block */ +/* p.footnoteはいらないかも? */ +div.footnote { +} +div.footnote p.footnote { + color: #666; + line-height: 1.6; + font-size: 0.75em; + text-indent: 0; +} +/* Colophon */ +div.colophon { + margin: 3em auto; +} +div.colophon p { + text-indent: 0; +} +div.colophon p.title { + font-size: 1.5em; +} +div.colophon table { + margin: 1em 0 2em; + border: none; +} +div.colophon table tr th { + background-color: #fff; + font-size: 1.2em; + font-weight: normal; + border: none; +} +div.colophon table tr td { + font-size: 1.2em; + font-weight: normal; + border: none; +} + +/* Inline */ +a[href], +a:link, +a:visited { + border-bottom: 1px dotted #531084; + text-decoration: none; +} +b { + font-weight: bold; +} +strong{ + font-weight: bold; +} +em { + font-style: italic; +} \ No newline at end of file Deleted: stylesheet.css (+0 -108) 100644 =================================================================== --- stylesheet.css 2015-02-28 23:19:11 +0900 (dcfd4e3) +++ /dev/null @@ -1,108 +0,0 @@ - �� charset "utf-8"; - -h1 { - color: #000080; - font-weight: bold; - text-align: center; -} - -h2 { - color: #000080; - font-weight: bold; - border-bottom: dotted 1px #000080; - margin-top: 1em; -} - -h3 { - color: #000080; - border-bottom: dotted 1px #000080; - margin-top: 1em; -} - -p.lead { - padding: 1em; - background: #c0c0ff; -} - -p.footnote { - font-size: xx-small; - padding: 1em; - background: #d0d0d0; -} - -p.sourcecaption { - font-weight: bold; - text-align: center; -} -p.imagecaption { - font-weight: bold; - text-align: center; -} -p.listcaption { - font-weight: bold; - text-align: center; -} -p.emlistcaption { - font-weight: bold; - text-align: center; -} -p.tablecaption { - font-weight: bold; - text-align: center; -} -p.notecaption { - font-weight: bold; - text-align: center; -} - -img { - text-align: center; -} - -table { - border: solid 1px #000000; - width: 90%; - margin-bottom: 1em; -} - -th { - border-bottom: solid 1px #000000; - background: #800000; - color: #ffffff; -} - -span.kw { - font-weight: bold; -} - -div.column { - padding: 0.5em; - background: #ffd0d0; - border: dotted 2px #808080; -} - -div.image { - text-align: center; -} - -div h5 { - font-size: larger; - border-bottom: solid 1px #000000; -} - -p { - text-indent: 1em; -} - -p.caption { - font-weight: bold; - text-indent: 0em; -} - -p.noindent { - text-indent: 0em; -} - -p.flushright { - text-align: right; -} -------------- next part -------------- HTML����������������������������... Download