Skip to content

84000/exist-ewts-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eXist-db compatible EWTS (Extended Wylie transliteration) library module

Java 8 License

This is an eXist-db compatible XQuery Library Module written in Java and delivered as an EXPath Package using Maven.

It adds XQuery function wrappers for the Ewts Converter.

XQuery Functions

  • Module Class: org.tbrc.xquery.extensions.EwtsToUniModule
  • Namespace: http://tbrc.org/xquery/ewts2unicode
  • Prefix: ewts

  1. ewts:toUnicode($wylie-string?) as xs:string?

Example Use:

import module namespace ewts = "http://tbrc.org/xquery/ewts2unicode";

ewts:toUnicode("sems can thams cad")
  1. ewts:toWylie($unicode-string as xs:string?) as xs:string?

Example Use:

import module namespace ewts = "http://tbrc.org/xquery/ewts2unicode";

ewts:toWylie("སེམས་ཅན་ཐམས་ཅད")

Building the EXPath Library Package

  • Requirements: Java 8, Apache Maven 3.3+, Git.

If you want to create an EXPath Package for the app, you can run:

$ mvn package

There will be a .xar file in the target/ sub-folder that can be deployed to FusionDB, Elemental, or eXist-db via it's Package Manager.

Publishing the EXPath Library Package

You can use the Maven Release plugin to publish your applications publicly to Maven Central.

  1. You need to register to manage the groupId of your organisation on Maven Central, see: http://central.sonatype.org/pages/ossrh-guide.html#create-a-ticket-with-sonatype

  2. Assuming your Git repo is in-sync, you can simply run the following to upload to Sonatype OSS:

$ mvn release:prepare
$ mvn release:perform
  1. You need to release the artifacts on the Sonatype OSS web portal, see: http://central.sonatype.org/pages/ossrh-guide.html#releasing-to-central

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages