Re: [9fans] netsurf or opossum

2021-05-08 Thread Philip Silva via 9fans
The figures turn out to be quite practical though! :) Non-utf8 Encoding for 
most forms should work now, although some corner-cases for POST are still 
missing.

Probably the fonts could be copied over or you can look for fonts that include 
subfonts covering the fullwidth ranges 0xff01-0xffe5. By the way, the fonts are 
configurable now, so the $font env variable is parsed, e.g. it's possible to 
start with:

font=/lib/font/bit/pelm/unicode.9.font go run .

All unicode.###.font files are then used for scaling, unfortunately anti 
aliased fonts don't work well yet.

Also I found ttf2subf and the fontsel tool quite practical:

http://9front.org/extra/ttf2subf.tgz
http://shithub.us/sigrid/fontsel/HEAD/info.html
https://plan9.io/wiki/plan9/fonts/index.html

Philip

> You see 日本語 string changed to other unknown word.
>
> PS: this is also a test of 9legacy's upas to attach figures☺

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mbb6f7d85b8d0afb3b15d51c9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-05-03 Thread kokamoto
> PS: this is also a test of 9legacy's upas to attach figures☺

Ok, I got right mail with figures.

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M5d59097b8c3833de4eecc4c7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-05-03 Thread kokamoto
> diff -r 859a4e61471b lib/font/bit/lucidasans/unicode.10.font
> --- a/lib/font/bit/lucidasans/unicode.6.font   Mon May 03 21:04:39 2021 +0200
> +++ b/lib/font/bit/lucidasans/unicode.6.font   Mon May 03 22:35:32 2021 +0200
> @@ -55,6 +55,7 @@
>  0x9a01 0x9bf5  ../shinonome/k12.9a01
>  0x9c04 0x9dfd  ../shinonome/k12.9c04
>  0x9e1a 0x9fa0  ../shinonome/k12.9e1a

These lines are ../naga10/knj10.xxx in my list, which I haven't check,
just following 9legacy standard.
Additionary, I have no vga fonts.

Are you using additional patches for this?

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M035791b151c190d97b3c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-05-03 Thread Philip Silva via 9fans
Hi!

Here's a patch for most of the fullwidth glyphs in lucidasans and vga! The 
subfonts are already used in each font file. I guess one way to quickly test 
would be:

hget https://ja.wikipedia.org | htmlfmt > /tmp/wp
for (font in /lib/font/bit/lucidasans/unicode.*.font 
/lib/font/bit/vga/unicode.font) {
  acme /tmp/wp
}

Probably a similar patch could also easily be created for the bold and italic 
versions, but that's too much work for now :)

Philip

diff -r 859a4e61471b lib/font/bit/lucidasans/unicode.10.font
--- a/lib/font/bit/lucidasans/unicode.10.font   Mon May 03 21:04:39 2021 +0200
+++ b/lib/font/bit/lucidasans/unicode.10.font   Mon May 03 22:35:32 2021 +0200
@@ -55,6 +55,7 @@
 0x9a01 0x9bf5  ../shinonome/k16.9a01
 0x9c04 0x9dfd  ../shinonome/k16.9c04
 0x9e1a 0x9fa0  ../shinonome/k16.9e1a
+0xff01 0xffe5  ../shinonome/k16.ff01
 0xfb1e 0xfb1e  ../lucida/Althebrew.9.0
 0xfff9 0x  ../dejavu/dejavu.16.fff9
 0xfb00 0xfc00  ../dejavu/dejavu.16.fb00
diff -r 859a4e61471b lib/font/bit/lucidasans/unicode.13.font
--- a/lib/font/bit/lucidasans/unicode.13.font   Mon May 03 21:04:39 2021 +0200
+++ b/lib/font/bit/lucidasans/unicode.13.font   Mon May 03 22:35:32 2021 +0200
@@ -56,3 +56,4 @@
 0x9c00 0x9dff ../jis/jis9c00.24
 0x9e00 0x9fff ../jis/jis9e00.24
 0xfb1e 0xfb1e  ../lucida/Althebrew.12.0
+0xfee0 0xff5e  lsr.24
diff -r 859a4e61471b lib/font/bit/lucidasans/unicode.6.font
--- a/lib/font/bit/lucidasans/unicode.6.fontMon May 03 21:04:39 2021 +0200
+++ b/lib/font/bit/lucidasans/unicode.6.fontMon May 03 22:35:32 2021 +0200
@@ -56,6 +56,7 @@
 0x9a01 0x9bf5  ../shinonome/k12.9a01
 0x9c04 0x9dfd  ../shinonome/k12.9c04
 0x9e1a 0x9fa0  ../shinonome/k12.9e1a
+0xff01 0xffe5  ../shinonome/k12.ff01
 0xfb00 0xfbff  ../fixed/6x12.FB00
 0xfe00 0xfeff  ../fixed/6x12.FE00
 0xff00 0x  ../fixed/6x12.FF00
diff -r 859a4e61471b lib/font/bit/lucidasans/unicode.7.font
--- a/lib/font/bit/lucidasans/unicode.7.fontMon May 03 21:04:39 2021 +0200
+++ b/lib/font/bit/lucidasans/unicode.7.fontMon May 03 22:35:32 2021 +0200
@@ -59,6 +59,7 @@
 0x9a01 0x9bf5  ../shinonome/k12.9a01
 0x9c04 0x9dfd  ../shinonome/k12.9c04
 0x9e1a 0x9fa0  ../shinonome/k12.9e1a
+0xff01 0xffe5  ../shinonome/k12.ff01
 0xfb00 0xfbff  ../fixed/7x14.FB00
 0xff00 0x  ../fixed/7x14.FF00
 0x0600 0x06ff  ../fixed/9x15.0600
diff -r 859a4e61471b lib/font/bit/lucidasans/unicode.8.font
--- a/lib/font/bit/lucidasans/unicode.8.fontMon May 03 21:04:39 2021 +0200
+++ b/lib/font/bit/lucidasans/unicode.8.fontMon May 03 22:35:32 2021 +0200
@@ -66,6 +66,7 @@
 0x9a01 0x9bf5  ../shinonome/k14.9a01
 0x9c04 0x9dfd  ../shinonome/k14.9c04
 0x9e1a 0x9fa0  ../shinonome/k14.9e1a
+0xff01 0xffe5  ../shinonome/k14.ff01
 0xfb00 0xfbff  ../fixed/9x18.FB00
 0xfe00 0xfeff  ../fixed/9x18.FE00
 0xff00 0x  ../fixed/9x18.FF00
diff -r 859a4e61471b lib/font/bit/vga/unicode.font
--- a/lib/font/bit/vga/unicode.font Mon May 03 21:04:39 2021 +0200
+++ b/lib/font/bit/vga/unicode.font Mon May 03 22:35:32 2021 +0200
@@ -191,6 +191,7 @@
 0x9a01 0x9bf5  ../shinonome/k12.9a01
 0x9c04 0x9dfd  ../shinonome/k12.9c04
 0x9e1a 0x9fa0  ../shinonome/k12.9e1a
+0xff01 0xffe5  ../shinonome/k12.ff01
 0x0e00 0x0eff  ../fixed/7x14.0E00
 0x1600 0x16ff  ../fixed/7x14.1600
 0x2400 0x24ff  ../fixed/7x14.2400


‐‐‐ Original Message ‐‐‐
Am Montag, 26 April 2021 21:29 schrieb :


> Yes, that seems like a font issue, and should be fixed there.
> I'll gladly commit patches that fix missing glyphs.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M868b7e06206f0a22d9fdd868
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-26 Thread ori
Quoth Philip Silva via 9fans <9fans@9fans.net>:
> Hm ok, that's rather tricky to reproduce. (Also unfortunately I don't have a 
> running 9legacy system) One thing I noticed though that for instance on 
> https://ja.wikipedia.org the parentheses are usually fullwidth parentheses 
> and on 9front rendered to the UTF8 face :-). I added a commit which maps 
> these and other characters to their canonical widths. That's really a quick 
> fix but it seems to improve things, maybe also there. It could also be solved 
> font-wise, at some point I definitely want to write a function that checks 
> which fonts are available.
> 
> Philip
>

