Re: [Lynx-dev] Adding a style

2024-04-04 Thread KIHARA Hideto
> There is no correct. I decide what I want. How do I add a > style? FYI. For example, this patch adds two styles (for pre-format and that have style {white-space:pre}). https://gist.github.com/deton/ebc9d4b4af6c216bd49cdb656a9b0ebc -- KIHARA, Hideto / de...@m1.interq.or.jp

[Lynx-dev] UTF-8 bookmark title not accepted after searching UTF-8 string

2024-02-03 Thread KIHARA Hideto
UTF-8 bookmark title is not accepted occasionally after searching UTF-8 string. Attached patch-a or patch-b fixes this problem. (I noticed this problem some years ago.) * How to reproduce: lynx -display_charset=utf-8 -cmd_script=./cmd_log ./bkm.html Commands in cmd_log file: + Input /α^J to

Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal

2022-03-31 Thread KIHARA Hideto
> > Does "document_charset" come from charset defined within of web > > page, e.g., ? document_charset comes from 1. HTTP header: Content-Type: text/html; charset=UTF-8 if header does not contain charset, 2. HTML: or if charset is not defined in HTML, 3. BOM (Byte Order Mark) for

Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal

2022-03-25 Thread KIHARA Hideto
> I wrote an additional patch to avoid adding spaces > when joining lines after Japanese characters. Attached test html files are converted to text/plain. Original test html files are here: http://www1.interq.or.jp/~deton/lynx-jajoinspaces/

Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal

2022-03-25 Thread KIHARA Hideto
> Does Lynx still add a space wherever there is a line break in the > text? Yes. My Japanese line wrap patch does not change this behavior. > is rendered as JJ[space]JJ[space]JJ, > but I hope for JJ, i.e., continuous text without spaces. I wrote an additional patch

[Lynx-dev] Japanese line wrap patch for UTF-8 terminal

2022-03-19 Thread KIHARA Hideto
Attached patch improves Japanese line wrap for UTF-8 display character set. * Issue: Lynx sometimes breaks lines near the beginning of a line for Japanese texts and UTF-8 display character set. These line breaks hinder smooth reading. * Example: Rails

Re: [Lynx-dev] Display of some multi-line links is cut off in the middle

2022-01-01 Thread KIHARA Hideto
> > > * Actual Result: > > > lynx https://lists.nongnu.org/archive/html/lynx-dev/2021-10/threads.html > oh. I see. But I don't see this result here (perhaps locale-dependent). I used this configuration on Debian 9: ./configure --libdir=/usr/local/lib/lynx --enable-nls \ --enable-included-msgs

[Lynx-dev] Display of some multi-line links is cut off in the middle

2021-12-30 Thread KIHARA Hideto
* Problem: In lynx2.9.0dev.10, display of some multi-line links is cut off in the middle. lynx2.9.0dev.9 does not have the problem. * Actual Result: lynx https://lists.nongnu.org/archive/html/lynx-dev/2021-10/threads.html > * [13][Lynx-dev] Build failures on hppa architectures after update >

[Lynx-dev] patch to allow in

2019-12-03 Thread KIHARA Hideto
ed to contain whatever the parent element may > contain. Attached ad hoc patch allows to contain and (like ). ( in is used in https://news.yahoo.co.jp/pickup/6343763 ) --test.html div dtdd p -- KIHARA, Hideto / de...@m1.interq.or.jp diff -urp ../orig/lynx2.9.0dev.4/WWW/Library/Impl

[Lynx-dev] patch to convert Japanese ISO-2022-JP html to UTF-8

2018-11-05 Thread KIHARA Hideto
Attached patch addes conversion from Japanese ISO-2022-JP html to UTF-8 display_charset. Screen captures: http://www1.interq.or.jp/~deton/lynx-jis2utf8/ -- KIHARA, Hideto / de...@m1.interq.or.jp diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 1f20ee8

[Lynx-dev] patch to convert JIS X 0201 Katakana from Shift_JIS/EUC-JP to UTF-8

2018-10-27 Thread KIHARA Hideto
/~deton/lynx-sjisjisx0201/ -- KIHARA, Hideto / de...@m1.interq.or.jp diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 193e68d..1f20ee8 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -1670,6 +1670,13 @@ static void

Re: [Lynx-dev] wcwidth not honoured

2018-10-05 Thread KIHARA Hideto
> (patches welcome) My patch is attached. Screen capture: http://www1.interq.or.jp/~deton/lynx-wcwidth/ Known issue: * Highlight is incorrect on selecting wrapped long wide-char link text. * Whereis highlight position is incorrect after wide-char text. * Not support treating double-width for

[Lynx-dev] Wrong message in lynx -help

2012-02-18 Thread KIHARA Hideto
I found a wrong message in lynx -help output: message for '-html5_charsets' option is same as '-historical'. % lynx -help ... -historical toggles use of '' or '--' as terminator for comments (off) -html5_charsets toggles use of '' or '--' as terminator for comments (off)

[Lynx-dev] HTML5 meta charset attribute

2011-09-29 Thread KIHARA Hideto
Please support meta charset attribute of HTML5. http://www.w3.org/TR/html5/semantics.html#the-meta-element Because lynx does not recognize charset attribute on the meta element, following site which contains meta charset=UTF-8 is not shown correctly. http://vim-jp.org (Charset: euc-jp in

[Lynx-dev] Adding fragment identifier(#) by RULE:Redirect to jump to main content

2009-10-10 Thread KIHARA Hideto
I wrote following RULE in lynx.cfg to automatically jump to main content of each article, because I'm annoyed about finding beginning of content by typing space (page-down) key many times or searching Skip to Content link and selecting it to skip menu area of each article. (For example, select