Latest changes

After the Easter break I’m going on to fix rendering bugs. In order to do that I have to finally add support for #expr and #ifexpr “templates”. Basically you can use them to do calculations. Samples are the pages dealing with years (i.e.e 2002). At the top of the pages is an area which list previous and next years, decades and centuries. Every link in this header is calculated based on the page’s name. Compare your screen layout and the one online and you will see what I mean. So Wiki2Touch is now able to render them as well.

Calculation are use somewhere else, too. I.e. the English article about New York uses them to display changes of the population in percent. The current version is not displaying anything here but the next will.

That was one of the last great challenges. Except for “math” support the rest is even simpler. I’m really glad to finally have that also implemented. I’m continuing iron out a few open rendering issues.

There is currently no new version available. The current is ten day “old” and still fine and stable. But you may have a look at my “work in process” list over at Google code if you like.

5 Responses to “Latest changes”

  1. Sanford (leaving reply from Sydney) Says:

    The work in progress page looks exciting to me! Really looking forward to your next version. I propose that we open a new thread for reporting template problems found in 0.6x to keep things tidy, do you agree?

  2. Tom Says:

    Sanford-

    yes sure. Having a new thread for the next version is fine for me.

    Ironing out the remaining issues is a hard bread. Usually hard to track down and then either very simple to solve (German periodic system) or very hard to do (English Al Gore). No middle ground. At least I know why that happens. That’s worth a lot.

    -Tom

  3. Achim Says:

    Just out of curiosity: Do you have any ideas about math support yet? I figure it’ll be a very complex beast… But there are a lot of pages that look really bad without it.

  4. Tom Says:

    Achim-

    I don’t have plans to add it in the near future. But…

    From the technical standpoint adding support for the

    tags is easy. Everything is already there:

    * Parse out the contents of the
    -tags
    * Build a hash value somehow which will be used as an id (or something similar). An MD5 hash using the content stream should do it.
    * Feed the text to TeX and let it produce an image out of it
    * Pack theses images to Wiki2Touch style “math.bin” file, the utility pack.exe works already great for that
    * The final change would be to let the parser exchange the -Tags with a image tag, using the hash value as the filename or so for the image.

    One of the hard parts, which can really not be done by anyone, is installing TeX and setting it up to produce the images.

    But if you like to produce such a “math.bin” go ahead. Let me know what hash coding you’ve used I will add that to the parser. It’s simple enough, the code for handling arbitrary tags is already in.

    So let me know once you have such a “math.bin” file.

  5. Achim Says:

    Tom-
    that would indeed be a nice job, but I doubt that I’ll have the time for it in the near future. Quite busy carrying the baby around :-)

    On the other subject Sanford brought up: Maybe its even better to create a separate section in the forum for rendering problems (or at least split feature requests from problem reports), and then have a new thread for every issue? That way you could easily comment on specific issues, and you could track easier for yourself which ones are already fixed? Maybe that would be a cleaner way?

Leave a Reply