Compare commits
2 commits
d2f35798ac
...
99ba5b4fd9
Author | SHA1 | Date | |
---|---|---|---|
99ba5b4fd9 | |||
a8d4210cf2 |
5 changed files with 13 additions and 11 deletions
|
@ -1,7 +1,9 @@
|
||||||
#ifndef KANIMAJI_ERROR_HPP
|
#ifndef KANIMAJI_ERROR_HPP
|
||||||
#define KANIMAJI_ERROR_HPP
|
#define KANIMAJI_ERROR_HPP
|
||||||
|
|
||||||
|
#include <cstddef>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <string_view>
|
||||||
|
|
||||||
namespace Kanimaji
|
namespace Kanimaji
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "Kanimaji/Error.hpp"
|
||||||
#include "Kanimaji/Kanimaji.hpp"
|
#include "Kanimaji/Kanimaji.hpp"
|
||||||
#include "Kanimaji/Settings.hpp"
|
#include "Kanimaji/Settings.hpp"
|
||||||
#include "SVG.hpp"
|
#include "SVG.hpp"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "Kanimaji/Error.hpp"
|
||||||
#include "SVG.hpp"
|
#include "SVG.hpp"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
#ifndef KANIMAJI_SVG_HPP
|
#ifndef KANIMAJI_SVG_HPP
|
||||||
#define KANIMAJI_SVG_HPP
|
#define KANIMAJI_SVG_HPP
|
||||||
|
|
||||||
#include "Kanimaji/Error.hpp"
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -4,19 +4,19 @@
|
||||||
|
|
||||||
int main(const int argc, const char *argv[])
|
int main(const int argc, const char *argv[])
|
||||||
{
|
{
|
||||||
//if (argc != 3) {
|
if (argc != 3) {
|
||||||
// std::println("Usage: KanimajiTool SOURCE DESTINATION\n\n"
|
std::println("Usage: KanimajiTool SOURCE DESTINATION\n\n"
|
||||||
// "SOURCE - Path to a file from the KanjiVG dataset.\n"
|
"SOURCE - Path to a file from the KanjiVG dataset.\n"
|
||||||
// "DESTINATION - Path to write the animated SVG.\n"
|
"DESTINATION - Path to write the animated SVG.\n"
|
||||||
// );
|
);
|
||||||
// return 1;
|
return 1;
|
||||||
//}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Kanimaji::AnimateFile("084b8.svg", "084b8-out.svg");
|
Kanimaji::AnimateFile(argv[1], argv[2]);
|
||||||
}
|
}
|
||||||
catch (const std::exception& e) {
|
catch (const std::exception& e) {
|
||||||
std::println("Could not animate the input file");
|
std::println("Could not animate {}: {}", argv[1], argv[2]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue