Demi flèche / half arrow

Asked by DELALANDRE

How ca i made half arrow, or can i create my own arrow and marker and add it in list ?
JJDai, thanks

Question information

Language:
French Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
mahfiaz
Solved:
Last query:
Last reply:
Revision history for this message
Best mahfiaz (mahfiaz) said :
#1
Revision history for this message
DELALANDRE (jjd) said :
#2

Thanks for answer, i don't know python, but i try this solution.
For information it is to do origami diagram like this:
http://www.passion-origami.com/images/Image/File/DELALANDRE/Gland%20by%20Jean-Jacques%20DELALANDRE.pdf
and i need half-arrow for describe specific action.
JJD

PS: sorry fo my badely english

Revision history for this message
DELALANDRE (jjd) said :
#3

Sorry it's not python lol
I hve look in the markers.svg file, and i think it is the good way.
 i try to do half-arrow in stating existing arrow.
JJD

Revision history for this message
DELALANDRE (jjd) said :
#4

Wonderfull, i have add this code in the "markers.svg" file:

        <!-- 1 half arrow -->
  <marker style="overflow:visible" id="Half-Arrow1Lstart" refX="0.0" refY="0.0" orient="auto" inkscape:stockid="Half-Arrow1Lstart">
      <path transform="scale(0.8) translate(12.5,0)" style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none" d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 z "/>
    </marker>

to do it i proced like this:

I have make a copy of one existing arrow:
    <!-- 1 Medium -->
    <marker style="overflow:visible" id="Arrow1Mstart" refX="0.0" refY="0.0" orient="auto" inkscape:stockid="Arrow1Mstart">
      <path transform="scale(0.4) translate(10,0)" style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none" d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "/>
    </marker>

I change the "id" and "inkscape:stockid" to "Half-Arrow1Lstart"
and i have modified
 d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
to
 d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 z

I save athe file nd restart inskape, and it is magic, i have my alf-arrow

it is exactly that i needed, thanks you mahfiaz

Revision history for this message
DELALANDRE (jjd) said :
#5

Thanks mahfiaz, that solved my question.