Code Monkey home page Code Monkey logo

hml's Introduction

Heraldic Markup Language

This project attempts to define an XML schema for describing heraldic coats of arms. The first focus is on detailing and rendering the escutcheon (the shield), in later stages this may be expanded to descriptions of the rest of the heraldic achievement.

Example 1

The following fragment of XML code:

<?xml version="1.0" encoding="UTF-8"?>
<coatOfArms xmlns="http://github.com/wlievens/heraldry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://github.com/wlievens/heraldry ../src/main/resources/xsd/heraldry.xsd">
    <shape>heater-shield</shape>
    <background>
        <division type="quarterly">
            <part position="1,3">
                <background>
                    <field tincture="or"/>
                </background>
            </part>
            <part position="2,4">
                <background>
                    <field tincture="argent"/>
                </background>
            </part>
        </division>
    </background>
    <charges>
        <ordinary type="fret" tincture="gules"/>
    </charges>
</coatOfArms>

Can be turned into the following image:

Example 1

As well as generate the following description in blazon:

Quarterly or and argent a fret gules

And yes, I am aware this example shield violates the first rule of tincture...

Example 2

It is also the intention to implement a wide selection of variations of the line, as the following contrived example already shows:

<?xml version="1.0" encoding="UTF-8"?>
<coatOfArms xmlns="http://github.com/wlievens/heraldry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://github.com/wlievens/heraldry ../src/main/resources/xsd/heraldry.xsd">
    <shape>heater-shield</shape>
    <background>
        <division type="quarterly">
            <part position="1">
                <background>
                    <field tincture="argent"/>
                </background>
                <charges>
                    <ordinary type="bend-sinister" tincture="azure" line="nebuly"/>
                </charges>
            </part>
            <part position="2">
                <background>
                    <field tincture="sable"/>
                </background>
                <charges>
                    <ordinary type="bend-sinister" tincture="or" line="invected"/>
                </charges>
            </part>
            <part position="3">
                <background>
                    <field tincture="argent"/>
                </background>
                <charges>
                    <ordinary type="bend-sinister" tincture="vert" line="wavy"/>
                </charges>
            </part>
            <part position="4">
                <background>
                    <field tincture="sable"/>
                </background>
                <charges>
                    <ordinary type="bend-sinister" tincture="gules" line="indented"/>
                </charges>
            </part>
        </division>
    </background>
</coatOfArms>

This is blazoned as:

Quarterly first argent a bend sinister nebuly azure, second sable a bend sinister invected or, third argent a bend sinister wavy vert and fourth sable a bend sinister indented gules

And rendered as:

Example 2

hml's People

Contributors

wlievens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.