cfm / translation-viewer

Layout-independent display of bilingual texts for the Web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

translation-viewer

In print, a bilingual edition can show its original and its translated texts on facing pages for comparison. On the Web, even when lines are narrow enough to display two paragraphs or stanzas side by side, there is often no easy way to emulate facing pages without modifying the page's overall layout.

translation-viewer aims to solve this problem. For now, its goal is to display a single poem in one or more translations. Future versions may add

  • prose display,
  • pairwise comparison of editions (not just original and translation), and
  • explicit WordPress support.

Demonstration

See enclosed example.html, or examine a live version.


Dependencies

Acknowledgments

translation-viewer includes Dennis McHenry's "New CSS for Formatting Poetry", for which I'm grateful.


Getting Started

translation-viewer assumes that you have an original text of n stanzas and m >= 1 translations also of n stanzas. See example.html for how to format this text for translation-viewer to display.

About

Layout-independent display of bilingual texts for the Web.

License:MIT License


Languages

Language:CSS 57.8%Language:JavaScript 42.2%