User:Silviolorusso/mipsum

From XPUB & Lens-Based wiki

MIPSUM, an Inkscape "lorem ipsum" plugin for learning while practicing

Mipsum-before.png Mipsum-after.png


WHAT?

A plugin that generates place-holder text randomly taken from the FLOSS Manual for Inkscape.


HOW?

1. Install the plugin putting the following files in your Inkscape extension folder ($HOME/.config/inkscape/extensions/ or /usr/share/inkscape/extensions):

file file

2. Create a textbox (or more) and write the word "mipsum" followed (without any space) by the number of characters you want to generate.

3. In your Inkscape, go to Extensions>Python>Mipsum. It will generate text taken from the manual for Inkscape.

4. Learn new tricks and techniques.


CODE

helloworld.inx describes your extensions to Inkscape.

<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
        <_name>Mipsum</_name>
        <id>pzi.helloworld</id>
        <dependency type="executable" location="extensions">mipsum.py</dependency>
    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu _name="Python"/>
        </effects-menu>
    </effect>
    <script>
        <command reldir="extensions" interpreter="python">mipsum.py</command>
    </script>
</inkscape-extension>