[scribus-dev] Dev a gettext plugin
Craig Bradney
cbradney at scribus.info
Sun Aug 16 16:32:07 UTC 2020
> On 15 Aug 2020, at 12:31 pm, ale rimoldi <ale.comp_06 at xox.ch> wrote:
>
> salut dimitri
>
> i just made a try with:
>
> ```py
>
> import markdown
>
> md = markdown.Markdown()
>
> markdown_str = """
> # A new Scripter API documentation
>
> Over and over, I've heard complains about the Scripter documentation
> (among other things, of course!).
>
> Since the Scribus documentation is not really free, there was not much
> I was willing / able to do.
>
> Last week, I got one more critical voice on the API documentation, and
> I've decided that it was time to see if it was possible to get to
> something sane, by exporting the API from the docstrings.
> Have fun
> a.l.e
> """
> print(md.convert(markdown_str))
>
> ```
>
> the generated html imports fine into scribus.
>
> questions:
>
> - wouldn't it be worth to improve the html importer to support what is
> not yet good? (lists...)
> - and then add the command to import html to the scripter.
>
> and, then, when we have the C++ API and a few more "relevant" features
> implement a plugin that imports markdown...
>
> if you want to go this way, i'm more than ready to collaborate...
> i'm not sure that i want to spend my time on an "hardcore" import
> plugin (otherwise i would have made it a long time ago...)
>
> ciao
> a.l.e
>
Hi Ale
I am ready to review your API proposal. Send me a URL
Markdown import should now be done with QTextDocument, with Qt 5.14+ to avoid any other library inclusion.
Craig
More information about the scribus-dev
mailing list