Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

wikitable? #12

Open
plaguedbypenguins opened this Issue · 10 comments

6 participants

@plaguedbypenguins

is wikitable support on the roadmap? eg. none of the Products section of http://en.wikipedia.org/wiki/Coopers_Brewery is visible, as it's all in a wikitable.

@wikireader
Owner

The roadmap at the moment has templates, math, multiple languages to finish before
we will look at tables.

The problem with tables is figuring out how to display them on a small screen.

@tothimre

I have one idea, it is not the best, but i think that could fit into the concept.
if there is a table in the page there should be a link to the table that is linked to the content of the table.

The tables should be scrollable in all direction.

@koocotte

Is there any roadmap left? Can we help in any way?

@wikireader
Owner
@koocotte

Do you means coding? I'm not really a C coder, but I can try...

@wikireader
Owner

The program that runs on the WikiReader is in C
and the program that generates the data files is in Python
but it is the UI design that is the initial problem

e.g. some pages with tables:
http://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers
and this page has some column spans
http://en.wikipedia.org/wiki/List_of_elements

The present C program only uses vertical scrolling, and the datafile
it is displaying is formatted to the width of the display, For the maths display
we rotated long equations to make use of the vertical scrolling.
We originally avoided horizontal scrolling as no one seem to like it,
but maybe smart phones have changes that, the new Win8 start menu
is scrolled horizontally. If you can come up with a good table display method
and a way to navigate around it that would be really great.
How about trying to prototype the screens graphically with some PC drawing program.

regards, chris

@koocotte

I read your answer too fast when you reply and missed the last sentence, sorry.

What do you means by making a bitmap?

I think, the best way to include a table which is too large to fit in the horizontal size is to display it on a separate page with a link to it. On this new page, we can scroll in both direction without destroying the initial article layout. We also need one or more 'back' button; at a fixed position, or at the beginning and end of the "table" page.

@tothimre

IMHO it is a nice idea.

@niutech

Isn't it much easier to present tables in a "record mode", where columns become rows? E.g:

    • Language: Mandarin
    • Native speakers (in millions): 935 (955)
    • % of world population: 14.1%
    • ...
    • Language: Spanish
    • Native speakers (in millions): 387 (407)
    • % of world population: 5.85%
    • ...
@kuwanger

I decided to implement niutech's idea. The good news that on well-formed tables, it seems to produce rather decent output. The bad news is that a lot of tables are formatted heavily on appearance and don't use table headers properly. In any case, I've tested this code out on a couple wikias with much success. However, I apparently don't have the RAM (only 6GB) to process enpedia, so I don't know how well it works there. In any case, here's a patch to ArticleRenderer.py: article_renderer_table_to_records.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.