hi greg, > On 10/18/2013 08:00 AM, a.l.e wrote: >> dear scribusers, >> >> tomorrow, saturday october 18th, i plan to work on a markdown loader for >> scribus. >> >> i have the boilerplate on my laptop and a readme on github explaining >> what i want to achieve: >> >> https://github.com/aoloe/scribus-plugin-gettext-markdown >> >> as soon as i get back home this evening, i'm pusing the trivial code i >> already have (it reads the content as raw text). >> >> >> for tomorrow, the plan is to implement a parser based on some resources >> i've found on the net: >> >> https://github.com/aoloe/scribus-plugin-gettext-markdown/issues/3 >> >> but i've never created a real parser and i would welcome if anybody >> would show up and help me with this effort! >> >> and i'm glad for any hint i can get! >> > Although I haven't been able to find all the bits, there is some minimal > markdown in Scribus that get used to make the information tabs in About > Scribus ... using plain text files as input. >
thanks for the hint! i've found http://scribus.net/svn/Scribus/trunk/Scribus/scribus/ui/about.cpp ... and i noticed a long comment by myself explaining how the about file get's read... i've had a fast look at the code and it looks like it's a mixture of parsing line by line and a set of replaces. not 100% what i need but i'll have a deeper look. i've also alread had a look at the formatted text loader (line by line, also with some regexp) and the html importer (which uses a real -- existing -- xml parser...). we will see how far i get! ciao a.l.e
