Linguistic Gloss Generator
GlossMyGloss Copyright (c) 2021 - 2023 'Neonnaut', MIT License
Linguistic Gloss Generator, "GlossMyGloss" also lives on my website neonnaut.neocities.org/glossmygloss
Instructions
This tool will format linguistic interlinear gloss into ordered columns, and also generate hover text for linguistic abbreviations.
If you discover any bugs or issues, please go to Neonnaut.github.io and create a new issue.
Refer to the following information on interlinear gloss is and it's purpose:
Lingua Glossing Rules Lingua Glossing Rules 2Setting 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:
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 following input and wanted to keep the first two lines unaligned just like the last line:
太陽が東の空に昇る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 "1, 2". 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."
You can then set up your own custom abbreviations and seperators. As many abbreviations for grammatical elements already have conflicts with each other, your new definitions will overwride 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 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 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's "headerless" table format. What fun. Make sure to switch from the "Fancy Pants Editor" to "Markdown Mode" before you paste the output into that website.