From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90666 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Now that I have something working on mkiv, I'd like to try ePUB Date: Wed, 18 Mar 2015 12:11:16 +0100 Message-ID: <05ADD5D5-EAA8-4EFA-8908-3AA794EFC31A@rna.nl> References: <296DA4CC-C4C1-4792-A90C-B72CF5CC0F47@rna.nl> <55084D72.5010800@wxs.nl> <3D1B4032-B212-4DE8-A965-6369DC9908F3@rna.nl> <5508D166.8060002@wxs.nl> <5D4ACBA4-46BB-4ABD-A34C-E3D0088C45DF@rna.nl> <55092D72.2060509@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="===============0637110174==" X-Trace: ger.gmane.org 1426677163 10066 80.91.229.3 (18 Mar 2015 11:12:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2015 11:12:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 18 12:12:29 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YYBtj-0004Kw-Ea for gctc-ntg-context-518@m.gmane.org; Wed, 18 Mar 2015 12:12:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B6D5110218 for ; Wed, 18 Mar 2015 12:12:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id X9bNah7xxV2U for ; Wed, 18 Mar 2015 12:12:15 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CDF1F1022F for ; Wed, 18 Mar 2015 12:11:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D8B8101EA for ; Wed, 18 Mar 2015 12:11:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hqr8sudty35x for ; Wed, 18 Mar 2015 12:11:28 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id C91FD101E8 for ; Wed, 18 Mar 2015 12:11:24 +0100 (CET) Original-Received: from mail.rna.nl (D57D7632.static.ziggozakelijk.nl [213.125.118.50]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2IBBMaa016105 for ; Wed, 18 Mar 2015 12:11:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id 7244215380DE for ; Wed, 18 Mar 2015 12:11:22 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LRQ3xSBV-WNd for ; Wed, 18 Mar 2015 12:11:18 +0100 (CET) Original-Received: from luna.fritz.box (a82-93-73-222.adsl.xs4all.nl [82.93.73.222]) by mail.rna.nl (Postfix) with ESMTPSA id 09FA615380C5 for ; Wed, 18 Mar 2015 12:11:17 +0100 (CET) In-Reply-To: <55092D72.2060509@wxs.nl> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.118.50; country=NL; region=North Brabant; city=Tilburg; latitude=51.5555; longitude=5.0913; http://maps.google.com/maps?q=51.5555,5.0913&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01O4XbmIp - 9907991a2df0 - 20150318 (trained as not-spam) Received-SPF: none (filter4-ams.mf.surf.net: domain of gerben.wierda@rna.nl does not designate permitted sender hosts) receiver=filter4-ams.mf.surf.net; client-ip=213.125.118.50; envelope-from=; helo=mail.rna.nl; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90666 Archived-At: --===============0637110174== Content-Type: multipart/alternative; boundary="Apple-Mail=_2ED2AD8B-5EF1-45A9-882E-603A13A1E608" --Apple-Mail=_2ED2AD8B-5EF1-45A9-882E-603A13A1E608 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 18 Mar 2015, at 08:46, Hans Hagen wrote: > On 3/18/2015 7:34 AM, Gerben Wierda wrote: >> On 18 Mar 2015, at 02:14, Hans Hagen > > wrote: >>=20 >>> On 3/17/2015 10:33 PM, Gerben Wierda wrote: >>>> On 17 Mar 2015, at 16:51, Hans Hagen >>> > wrote: >>>>=20 >>>>> On 3/17/2015 3:41 PM, Gerben Wierda wrote: >>>>>> Nobody? >>>>>>=20 >>>>>> On 15 Mar 2015, at 22:12, Gerben Wierda >>>>> > wrote: >>>>>>=20 >>>>>>> Now that I have my book project basically running on mkiv (the >>>>>>> layout probably has a few problems left, the main one currently >>>>>>> being extra whitespace after a chapter heading compared to = mkii), >>>>>>> I=92d like to try producing ePUB from it. >>>>>>>=20 >>>>>>> ConTeXtgarden says I have to add a backend and points me to the >>>>>>> info on the standard project structure (which I use), but there = I >>>>>>> don=92t find anything about a backend. The extended example says >>>>>>> that starting january 2015, things have changed with ePUB, which >>>>>>> probably also applies to me as I only recently started with a >>>>>>> fresh download of a current ConTeXt mkiv. >>>>>>>=20 >>>>>>> So, can someone tell me what I need to do to get a basic ePUB = output? >>>>>=20 >>>>> \setupbackend >>>>> [export=3Dyes] >>>>>=20 >>>>> more on wiki >>>>=20 >>>> The wiki doesn=92t really help. Am I supposed to create another = product >>>> file in =85/products? >>>=20 >>> no, just enable it ... export files end up in a subpath >>=20 >> I did add this to the environment file and tried to create an ePub = for >> the whole book and for an individual chapter, but no success yet: >>=20 >> luna-wifi:chapters gerben$ (. /usr/local/src/ConTeXt/tex/setuptex && >> mtxrun --script epub --make c_loosely.specification) >> Setting "/usr/local/src/ConTeXt/tex" as ConTeXt root. >>=20 >> mtx-epub | unknown specificaton file >> 'c_loosely.specification-export/c_loosely.specification-pub' for >> 'c_loosely.specification' >> luna-wifi:chapters gerben$ (. /usr/local/src/ConTeXt/tex/setuptex && >> mtxrun --script epub --make prd_book.specification) >> Setting "/usr/local/src/ConTeXt/tex" as ConTeXt root. >>=20 >> mtx-epub | unknown specificaton file >> 'prd_book.specification-export/prd_book.specification-pub' for >> 'prd_book.specification' >>=20 >>=20 >> What am I missing? What is a specification file? >=20 > you process the tex file as normal .. that will produce a = specification file that will be used if you use mtxrun --script epub = later (the call is mentioned at the end of a tex run that has the export = enabled) Ha, I=92ve got my first ePUB! (. /usr/local/src/ConTeXt/tex/setuptex && context --mode=3Deditor = ../products/prd_book.tex) (. /usr/local/src/ConTeXt/tex/setuptex && mtxrun --script epub --make = "prd_book") Now, it=92s time to see how I can tweak the ePUB. Things I would like to do: - The quotes that now appear on the LHS page facing the first page of a = chapter should instead appear on the top of the RHS new chapter page = above the heading - manage footnotes. Probably best is to have them at the end of the = chapter when producing for ePub. Basically, I need to know what to do if = the structure of my document differs between PDF and ePUB. - manage the index (empty now) - manage bibliographic references (empty now) And of course I need to look into CSS and stuff to create a nice ePUB G >=20 > Hans >=20 >=20 > ----------------------------------------------------------------- > 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 > ----------------------------------------------------------------- > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_2ED2AD8B-5EF1-45A9-882E-603A13A1E608 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 On 18 = Mar 2015, at 08:46, Hans Hagen <pragma@wxs.nl> wrote:

