[NTG-context] Context to epub: itemize

Hans Hagen pragma at wxs.nl
Mon Feb 16 19:55:41 CET 2015


On 2/16/2015 5:17 PM, Axel Kielhorn wrote:
> Hi,
>
> I'm trying to generate epub from ConTeXt and I couldn't get the itemize environment to work.
>
> I follow http://wiki.contextgarden.net/ePub and get the structure described but when I look into the xhtml, there is no itemize environment. (At least no with Safari, Firefox or Calibre.) When use vi I see something that looks like my items in a very complex form.
>
> I was expecting something like
>
> <ul>
>    <li>   </li>
>    <li>   </li>
> </ul>
>
> but i see
>
> <div class="itemgroup itemize level-1 symbol-1">
>    <div class="item">
>      <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>•</m:mo></m:math></div>
>      <div class="itemcontent">Listenpunkt 1</div>
>    </div>
>    <div class="item">
>      <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>•</m:mo></m:math></div>
>      <div class="itemcontent">Listenpunkt 2
>        <div class="itemgroup itemize level-2 symbol-2">
>        <div class="item">
>        <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>−</m:mo></m:math></div>
>      <div class="itemcontent">Listenpunkt 2.1</div></div>
>      <div class="item">
>      <div class="itemtag"><m:math display="inline" xmlns:m="http://www.w3.org/1998/Math/MathML"><m:mo>−</m:mo></m:math></div>
>      <div class="itemcontent">Listenpunkt 2.2</div></div></div></div>
>      </div>
>
> Shouldn't the itemtag definition come from the default.css instead of using MathML?
>
> itemgroup[symbol="1"], div.itemgroup.symbol-1 { list-style-type : disc ; }
>
> I’m using: mtx-context     | current version: 2015.02.03 23:55
>
> and
>
> context --script epub --make epub_mwe
>
> to create the epub.

the bullets come from math fonts (currently, awaiting additional symbols 
in the text fonts)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list