Compare commits
No commits in common. "99ba5b4fd9d709481f2f5a0b97e0b62a6863d703" and "d2f35798ac1c2c4b5d763a0f6f30aa665de2562b" have entirely different histories.
99ba5b4fd9
...
d2f35798ac
5 changed files with 11 additions and 13 deletions
|
@ -1,9 +1,7 @@
|
||||||
#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,4 +1,3 @@
|
||||||
#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,4 +1,3 @@
|
||||||
#include "Kanimaji/Error.hpp"
|
|
||||||
#include "SVG.hpp"
|
#include "SVG.hpp"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#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(argv[1], argv[2]);
|
Kanimaji::AnimateFile("084b8.svg", "084b8-out.svg");
|
||||||
}
|
}
|
||||||
catch (const std::exception& e) {
|
catch (const std::exception& e) {
|
||||||
std::println("Could not animate {}: {}", argv[1], argv[2]);
|
std::println("Could not animate the input file");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue