more readme fixes, added UNLICENSE

This commit is contained in:
Luxferre
2024-10-06 19:27:12 +03:00
parent 48b5451c91
commit 36f77e4295
2 changed files with 41 additions and 20 deletions
+17 -20
View File
@@ -21,13 +21,13 @@ The following features are already (fully or partially) supported in BFG.
### Complete
* Finger protocol (finger:// URLs)
* Gopher protocol with optional TLS support (gopher:// and gophers:// URLs)
* Finger protocol (`finger://` URLs)
* Gopher protocol with optional TLS support (`gopher://` and `gophers://` URLs)
* Gophermap rendering (entry types 0, 1, 3, 5, 7, 8, 9, i, h)
* Single-line search query support for Gopher type 7 resources
* Nex protocol (nex:// URLs)
* Spartan protocol (spartan:// URLs) with single-line text query support
* Gemini protocol (gemini:// URLs) with single-line custom input support
* Nex protocol (`nex://` URLs)
* Spartan protocol (`spartan://` URLs) with single-line text query support
* Gemini protocol (`gemini://` URLs) with single-line custom input support
* UTF-8 support for text content
* Basic history support (back/forward actions)
* Page refresh action
@@ -75,7 +75,7 @@ In general, there are two reasons why a feature might not be implemented in BFG:
## Usage
You can run the script with an optional URL to open, e.g.: wish bfg.tcl gopher://hoi.st
You can run the script with an optional URL to open, e.g.: `wish bfg.tcl gopher://hoi.st`
The following keybindings are currently supported:
@@ -114,13 +114,13 @@ The following mouse bindings are currently supported:
BFG ships with a bfg.ini file that holds your configuration values and bookmarks.
The main configuration sections are:
* [net]: network-related configs, currently only has "timeout" parameter
* [widget]: general UI widget appearance (ttkTheme, font (button font), entryfont, statusfont)
* [style.general]: general content area appearance (textfont, foreground color, background color)
* [style.link.normal]: normal link colors (foreground, background)
* [style.link.focused]: currently focused link colors (foreground, background)
* [style.highlight]: highlighted area colors (foreground, background) - used with search functionality
* [style.error]: error message colors (foreground, background)
* `[net]`: network-related configs, currently only has "timeout" parameter
* `[widget]`: general UI widget appearance (ttkTheme, font (button font), entryfont, statusfont)
* `[style.general]`: general content area appearance (textfont, foreground color, background color)
* `[style.link.normal]`: normal link colors (foreground, background)
* `[style.link.focused]`: currently focused link colors (foreground, background)
* `[style.highlight]`: highlighted area colors (foreground, background) - used with search functionality
* `[style.error]`: error message colors (foreground, background)
Feel free to modify the bfg.ini file according to your own preferences, the one shipped is just an example.
@@ -160,9 +160,9 @@ Make sure you're building the target tclkit with Metakit, Tcllib, Tk and TLS pac
Optionally you can select "TLS: Statically link to LibSSL" and/or "TLS: Build LibreSSL for this platform".
If the host and target platform are the same, you still need two kit binaries (just make a copy).
2. Download sdx.kit from somewhere, e.g. from [here](https://codeberg.org/luxferre/StreamGoose/raw/branch/main/tcldep/sdx.kit)
2. Download `sdx.kit` from somewhere, e.g. from [here](https://codeberg.org/luxferre/StreamGoose/raw/branch/main/tcldep/sdx.kit)
3. Put the two binaries and sdx.kit into the same directory as bfg.tcl, then run from this directory:
3. Put the two binaries and `sdx.kit` into the same directory as `bfg.tcl`, then run from this directory:
```
[/path/to/host/tclkit] sdx.kit qwrap bfg.tcl -runtime [/path/to/target/tclkit]
```
@@ -178,12 +178,9 @@ Alternatively, you can do a proposal in the "Issues" section or even create a pa
However, one of the BFG's goals is to stay under 1000 SLOC no matter what.
If you want feature creep, feel free to switch to more suitable clients like Lagrange.
### Why does a Gopher-over-TLS (gophers:// URL) resource still show plain gopher:// links?
### Why does a Gopher-over-TLS (`gophers://` URL) resource still show plain `gopher://` links?
Due to a limitation of the Gopher-over-TLS protocol itself, we cannot determine if the Gophermap entry points
to a plain Gopher or a Gopher-over-TLS resource. Hence, only the links belonging to the same host/port pair
that was already opened with a gophers:// link are displayed as gophers:// links. Everything else needs to be
adjusted manually for now. Sorry for the inconvenience.
Due to a limitation of the Gopher-over-TLS protocol itself, we cannot determine if the Gophermap entry points to a plain Gopher or a Gopher-over-TLS resource. Hence, only the links belonging to the same host/port pair that was already opened with a `gophers://` link are displayed as `gophers://` links. Everything else needs to be adjusted manually for now. Sorry for the inconvenience.
## Credits