From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: Re: make variable-pitch-mode pretty like eww? Date: Tue, 07 Jun 2016 11:16:30 +0200 Message-ID: <877fe12wb5.fsf@gmx.us> References: <87a8j2vt6q.fsf@pank.eu> <87poru7xer.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1465291042 24454 80.91.229.3 (7 Jun 2016 09:17:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2016 09:17:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 11:17:14 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bAD8L-000052-EN for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 11:17:13 +0200 Original-Received: from localhost ([::1]:47989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAD8K-00033J-Ge for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 05:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAD7s-00033C-3s for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 05:16:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAD7l-0007qH-Fo for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 05:16:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAD7l-0007q3-9H for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 05:16:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bAD7j-0008AL-JV for help-gnu-emacs@gnu.org; Tue, 07 Jun 2016 11:16:35 +0200 Original-Received: from 46.166.188.233 ([46.166.188.233]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jun 2016 11:16:35 +0200 Original-Received: from rasmus by 46.166.188.233 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jun 2016 11:16:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.166.188.233 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAJLSURBVEjHzZa7geQwDEMdoxm0wlJYCVtBMWgHwQXyT7O7txceI9vj J1EkCM8xSbWdJN2yx7mi0RJRCXU/PCqpWddecf3okm2hMpUHYMx7UTsDwPcCsTGC895BLz4uiXw/ QL3fz9Hh+162vVKWlCQF5Q2o+31v2+lJ0gDoJOUdqM/3LSoZjAUk0WzAzifxEIoxdgbKfsYcdz1e laJDJlGjvgXknaAaTAZF+BvAqh0ogJVURVD2qhxwbOohbKs1XBWAU3tZq2Oz7a2wnkpiT8XMnhL8 yO8WVLoS2+VUfwB0wtl3sEexMpXBfAKKkXkUfO4hygWOduII1v6NLSl12XEpEdld15wcQpb8+OTq ZmtXjPrU6EFlOkmE/BS27ebZB51Xu8wTTc+SOWXbZq15uMtWStJXmwo9U0vfkB276Et8N9A8eUGO LTgxa4otD3sDlpwvB1nFHSZpcJromPMClgFwqWqlLTWcsypmefgGmvKA8VmaIUAoa2STlPQATXSS DC7hDlpr9b57rT5eg7YCOi+XJHqSRwSt40uXKF91SmImfY6cSfhnYMmUswp19SZfgNs4jUqMs3kf rvFWxD3yZGJgn5+vwCNTYSx92tYn4JenNAHszvoJeOhE5y62pvhlRDdrh+Ii4MTL3qwPm9nyhzPl 1a1BjdSyN/t9A0K51hnGyYAAUN6c6dhagGuwVVkNs9mb930c+tns/laanvlLH1YMnxmv+Qeg+ml5 d/0GyI5vKxS2z+6366Nf1qlNTt8Cnn79g/Akv57h5/gPgT/tvnoH3s4GngAAAABJRU5ErkJggg== User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:0H35vGR/j5j2HOrLiwrn/T1/JOk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110356 Archived-At: Michael Heerdegen writes: > Rasmus writes: > >> Eww is really good at making nice proportional-font "columns". Is it >> possible to leverage eww’s pixel alignment in "normal" text documents >> when I use variable-pitch-mode? >> >> Preferably, I’d like my align-fill’ed lines to be "reflowed" into nice >> columns. Alternatively, I could have a single paragraph per line if >> something like visual-line-mode could be tamed to make "reasonable" >> columns, like eww. > > That should not be hard, but somebody would have to do it (maybe create > a bug report if none about this exists yet). > > What eww does is quite simple: it walks through the text line by > line, looks how wide the text is and adds line breaks etc. You could > probably reuse most of eww's code. Do you know which are the key functions to examine to get started? Thanks, Rasmus -- To err is human. To screw up 10⁶ times per second, you need a computer