~fkfd

Shanghai

https://fkfd.me/x


#8 Handle sites trying to be cute with troublesome emojis 8 months ago

Comment by ~fkfd on ~nhanb/mcross

Interesting; I'm glad to see that Tk has resolved the issue. Do I have to just update Tcl/Tk systemwise, yes?

#7 Relative link redirects 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

On June 16, 2020 6:48:40 AM UTC, ~nhanb outgoing@sr.ht wrote:

Saw your git frontend btw. That's neat! I'm curious, how do you plan to render the README markdown on a repo's home page? Returning a text/plain page outright would make links useless, but a text/gemini one would have conflicting format symbols with markdown (``` for example), and AFAIK there's no escape mechanism in gemini spec.

Right now I just respond with the verbatim content of its readme, and I don't plan to change very soon. If I ever decide to support that, it's gonna be either prepending a space to the backticks or writing a md-gmi converter.

~fkfd

#7 Relative link redirects 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

I'm pretty certain this is the correct solution.

#7 Relative link redirects 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

This kinda works for my purpose. I gotta test it further.

The project I mentioned is online at gemini://fkfd.me/git/cgi/.

#7 Relative link redirects 1 year, 4 months ago

Ticket created by ~fkfd on ~nhanb/mcross

I was developing a new CGI app for Gemini (can't integrate it with jetforce because its license, Floodgap "Free" Software License is incompatible with the other dependency's GPL) when I found McRoss can only handle absolute URL's when redirecting (get()). However, the specification states in §3.3.3:

3.3.3 3x (REDIRECT)

...The URL may be absolute or relative...

Right now it just goes to Nonepath whenever the server redirects it to path/. This is because GeminiUrl.parse_absolute_url(resp_meta) fails to parse the relative link, thus None. I have made a few attempts with little success, getting different, interesting failures.

P.S. the CGI app is a git frontend currently near the MVP stage.

#4 Custom fonts 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

Seemed a bit hasty to me, but I guess it's fine now that you've amended it. It's time we should include the mailing lists in the readme, isn't it?

#4 Custom fonts 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

Cool! I will probably send patch either this afternoon (UTC+8) or two weeks later since there's a big exam going on next week. Hope you understand!

#4 Custom fonts 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

Cool! I will probably send patch either this afternoon (UTC+8) or two weeks later since there's a big exam going on next week. Hope you understand!

#4 Custom fonts 1 year, 4 months ago

Comment by ~fkfd on ~nhanb/mcross

I am pleased to announce that I have nailed it. I hope you don't mind if I introduce argparse to controller.py and add an argument to class View.

#4 Custom fonts 1 year, 4 months ago

Ticket created by ~fkfd on ~nhanb/mcross

In gui/view.py, two lists of font candidates can be seen, for normal text and monospace respectively. I have none of the mono fonts installed, so TkFixedFont (actually renders as sans-serif) is selected. This could be better customized by passing arguments in the command line, like this:

$ mcross --textfont 'Noto Sans' --monofont 'Noto Mono'

I'm writing a patch, but can't seem to find a mailing list to submit to.