From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2B5eLQF8iWQGtgAASxT56A (envelope-from ) for ; Wed, 14 Jun 2023 10:36:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8N5nLQF8iWT5SwAA9RJhRA (envelope-from ) for ; Wed, 14 Jun 2023 10:36:17 +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 61DB73D18F for ; Wed, 14 Jun 2023 10:36:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9LyG-0008I0-63; Wed, 14 Jun 2023 04:35:16 -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 1q7HP0-0004FQ-9g for emacs-orgmode@gnu.org; Thu, 08 Jun 2023 11:18:18 -0400 Received: from mailout06.t-online.de ([194.25.134.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7HOw-0000hh-3M for emacs-orgmode@gnu.org; Thu, 08 Jun 2023 11:18:17 -0400 Received: from fwd79.dcpf.telekom.de (fwd79.aul.t-online.de [10.223.144.105]) by mailout06.t-online.de (Postfix) with SMTP id C30F5F373 for ; Thu, 8 Jun 2023 17:18:08 +0200 (CEST) Received: from [10.42.42.113] ([79.222.68.196]) by fwd79.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1q7HOj-0eYiG00; Thu, 8 Jun 2023 17:18:01 +0200 Message-ID: <280758ee-ab9f-e0c1-b45b-ab9be26b113c@t-online.de> Date: Thu, 8 Jun 2023 17:18:01 +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 Subject: Re: How to export to the simplest possible HTML? Content-Language: de-DE To: emacs-orgmode@gnu.org References: <87353exyyz.fsf@mbork.pl> <871qixr6yl.fsf@mbork.pl> From: Thomas Redelberger In-Reply-To: <871qixr6yl.fsf@mbork.pl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TOI-EXPURGATEID: 150726::1686237481-437F0266-A42C8FE0/0/0 CLEAN NORMAL X-TOI-MSGID: f3427262-1432-40be-bacc-e0a609472071 Received-SPF: none client-ip=194.25.134.19; envelope-from=redetho@t-online.de; helo=mailout06.t-online.de X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 14 Jun 2023 04:35:13 -0400 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-Seal: i=1; s=key1; d=yhetil.org; t=1686731777; a=rsa-sha256; cv=none; b=U/Ag7oc5ecdxd9iQEhIOc3XLgBNkrrjs79wpdyQYSYL4Q/YOEA0df/RPDs2q9liwdHywJL JQdBNZPJDGgHhwqytcbyLA6w1lpLZzRm4POi90GL+2eeH0DI3LLV/jfB5Y+w9p7vSvOnio Euoorezk8mNieroUH7Z/n/Q2XHbMHsuJ1POldJSiZZGp9pkGPHrZ55PfQp0cIINopNUMoA 8HYnI1v3JfsYBrx3EvjPee/vMs7oyPdhpsLaByF/KzqtfB5VMnfyGax52GZSWOdGbIa0WN gfTvRvEP3XNkU5LNIIrP6bdnvfRt9pzsG3AeACYsOaKq6QKgQtrOmPd/zm+uHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686731777; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nSadStf+0yVaV06C106lR9SryYPntvRGhvgOxzsX1Nk=; b=Ohie+ZxrxQAXJssTPCKNWIYr/bDOkg/Ugp0o8QsNsxVneKt3y0JjLC2N9g3v5/kzjwOg4T WAL9h3Fb7o1K1x3JV3o7Si57uM1cR6cRKzipq2nentPcBT981C8N1LGo2gtVGtF3KK75ai 2m3Bh1SfUZopgh4FNnVDyii2q/deFRHq945LY2hvAg2pCOFrJGvy87SAdFZdGvXvNTijzK EtqG0uQD3dox97zOK387YKZH+t0qWSwPp9FcdAKu5P1CiljVUOlcVAr8AD6Mo/Frr10zri fPoC4TYvkqcfcJcC6LGhJKqGOgu9ODALwoa4wCseqAYHTDirpcWY43r33ye97Q== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.83 X-Spam-Score: -0.83 X-Migadu-Queue-Id: 61DB73D18F X-TUID: Fxatf4zxtuuF Dear Marcin and everybody, I had a similar requirement for "simplest HTML" and have documented how I tackled this under http://web222.webclient5.de/doc/swdev/emacs/orgmode/html In summary, it is - a few settings in init.el: + org-html-text-markup-alist similar to below + setting org-export-allow-bind-keywords to t - seeting quite some org variables via in-buffer settings - elisp to steer a final XSLT transformation of the generated HTML I had coded a derived export back-end (for Emacs 25.1) and used it quite for some time. When I moved to Emacs 27.2, the derived back-end did not work any more, hence I changed to above aproach. Best regards Thomas Am 2023-05-30 um 20:48 schrieb Marcin Borkowski: > > 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. ;-) > >>> 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@bald.cat > > Ah, that looks interesting, too. > > Thanks! >