From leftmostcat@gmail.com Thu Aug 29 19:03:19 2013 Return-Path: X-Original-To: gtk-i18n-list@gnome.org Delivered-To: gtk-i18n-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id DF82976E80 for ; Thu, 29 Aug 2013 19:03:19 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sF2mio9NUgUH for ; Thu, 29 Aug 2013 19:03:06 +0000 (UTC) Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by restaurant.gnome.org (Postfix) with ESMTP id CDD7A76AB6 for ; Thu, 29 Aug 2013 19:02:54 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id a12so784751wgh.4 for ; Thu, 29 Aug 2013 12:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=W+yBX60dQKvkZ2ft4CRYYlFVHX3qjXmXwAQRbOBb7CQ=; b=dFgvDxRCgqFsYLpQt3fjmXSAOX7Jb3bjjwnSQbDNSnuTZLYRIAYTZOZhPn9aztOwaa 0SF/oVvJu+rVli8bf4Ya4Wxh7l5HZ3kTvGwGk1k11QKOL1itz0pgXUEY6+4NV4SXz+TH 1Lyb34sxfOVF/h0E0TkttSCYas+2yFKPsLd2uJrXycy/IG0us4nRKKeZBLVTXwIyU5ZG fwTLXVZ8lws/c08c5sBrN7f/z4zZi3j5fL+ZR4Y27pS1A7KpP9eEZDjoUScisnpsMZd3 Q5/Q3G5CHm2INJzl1JEBg4QDSNRrTSxNzaS+QenrvdaaghpJaoiihldbTGiB+T7yrGz3 u5yw== MIME-Version: 1.0 X-Received: by 10.180.189.49 with SMTP id gf17mr1212836wic.23.1377802972816; Thu, 29 Aug 2013 12:02:52 -0700 (PDT) Received: by 10.194.26.195 with HTTP; Thu, 29 Aug 2013 12:02:52 -0700 (PDT) Date: Thu, 29 Aug 2013 13:02:52 -0600 Message-ID: Subject: U+00AD SOFT HYPHEN rendering From: Sean Burke To: gtk-i18n-list@gnome.org Content-Type: multipart/alternative; boundary=001a11c33fd0c3ea5604e51ac0ed X-BeenThere: gtk-i18n-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Internationalization and GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 19:03:19 -0000 --001a11c33fd0c3ea5604e51ac0ed Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I would like to address the bug at https://bugzilla.gnome.org/show_bug.cgi?id=3D580275 and have pango correctl= y render soft hyphens when breaking. However, I am not sure where in the code to begin. I would appreciate some direction in this regard. Se=C3=A1n de B=C3=BArca --001a11c33fd0c3ea5604e51ac0ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

=C2=A0=C2=A0=C2=A0 I would like to addr= ess the bug at https://bugzilla.gnome.org/show_bug.cgi?id=3D580275 and have pango = correctly render soft hyphens when breaking. However, I am not sure where i= n the code to begin. I would appreciate some direction in this regard.


