From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id p9G+GsjH1WEmuQAAgWs5BA (envelope-from ) for ; Wed, 05 Jan 2022 17:31:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8PdVF8jH1WFwswAA9RJhRA (envelope-from ) for ; Wed, 05 Jan 2022 17:31:04 +0100 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 75B922A5EF for ; Wed, 5 Jan 2022 17:31:03 +0100 (CET) Received: from localhost ([::1]:55442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n59Bm-0002E6-6B for larch@yhetil.org; Wed, 05 Jan 2022 11:31:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n59AO-0002Dv-V5 for emacs-orgmode@gnu.org; Wed, 05 Jan 2022 11:29:36 -0500 Received: from [2a00:1450:4864:20::131] (port=34446 helo=mail-lf1-x131.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n59AK-0003yq-I8 for emacs-orgmode@gnu.org; Wed, 05 Jan 2022 11:29:34 -0500 Received: by mail-lf1-x131.google.com with SMTP id o12so90388855lfk.1 for ; Wed, 05 Jan 2022 08:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YerCfw5Zcm1Utybqx9HJ9LYy5+bfsCyH7RL6fuNDvQE=; b=e+SIt4aH04RE7T/JcAlNA+w00ycgw89VS1y0kCoyfKJ9F8psE4+Z/R5ty3ZlPpAlF7 WQJkV5nkaaEjq4dPKlp0zffugiDiRXbHyp9nNBxDDRlKn9VmH4AJn8ENtHQ4PLTyLW/j NF/B8btub15vgHUiSvoaLGihycefNlBeSt1Vh92hvNyr3+bZQtq6nMTyNI8DTY3sZKJs L95v1+Hqi6vU95IHaT7aC8yc/MVy/BKAhUlbtpLyeU1WFLiHK9aob7Gq4n1Ni3bT9MwM fL0uEg2c8vtUR3wZOvAgYa9ButNClgayvfiloHDcnjhB9yhXjC/cFJ/6fSUo2TwyROFc TwQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YerCfw5Zcm1Utybqx9HJ9LYy5+bfsCyH7RL6fuNDvQE=; b=Krxj9YDkJMTpvtyOyzfUmqOuFDM2/BQ+XGg46LY0uMRZGa0qrfRaX0yBsa2lcR6lll ErGzSSH1Dbj8/6PN/JUDH4uXgFaXtIn1GOkXb8qxrwA5yoHZR+8fRFAHZpM81yr7Rzkg b+QqsCRHteZP+leJgRHyeWja9mKE/DuaSb4kSMIibfPXX1x8l+rckNlVOUdZQ/3Qdart x8hgS77OJToPGZxYzuOkgjOtB+YUl0ujBA2ZTCJ67m4txOzTs5cmP+RnHhCpdFXkC/nR iOSgFwRDoXcsvOtOSq2OOTgrti8A6/3rLcBzQULJ7Gl8XSHdqZ+hbcj/YiDRLWGDSxaJ vqlQ== X-Gm-Message-State: AOAM530I1qCMQ7VdMo5OoPCBSN/VAbrRKGPe3vdOa7TYu0LXnpEZ6FRB kC2wmClsBUU79Yz5xsYAf+8eqNFLOGw= X-Google-Smtp-Source: ABdhPJwtdAVaBerZNGw82OOR/cYVzYB5eNiU0ewwb07oWiOqrHuookXoSlt71c0C0MZ4KJ0CBypC4w== X-Received: by 2002:a05:6512:3d04:: with SMTP id d4mr38960162lfv.579.1641400167759; Wed, 05 Jan 2022 08:29:27 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id g18sm3231701ljj.124.2022.01.05.08.29.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jan 2022 08:29:27 -0800 (PST) Subject: Re: A simple Lua filter for Pandoc To: orgmode References: <875yqzu7rx.fsf@posteo.net> <87o84r4k2f.fsf@posteo.net> From: Max Nikulin Message-ID: Date: Wed, 5 Jan 2022 23:29:26 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <87o84r4k2f.fsf@posteo.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::131 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=manikulin@gmail.com; helo=mail-lf1-x131.google.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-1.057, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Cc: Tom Gillespie Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641400264; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=YerCfw5Zcm1Utybqx9HJ9LYy5+bfsCyH7RL6fuNDvQE=; b=VvK8vAIuv4+en60zI7O+hVgAEIGURdtp/yy68XE4x4aeb+7hgAmnsv02Ze1hUAjWCzdGda nQVLA1i5bXrJPGQSbPDPBakENrswnX11eAyvm5ACzx+oZKhJkzRp7vKIZwss7sl6v3yG1D H4aEqLsLqYLcy4s7ktbE9+p2YcQUjwZGJe3eYYkJjZbRwA4pCyYh7Ql/H3YxV+g0aAcmeg TWtMAPKf32JHSeRbp7omibhuIXdPpFSziDomt14zJ5z3Lfh6SMWPA+1kyxqfuZ5Mbi8fgw nnEpKBJ37Wz6uljmmqu7TNDmJ3wNzVxM1PxLm6imp04PXXGkHs2kk1sEUILL9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641400264; a=rsa-sha256; cv=none; b=QBPD3m0c+G74Mgv0xX+du4SQS/Xz5L+kbOGn48jC/ueoNpcq2a0Stzz7oCVv04VNnYtFWH 6qiff3FPu4xSXCg1MXtN201DG4ZTVn9k/t10budO6WpQt2HDY1lzxBE5ZY6aV6DxaAJAMw lo4P6XNDRN3qS3bF2h3BNmCEDr/OZqFB6wCQFEDY8S06vjlStBZmlNEA7RBq2jmx7jTXF4 J3Rq7TGrzX4KTPnvHDQZZiFc2F3eWz8+vuA/MvWosUyVlE9WHEoYoPT7joiMMrDGjFImSz KLAnH4eTOJdfwXusqwZ6bn8grZVK95DSo7twHAabHfY2HVlSviArtGoOOHqS/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=e+SIt4aH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: -3.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=e+SIt4aH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Queue-Id: 75B922A5EF X-Spam-Score: -3.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: gt4NxaKZSCyF On 04/01/2022 22:06, Juan Manuel MacĂ­as wrote: > Max Nikulin writes: > >> Ideally it should be done pandoc and only if it causes incorrect >> parsing of org markup. NBSP, probably, should be replaced by some >> exporters, I do not think, it is a problem e.g. in HTML files. > > The reason for this filter is my own comfort. Linguistics texts contains > a lot of certain characters such as "/" or "*", and they are often > italicized or bold. So, in order not to be more confused than necessary, > I prefer that they pass as entities. It seems, lightweight markup is more annoyance than advantage for you. Tom posted some thoughts on more rigorous syntax in the following message: Tom Gillespie. Re: Org-syntax: Intra-word markup. Sat, 4 Dec 2021 09:53:11 -0800. https://list.orgmode.org/CA+G3_PNca3HY6TUDPMfHGt35Amj9a-y8dBNQo+ZvBOV6y3nHYw@mail.gmail.com For C and C++ it is possible to tune some aspects of compiler behavior using #pragma something directives. In some cases it might be convenient to e.g. temporary disable emphasis markers (or switch to more verbose alternative) through #+some: keyword > In general, there are certain > characters that I am more comfortable working with as entities than as > literal characters (for example, a lot of zero-width combining > diacritics that are used a lot in linguistics or epigraphy (and there > are no fonts that include the NFC normalized version of all possible > combinations: in fact, they are not in Unicode, and would have to go to > the private use area). Summarizing, I prefer that these characters have > their actual typographic representation only with LuaTeX. A very typical > example is the character U+0323 (COMBINING DOT BELOW). It is very > uncomfortable to work /in situ/, although there are fonts that usually > render it well (with the 'mark' otf tag). I have seen warnings concerning complications due to variants of character representation, but I have no experience such nuances (either typing and editing or processing text programmatically). Dagger and non-breaking space in your code snippet were much more simpler cases.