w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 3affd139b7d08c37f7534b61d7000b80a805ddaa
parent ae621a9f94dfc75498b9a0576a180ac3ac92fa08
Author: ukai <ukai>
Date:   Fri, 25 Oct 2002 16:00:52 +0000

[w3m-dev-en 00777] patch to fix w3m-0.3.1 word break problem
* file.c (is_period_char):
	0x203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
	(is_beginning_char):
	0x2018 - LEFT SINGLE QUOTATION MARK
	0x2039 - SINGLE LEFT-POINTING ANGLE QUOTATION MARK
	(is_word_char): add several chars ifndef JP_CHARSET
		add ':' and '*'
From: Gary Johnson <garyjohn@spk.agilent.com>

Diffstat:
MChangeLog | 11+++++++++++
Mfile.c | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,14 @@ +2002-10-26 Gary Johnson <garyjohn@spk.agilent.com> + + * [w3m-dev-en 00777] patch to fix w3m-0.3.1 word break problem + * file.c (is_period_char): + 0x203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK + (is_beginning_char): + 0x2018 - LEFT SINGLE QUOTATION MARK + 0x2039 - SINGLE LEFT-POINTING ANGLE QUOTATION MARK + (is_word_char): add several chars ifndef JP_CHARSET + add ':' and '*' + 2002-10-17 Hiroyuki Ito <hito@crl.go.jp> * [w3m-dev 03342] diff --git a/file.c b/file.c @@ -2077,6 +2077,9 @@ is_period_char(int ch) case ']': case '}': case '>': +#ifndef JP_CHARSET + case 0x203A: /* ">" */ +#endif return 1; default: return 0; @@ -2092,6 +2095,10 @@ is_beginning_char(int ch) case '{': case '`': case '<': +#ifndef JP_CHARSET + case 0x2018: /* "`" */ + case 0x2039: /* "<" */ +#endif return 1; default: return 0; @@ -2101,6 +2108,52 @@ is_beginning_char(int ch) static int is_word_char(int ch) { +#ifndef JP_CHARSET + switch (ch) { + case 0x0152: /* "OE" */ + case 0x0153: /* "oe" */ + return 1; + case 0x0178: /* "Y:" */ /* ? */ + case 0x0192: /* "f" */ /* ? */ + case 0x02C6: /* "^" */ /* ? */ + return 0; + case 0x02DC: /* "~" */ + case 0x03BC: /* "\xB5" "mu" */ + return 1; + case 0x2002: /* " " "ensp" */ + case 0x2003: /* " " "emsp" */ + return 0; + case 0x2013: /* "\xAD" "ndash" */ + case 0x2014: /* "-" "mdash" */ + case 0x2018: /* "`" "lsquo" */ + case 0x2019: /* "'" "rsquo" */ + case 0x201A: /* "\xB8" "sbquo" */ + case 0x201C: /* "\"" "ldquo" */ + case 0x201D: /* "\"" "rdquo" */ + case 0x201E: /* ",," "bdquo" */ + case 0x2022: /* "*" "bull" */ /* ? */ + case 0x2030: /* "0/00" "permil" */ + case 0x2032: /* "'" "prime" */ + case 0x2033: /* "\"" "Prime" */ + case 0x2039: /* "<" "lsaquo" */ + case 0x203A: /* ">" "rsaquo" */ + case 0x2044: /* "/" "frasl" */ + case 0x20AC: /* "=C=" "euro" */ + case 0x2122: /* "TM" "trade" */ + return 1; + case 0x2205: /* "\xF8" "empty" */ /* ? */ + return 0; + case 0x2212: /* "-" */ + case 0x223C: /* "~" */ + return 1; + case 0x2260: /* "!=" */ /* ? */ + case 0x2261: /* "=" */ /* ? */ + case 0x2264: /* "<=" */ /* ? */ + case 0x2265: /* ">=" */ /* ? */ + return 0; + } +#endif + #ifdef JP_CHARSET if (is_wckanji(ch) || IS_CNTRL(ch)) return 0; @@ -2115,10 +2168,12 @@ is_word_char(int ch) switch (ch) { case ',': case '.': + case ':': case '\"': /* " */ case '\'': case '$': case '%': + case '*': case '+': case '-': case '@':