Skip to content

Commit

Permalink
P5V5 (#15)
Browse files Browse the repository at this point in the history
* P5V5
  • Loading branch information
talisein authored Aug 2, 2023
1 parent 1754516 commit 73103fe
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
- if: ${{ matrix.compiler == 'clang' && matrix.flavor == 'ubuntu' }}
name: Install clang ubuntu
run: |
sudo apt-get remove -y python3-lldb-x.y python3-lldb-14 libc++1-14 libc++abi1-14 libunwind-14 libunwind-14-dev
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
Expand Down
86 changes: 85 additions & 1 deletion src/part5_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,97 @@ constexpr std::array vol_4 = std::to_array<volume_definition>({
{ volume::P5V4, /* COPYRIGHT */ "Text/copyright.xhtml", "application/xhtml+xml", "Copyright", true },
});

constexpr std::array vol_5 = std::to_array<volume_definition>({
{ volume::P5V5, /* NCX */ "toc.ncx", "application/x-dtbncx+xml", std::nullopt, false },
{ volume::P5V5, /* STYLESHEET */ "Styles/stylesheet.css", "text/css", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/jnovelclubCMYK.png", "image/png", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Map2.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Map.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Manga2.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Manga1.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert10.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert9.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert8.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert7.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert6.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert5.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert4.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert3.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert2.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Insert1.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/FrontMatter2.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/FrontMatter1.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Cover.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Characters3.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Characters2.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Characters1.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Bonus2.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* IMAGE */ "Images/Bonus1.jpg", "image/jpeg", std::nullopt, false },
{ volume::P5V5, /* COVER */ "Text/cover.xhtml", "application/xhtml+xml", "Cover", true },
{ volume::P5V5, /* FRONTMATTER */ "Text/frontmatter1.xhtml", "application/xhtml+xml", "Color Illustrations", true },
{ volume::P5V5, /* FRONTMATTER */ "Text/frontmatter2.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHARACTERS */ "Text/characters1.xhtml", "application/xhtml+xml", "Characters", true },
{ volume::P5V5, /* CHARACTERS */ "Text/characters2.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHARACTERS */ "Text/characters3.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* TOC */ "Text/toc.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/prologue.xhtml", "application/xhtml+xml", "Prologue", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/prologue_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter1.xhtml", "application/xhtml+xml", "Apprentice Blues and the Orphanage Children", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter2.xhtml", "application/xhtml+xml", "Divine Protections All Around", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter3.xhtml", "application/xhtml+xml", "The Archduke Conference’s Starbinding", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert2.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter3_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter4.xhtml", "application/xhtml+xml", "Work in the Underground Archive", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter5.xhtml", "application/xhtml+xml", "Zent Candidates", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert3.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter5_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter6.xhtml", "application/xhtml+xml", "The Locations of the Shrines", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert4.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter6_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter7.xhtml", "application/xhtml+xml", "Consultation", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter8.xhtml", "application/xhtml+xml", "Circling the Shrines", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert5.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter8_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter9.xhtml", "application/xhtml+xml", "Deeper into the Underground Archive", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert6.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter9_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter10.xhtml", "application/xhtml+xml", "Letters and a Discussion", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert7.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter10_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter11.xhtml", "application/xhtml+xml", "The Merchant Saint", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert8.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter11_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter12.xhtml", "application/xhtml+xml", "Conditions for Being Adopted", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter13.xhtml", "application/xhtml+xml", "Secured Conditions", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter14.xhtml", "application/xhtml+xml", "The Archduke Conference’s Dedication Ritual", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert9.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter14_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter16.xhtml", "application/xhtml+xml", "An Unwanted Marriage", true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter15.xhtml", "application/xhtml+xml", "Epilogue", true },
{ volume::P5V5, /* CHAPTER */ "Text/insert10.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter15_1.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* CHAPTER */ "Text/chapter17.xhtml", "application/xhtml+xml", "Schlaftraum’s Flowers", true },
{ volume::P5V5, /* MAP_EHRENFEST_DUCHY */ "Text/map.xhtml", "application/xhtml+xml", "Map of Ehrenfest Duchy", true },
{ volume::P5V5, /* MAP_YURGENSCHMIDT */ "Text/map2.xhtml", "application/xhtml+xml", "Map of Yurgenschmidt", true },
{ volume::P5V5, /* AFTERWORD */ "Text/afterword.xhtml", "application/xhtml+xml", "Afterword", true },
{ volume::P5V5, /* MANGA */ "Text/manga1.xhtml", "application/xhtml+xml", "A Comfy Life with My Family by You Shiina", true },
{ volume::P5V5, /* MANGA */ "Text/manga2.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* BONUS */ "Text/bonus1.xhtml", "application/xhtml+xml", "Bonus High Resolution Illustrations", true },
{ volume::P5V5, /* BONUS */ "Text/bonus2.xhtml", "application/xhtml+xml", std::nullopt, true },
{ volume::P5V5, /* SIGNUP */ "Text/signup.xhtml", "application/xhtml+xml", "About J-Novel Club", true },
{ volume::P5V5, /* COPYRIGHT */ "Text/copyright.xhtml", "application/xhtml+xml", "Copyright", true },

});

constexpr definition_span_view_t vol_1_def { std::span<const volume_definition, std::dynamic_extent>(vol_1), volume::P5V1 };
constexpr definition_span_view_t vol_2_def { std::span<const volume_definition, std::dynamic_extent>(vol_2), volume::P5V2 };
constexpr definition_span_view_t vol_3_def { std::span<const volume_definition, std::dynamic_extent>(vol_3), volume::P5V3 };
constexpr definition_span_view_t vol_4_def { std::span<const volume_definition, std::dynamic_extent>(vol_4), volume::P5V4 };
constexpr definition_span_view_t vol_5_def { std::span<const volume_definition, std::dynamic_extent>(vol_5), volume::P5V5 };

constexpr std::array part_5_arr { std::to_array<definition_span_view_t>({
vol_1_def, vol_2_def, vol_3_def, vol_4_def,
vol_1_def, vol_2_def, vol_3_def, vol_4_def, vol_5_def,
}) };

constexpr definition_view_t part_5_def { std::span<const definition_span_view_t, std::dynamic_extent>(part_5_arr), omnibus::PART5 };
Expand Down
2 changes: 2 additions & 0 deletions src/volumes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ namespace {
{"ascendance-of-a-bookworm-part-5-volume-2"sv, volume::P5V2},
{"ascendance-of-a-bookworm-part-5-volume-3"sv, volume::P5V3},
{"ascendance-of-a-bookworm-part-5-volume-4"sv, volume::P5V4},
{"ascendance-of-a-bookworm-part-5-volume-5"sv, volume::P5V5},
};

using namespace std::string_view_literals;
Expand Down Expand Up @@ -76,6 +77,7 @@ namespace {
{"9781718346451"sv, volume::P5V2},
{"9781718346475"sv, volume::P5V3},
{"9781718346499"sv, volume::P5V4},
{"9781718346512"sv, volume::P5V5},
{"9781718338005"sv, volume::M1V1},
{"9781718338029"sv, volume::M1V2},
{"9781718338043"sv, volume::M1V3},
Expand Down
1 change: 1 addition & 0 deletions src/volumes.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ enum class volume
P5V2,
P5V3,
P5V4,
P5V5,
FB1,
FB2,
FB3,
Expand Down

0 comments on commit 73103fe

Please sign in to comment.