w3m を改造する(5週目くらいw)。
以前は c++ で改造を試みていたのだがうまくいかなかった。
今回は zig 化を視野に繋ぎに -std=gnu23
で進行。
- zig cc で build する
- windows で動作する
- 前処理、dom(lexbor), to utf8, entity decode, script & style 除去
- utf-8 が表示できる
- 文字のカラム幅
- [WIP] SJIS, entity
- https://github.com/ivmai/bdwgc build.zig
- https://github.com/allyourcodebase/openssl build.zig
- https://kb.firedaemon.com/support/solutions/articles/4000121705 windows版はこちらの prebuilt
- https://github.com/ridiculousfish/widecharwidth/tree/master
- https://github.com/nurse/nkf
- https://github.com/lexbor/lexbor
- 多言語 libwc
- pager, pipe 連結
- dump, backend, commandline. url 引数一個決め打ち
- color
- image
- frame
- ncurses/termca/terminfo 依存削除。xterm 決めうちの escape sequence
- tty, ioctl, SIGWINCH / conpty
- socket / winsock
- ssl
- gzip, inflate
- fork