Giter VIP home page Giter VIP logo

hub2bits's Introduction

hub2bits

This is a more or less generic yet organically grown Hub→JATS/BITS converter. It was commissioned by the Hogrefe group of publishers for their HoBoTS project. This is just a library and depends on certain transpect-modules. For installation, please see detailed instructions below.

requirements

Java 1.7 (to run XML Calabash)

installation

As mentioned above, hub2bits is just a library. So we need to create a frontend project which includes other needed modules and some infrastructure.

create directory for frontend project

mkdir hub2bits-frontend
cd hub2bits-frontend

get dependencies

git clone [email protected]:transpect/calabash-frontend.git --recursive
git clone [email protected]:transpect/hub2bits.git
git clone [email protected]:transpect/cascade.git
git clone [email protected]:transpect/xproc-util.git
git clone [email protected]:transpect/xslt-util.git

create frontend catalog

Create an XML catalog. Transpect operates with canonical URIs that typically starts with http://transpect.io/module-name/…. The XML catalog is used by a catalog resolver to resolve the URIs to their respective file paths.

mkdir xmlcatalog
touch xmlcatalog/catalog.xml

Each module provide its own XML catalog. They are connected with nextCatalog statements in the catalog of the frontend project. Just add the entries into xmlcatalog/catalog.xml:

<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

    <nextCatalog catalog="../cascade/xmlcatalog/catalog.xml"/>
    <nextCatalog catalog="../hub2bits/xmlcatalog/catalog.xml"/>
    <nextCatalog catalog="../xproc-util/xmlcatalog/catalog.xml"/>
    <nextCatalog catalog="../xslt-util/xmlcatalog/catalog.xml"/>

</catalog>

run the pipeline

./calabash-frontend/calabash.bat -i source=myHub.xml -o result=myOutput.xml hub2bits/xpl/hub2bits.xpl

blame the developers (or create an issue/PR or make an override)

If you work for different customers, you might experience that there is no general-purpose solution which meet all their needs. We initally developed this module to meet the requirements of the Hogrefe publishing group. But transpect provides ways to override the standard behaviour of a module. Feel free to read this tutorial about configuration cascades.

hub2bits's People

Contributors

arualmeyer avatar aschmalfuss avatar fr4nze avatar gimsieke avatar grolewsk avatar haendwic avatar kweidner avatar mkraetke avatar oswoboda avatar pglatza avatar pmarkwart avatar polypunkt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.