From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110005 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andres Conrado Montoya Newsgroups: gmane.comp.tex.context Subject: Regarding XML export and EPUB Date: Mon, 21 Dec 2020 17:31:28 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8242049560965069981==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8194"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 21 23:33:01 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krTjh-00020H-2u for gctc-ntg-context-518@m.gmane-mx.org; Mon, 21 Dec 2020 23:33:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 26EDA1C1546; Mon, 21 Dec 2020 23:32:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03RQcIjbdgNk; Mon, 21 Dec 2020 23:32:09 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 37BC11C15A0; Mon, 21 Dec 2020 23:32:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0D8CE1C15A0 for ; Mon, 21 Dec 2020 23:32:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jON9VBVe3czr for ; Mon, 21 Dec 2020 23:32:07 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.45; helo=mail-ot1-f45.google.com; envelope-from=andresconrado@gmail.com; receiver= Original-Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F22131C1546 for ; Mon, 21 Dec 2020 23:32:06 +0100 (CET) Original-Received: by mail-ot1-f45.google.com with SMTP id d20so10282742otl.3 for ; Mon, 21 Dec 2020 14:32:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7WvTCKsaWeym44oINztterd64TK11/MSOjgiykCX1E0=; b=ZlYRG576vhrJ2AUG9rCDdhCSvhpOnochwuTHy+poQSwU360Pa+z94Y4/AEgu198kcM V9Lnp79WYGx1aRBqyYr8hDbMXQuA8Xqi9qmoFE+3TjpfiOSklKNeE00Mhd90dY+3muWd bhWXixm5N0GbKxxhdAXOKpHfSKyHKOll+rV63m6qT6qbi8LzPUXP8kZ5r3++OKAmSnPo pGH9WAXw3IObCTTJjBP/VCgp3uwl0RAhoR35lP5e9LL8AKSjki6evgOR2LSpiBbSMr0n 6dCduEu+r3ItKCu/p/ochgznoK6beNw5PBINwuaGcHwNYkrvBGm2/2ZuvideA817kHgx +iwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7WvTCKsaWeym44oINztterd64TK11/MSOjgiykCX1E0=; b=O6U3/zHJFdRmslOE2JlLWdaSYrqZCdcKyen9FnNLrEGFQHRAf7/JZV9YljtS4cfYJE 9QmzYBYuYYyT3yTZ0280mYSeZFA9OcR1MnQ8VCul7O78MNVSYwMCe231snau2ro71DDQ u4p597jXymPb32o0kUp23iPo1lqvEzqytTotdJjOa6WktTjsYgsPQ5nBKPrxpmr0H3x4 nl4+qUQI35gEM0uLgQoQVC/zgAWHfce+XKeyOf4dtrKCyd5YNCtn+txw5kBAe015rrCg tb0shkDTIgfBkMx+i39uzch30+viwWWNhcIZTxKeD6Jv5Zv2FCPy1Y+iDKfRof+F/z3+ +mrA== X-Gm-Message-State: AOAM5314sXm9qq0xV5B7PGE0r6ztsR23hBd58B2QoFlAazxjlDUqXSyX xANvulIBx9azRapiQ7MI9a02+tJ4jv/wMEte+MQjj5BACEQ= X-Google-Smtp-Source: ABdhPJxPKrxJdC/cOmYJUVcRkKufGa8Pin6d89U8Uu54YpSDOgi4AAv4WO1MMIykO1wau2Q+uNZHChe6q5WE3w1H3BI= X-Received: by 2002:a05:6830:84:: with SMTP id a4mr13991527oto.261.1608589924730; Mon, 21 Dec 2020 14:32:04 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:110005 Archived-At: --===============8242049560965069981== Content-Type: multipart/alternative; boundary="0000000000000d8ae405b7010766" --0000000000000d8ae405b7010766 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, list. I've been experimenting with the export scripts and the instructions and manuals you can find in: https://wiki.contextgarden.net/XML https://wiki.contextgarden.net/Export https://wiki.contextgarden.net/Epub https://wiki.contextgarden.net/ePub This with the expectation of being able to make an epub file form a context document that epubcheck can accept. I see there is an experimental support for epub, and I have played around with the export options a bit. However, what I would really want to know is. It's possible and if so, how can you map context's elements so they can get translated to specific html tags? I mean, the current export output uses divs with custom attributes and classes, or custom tags; but I would like to map lists to ul, list-items to li, headings to h1, h2, h3, paragraphs to

etc. In the manuals I see that you can do the opposite: map xml/html tags to context's elements; I wonder if you can go the other way around, and a good place to start reading about it. Apologies if I missed something obvious. Thank you. --=20 Andr=C3=A9s Conrado Montoya Andi K=C3=BA andresconrado@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org ---------------------------------------- Los fines no justifican los medios, porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dispuestos a utiliz= ar, no por los fines que proclamamos. ---------------------------------------- =E2=80=9CYou develop an instant global consciousness, a people orientation,= an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, =E2=80=98Look at that, you so= n of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut Edgar Mitchell --0000000000000d8ae405b7010766 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello, list.
I've been experimenti= ng with the export scripts and the instructions and manuals you can find in= :


This with the = expectation of being able to make an epub file form a context document that= epubcheck can accept. I see there is an experimental support for epub, and= I have played around with the export options a bit. However, what I would = really want to know is. It's possible and if so, how can you map contex= t's elements so they can get translated to specific html tags? I mean, = the current export output uses divs with custom attributes and classes, or = custom tags; but I would like to map lists to ul, list-items to li, heading= s to h1, h2, h3, paragraphs to <p> etc. In the manuals I see that you= can do the opposite: map xml/html tags to context's elements; I wonder= if you can go the other way around, and a good place to start reading abou= t it. Apologies if I missed something obvious.

Thank you.

--
Andr=C3=A9s Conrado Montoya
Andi K=C3=BA
andresconrado@gmail.com
= http://sesentaycuat= ro.com
------------------------------= ----------
Los fines no justifican los medios, porque la medida verdader= a de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dispue= stos a utilizar, no por los fines que proclamamos.
---------------------= -------------------

=E2=80=9CYou develop an instant global consciousn= ess, a people orientation,=20 an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international=20 politics look so petty. You want to grab a politician by the scruff of=20 the neck and drag him a quarter of a million miles out and say, =E2=80=98Lo= ok at that, you son of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut = Edgar Mitchell

--0000000000000d8ae405b7010766-- --===============8242049560965069981== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8242049560965069981==--