On 3/18/2015 7:34 AM, Gerben Wierda = wrote:
On 18 Mar 2015, at 02:14, Hans Hagen = <pragma@wxs.nl
<mailto:pragma@wxs.nl>> = wrote:

On 3/17/2015 10:33 PM, Gerben = Wierda wrote:
On 17 Mar 2015, at 16:51, = Hans Hagen <pragma@wxs.nl
<mailto:pragma@wxs.nl>> = wrote:

On 3/17/2015 3:41 PM, Gerben = Wierda wrote:
Nobody?

On 15 Mar = 2015, at 22:12, Gerben Wierda <Gerben.Wierda@rna.nl
<mailto:Gerben.Wierda@rna.nl>&g= t; wrote:

Now that I have my book = project basically running on mkiv (the
layout probably has a few = problems left, the main one currently
being extra whitespace after a = chapter heading  compared to mkii),
I=92d like to try producing = ePUB from it.

ConTeXtgarden says I have to add a backend and = points me to the
info on the standard project structure (which I = use), but there I
don=92t find anything about a backend. The extended = example says
that starting january 2015, things have changed with = ePUB, which
probably also applies to me as I only recently started = with a
fresh download of a current ConTeXt mkiv.

So, can = someone tell me what I need to do to get a basic ePUB = output?

\setupbackend
[export=3Dyes]
more on wiki

The wiki doesn=92t really help. = Am I supposed to create another product
file in = =85/products?

no, just enable it ... export files = end up in a subpath

I did add this to the = environment file and tried to create an ePub for
the whole book and = for an individual chapter, but no success yet:

luna-wifi:chapters = gerben$ (. /usr/local/src/ConTeXt/tex/setuptex &&
mtxrun = --script epub --make c_loosely.specification)
Setting = "/usr/local/src/ConTeXt/tex" as ConTeXt root.

mtx-epub =        | unknown specificaton = file
'c_loosely.specification-export/c_loosely.specification-pub' = for
'c_loosely.specification'
luna-wifi:chapters gerben$ (. = /usr/local/src/ConTeXt/tex/setuptex &&
mtxrun --script epub = --make prd_book.specification)
Setting "/usr/local/src/ConTeXt/tex" = as ConTeXt root.

mtx-epub =        | unknown specificaton = file
'prd_book.specification-export/prd_book.specification-pub' = for
'prd_book.specification'


What am I missing? What is a = specification file?

you process the tex file as = normal .. that will produce a specification file that will be used if = you use mtxrun --script epub later (the call is mentioned at the end of = a tex run that has the export = enabled)

Ha, I=92ve got my = first ePUB!

(. = /usr/local/src/ConTeXt/tex/setuptex && context = --mode=3Deditor  ../products/prd_book.tex)
(. = /usr/local/src/ConTeXt/tex/setuptex && mtxrun --script epub = --make "prd_book")

Now, it=92s time to = see how I can tweak the ePUB.

Things I would = like to do:
- The quotes that now appear on the LHS page = facing the first page of a chapter should instead appear on the top of = the RHS new chapter page above the heading
- manage footnotes. = Probably best is to have them at the end of the chapter when producing = for ePub. Basically, I need to know what to do if the structure of my = document differs between PDF and ePUB.
- manage the index = (empty now)
- manage bibliographic references (empty = now)
 And of course I need to look into CSS and stuff to = create a nice ePUB

G


Hans


------------------------------------------------= -----------------
         = ;            &= nbsp;           &nb= sp;       Hans Hagen | PRAGMA = ADE
           &= nbsp; Ridderstraat 27 | 8061 GH Hasselt | The = Netherlands
   tel: 038 477 53 69 | voip: 087 875 68 = 74 | www.pragma-ade.com
  &= nbsp;           &nb= sp;            = ;            &= nbsp;    | www.pragma-pod.nl
---------------= --------------------------------------------------
____________________= _______________________________________________________________
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.sup= elec.fr/projects/contextrev/
wiki     : http://contextgarden.net
________= __________________________________________________________________________= _

= --Apple-Mail=_2ED2AD8B-5EF1-45A9-882E-603A13A1E608-- --===============0637110174== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0637110174==--