Generator of interlinear glossing for many mark-up languages. Conlanging.

Overview

Gloss My Gloss

A generator for interlinear glosses

This is an input/output generator for aligning linguistic interlinear gloss, for the purposes of conlanging. It is built with HTML and JavaScript with jQuery and runs in your browser at https://neonnaut.github.io/ There are several markup options for displaying on different websites.

Refer to the following documents:

https://www.eva.mpg.de/lingua/resources/glossing-rules.php

https://kbmcgowan.github.io/blog/2009/02/28/css-interlinear-glosses.html

https://bdchauvette.net/leipzig.js/

Use

Make sure to provide at least three lines in the input, with your gloss on the second last line and your translation on the last. (ZBB can work with two). In this case your input would look like this:

Astra inclinant, sed non obligant.
star.ACC.PL incline.PRS.PTCP but NEG bind.3P.PRS.ACT.IND
"The stars incline us, they do not bind us."

Any additional lines must go above the gloss line. Any of these additional lines may be marked with the "Non alignable lines" textbox. For example, if we had the input:

太陽が東の空に昇る
taiyō ga higashi no sora ni noboru
/taijoː ŋa çiŋaɕi no soɾa nʲi noboɾɯᵝ/
sun SUBJECT east POSSESSIVE sky LOCATIVE rise
"The sun rises in the eastern sky."

Then "Non alignable lines" should have a "1" to indicate not to align the first line.

HTML table

When using the HTML markup method, provide the following CSS on your website to get the desired output:

.abbrv {
   cursor: help;
 }
.sc {
  font-variant: small-caps;
  font-variant-numeric: oldstyle-nums;
  text-transform: lowercase;
}
table {
  overflow: auto;
}
table tr {
  white-space: nowrap;
}
table tr td {
  padding-right: 3px;
}

If you wish to style anything, such as use italics or bold, you may enter HTML tags on an individual word. If you wish to style an entire line, the best way is to add a class to the <tr> and add styles with CSS.

HTML Interlinear div

When using the HTML interlinear div method, provide the following CSS on your website to get the desired output:

.abbrv {
   cursor: help;
}
.sc {
  font-variant: small-caps;
  font-variant-numeric: oldstyle-nums;
  text-transform: lowercase;
}
div .gll {
  display: inline-table;
  padding-right: 10px;
}

If you haven't noticed, 'Single column lines' does not work. Even if you were to edit the output, a div without the .gll class will only work at the end or the beggining of a block of .gll divs.

Plain Text

Make sure to display the text in a fixed-width font, such as including the text in a <pre> element. Be careful when using the small caps option, as the characters may not display correctly on all devices, especially F, S, X, and Q. My advice is to not use these characters in WYSIWYG editors, but the option is there.

Latex

Latex's gb4e package takes some fiddling around to accept more than three lines, therefore this generator only outputs three lines.

make sure to put \usepackage{gb4e} in your preamble. And if you are using small caps, the font you are using has to support it.

ZBB

This generator outputs the ZBB Board's gloss markup, if you provide more than two lines, the third last line must not be empty!

Reddit

You must ue Reddit's "Markdown" mode and not it's "Fancy pants editor". This will output your text into a so-called fixed-width-font in it's codeblock, and the last line out of the codeblock. Reddit's codeblock doesn't seem to have a fixed width font for all chaacters, at least on the devices I tested on. So if you use certain IPA characters such as ɨ, your columns will come out of alignment and there is nothing you can do about it.

Wiki tables

If your wiki does not have the abbr template, you will need to start a page called template:abbr, and put the following code in it:

<abbr {{#if:{{{class|}}}|class="{{{class}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</abbr><noinclude>{{Documentation}}
</noinclude>

And after saving, if your wiki asks for documentation, provide this link: https://en.wikipedia.org/wiki/Template:Abbr

TODO

  • Accept abbreviation input with delimiters in them e.g: "Q.WH, Interogative question particle" (unnecessary?)
  • Get in-built abbreviations from csv file (difficult, may need third party addon, and might be slower for user)
  • Style lines bold or italics option (unnecessary and could croud the input layout?)
You might also like...

Quickly create console debugging information for multiple languages.

Quickly create console debugging information for multiple languages.

Debugger for Console Quickly create console debugging information for multiple languages. This plugin uses antfu/starter-vscode as the initial templat

Oct 21, 2022

This project is about building a web application to translate languages using language translator API.

This project is about building a web application to translate languages using language translator API.

Language Translator App A web application to translate multiple languages Want to see live preview » ✧ View Demo ✧ Report Bug ✧ Getting Started ✧ Inst

Dec 19, 2022

Add multiple languages support for RPG Maker MV games.

============================================================================ __ __ _ _ _ _ |

Dec 19, 2022

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.

Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.

Crayon Syntax Highlighter Supports multiple languages, themes, fonts, highlighting from a URL, local file or post text. Written in PHP and jQuery. Cra

Nov 26, 2022

Collection of benchmarks of functional programming languages and proof assistants.

Collection of benchmarks of functional programming languages and proof assistants.

Functional Benchmarks This repository contains a collection of benchmarks of functional programming languages and proof assistants. It is split in two

Dec 12, 2022

Create your frontend website in multiple languages by using this class.

Javascript Langauge Selector Create your frontend website in multiple languages by using this class. Features Simple but yet powerful. Enable RTL auto

Dec 14, 2022

Brainfuck implementations each other in different languages.

Brainfuck implementations Brainfuck implementations in each other in different languages. What is brainfuck? Brainfuck is an esoteric programming lang

Nov 15, 2022

This is a boilerplate for creating your own languages for various use cases. You can even create your own programming language from scratch!

Bootstrap compiler This is a bootstrap compiler that can be used to compile to compiler written in the target language. You can write a compiler in th

Nov 14, 2022

A web component that allows you to run high level programming languages on your websites (static websites included!)

Code-Runner-Web-Component A web component that allows you to run high level programming languages on your website via the public Piston API Show your

Dec 16, 2022
Comments
  • Feature request: option to add link to the tool

    Feature request: option to add link to the tool

    I've started using this tool to create glosses on my website, and I'm impressed with what I've seen so far. I want to acknowledge your contribution, so I've included a link to the page below the gloss: Gloss My Gloss Could there be an option to have the tool generate something like this, so I don't have to copy it for each gloss?

    opened by def-gthill 4
Releases(1)
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Vite plugin to client bundle i18next locales composited from one to many json/yaml files from one to many libraries. Zero config HMR support included.

vite-plugin-i18next-loader yarn add -D vite-plugin-i18next-loader Vite plugin to client bundle i18next locales composited from one to many json/yaml f

AlienFast 4 Nov 30, 2022
It's an AI Tag (Prompt) generator for magic drawer! We have many tags and support to generate prompts easily!

魔导绪论 AI 魔咒生成器, 使用由 B 站 UP 主 十二今天也很可爱 提供的 4 万个 tag 并提供中文检索,并提供了魔咒社区方便魔法师们直接复制生成。永远免费,永无广告,无商业。 v2 版本更新内容 使用 Netlify 的云函数提供更为快速的社区数据操作!(暂时不知道花费多少) 查看自己的

江夏尧 28 Jan 1, 2023
Obsidian text generator Plugin Text generator using GPT-3 (OpenAI)

is a handy plugin for Obsidian that helps you generate text content using the powerful language model GP

null 356 Dec 29, 2022
Types generator will help user to create TS types from JSON. Just paste your single object JSON the Types generator will auto-generate the interfaces for you. You can give a name for the root object

Types generator Types generator is a utility tool that will help User to create TS Interfaces from JSON. All you have to do is paste your single objec

Vineeth.TR 16 Dec 6, 2022
▶ A tool that helps developers to translate JSON to different languages with ease

JSON translator Link ?? : https://json-translator.vercel.app/ ?? The information you have entered will not be kept on this site. ?? Translation is usi

amine louni 6 Mar 6, 2022
JIT Compiler is a open source online code compiler. You can run more than 40+ most popular programming languages in your browser just-in-time using jitcompiler.

JIT Compiler is a open source online code compiler. You can run more than 40+ most popular programming languages in your browser just-in-time using jitcompiler.

Rajkumar Dusad 36 Jan 5, 2023
Flexible survey webapp with multi-languages support

Civic-echo Civic-echo is a light app used for dynamic survey generation based on YAML files. Coupled with DeepL, it can handle multiple languages easi

Octree 4 Jul 4, 2022