Se=C3=A1n de B=C3=BArca
--001a11c33fd0c3ea5604e51ac0ed-- From leftmostcat@gmail.com Sat Aug 31 07:26:05 2013 Return-Path: X-Original-To: gtk-i18n-list@gnome.org Delivered-To: gtk-i18n-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 499E3763EE for ; Sat, 31 Aug 2013 07:26:05 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vBcUiaozl6hc for ; Sat, 31 Aug 2013 07:26:01 +0000 (UTC) Received: from mail-qc0-f174.google.com (mail-qc0-f174.google.com [209.85.216.174]) by restaurant.gnome.org (Postfix) with ESMTP id 12F6A76319 for ; Sat, 31 Aug 2013 07:25:50 +0000 (UTC) Received: by mail-qc0-f174.google.com with SMTP id e9so422176qcy.33 for ; Sat, 31 Aug 2013 00:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CXRHKC/xqi4eoCN8na1kmH7SPc5PgP2P9br1lDOs5y8=; b=RpwhCwilEYpFng+URjVwMLzBCZ90bwNJuBBml3ZwT5T6SkI8o9VsXvrOp1Ks5a4nOz wQyrhNjaAGb4Mo++t5PuBCg7gZ1OTC87Z8N8VWaEEBe8ymvhmv+yWjZKZ99TTAcBtrO/ Om8XsuCFZi1SwtjqOfwHMhytoKDVTXb6jTxeqmAYNBmt5xD+OgfpjTrX38b4Lee27LO3 a6JLJEMHLUi8dQZ/NPJSDQenLR74v3AI8TsHGwulKupu0/JK+jsouWawByAB48ZVYn95 sYfN/pdEagUc/3tAJ+xGjVjCoyeGndHYC1/QozqA87ojeruWMs0k8DaCvr5HNp6BLozO AX7A== MIME-Version: 1.0 X-Received: by 10.49.98.100 with SMTP id eh4mr348067qeb.42.1377933948849; Sat, 31 Aug 2013 00:25:48 -0700 (PDT) Received: by 10.49.39.3 with HTTP; Sat, 31 Aug 2013 00:25:48 -0700 (PDT) In-Reply-To: References: Date: Sat, 31 Aug 2013 01:25:48 -0600 Message-ID: Subject: Re: U+00AD SOFT HYPHEN rendering From: Sean Burke To: gtk-i18n-list@gnome.org Content-Type: multipart/alternative; boundary=047d7bdc95748b979304e5393f06 X-BeenThere: gtk-i18n-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Internationalization and GTK+ List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Aug 2013 07:26:05 -0000 --047d7bdc95748b979304e5393f06 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've continued looking into this problem and come up with a few thoughts. According to the LINE BREAKING ALGORITHM, there are a few behaviors that can occur with SHY. It's not totally clear how best to proceed. Would it make sense to default to showing U+2010 and let tailored algorithms deal with the other possibilities? It seems like it would be possible (though perhaps not ideal) to create an attribute in PangoLogAttr for is_soft_hyphen and then use that to insert a hyphen where appropriate, though looking at the code I'm still not sure how to do this. It would need logic to check is_soft_hyphen at a potential break and, if so, check to see if there's enough width for the hyphen and break elsewhere if not. I'm also not clear on how to insert the hyphen into the layout. Se=C3=A1n de B=C3=BArca On Thu, Aug 29, 2013 at 1:02 PM, Sean Burke wrote: > Hello, > > I would like to address the bug at > https://bugzilla.gnome.org/show_bug.cgi?id=3D580275 and have pango > correctly render soft hyphens when breaking. However, I am not sure where > in the code to begin. I would appreciate some direction in this regard. > > > Se=C3=A1n de B=C3=BArca > --047d7bdc95748b979304e5393f06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've continued looking into this problem and come up w= ith a few thoughts. According to the LINE BREAKING ALGORITHM, there are a f= ew behaviors that can occur with SHY. It's not totally clear how best t= o proceed. Would it make sense to default to showing U+2010 and let tailore= d algorithms deal with the other possibilities? It seems like it would be p= ossible (though perhaps not ideal) to create an attribute in PangoLogAttr f= or is_soft_hyphen and then use that to insert a hyphen where appropriate, t= hough looking at the code I'm still not sure how to do this. It would n= eed logic to check is_soft_hyphen at a potential break and, if so, check to= see if there's enough width for the hyphen and break elsewhere if not.= I'm also not clear on how to insert the hyphen into the layout.


Se=C3=A1n de B=C3=BArca

On Thu, Aug 29, 2013 at 1:02 PM, Sean Burke <leftmostcat@gmail.com> wrote:
Hello,

=C2=A0= =C2=A0=C2=A0 I would like to address the bug at https://bugzilla.gno= me.org/show_bug.cgi?id=3D580275 and have pango correctly render soft hy= phens when breaking. However, I am not sure where in the code to begin. I w= ould appreciate some direction in this regard.


Se=C3=A1n de B=C3=BArca

--047d7bdc95748b979304e5393f06--