From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: EWW: Face property changes around newlines Date: Wed, 09 Jan 2019 07:01:02 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547046377 20698 195.159.176.226 (9 Jan 2019 15:06:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2019 15:06:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 09 16:06:12 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghFQl-0005DI-Gy for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2019 16:06:12 +0100 Original-Received: from localhost ([127.0.0.1]:36773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghFSs-0002QA-63 for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2019 10:08:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghFMC-0006av-NV for emacs-devel@gnu.org; Wed, 09 Jan 2019 10:01:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghFM1-0003r2-GW for emacs-devel@gnu.org; Wed, 09 Jan 2019 10:01:21 -0500 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:39115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghFLx-0003lB-QV for emacs-devel@gnu.org; Wed, 09 Jan 2019 10:01:11 -0500 Original-Received: by mail-pl1-x633.google.com with SMTP id 101so3702555pld.6 for ; Wed, 09 Jan 2019 07:01:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=0liZSz5HKeHqgVQnLd52QMW00xqP/l7Y+0Kh1bChc2A=; b=HVcAhmlZ1EskzDdx5r+hy48k+M2//UqRJSQFXapocUXOJ4gq0O7GaqwWhE4pPIwc4R Q6zBqZFwKMgUbvrNlGucKuJaoA8oNOtpmwdeFuJyRQHs4PCF4AA/pRYwq3q+GAHdpY4m gxU9fEtQr+S/3D5xJ+rtdlSFMbDdRKUr2ydKZecZUKI+dAGtQJLTcpxroVf//wqxVtJE QWBHaum/aqMQu+bNmdb19MnYFRTfVqf25mFltXz1gMsUgUu72TXZ29YxXkPLu4fpEcKO yhli5tYevPI0ssd2jgnruPRvLnnP/EjGVjWVBLKRrnLZmE7DADEve1cfP6utOCMM5VPY T9Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=0liZSz5HKeHqgVQnLd52QMW00xqP/l7Y+0Kh1bChc2A=; b=Oy39yTloM8rr8snSQlzj4YefNafXLY9KmQELVbqE7aJ1yFCfkG+edPBfo9tP8vt51r Tzj8Y3Om/2T/GTPRAB7tWCyuZuyEi3HzBoBNzDxa+QqkrU/uhnx0H6XCCbfiNWyPJIeB oBhg1jr0TXpjK6Z8gVv+WtrBYIk/+KRhUzojDD7f1IxmUm4orqFpQ/J7RZsQIrP80mov 2g4iQlEstnfIf3taFZY8Eoz5JLSgSCMeTJ/TISGWhLQ/4hYW631UES0gwJTzC6iZOYM7 5GKUi2q50TUPfTxuNkWxZdEpY4DpLt+VLFX4fSSvB3/g3oz1q4sCbKjh/Rn9ZAhq/Swm Dvmg== X-Gm-Message-State: AJcUukfSv/nPdp3t+TmHEG9innVFKdLNF+VQaT+E5KtlcqlhK+TzFqC6 n36hfrTQjtEZwp92wEcg3ZRNHw== X-Google-Smtp-Source: ALg8bN42MtSol4ULjwO1KMLVD6OnqgYt2YZ8t7guLxZWThMEp1v1Ayiadf4GZczl0pOIulYwpkz2IQ== X-Received: by 2002:a17:902:f20b:: with SMTP id gn11mr6098457plb.274.1547046066700; Wed, 09 Jan 2019 07:01:06 -0800 (PST) Original-Received: from raman-glaptop.localdomain (225.sub-166-167-102.myvzw.com. [166.167.102.225]) by smtp.gmail.com with ESMTPSA id h69sm87517986pge.4.2019.01.09.07.01.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jan 2019 07:01:04 -0800 (PST) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 75A77C20BB7; Wed, 9 Jan 2019 07:01:02 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 09 Jan 2019 09:35:04 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::633 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:232275 gmane.emacs.bugs:154292 Archived-At: Stefan Monnier writes: Hi Stefan -- Here is the problem; it's not that easy from the emacspeak side -- see below. Emacspeak uses the following algorithm to split text into chunks before sending to the TTS engine. 1. Split by clauses -- where "clause" is determined by the buffer's syntax table. 2. Next, split the clause into chunks based on property changes -- since "changing voice params on any TTS engine triggres a clause boundary. 3. (2) is achieved by calling next-single-property-change 4. Result -- in EWW buffers, next-single-property-change always goes to the newline char when on text that isn't otherwise decorated i.e. variable-pitch->nil for the 'face property. For now I discovered the shr-use-fonts option and turned it off --- that appears to fix my problem in large part. >> EWW appears to work differently -- if you take a plain paragraph that >> spans multiple lines, the text uses "variable-pitch" as the face >> property -- except that that property is not set on the newline >> characters within the paragraph. > > I'm not sure how hard/easy it may be to change SHR (used by EWW) to do > that, but I have the impression that it may be non-trivial. > >> I'm sure this makes no visible difference to the layout -- but it >> affects Emacspeak's logic for breaking content into meaningful >> clauses. > > Maybe it would be simpler to change Emacspeak so it ignores face > properties on whitespace? > > > Stefan > > --