Re: Tabs for languages
Hoi,
If it becomes ugly after 15 languages, consider that there are something
like over 7000 languages out there. This is not taking into account dialects
and other linguistic entities that would make for something like over
30.000.
Thanks,
GerardM
On Thu, Aug 14, 2008 at 12:48 AM, Conrad Irwin
<conrad.irwin <at> googlemail.com>wrote:
> It can be done with javascript, I've done it on en.wiktionary. However the
> tool that does this ([[en:User:Conrad.Irwin/parser.js]]) does way too many
> other things. I ran into a peculiar bug with the # links to each section -
> but I'm sure if I were to roll it out again it could be resolved.
>
> The parsing of the page is fairly easy to do, assuming that all language
> headers are <h2>, it's just a case of iterating over the whole document and
> moving nodes into boxes, tabbing between boxes is trivial to implement in
> javascript. The only issue occurs if you expect to get a language heading
> within a box, in which case you have to parse recursively which is much
> tougher.
>
> The other thing to think about is Category links, do you want to split them
> into languages too, that could be the trickiest bit.
>
> It becomes a little ugly after 15 or so languages, as the bar of tabs
> begins
> to take up a noticeable amount of the screen space, and so the useful
> information gets pushed further down out of sight.
(Continue reading)