AndrejLojdl

Joined 3 May 2013
3,096 bytes added ,  3 May 2013
no edit summary
No edit summary
No edit summary
Line 77: Line 77:
* Please provide a rough estimated timeline for your work on the task.
* Please provide a rough estimated timeline for your work on the task.
----
----
I’m choosing to add TeX/LaTeX markup to text objects in OpenGL plots as my project for this year of GSoC. I would like to build my solution based on the approach used by a similar effort in the matplotlib community: http://matplotlib.org/users/usetex.html
The solution will first extract the LaTeX formatting from the code, create a TEX file, which will be then converted to a DVI file using the LaTeX system. Then using dvipng the DVI file will be converted to a PNG file, and ‘pasted’ onto the OpenGL rendered graph.
Rough estimated timeline for my work:
Week 0 - (28.05 ÷ 16.06)  - Preparation
During the period before coding (where students get to know mentors), I will read source, fix a few bugs, and prepare all things necessary for this project.
Week 1 - (17.06 ÷ 23.06) - Prepare for cooperation/work
Discussing ideas and possible solutions with my mentor. How often and by which means will we communicate. Create a repository if necessary, set up everything needed, and start coding.
Week 2 - (24.06 ÷ 30.06) - Extracting LaTeX formatting of title and wasp labels
Develop the extraction code for LaTeX formatting from the m-file, which will extract formatting of title and wasp labels from source code. And then transform it to tex file for further usage.
Week 3/4 - (1.07 ÷ 14.07) - Connecting our system with LaTeX generator
Connecting given system with LaTeX generator to generate the labels. We need to make sure that after extraction, LaTeX generator is run. And that it will produce dvi file for conversion to image file. 
Week 5 - (15.07 ÷ 21.07) - Rendering graphs
The dvi file should be converted to png image via dvipng part of standard LaTeX generator. Implement formating of titles and wasp labels directly to OpenGL.
Week 6 - (22.07 ÷ 27.07) - Testing
The aim of this week will be to test the solution, find bugs and fix them, refactoring and revision of the solution layout/architecture. Make sure that all possible LaTeX formatting tags work correctly, with OpenGL rendering.
Mid/term evaluation - (29.07 ÷ 1.08)
Week 7/8 - (2.08 ÷ 18.08) - Position extraction
At this point, the system should be functional. So next part will be to extract the position of the text (formulas and legends) from source code. This information is needed to properly place the PNG image on the final image (graph).
Week 9/10 - (19.07 ÷ 1.09) - Size extraction
The main problem with converting LaTeX formatted text to PNG image will be with size. Size of the text and size of rendered graph have to be kept in sync - font size must be corrected according to size of image (rendered graph).
Week 11 - (2.09 ÷ 8.09) - Configuration
So far we would have everything we need for OpenGL rendering with LaTeX formatting. However, it would be useful to have some way of adding default LaTeX formatting for text, which would be applied to every text rendered via LaTeX. So this part will be about making that possible.
Week 12  (9.09 ÷ 16.09) - Clean up
As recommended, I will use the last week for writing documentation, polishing code, adding comments and testing.
13

edits