ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Axel Kielhorn <tex@axelkielhorn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Context to epub: itemize
Date: Tue, 17 Feb 2015 07:11:16 +0100	[thread overview]
Message-ID: <D25EC8D1-35EF-4994-BE67-C06A3A51EDF3@axelkielhorn.de> (raw)
In-Reply-To: <54E23D2D.7050306@wxs.nl>


Am 16.02.2015 um 19:55 schrieb Hans Hagen <pragma@wxs.nl>:

> 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)


Yes I know.
Let me rephrase the question:

Should the symbols used in epub be identical to those used in the pdf or should the css determine the look of the symbols?
Especially when one considers that most current ebook readers can't display MathML.

Even if I substitute the Symbols:

\definesymbol[uni1][•]
\definesymbol[uni2][–]
\definesymbol[uni3][*]
\definesymbol[uni4][·]

\setupitemgroup [itemize] [1] [symbol=uni1]
\setupitemgroup [itemize] [2] [symbol=uni2]
\setupitemgroup [itemize] [3] [symbol=uni3]
\setupitemgroup [itemize] [4] [symbol=uni4]

I get a result that neither ADE nor Calibre interprets as a list.
(Wrapping it in <ul> </ul> doesn't help.) 

Axel

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2015-02-17  6:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 16:17 Axel Kielhorn
2015-02-16 18:55 ` Hans Hagen
2015-02-17  6:11   ` Axel Kielhorn [this message]
2015-02-17  7:24     ` Epub format Was: " Keith J. Schultz
2015-02-17 20:16       ` Hans Hagen
2015-02-17 21:01         ` Keith Schultz
2015-02-18 16:54           ` Hans Hagen
2015-02-19  9:27             ` Keith Schultz
2015-02-17 22:37         ` Aditya Mahajan
2015-02-18  8:14           ` Henning Hraban Ramm
2015-02-18 14:10             ` Keith J. Schultz
2015-02-18 14:21               ` Henning Hraban Ramm
2015-02-18 16:44               ` Hans Hagen
2015-02-18 16:55           ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D25EC8D1-35EF-4994-BE67-C06A3A51EDF3@axelkielhorn.de \
    --to=tex@axelkielhorn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).