From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: word-wrap and wrapping before window-width Date: Wed, 31 Dec 2014 18:57:53 +0000 Message-ID: <87egrf640e.fsf@violet.siamics.net> References: <87bnmq9ibf.fsf@ferrier.me.uk> <87lhlrx5fc.fsf@building.gnus.org> <878uhrcr5l.fsf@building.gnus.org> <83sifzjflk.fsf@gnu.org> <87egric2ki.fsf_-_@violet.siamics.net> <877fxaa49w.fsf@violet.siamics.net> <831tnicji7.fsf@gnu.org> <87vbks7bk5.fsf@violet.siamics.net> <83r3vga3g1.fsf@gnu.org> <87r3vg73bl.fsf@violet.siamics.net> <838uhndc44.fsf@gnu.org> <87387v7p2i.fsf@violet.siamics.net> <83387vd9g0.fsf@gnu.org> <87lhln66wa.fsf@violet.siamics.net> <83sifvbr6l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420052305 19472 80.91.229.3 (31 Dec 2014 18:58:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 18:58:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 31 19:58:21 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Y6OTL-0005gx-D1 for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2014 19:58:19 +0100 Original-Received: from localhost ([::1]:41139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6OTK-0005tq-Vw for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2014 13:58:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6OT8-0005tZ-Ao for emacs-devel@gnu.org; Wed, 31 Dec 2014 13:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6OT7-0000v5-6D for emacs-devel@gnu.org; Wed, 31 Dec 2014 13:58:06 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:53360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6OT6-0000uP-TD for emacs-devel@gnu.org; Wed, 31 Dec 2014 13:58:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=JawVhNHpcb0xcoXsnQWiYbz0Sz+Bw6jYTWYmJXDccVY=; b=HGp2SquVHhoIpgTrY8yWhyANqpxGiNapLW2hAX+lq8V3c9EhUXift1Vq7v5x3F4JKC6+Yb13dvk6hZOWKxQW/HYeeHt7fm0wgDr+s7MBRKfMHhH9uwSrB3q604Ym6iySSmmCsJK/9e62Cf/YpjKb0NNtmYuvm39PaK0YvVvB/PA=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y6OT3-00058Z-8r for emacs-devel@gnu.org; Wed, 31 Dec 2014 18:58:01 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y6OSw-0008LA-3e for emacs-devel@gnu.org; Thu, 01 Jan 2015 01:57:54 +0700 Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <83sifvbr6l.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 31 Dec 2014 20:38:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180906 Archived-At: >>>>> Eli Zaretskii writes: >>>>> From: Ivan Shmakov Date: Wed, 31 Dec 2014 17:55:33 +0000 >>> And Firefox does that too: it inhibits word wrap when horizontal >>> scrolling is in effect. It just doesn't unwrap what was already >>> wrapped, that's all the difference. >> Frankly, I=E2=80=99m not so sure of this interpretation. Anyway, from = the >> user=E2=80=99s perspective, =E2=80=93 is there a difference between =E2= =80=9Cnot unwrapping=E2=80=9D >> and =E2=80=9Cwrapping at an arbitrary column=E2=80=9D? > This is emacs-devel, not help-gnu-emacs ;-) So our perspective is > different. My understanding of how CSS support is implemented is that window geometry changes are one but by no means the only way that may lead Firefox to recompute the container widths. Once the width is computed, =E2=80=93 the text is wrapped at that exact point (if at all.) In the case at hand, the width of the container was constrained to be no less of the contained object (
 in this case.)
	Which gave the behavior observed.  This is a sure possibility,
	but I know of nothing in the specifications that=E2=80=99d suggest
	that=E2=80=99s a necessity.

 >>> Yes, but Emacs has a harder job to do: the above model is
 >>> problematic with bidirectional text when a single buffer has
 >>> paragraphs of different directionality (which Firefox doesn't seem
 >>> to support).

 >> You mean, your install Firefox install doesn=E2=80=99t cope with, say, =
the
 >> simplistic example document shown at [2]?

 >> [2] https://ru.wikibooks.org/wiki/HTML_=D0=B2_=D0=BF=D1=80=D0=BE=D1=84=
=D0=B8=D0=BB=D1=8F=D1=85/=D0=91=D0=B0=D0=B7=D0=BE=D0=B2=D1=8B=D0=B9_=D0=BF=
=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8C#multilingual.html

 > No, I meant it cannot determine the base paragraph direction
 > automatically, as Unicode requires.

	I presume that Unicode paragraphs are not meant to be exactly
	the same thing as HTML5 paragraphs?

	Anyway, the HTML5 TR clearly specifies at which point the
	paragraph direction is reconsidered; see [1].  For one thing,
	the directionality of the 
 contents is (AIUI) determined
	on per line basis.

[1] http://www.w3.org/TR/html5/dom.html#the-dir-attribute

 > Also, its horizontal scrolling of mixed-directional paragraphs makes
 > it hard to read the stuff, because scrolling to the right makes RTL
 > text at the beginning of a line disappear.  Emacs does a much better
 > job in that respect.

	I do not think I understand.  Care to provide examples?

--=20
FSF associate member #7257  http://boycottsystemd.org/  =E2=80=A6 3013 B6A0=
 230E 334A