Yes, that seems like a font issue, and should be fixed there.
I'll gladly commit patches that fix missing glyphs.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mb38bcf3351cd98e81a0c0707
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-26 Thread Philip Silva via 9fans
Hm ok, that's rather tricky to reproduce. (Also unfortunately I don't have a 
running 9legacy system) One thing I noticed though that for instance on 
https://ja.wikipedia.org the parentheses are usually fullwidth parentheses and 
on 9front rendered to the UTF8 face :-). I added a commit which maps these and 
other characters to their canonical widths. That's really a quick fix but it 
seems to improve things, maybe also there. It could also be solved font-wise, 
at some point I definitely want to write a function that checks which fonts are 
available.

Philip

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M4f7bb0fa486c25a34386f8b0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-24 Thread kokamoto
I included a picture taken on 9legacy's opossum screen.
On the 6th line, there is a words of '日本語Nul言語Nul', 
which should be '日本語(言語)'.

The '(' or ')' is replaced by NUL character, which may be
caused from a library under your program, not from yours.
This is just my guess.

Kenji
from postmaster@ci5hp2:
The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

Content-Type: application/x-bzip2
Content-Disposition: attachment; filename=opossum.bz2
Content-Transfer-Encoding: base64
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M31cba2fbe975ce2cf7e736f1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


opossum.bz2.suspect
Description: Binary data


Re: [9fans] netsurf or opossum

2021-04-24 Thread Philip Silva via 9fans
Awesome, no problem!

> There is still 'NUL' character when 漢字 and ( or ), hankaku moji,
are mixed: like
> 例(日本語) ==>例NUL日本語NUL

I wonder what that could be. So with the current version (910bfe from 
yesterday) it can work if the input is UTF-8: http://psilva.sdf.org/ja.html Do 
you maybe have a link with an example?

Philip

> Yes, now we can see right Japanese text!
> Very quick fix, thanks.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M451400dca342486b2cec37f1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
--- Begin Message ---
That was unexpected, but it should be much better now! Now the character set 
hint is actually used

‐‐‐ Original Message ‐‐‐
Am Freitag, 23 April 2021 06:37 schrieb :

> Please look at http://google.co.jp
>
> We see many 'NULL' on this page.
>
> Kenji
>
>
> -
>
> 9fans: 9fans
> Permalink: 
> https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M26405485fc05d412397ae633
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription



--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Me661195a090dd94d77e2ea9e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
--- End Message ---


Re: [9fans] netsurf or opossum

2021-04-23 Thread kokamoto
> Yes, now we can see right Japanese text!

It's not enough.
There is still 'NUL' character when 漢字 and ( or ), hankaku moji,
are mixed: like
例(日本語) ==>例NUL日本語NUL

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Md930fcb8c502bf42ec80451d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-23 Thread kokamoto
Yes, now we can see right Japanese text!
Very quick fix, thanks.

Kenji

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M5edc10f1830b81c5be2d7bc0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
--- Begin Message ---
That was unexpected, but it should be much better now! Now the character set 
hint is actually used

‐‐‐ Original Message ‐‐‐
Am Freitag, 23 April 2021 06:37 schrieb :

> Please look at http://google.co.jp
>
> We see many 'NULL' on this page.
>
> Kenji
>
>
> -
>
> 9fans: 9fans
> Permalink: 
> https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M26405485fc05d412397ae633
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription



--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Me661195a090dd94d77e2ea9e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription--- End Message ---


Re: [9fans] netsurf or opossum

2021-04-23 Thread Philip Silva via 9fans
That was unexpected, but it should be much better now! Now the character set 
hint is actually used

‐‐‐ Original Message ‐‐‐
Am Freitag, 23 April 2021 06:37 schrieb :

> Please look at http://google.co.jp
>
> We see many 'NULL' on this page.
>
> Kenji
>
>
> -
>
> 9fans: 9fans
> Permalink: 
> https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M26405485fc05d412397ae633
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription



--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Me661195a090dd94d77e2ea9e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-22 Thread kokamoto
Please look at http://google.co.jp

