all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Core package offering - engrave-faces.el
Date: Fri, 9 Jul 2021 17:14:12 -0400	[thread overview]
Message-ID: <a875e1e3-c9b9-e280-93c4-4d0d6e107cb4@gmail.com> (raw)
In-Reply-To: <87y2afv122.fsf@gmail.com>

On 7/9/21 1:39 PM, Timothy wrote:
> Unlike htmlize, Engrave Faces provides general functionality to
> transform a buffer into another format with font-lock information.
> This core functionality is currently made us of in
> engrave-faces-latex.el, engrave-faces-ansi.el, and engrave-faces-html.el
> to provide exporters for LaTeX, ASCII/ANSI, and HTML.

Neat! But, I'm not sure I understand what the package actually does. Can you give a short example of the API and the results it produces?

If I understand correctly, the following may be relevant:

https://github.com/cpitclaudel/esh (I mention it because it supports exporting overlays to HTML and LaTeX, too, and it uses a tricky algorithm to correctly handle overlapping fontification)
https://github.com/Lindydancer/faceup
https://github.com/Lindydancer/face-explorer

> For comparison, htmlize.el is 1700 sloc and htmlfontify.el is 2200 sloc.

My experience is that getting faces right is hard, so I'm not sure I'd assume these thousands of lines are just due to bloat ^^



  reply	other threads:[~2021-07-09 21:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09 17:39 Core package offering - engrave-faces.el Timothy
2021-07-09 21:14 ` Clément Pit-Claudel [this message]
2021-07-16  6:04 ` Timothy
2021-07-16  7:09   ` Eli Zaretskii
2021-07-16  7:36     ` Timothy
     [not found]   ` <7319ffa7-d566-41b8-b778-69db2f6becc9@gmail.com>
2021-07-16 13:08     ` Timothy
2021-07-23 15:49       ` Timothy
2021-07-23 20:08         ` Clément Pit-Claudel
2021-07-24  5:54           ` Eli Zaretskii
2021-07-23 20:32         ` Stefan Monnier
2021-08-29 19:11           ` Timothy
2021-08-29 23:33             ` Stefan Monnier
2021-08-30 18:22               ` Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a875e1e3-c9b9-e280-93c4-4d0d6e107cb4@gmail.com \
    --to=cpitclaudel@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.