From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iO86DMUzhGQAPAAASxT56A (envelope-from ) for ; Sat, 10 Jun 2023 10:26:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oB9cDMUzhGTjdQEA9RJhRA (envelope-from ) for ; Sat, 10 Jun 2023 10:26:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B7BC638861 for ; Sat, 10 Jun 2023 10:26:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7tuz-0000Qz-SV; Sat, 10 Jun 2023 04:25:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7tux-0000Qi-38 for emacs-orgmode@gnu.org; Sat, 10 Jun 2023 04:25:51 -0400 Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7tuu-0002A2-VQ for emacs-orgmode@gnu.org; Sat, 10 Jun 2023 04:25:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1686385545; x=1686990345; i=redetho@gmx.de; bh=Wp/yiL/9bQR9TMh4ppay3T5Y+EJ4es+uQyubCASarBU=; h=X-UI-Sender-Class:Date:To:From:Subject; b=ZuS0iP+O3ieDbD5dbNWwAOrkpB8sQJ0hflAeQ03KZM/xVJ8dLpawSgy2lmj1aByl6pS0w71 SRkHKAk+EzFAUqHQ8SG/EwrNQPZPVObHzfJitzTNIbVCLbkpohCNTMpLnD3YcA3XJVTMX6KwW 442yxGrobjzbo2MKys6UCiDIiCIbl1lwP/tHqjVjYFT+N7oMX+5Bj9SdB3w4KOxwWqOxZ7I3z zoQKabLxGgOrEE5snbaof4lzsASQ7pqlMUwgCw4jz+FbnbcHLSI05EZXZtlgU/0zcn+H624uv DBhBD6EL0xZVsWkJI758QFOu7Lp5B4RUO6P8/8Kzin6lpXuUgqaA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [10.42.42.113] ([79.222.68.38]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MJmKX-1qS3EG2Hnt-00KADi for ; Sat, 10 Jun 2023 10:25:45 +0200 Message-ID: <039d786b-9269-a5ca-a131-c0a361a20a2d@gmx.de> Date: Sat, 10 Jun 2023 10:25:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Content-Language: en-GB To: emacs-orgmode@gnu.org From: Thomas Redelberger Subject: Re: How to export to the simplest possible HTML? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:VwaU241Bw0bJoi2eqE/PtXXLgrKFqjvnK8CJJ0Mv/DxJPNMq+ul Ar+XVElaTftFho7IL0aAQET7DLJaqRaTeSVqCvrM9oBKo/3M61YcqBu00GU4etP6B0lOzWF 1yDDepM+dkTOXQusLBxGOCMa0ycWO4MMwTuPTH7bXi7Ieo6zEZ3UAM2aUVI4SB4gaxZx5Cs OPJC4isoIVuhG3hVMOUxA== UI-OutboundReport: notjunk:1;M01:P0:dF0g5S1H5Nc=;C5PCvKmDFkZcSNtKr6AVCcOYzDe 8gGY3v0M0kkMeftcSaU5mXdhA/vslMBK/2YO/MzIXHQwd/b2JWd8GP6eINUpHKjc1O9/8wPCQ mmGYpMeaLDs+WRDBCfLtDKLo1BP0sPXNwesoOyT33kRZQB88dywCspJg600K26GMXelBprFqV ucyq3h+sgrXCNMLJOCNr+jbhlz+lpOiyTqJD7NQ8POvWSRN1TCHp6Mzp3tG1ZbS27yP6CdBtu h+S7basAhnDpoT5yA0tua5qxkAzzhLmLc5ebl5yexQnZiqt366JRTOYLmNV8YDdfvs01bsLRi giSXe7rYv/IRQOoZ2NviDm6QjbfFqoaSdw4ptK8wAOa9MsF3VO/MfcLNns+mpilzghZDzTcM5 JA4mz4ozkN9OIFL5v0rNehQaybj1c+mMhEY/NRZVzmJtc/7dQGJOoQ/z6kLNQpVrKkshAL4tl Dq0beqeP5qfPeYsH6+IdLxWiw0JrqAk6rtO2Oo9IG0vJXpWTInH658/gAMc6DJwT69SuUFAeK iL60uJrjow8OC2CbeE80OztM+7zSNEZmbJ2RQqIFKABZiV+eq+9YdlSbzqZnvR0FGpNciYTSe xdqXbWCabsJ/4kYks/mLKSuTYHona/SyntYls9931Ml6Krj02b9szHFWzCUyIbilnqrQfMTuW WhIP+48DoiSYAg23TwIwdUWpBXfKv2jqju240Nbr4F4WBYWGFPIueXrylmZP9x8yKW6DZOKB+ 3qOVU+z1P1og2iAwnkPcaQGKn6wfFydw01kQ9hrxr9FzXaBEeJ8OYhhTqiclbC0jj+CrjtYoT 4jihPqCKR4bzGXE0K4ryWO38dD1AgMjKq7+F2Gd3KQtuyqWi/hNxrpllLfK7mfu+0j1mq1BqE RF+80Pm2ViqQ5c2P8klC2bemJsY3vDgK0oKU0W9BkHx9PZ93VLKTbp6ZU9qAh5tGNuPDtg/61 yewhZA== Received-SPF: pass client-ip=212.227.17.22; envelope-from=redetho@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FAKE_REPLY_A1=0.001, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686385604; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1n2wwS2WWzIcliVjfzmctFdPDKG362ZO5nnJKEOqYp0=; b=N9ST1TB4iNVfvd9X2t2ljhqsE4lNhmtbj3aBm3oYTPVdFxMpFvOdDV449Z5iX/WfzDXnXL xUys6nJikNvR2TF8drdUWYobzWa1oPENqEMAo7s6jL/ig5c3lw5pSD2ZktSU4oK+rC9o7j UvQbXYDNcIW67BNgVLH5/G7QGJLCBM6XAP7CQGhqSJKj02UZnRpoG29oIY8wXJFf1aYCcY W6pUaHbCCBj1jfkXdk6QNvYOj+gByg4AIJlypLGQrSD//mMgiBrjvuQilJxm8oYyk8vX9K L6TOKE98mUtWjDBptmSXWzBKTty7dMfsBHEowK6Hu24dTgDJVXgJxchgCz7r4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.de header.s=s31663417 header.b=ZuS0iP+O; dmarc=pass (policy=none) header.from=gmx.de; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686385604; a=rsa-sha256; cv=none; b=NnXAxIh3dR/uIonZ1I87UKZDSYNjdHUV9O3IuVToR5ffBIs4+IUS7JJ5Wbj9Jbi5AYwXEG a2hUbHZjmNFep1MWVCUKQrBrfl5q7bYJHQrta1BSH6v/jxBML4jF2g9DS2x9t2HU6GLASs 3BvDjWeuo28hP23k7gDV1lwcC93x1uUWu93K9GQuK/tbf/t/3aIaG4MmFIzdwgPWxTYk43 3LtzVdrbACQRE2GEcLL8DXSunBCvDOWma40SmOz9o0kv4GNPwGE7Ff9iorNaBdyB5tSpt0 19UGo0jgs4eO1wbAlCqjg4SlTPWG4TGTta/4kX9mjL0lVg3iWwF9ju4rlKytCA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.de header.s=s31663417 header.b=ZuS0iP+O; dmarc=pass (policy=none) header.from=gmx.de; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B7BC638861 X-Spam-Score: -4.08 X-TUID: 9vQj6TAj38dI Dear Marcin and everybody, I had a similar requirement for "simplest HTML" and have documented (incl.= source code) how I tackled this under http://web222.webclient5.de/doc/swdev/emacs/orgmode/html In summary, my solution is - a few settings in init.el: + org-html-text-markup-alist similar to below + setting org-export-allow-bind-keywords to t - setting quite some org variables in-buffer/in the org file - elisp to steer a final XSLT transformation of the generated HTML I had coded a derived HTML export back-end (for Emacs 25.1) and used it qu= ite for some time. When I moved to Emacs 27.2, the derived back-end did not work any more, he= nce I changed to above approach. Best regards Thomas On 2023-05-30, at 20:48, Marcin Borkowski wrote: > > On 2023-05-30, at 17:32, Max Nikulin wrote: > >> On 30/05/2023 10:47, Marcin Borkowski wrote: >>> since I'm going to >>> call my exporting function in a loop over many elements. I tried >>> (org-export-with-backend 'html (org-element-at-point (point))) >> >> There is `org-export-string-as', but likely it is not suitable for >> you. My guess is that you are going to export headings (blog posts) to >> separate html files. > > Correct, dear Holmes. =F0=9F=98=89 > >>> This is /italic/. >>> can become e.g. >>> This is italic. >> >> I am curious whether is more friendly to screen readers >> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em > > Good point. You're right, I'll probably go with `' then. (The > reason I wanted `' was that I wan't somewhat atypical styling, > namely letterspace. But of course css magic can make `' do this, > too.) > >>> I'm considering writing a custom (derived) export backend, but maybe >>> that is an overkill? Any ideas? >> >> I just have noticed >> >> (defcustom org-html-text-markup-alist >> '((bold . "%s") >> (code . "%s") >> (italic . "%s") >> (strike-through . "%s") >> (underline . "%s") >> (verbatim . "%s")) >> "Alist of HTML expressions to convert text markup. >> >> You may look into ox-html customizations such as >> (:html-doctype "HTML_DOCTYPE" nil org-html-doctype) >> (:html-html5-fancy nil "html5-fancy" org-html-html5-fancy) >> >> I have never tried ox-slimhtml: >> Laszlo Elo. ox-slimhtml. Mon, 14 Dec 2020 00:48:27 >> -0500. https://list.orgmode.org/41D2E10D-BCFF-4604-8417-B499514AF904@ba= ld.cat > > Ah, that looks interesting, too. > > Thanks! >