Coder Social home page Coder Social logo

pangloss's Introduction

pangloss

Provides support for interlinear glosses with Markdown example lists.

Example

The following code snippet demonstrates the most important features of pangloss:

As you can see in the following examples, pangloss is really easy to use:

(@) Jorge  llama             a  Maria.
    George calls-3s.PRES.IND to Maria
    `George calls Maria.'
(@) Aussi, vous pouvez          avoir    de multiples   exemples.
    also   you  can-2p.PRES.IND have.INF of multiple-PL example-PL
    `You can also have multiple examples.' {#ex:french}

You can even refer to examples, as in @ex:french.

(@) Here, the sentence doesn't require any gloss.
    {}
    {} 

Each example consists of three lines: an original, a word-by-word analysis, and an overall translation. Placing {#ex:...} after the translation line introduces a new label, which can then be referred to with the @ex:... syntax as in pandoc-crossref. Similar customization of labels and more advanced references are coming soon.

Changes from the original repo

As noted in an issue, pangloss does not coexist with pandoc's Numbered example lists. That is, with pangloss, pandoc's Numbered example lists notation (@) is always ignored and the list disappears in the final output.

This is undesirable because we cannot include some examples without any interlinear morpheme-by-morpheme glosses and translation (e.g. we cannot add gloss-less examples by using (@) notation).

At this time, pangloss still overrides the notation of pandoc's Numbered example lists. However, backend.py is updated and in the file the automated insertion of the single quotation marks into the translation line (3rd line of an expample) is disabled so that unwanted single quotation marks disappears when an example does not require any interlinear morpheme-by-morpheme glosses (2nd line) and translation (3rd line). In other words, we can include gloss-less examples via pangloss by adding "null" characters such as {} to the 2nd and 3rd line.

Installation

Install with:

git clone https://github.com/CLRafaelR/pangloss pangloss

Use with:

pandoc in.md -F pangloss -o out.{pdf,html}

pangloss's People

Contributors

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