Gloss My Gloss

Options










Gloss My Gloss Copyright (c) 2021 - 2026 'Neonnaut', MIT License

Linguistic Gloss formatter, "Gloss My Gloss" also lives on my website neonnaut.neocities.org/glossmygloss

Instructions

This tool will format linguistic interlinear gloss into ordered columns, and also assign hover text for your linguistic abbreviations.

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

Refer to the following source on interlinear gloss: The Leipzig Glossing Rules, Max Planck Institute for Evolutionary Anthropology Department of Linguistics.

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. (The ZBB option can work with just two). In this case your input would look like this:

   Odadan   hızlı     çıktım.
   room-ABL speed-COM go.out-PFV-1sg
   "I left the room quickly."

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 following input and wanted to keep the first two lines unaligned just like the last line:

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

Then "Non alignable lines" should have "1, 2".

You can do multiple translation pieces at a time by separating the pieces with an empty line.

You can set up your own custom abbreviations and separators. Your new definitions will overwrite any in-built 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.

Plain Text

To align the plain text output properly you need to use a fixed-width font. You can do this by using 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 using plain text, but the option is there.

HTML Table

When using the HTML markup method, use 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 element, such as with 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, use 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 beginning 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 generates markup that can be used on vBullitin boards such as The ZBB or CBB. 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 create 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

Reddit Table

This outputs to reddit.com "headerless" table format. What fun. Make sure to switch from it's so-called "Rich Text Editor" to "Markdown Mode" before you paste the output into that website's submission UI. This method was working as of December 2024 but perhaps something will change that will break this again.