This is a shortcode plugin that generates interlinear glosses as used in linguistics from an arbitrary number of lines of text in a [gloss][/gloss] block. This works basically like when you import a CSV file into a stylesheet: The first word of the first line is mapped to the first word of subsequent lines, the second word of the first line is mapped to the second word of the subsequent lines etc. You can specify a delimiting character to splice up individual lines, otherwise lines will be split at word spaces. The alignment of columns is achieved with CSS, and specifically with its floating blocks function. Since this basic functionality is hardcoded, CSS-capable RSS readers won’t break your layout. A style.css file in the plugin’s folder allows you to make further modifications; you can also add your own styling permanently by editing the style.css file in the child-theme directory of your WordPress theme. See the README.pdf file in the plugin’s folder for further demonstrations or visit the plugin’s
page on my blog, at http://benung.nfshost.com/archives/1721.
- Upload the
simple-interlinear-glossesfolder to the
- Go to ‘Add Plugin’
- Search for ‘Simple Interlinear Glosses’
- HTML tags like a and span aren’t yet supported because I need to figure out how to make the script not match punctuation inside the tags. All HTML tags but strong, b, em, i, s, strike, u, big, small, sup, sub are currently stripped from what’s inside the [gloss] block. (2012-02-15)
I’m using simple interlinear glosses for my school work blog school.jubil.us. It comes in handy a lot for marking up word for word translations.
The tag system is just about as simple as it gets and so intuitive I don’t have to look up the syntax each time I go to use it.
I wish it was standard in regular html, but until then I’m happy this wordpress plugin is available.
Contributors & Developers
“Simple Interlinear Glosses” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Fixed CSS handle’s name back to cb-gloss.
- Fixed a minor issue with !$blah vs. !isset($blah) that occurred when I updated to PHP 5.4.
- Changed the accidental ‘myStyleSheets’ to the more meaningful ‘cb-gloss’ in the title of the stylesheet ID for
- Added the
[smcp]shortcode to make text appear as small caps as defined in the plugin’s
style.cssfile also in bodies of text outside of the
- Fixed some typos in readme.txt
- Fixed some typos in README.pdf
- 2nd release
- FIX: Allow simple markup HTML tags in glosses: Do not recognize the sequence “</” as a trigger for small caps.
- FIX: HTML tags also get a zero-width space (U+200B) around them now so as not to collide with the function that turns things into small caps. Support only for basic styling tags, i.e. strong, b, em, i, s, strike, u, big, small, sup, sub. (FIXME)
- FIX: Process only |this|, but not | this | and don’t eat the |.