Sha256: 00613dc5db5fef7ff726cd20f05183da6201ce8e925bb98dde56f4ef48d4fdbc

Contents?: true

Size: 1.86 KB

Versions: 3

Compression:

Stored size: 1.86 KB

Contents

<%# -*- coding: utf-8 -*- -%>
<% Template.target_binary_version(1.0) -%>
<%= processed_title %>
<%= toc["author"] %>
<%= cover_chuki %>
[#区切り線]
<% if toc["story"] != "" -%>
あらすじ:
<%= toc["story"] %>

<% end -%>
掲載ページ:
<a href="<%= Helper.ampersand_to_entity(toc["toc_url"]) %>"><%= toc["toc_url"] %></a>
[#区切り線]

<% sections.each_with_index do |section, i| -%>
[#改ページ]
<% if section["chapter"] != "" -%>
[#ページの左右中央]
[#ここから柱]<%= toc["title"] %>[#ここで柱終わり]
<% if device && device.ibooks? -%>
<%# ibooks だと左右中央が機能しないため -%>
<%= "\n" * 6 -%>
<% end -%>
[#3字下げ][#ここから大見出し]<%= section["chapter"] %>[#ここで大見出し終わり]
[#改ページ]
<% end -%>

[#3字下げ][#ここから中見出し]<%= section["subtitle"].rstrip %>[#ここで中見出し終わり]
<% if section["element"]["introduction"] != "" -%>
[#ここから前書き]
<% introduction, illust_chuki_array = Helper.extract_illust_chuki(section["element"]["introduction"]) -%>
<%= introduction %>
[#ここで前書き終わり]
<% if illust_chuki_array.count > 0 -%>
<%= illust_chuki_array.join("\n") %>
<% end -%>
<% end -%>


<%= section["element"]["body"] %>
<% if section["element"]["postscript"] != "" -%>
[#ここから後書き]
<% postscript, illust_chuki_array = Helper.extract_illust_chuki(section["element"]["postscript"]) -%>
<%= postscript %>
[#ここで後書き終わり]
<% if illust_chuki_array.count > 0 -%>
<%= illust_chuki_array.join("\n") %>
<% end -%>
<% end -%>
<% end -%>
<% if setting.enable_display_end_of_book -%>
[#ここから地付き][#小書き](本を読み終わりました)[#小書き終わり][#ここで地付き終わり]
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
narou-1.7.2 template/novel.txt.erb
narou-1.7.0 template/novel.txt.erb
narou-1.6.2 template/novel.txt.erb