Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: shr line breaking (was: [gnus git] branch master updated: =1= shr.el (shr-find-fill-point): Work better for kinsoku chars and apostrophes.)
Date: Mon, 06 Dec 2010 11:47:58 +0100	[thread overview]
Message-ID: <m31v5v6uu9.fsf_-_@quimbies.gnus.org> (raw)
In-Reply-To: <b4maakjipb2.fsf@jpl.org>

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> Because "'" is categorized as kinsoku-bol, that should not appear
> in the beginning of a line.  But I've modified the code so as to
> give it special treatment.  Thanks.

Thanks.  But I'm starting to wonder whether the line breaking algo
should be broken up into two bits -- one for Japanese (etc.) text an one
for the rest.

Like the following line:

names like www.example.com into the numeric IP addresses like 192.0.2.1

(shr-find-fill-point) will put point before the "1", which is wrong in
this instance.  Non-CJVK texts can only be broken where there's a space
character, so perhaps we need additional logic to find out whether a
(part of a) line is CJVK or not before trying to find the fill point?
This may be difficult on mixed texts, perhaps...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2010-12-06 10:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1PNL64-0000my-00@quimby.gnus.org>
2010-11-30 14:44 ` [gnus git] branch master updated: =1= shr.el (shr-find-fill-point): Work better for kinsoku chars and apostrophes Lars Magne Ingebrigtsen
2010-11-30 23:27   ` Katsumi Yamaoka
2010-12-01  2:39     ` Katsumi Yamaoka
2010-12-01  6:45       ` Lars Magne Ingebrigtsen
2010-12-04 19:35         ` Lars Magne Ingebrigtsen
2010-12-04 21:03           ` Adam Sjøgren
2010-12-04 22:20             ` Lars Magne Ingebrigtsen
2010-12-04 23:27               ` Adam Sjøgren
2010-12-06  2:54           ` Katsumi Yamaoka
2010-12-06 10:47             ` Lars Magne Ingebrigtsen [this message]
2010-12-07  1:18               ` shr line breaking Katsumi Yamaoka
2010-12-16 17:41                 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m31v5v6uu9.fsf_-_@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).