From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ndame Newsgroups: gmane.emacs.devel Subject: Re: Nicer looking Info - html manual +css Date: Sun, 19 Jan 2020 18:48:34 +0000 (GMT) Message-ID: References: <7930E155-E181-4D4C-B39E-5A05F732D667@traduction-libre.org> <83a76jzdd2.fsf@gnu.org> <83v9p7xuy4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1088_1201851968.1579459714759" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103650"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "stefan@marxist.se" , "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 19 19:49:58 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1itFe1-000QvM-RO for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 19:49:57 +0100 Original-Received: from localhost ([::1]:52626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itFe0-0004Ac-Sc for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 13:49:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60959) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itFdT-0003jR-2i for emacs-devel@gnu.org; Sun, 19 Jan 2020 13:49:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itFdR-0001gv-ET for emacs-devel@gnu.org; Sun, 19 Jan 2020 13:49:22 -0500 Original-Received: from fmfe12.onbox.hu ([46.107.16.205]:49306 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1itFdM-0001dD-OG; Sun, 19 Jan 2020 13:49:17 -0500 X-fm-smtp-source: yes Original-Received: from localhost (localhost [84.236.16.194]) by web-out.onbox.hu (Postfix) with SMTP id 4813jt3NTcz4ly; Sun, 19 Jan 2020 19:49:06 +0100 (CET) In-Reply-To: <83v9p7xuy4.fsf@gnu.org> X-AccountId: 57978162 X-Originating-Ip: 84.236.16.194 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrudefgdduudeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffkjghfufggtghisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppeekgedrvdefiedrudeirdduleegnecurfgrrhgrmhephhgvlhhopedpihhnvghtpeekgedrvdefiedrudeirdduleegpdhmrghilhhfrhhomhepvghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuhdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/relaxed; t=1579459746; s=20181004; d=freemail.hu; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type; l=1855; bh=8CjyKPYAadl/TG1oNTz0nb+ciSDeMDzk3P/C42NdcIU=; b=GAhtH0ttGqD4c+45C+AXQuMzXhwUQnQKkPORMTpYm8oKP7omxwQUphQCqHmc5MBo +R9qV/FF1gFVhHEvW61pW8dcQoSjA6uAUs2AdO6yF72CdyigrtlhRMAgvwZcJIvhRhR u50yPTmj50vnW2YLbvmaYEFOMPoCEZPLdV5zDK3bdSYRTi5sUTjq5tGzTBnlRgC9vtv zQAdOkFLl47V2fOYAbHvrzv51Kgrn7yxteS+FBuCSUTrA+CReGpO93p3XgFPHdEtD2U w3BhVZOfD5KdqhAQcckdYQqVu0I9BfsLQn3rAT05XxLAQpWrjpo/l3byfIrBdxEJhVz Hqc5q+jsTA== X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 46.107.16.205 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:244391 Archived-At: ------=_Part_1088_1201851968.1579459714759 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > If this is what you propose, then you should discuss this with the > Texinfo developers, not with Emacs developers. We don't develop and > don't maintain the tools used to produce the Info manuals from their > Texinfo sources. We just write the Texinfo sources and then invoke > the Texinfo processors to produce the Info format. Thinking about this it occurred to me there is a simple heuristic solution without involving the Texinfo folks. Apparently @example is rendered after an empty line with a 5 spaces indent. So it is easy to detect code sections, by looking for empty lines followed by +5 spaces indented lines. The code section starts at the empty line and ends when the indent is 5 spaces less again. ------=_Part_1088_1201851968.1579459714759 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > If this is what you propose, then you should discuss this with the
> Texinfo developers, not with Emacs developers. We don't develop and
> don't maintain the tools used to produce the Info manuals from their
> Texinfo sources. We just write the Texinfo sources and then invoke
> the Texinfo processors to produce the Info format.

Thinking about this it occurred to me there is a simple heuristic
solution without involving the Texinfo folks.

Apparently @example is rendered after an empty line with a 5 spaces
indent. So it is easy to detect code sections, by looking for empty
lines followed by +5 spaces indented lines. The code section starts at
the empty line and ends when the indent is 5 spaces less again. ------=_Part_1088_1201851968.1579459714759--