kahunamoore / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 1 forks source link

wish / question: bullet lists / enumeration #513

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

is it possible to have bullet lists in svg-edit as a text element?
 * sentence
 * sentence

or enumbered?
 1. sentence
 2. sentence

Original issue reported on code.google.com by rb.p...@gmail.com on 20 Mar 2010 at 11:49

GoogleCodeExporter commented 9 years ago
There are two ways to approach this:

  * embed HTML inside SVG (via foreignObject) and use HTML list elements
  * use SVG:text elements and handle the logic of the bullets/numbers ourselves

Not sure what the right approach will be.  Last time I tried the first one, I 
wasn't
pleased with the state-of-the-art in browsers today.  Might take some time.

Original comment by codedr...@gmail.com on 20 Mar 2010 at 3:07

GoogleCodeExporter commented 9 years ago
I guess that, if content-editable support in browsers wasn't up to snuff, the 
logical
thing to do would be to change the default text in the foreignObject tool. 
Instead of
a snippet of MathML, we could have something like

<foreignObject>
  <div xmlns="http://www.w3.org/1999/xhtml">
    <ul>
      <li>Point</li>
    </ul>
  </div>
</foreignObject>

Original comment by jacques....@gmail.com on 20 Mar 2010 at 4:53