From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel,gmane.comp.tex.texinfo.general Subject: Re: html manual +css Date: Wed, 15 Jan 2020 22:52:06 +0900 Message-ID: <25F7C4CF-2B56-439B-BB23-54C718498D0E@gmail.com> References: <834lvyct3t.fsf@gnu.org> <01B655FC-51F0-4A33-ADBF-3E1268E9E0EA@gmail.com> <3D282E00-27F3-451A-9895-5BCEEE0B7FA8@gmail.com> <7D24D068-4BEF-4EC3-8C31-BED768533BEF@gmail.com> <20200115134349.GF1435@free.fr> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao:159.69.161.202"; logging-data="94536"; mail-complaints-to="usenet@ciao.gmane.io" To: Texinfo Help , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 15 16:00:16 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irj6L-0003sM-Mx for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Jan 2020 14:52:53 +0100 Original-Received: from localhost ([::1]:54444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irj6K-0005xn-PW for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Jan 2020 08:52:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60902) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irj5i-0004sn-Kr for emacs-devel@gnu.org; Wed, 15 Jan 2020 08:52:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irj5h-0006qX-Eu for emacs-devel@gnu.org; Wed, 15 Jan 2020 08:52:14 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:43377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irj5e-0006o0-Mk; Wed, 15 Jan 2020 08:52:10 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id p27so6867520pli.10; Wed, 15 Jan 2020 05:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=2sKX+NNVR5nKMPPAcWWmNCOX0CWb+/VR5/RmhDiPA9g=; b=OkyoSDcOIrNuGMzsVAlEPU1kndgimfkVCvWodZicJmx7YVI7o01tdp2RUgmMo6uF3b G5uU9FzkXG5WK1T08qHei22Dl4y3sYreMXY2AZRG30rmb695uoWlgCQ2ONCYa4rVuAin mlqbnbphyFhepT1uPALkeqKJPwzT+oMXufahVGIvn4jss9BpEBvHrACR4uacFCsUXwuv ZKg7jnMMA2SU49fr03wRoy27mNlyNSntNL2sIO5aF3b/djeOzXXJORR+ipyUFQuRceGR xeenY8sPvmgsReu8yWaKS1pILyDSOYULempEP0nSQcMMuVGtU4DBBhi+ihKtFN2KJh9x omDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=2sKX+NNVR5nKMPPAcWWmNCOX0CWb+/VR5/RmhDiPA9g=; b=HtirxxpXhk6NgcOr/R9LEN9W5hr2TfIBf76SWDcGXdv1ipfgU0ptkgOtvhcrS85Oaf DORJwbqJq0Tt8eCeE+ky3Z1ULsmC6HMQpX0K9owTr+8eBIiTPRqG3iLTCD04mSF22gWl NYUbEA9+PMv2FUL6oTldXipoj36Uu5up7FFLUEO9h3+Ls70DQR+/zefVF+8vs+R/TLQg aTGydTOBvNc6ICoOt7cNGJBbmA41r633OlixOryWJCdLQbhRq7i9ihQD6vzMJO3sS0xU uvaxr+i/SyRLhbNCzFUmg7N9MqZvrDp2FUwInK/IZ7P3VdF+NCEI38X3UyuUiboJmX3r 6icA== X-Gm-Message-State: APjAAAU2xGSkAntVzUbZlapx/Lgrwh40XLschbRE3anVUhyZNDZkcJG+ HtWEITQdDnDgiuX4H1jlXUh/W4O/ X-Google-Smtp-Source: APXvYqwd82cQjQAiKJpR9qxu3p61/914mDEnVbskF7CvGl3l8HEMjCw0rqzeXtVa3faPo8+RdA+zmw== X-Received: by 2002:a17:90b:2289:: with SMTP id kx9mr32692242pjb.94.1579096329441; Wed, 15 Jan 2020 05:52:09 -0800 (PST) Original-Received: from [172.20.10.2] (KD182251137042.au-net.ne.jp. [182.251.137.42]) by smtp.gmail.com with ESMTPSA id b8sm22413276pfr.64.2020.01.15.05.52.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2020 05:52:08 -0800 (PST) In-Reply-To: <20200115134349.GF1435@free.fr> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::636 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244271 gmane.comp.tex.texinfo.general:2337 Archived-At: > On Jan 15, 2020, at 22:43, Patrice Dumas wrote: >=20 > On Wed, Jan 15, 2020 at 09:12:15PM +0900, Jean-Christophe Helary = wrote: >>>=20 >>> The Guix developers managed to implement syntax highlighting by >>> post-processing the HTML. >>> = (https://lists.gnu.org/archive/html/bug-texinfo/2019-11/msg00004.html) >>=20 >> Wow, I just checked this page: >> = https://guix.gnu.org/manual/devel/en/html_node/Using-the-Configuration-Sys= tem.html >>=20 >> and the source if full of css "hooks" even for the parens in the = code... >>=20 >> What they do is interesting, and I guess some kind of postprocessing = would be possible to achieve what I suggest, but instead of that, I'm = guessing that just having texinfo add the css selectors would be easier. >=20 > There are already hooks to customize the HTML produced, but it = requires > knowing perl and digging into the HTML customization API which is not > documented anywhere. Are you talking about HTML.pm ? >> Also, what's interesting with the current HTML export is that even = though it is quite "old" in terms of standard (supposed to accept HTML = 3.2 if I remember correctly ?) adding appropriate classes and IDs is = just enough to access even bleeding edge CSS. Hence the idea of adding = the appropriate "hooks" directly from texinfo. >=20 > Currently the default is 4.01 Transitional. But there is a > customization file to produce HTML 3.2 in tp/init/html32.pm. The default is high enough that it allows for
, , class and = id. That's all we need to make good use of CSS selectors. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune