Theiling Online    Sitemap    Conlang Mailing List HQ   

Re: A better way to show interlinears

From:Benct Philip Jonsson <conlang@...>
Date:Wednesday, February 21, 2007, 7:33
David J. Peterson skrev:
 > Taliesin: << I came across
 > <http://arimah.beoch.net/misc/cen_theboywho_intlin.html>
 > the other day. Notice how neither <table>'s nor <pre>'s
 > have been used, and that (if your browser is new enough)
 > if you resize the browser window, the interlinears will
 > still fit on the line, no horizontal scrolling!
 >  >>

What difference does

:    .intlin .orig, .intlin .ipa, .intlin .bdn, .intlin
:    .trans {display: block; margin: 2px 0;}

make? I guess it is what makes everything lined up?

 > ...
 >
 > Wow. That's impressive. Of course, as Henrik has reminded
 > us, there are some that don't use stylesheets (and still
 > some that don't use javascript), so that's something to be
 > aware of. I can't get by without my stylesheets, though,
 > so this looks pretty good!

It is unreadable because it shows up like this

:    Varcyracˈvarkʉrakvarc-y-racplace-inomsg-at

with stylesheets turned off, but if you insert a <span>

:    <span class="separator>; </span>

at the end of each field <div> like this:

:   <div>Varcyrac<span class="separator">; </span></div>
:   <div>ˈvarkʉrak<span class="separator">; </span></div>
:   <div>varc-y-rac<span class="separator">; </span></div>
:   <div>place-INOMSG-at<span class="separator">; </span></div>

and then set the style

:   span.separator { display: none; }

things will look like this with stylesheets turned off:

:    Varcyrac; ˈvarkʉrak; varc-y-rac; place-INOMSG-at;

but the semicolons and following spaces will not be visible when
stylesheets are turned on!

Now if only someone would write a Perl script to convert a
semicolon-separated text file into the correct HTML...
(I guess I could do it *after* my exam this saturday
-- ne inducatis me in temptatione!)
--
/BP 8^)>

Benct Philip Jonsson -- melroch at melroch dot se

--

"Ge dig, Jedi!"
                 -- A Sith from Gothenburg

Reply

Larry Sulky <larrysulky@...>