From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Variable-width font indentation Date: Sat, 10 Mar 2018 11:27:39 +0700 Message-ID: References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <0b1dd3fa-e0b0-ed20-a256-dd92d1c1826f@dancol.org> <8bc3c4c7-dfc7-987a-95e7-bd309e2326c6@cs.ucla.edu> <03118DC0-39DA-4AB5-980E-A33809B9A5EE@raeburn.org> <83vaeas8uz.fsf@gnu.org> <83lgf6s3aa.fsf@gnu.org> <838tb5rxoe.fsf@gnu.org> <83lgf5q73p.fsf@gnu.org> <4742f0ae-86b5-48f9-4601-4dbba9e6380d@gmail.com> <83bmfzreaq.fsf@gnu.org> <83lgf3przh.fsf@gnu.org> <42d0c18b-8d14-bfe2-8f09-112787e8b0b4@gmail.com> <83zi3io9tr.fsf@gnu.org> <859ec725-acc3-22e4-ca26-28108c3e5e26@gmail.com> <83sh9ao086.fsf@gnu.org> <83muzhodkx.fsf@gnu.org> <9e7e6fa1-47d8-c0a2-797d-cd7edbf8fc4c@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520655971 22507 195.159.176.226 (10 Mar 2018 04:26:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2018 04:26:11 +0000 (UTC) Cc: Eli Zaretskii , Paul Eggert , Emacs developers To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 10 05:26:07 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euW54-0005gn-Gn for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2018 05:26:02 +0100 Original-Received: from localhost ([::1]:49150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euW77-00046M-Dy for ged-emacs-devel@m.gmane.org; Fri, 09 Mar 2018 23:28:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euW70-00045w-RT for emacs-devel@gnu.org; Fri, 09 Mar 2018 23:28:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euW70-0001xf-20 for emacs-devel@gnu.org; Fri, 09 Mar 2018 23:28:02 -0500 Original-Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:45918) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euW6y-0001wp-9I; Fri, 09 Mar 2018 23:28:00 -0500 Original-Received: by mail-oi0-x229.google.com with SMTP id j79so8516399oib.12; Fri, 09 Mar 2018 20:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=C8kk2oEOrAVBUkM9ZfO38SULuki+SjzyR1ilHFH8kys=; b=e/En4Qc5uDWgxZHEPO9V8Ce/H+YmjOUec/c5ISXhd1oAQuLChCtP7tW1fdSrGV/t/y ltrhzEC4+ZiAbiNmI7JN4khMQItW4WK1DHk4L+XpFH886Z4G9fVk6fI6+4Y1gjTFu8ui sszCXC+NSO/ashtbFpOrAjtDVI+BlxtaToJCHAKqMmAKZ/3JMSWXct6xvbPln63Ula9N akRySQ00zVU+TeetmBwCdjctUvLy5PRan2Y3arAWARVhbdv4j6Q/3Uxt7bs+RNzn1PuX c+bweVpiVbEIHLLqqF4jz093Hi4+5eXrexDjvWjUHa2SjMJTBiJq0cWEaiaA4KFFMxB2 Rigw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=C8kk2oEOrAVBUkM9ZfO38SULuki+SjzyR1ilHFH8kys=; b=cxAvkvHW3r6lPhW9U/++ZBbXPLGlEp87Ty8MiMsp51Ja90NH6lDRGoivCP7RxkadaN mVdWsvb2GeutNB9TNYEe19o/1MYQbZRdyqchRFCnB8ByaKsNoyn/pIpXfMLHJhf83588 mS0t3ZseSiIaHu8/gdnzcGljWkd8p6M9ay9rOV7w3fd0AEgPMjdaqiX0RU8IDdnikFLn mEDEW6ZQQ3+0lHzUzl4kOZ6Gdh2+9f02eIMMvduTwJ/fn2HxWmGAOHIPeTle0wZkbzNJ dYorRr1nWvBze0dDKvnS6uRBGjRmq8Dk4u/RT8BiuDriAaAr5BG570t0wQc3m1MAbf9B eGfg== X-Gm-Message-State: AElRT7EaMOam6R2RVDCqU1jXZZKy5naQbUjqIEYtvnRaWLW4Ve1tgy5w qmdB4fInRo7xkcOi/bKlUnCd14eb2VMPNnKJiSY= X-Google-Smtp-Source: AG47ELsr7COyeGvBCEnP4EBrimFcHqrGoRZT7427Z46vCnK3Vyyg/Bo8yE1gHffzU69qcogi36CZ+l9c3Pk/rAy/kUE= X-Received: by 10.202.225.214 with SMTP id y205mr456230oig.37.1520656079669; Fri, 09 Mar 2018 20:27:59 -0800 (PST) Original-Received: by 10.74.211.77 with HTTP; Fri, 9 Mar 2018 20:27:39 -0800 (PST) In-Reply-To: <9e7e6fa1-47d8-c0a2-797d-cd7edbf8fc4c@gmail.com> X-Google-Sender-Auth: ZaLnrKnrAYLrhfL5p5GL1TB2MQc X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223569 Archived-At: On Sat, Mar 10, 2018 at 2:48 AM, Cl=C3=A9ment Pit-Claudel wrote: > Except in lists, right? For example it's not uncommon to wrap like this: > > * Some long text here > that wraps around: > > i. Point 1 > =E2=80=A6 continued > ii. Point 2 > =E2=80=A6 continued > iii. Point 3 > =E2=80=A6 continued The way word processors implement this is: 1. Specify a left margin of, say, 0.5in. This makes each line start at that offset. 2. Specify a first line indentation of, say, -0.25in. This way the list marker starts at 0.25in, immediately followed by the rest of the first line. Each subsequent line starts at the left margin 0.5in. 3. To make the item text of the first line align with the rest of the paragraph, put a tabulation between the marker and the item text. Align that tabulation at 0.5in. The way HTML+CSS implement this is (roughly): 1. Specify a left margin for the whole list, say, 0.5in. 2. Treat list markers as special absolutely positioned elements. Put them at, say, (-0.25in across, +0in down) from the start of list item. (Absolutely positioned elements do not affect the layout of the surrounding text, so list item text is aligned normally.) In both cases, if the list marker becomes really long and no longer fits its allotted space of 0.25in, there will be display artifacts. In Word-alikes, the item text will start at the *next* tab stop. In HTML+CSS, item text will visually overlap the marker.