Commit 637db242 authored by Stephan Kreutzer's avatar Stephan Kreutzer

wakelet_to_pdf_1 added.

parent 4fb11816
# Copyright (C) 2016-2019 Stephan Kreutzer
#
# This file is part of clients for
# automated_digital_publishing/digital_publishing_workflow_tools.
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3 or any later version,
# as published by the Free Software Foundation.
#
# This file is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with this file. If not, see <http://www.gnu.org/licenses/>.
directories = ./wakelet_to_pdf_1
.PHONY: all $(directories)
all: $(directories)
$(directories):
$(MAKE) --directory=[email protected]
/* Copyright (C) 2019 Stephan Kreutzer
*
* This file is part of wakelet_downloader_1.
*
* wakelet_downloader_1 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the Free Software Foundation.
*
* wakelet_downloader_1 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License 3 for more details.
*
* You should have received a copy of the GNU Affero General Public License 3
* along with wakelet_downloader_1. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @author Stephan Kreutzer
* @since 2019-08-05
*/
import java.io.File;
public class CardSource
{
public CardSource(int id, File cardFile)
{
this.id = id;
this.cardFile = cardFile;
}
public int GetId()
{
return this.id;
}
public File GetCardFile()
{
return this.cardFile;
}
protected int id;
protected File cardFile;
}
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with this program. If not, see <http://www.gnu.org/licenses/>.
java xhtml_to_latex_1 ./output/ ./output_print/
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2018-2019 Stephan Kreutzer
This file is part of wakelet_downloader_1.
wakelet_downloader_1 is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3 or any later version,
as published by the Free Software Foundation.
wakelet_downloader_1 is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License 3 for more details.
You should have received a copy of the GNU Affero General Public License 3
along with wakelet_downloader_1. If not, see <http://www.gnu.org/licenses/>.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:comment> This file was generated by jsonxml_preparation_stylesheet_cards.xsl of wakelet_downloader_1, which is free software licensed under the GNU Affero General Public License 3 or any later version (see https://gitlab.com/publishing-systems/clients/ and http://www.publishing-systems.org). </xsl:comment><xsl:text>&#xA;</xsl:text>
<wakelet>
<wake>
<xsl:apply-templates/>
</wake>
</wakelet>
</xsl:template>
<xsl:template match="//array[@name='items']/object">
<xsl:choose>
<xsl:when test="./object[@name='summary']/object[@name='type']/text() = 'note'">
<note>
<description>
<xsl:apply-templates select="./object[@name='description']"/>
</description>
</note>
</xsl:when>
<xsl:when test="./object[@name='summary']/object[@name='type']/text() = 'savedCollection'">
<wake>
<xsl:attribute name="url">
<xsl:apply-templates select="./object[@name='summary']/object[@name='url']"/>
</xsl:attribute>
</wake>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="//array[@name='items']/object/object[@name='description']//text()">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="//array[@name='items']/object/object[@name='summary']/object[@name='url']//text()">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="text()|@*"/>
</xsl:stylesheet>
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with this program. If not, see <http://www.gnu.org/licenses/>.
java wakelet_downloader_1 "https://wakelet.com/wake/013f9ec7-3e37-4dec-9c45-90ca5f1679be" ./output/
# Copyright (C) 2016-2019 Stephan Kreutzer
#
# This file is part of clients for
# automated_digital_publishing/digital_publishing_workflow_tools.
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3 or any later version,
# as published by the Free Software Foundation.
#
# This file is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with this file. If not, see <http://www.gnu.org/licenses/>.
.PHONY: all wakelet_downloader_1 xhtml_to_latex_1 clean
all: wakelet_downloader_1 xhtml_to_latex_1
wakelet_downloader_1: wakelet_downloader_1.class
xhtml_to_latex_1: xhtml_to_latex_1.class
CardSource.class: CardSource.java
javac -encoding UTF-8 CardSource.java
wakelet_downloader_1.class: wakelet_downloader_1.java CardSource.class
javac -encoding UTF-8 wakelet_downloader_1.java
xhtml_to_latex_1.class: xhtml_to_latex_1.java
javac -encoding UTF-8 xhtml_to_latex_1.java
clean:
rm -f wakelet_downloader_1.class
rm -f xhtml_to_latex_1.class
rm -f CardSource.class
#!/bin/sh
# Copyright (C) 2019 Stephan Kreutzer
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License version 3 or any later
# version of the license, as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# sudo apt-get install wget unzip make openjdk-8-jdk texlive-latex-base texlive-latex-recommended texlive-latex-extra psutils
wget https://gitlab.com/publishing-systems/digital_publishing_workflow_tools/-/archive/master/digital_publishing_workflow_tools-master.zip
wget https://gitlab.com/publishing-systems/automated_digital_publishing/-/archive/master/automated_digital_publishing-master.zip
unzip ./digital_publishing_workflow_tools-master.zip
mv ./digital_publishing_workflow_tools-master/ ./digital_publishing_workflow_tools/
cd ./digital_publishing_workflow_tools/
make
java -cp ./workflows/setup/setup_1/ setup_1
cd ..
unzip ./automated_digital_publishing-master.zip
mv ./automated_digital_publishing-master/ ./automated_digital_publishing/
cd ./automated_digital_publishing/
make
java -cp ./workflows/ setup1
cd ..
make
This diff is collapsed.
This diff is collapsed.
......@@ -16,7 +16,7 @@
directories = ./com.mobileread ./com.youtube ./de.autorenwelt ./org.wiktionary ./setup ./tv.twitch
directories = ./com.mobileread ./com.wakelet ./com.youtube ./de.autorenwelt ./org.wiktionary ./setup ./tv.twitch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment