Linguistic Gloss Generator

Input to be Glossed

Generate Markup

Output


Options








Instructions

This tool is designed for formatting linguistic interlinear gloss with constructed languages in mind. As many abbreviations for grammatical elements already have conflicts with each other, new definitions can be set that can overwrite individual definitions. It should be noted that this tool saves the data of the input to the "local storage" of your browser for the next time you visit this page.

If you find any bugs or issues, please go to github.com/Neonnaut/Neonnaut.github.io and create a new issue.

You may refer to the following information on what interlinear gloss is and it's purpose:

Lingua Glossing Rules
CSS Interlinear Glosses

Setting Up The Input

Be sure to provide at least three lines in the input, with your gloss on the second last line and your translation on the last line. (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" setting. 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."

And wanted to make sure the first line stay unchanged, then "Non alignable lines" should have a "1" to indicate not to break the origanl Japanese into words. If all goes well you should have something that looks like this:

太陽が東の空に昇る 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."

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 the small caps option, but the option is there.

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 the table, such as italics or bold, use css classes on an individual word. If you wish to style an entire line, the best way is to add a class to <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; }

'Single column lines' does not work with this method. 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.

Latex

Using Latex's gb4e package, this method normally takes only three lines, therefore this generator only configures 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 small caps.

ZBB

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

Wiki Table

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

<abbr title="{{{2}}}">{{{1|[?]}}}</abbr><noinclude>{{documentation}}</noinclude>

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