We see many 'NULL' on this page.

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M26405485fc05d412397ae633
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-22 Thread Philip Silva via 9fans
Although I guess generally it's good to have more than one Browser available.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mfe40f44f07f618e8e041c150
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-22 Thread Philip Silva via 9fans
> > One big disadvantage is not having 'colspan'...
>
> Nice, now it has this, and do resizing of the window!

True! At least the colspan is gracefully ignored, but probably it's really not 
that important :D

Philip

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mbe2264f63687cbdc84fd6c2e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-04-21 Thread kokamoto
> One big disadvantage is not having 'colspan'...

Nice, now it has this, and do resizing of the window!

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Maa74ff3b8e96100d5c595a51
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-01-07 Thread kokamoto
> Also it's quite speculative how far one could get with JS which is 
> essentially based on goja and domino. 

Yes, JS works in more limited than netsurf, although the latter has a little 
functions.

One big disadvantage is not having 'colspan'...

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M772bbdaf91487f202670df6e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-01-07 Thread kokamoto
Thank you very much for your technical explanation, Philip.

By the way the file sizes of both are:

--rwxrwxr-x M 24 sys sys 51135788 Jan  7 15:33 /amd64/bin/netsurf
--rwxr-xr-x M 24 sys sys 15456437 Jan  7 09:32 /amd64/bin/opossum

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Me2d2ec238760de604631385b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-01-07 Thread Philip Silva via 9fans
To be fair I think the rendering quality can be attributed to the html/css 
processing. For instance parsing is completely done by golang.org/x/net/html 
and github.com/aymerick/douceur. (Also one can get quite far with handling 
display: inline/inline-block/flex and height/width attributes)

One disadvantage might be that some existing HTML styling attributes aren't 
implemented yet like colspan or "standard" tags like textarea or radio inputs 
although that's easy to implement. Also it's quite speculative how far one 
could get with JS which is essentially based on goja and domino. But it's 
promising that jQuery click handlers work in isolated examples, despite the 
onclick attribute not even being implemented.

Probably it's also worth mentioning that memory consumption is comparable to 
that of a regular browser on macOS. Maybe this could be solved by some kind of 
tree slicing.

In any case I think developing is fun most of the time!

Greetings, Philip


‐‐‐ Original Message ‐‐‐
Am Donnerstag, 7. Januar 2021 09:28 schrieb Mark van Atten 
:

> http://git.pmikkelsen.com/ph/opossum
>
> -
>
> 9fans: 9fans
> Permalink: 
> https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mf2d9006c5749e4decf646828
> Delivery options: https://9fans.topicbox.com/groups/9fans/subscription



--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mc647b1b9c4ce279c9a88b6a4
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-01-07 Thread Mark van Atten
http://git.pmikkelsen.com/ph/opossum

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-Mf2d9006c5749e4decf646828
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] netsurf or opossum

2021-01-07 Thread Lucio De Re
> Netsurf is written in C, and Opossum is in Go.
> Most basic difference is that opossum is written for Plan 9
> from the beginning which may be better for us...
>
One point in favour, from a Go fan: Go is far more maintainable than
C. I can think of some disadvantages, though.

As I can't find opossum by simple google, that's as much as I can
contribute. Possum seems to be a web library, so I can't comment, at
least not yet.

Lucio,

On 1/7/21, kokam...@hera.eonet.ne.jp  wrote:
> I got now rwo new web browsers which can do css and/or js on my
> 9front box.
> 
> Both have almost same functionality and speed etc.
> A page with JS (https://eonet.ne.jp) is almost same as that by JS enabled
> netsurf.
> 
> How do you think?
> 
> Kenji
> 


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 71 471 3694
Cell: +27 83 251 5824

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M96ddc3caa3f22ccc00df27c5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] netsurf or opossum

2021-01-06 Thread kokamoto
I got now rwo new web browsers which can do css and/or js on my
9front box.

Both have almost same functionality and speed etc.
A page with JS (https://eonet.ne.jp) is almost same as that by JS enabled 
netsurf.

Netsurf is written in C, and Opossum is in Go.
Most basic difference is that opossum is written for Plan 9
from the beginning which may be better for us...

How do you think?

Kenji


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9a725c37f61954a8-M0b8185d6fd705fbab2715278
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription