Git Product home page Git Product logo

dtbook-update-metadata's Introduction

dtbook-update-metadata

A tiny xml transformer that will update the meta data in your DTBook file and only that. No entity expansion, no anything! You get your original xml back with the updated meta data.

Installation

Clone and build with

mvn clean package

Deploy to Maven Central

mvn clean deploy

Usage

java -Ddc:Title="New Title" -jar dtbook-update-metadata-1.0-jar-with-dependencies.jar < original.xml > updated.xml

Valid meta data properties

The following meta data names are recognized.

  • dc:Title
  • dc:Creator
  • dc:Subject
  • dc:Description
  • dc:Publisher
  • dc:Date
  • dc:Type
  • dc:Format
  • dc:Identifier
  • dc:Source
  • dc:Language
  • dc:Rights
  • dtb:uid
  • dtb:sourceEdition
  • dtb:sourcePublisher
  • dtb:sourceRights
  • prod:series
  • prod:seriesNumber
  • prod:source

Contributing

If you have any improvements or comments please feel free to file a pull request or an issue.

Credits

Based on ideas on how to make a StaX transformer, a Java and XML tutorial and most importantly on how to disable entity expansion.

License

Copyright © 2024 Swiss Library for the Blind, Visually Impaired and Print Disabled.

Distributed under the GNU General Public License. See the file LICENSE.

dtbook-update-metadata's People

Contributors

dependabot[bot] avatar egli 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.