From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.devel Subject: Re: Colorizing source code in Info manuals Date: Sun, 08 Dec 2024 21:58:34 +0200 Message-ID: <26292.7856923611$1733687952@news.gmane.org> References: <87ttbh4v5l.fsf@web.de> <7d677941-c468-469a-acee-b0935097605a@imayhem.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34505"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rms@gnu.org, arne_bab@web.de, emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 08 20:59:04 2024 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 1tKNQk-0008md-Rg for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Dec 2024 20:59:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKNQQ-0006L2-Vj; Sun, 08 Dec 2024 14:58:43 -0500 Original-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 1tKNQO-0006Ko-Cw for emacs-devel@gnu.org; Sun, 08 Dec 2024 14:58:41 -0500 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKNQM-0005Im-6N; Sun, 08 Dec 2024 14:58:39 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 9719AD00030; Sun, 8 Dec 2024 21:58:35 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1733687915; bh=DC6OT+Y/nf6dgFHPNFxI5MBUpXOX5mmd4knqJ+x6fE8=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=LL6iEpToVpfiH9mHEn218/et07Rws8YjqMQhEGAOB+oqcw8VuS9WRH67W4b4NeY/J ezMUWaagVeHIt9gtpnM7Cth6dXbW+IWyo1BgsEDVFhS2T3lWRLB4s5s8wQT38WJIxw nmG5GUXOf0ibDDv8oITEr7W77fnsCLdz61sIsy3CKVJaNBBMA2Ko/ik/oyVvfMAegy nCzcJJP+dr7Bdyaby9wUoTNbyNEtkwNZRYyGS7Db16//gZW8ry3DTCDTTh813znUhj sw9+GijOEU33+XlxqM56hWrHqLirFmZte9OgNltv5azDm9WzNywEAAEevFj3RlGGbs EQ3cSZ0QaaMFZrJ690g3wGY27j6Rcygj76drhcgpKVVinEBx3IuM29nzfeoJBwCnAR VuBI2PkHKrfesawmSL5+VEBQYLCXZSv1fiZoIlxMvqa9H/I+aFGjjseysZXfALyemF mF4PRJ7AhDaX1D8hREfFqqyLGh0fl/g11Nb1hu1co/eCfhnw//3Mg4E7/Uq2pOnQkP bk0v8GXJEDQ1ratEbeN+smADkDtCu0wt4Ies3Ri4LjHlixhJj4Ylo+CqoCNzqzjOC4 lbihjUxo2hW69JleSOE/pcffQX4aYmkPMImAEgvOmkvA2sWgKfZY8fwh9yx1IEieYw N91qSRYVrzo4W2mIzfE+NFqs= In-Reply-To: (Cecilio Pardo's message of "Sun, 8 Dec 2024 19:08:04 +0100") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326210 Archived-At: Cecilio Pardo writes: > On 08/12/2024 6:17, Richard Stallman wrote: > >> Info format lacks ways to express many sorts of stype information >> that would be desirable to have on a graphics display. I am not sure >> if it makes sense tp try to extend Info forat, or use HTML instead, >> or what? > > Texinfo's HTML uses CSS, which I think emacs does not support. Also, > emacs' Info machinery would need some work to adapt it for HTML. > > I think some 'cheap' changes in info, such as the presentation of > source code and emacs key sequences, in my unqualified opinion, are > worth the effort at this point. There are examples to handle color information in this context e.g. like org-mode to reuse existing styling documentation based on the property of faces defined for other modes. Another option would be to do something like the like the minted LaTeX package. It should be a good example to transform the styling elements into the right elements for the info readers or HTML.