Particle physicist turned software engineer



Last active 12 days ago

#11 font/type1: add support for Type1 fonts 12 days ago

Ticket created by ~sbinet on ~sbinet/star-tex

probably via x/image/font/{sfnt,opentype}. (or, god forbid, via golang/freetype)

#10 kpath: add support for multiple TDS trees 12 days ago

Ticket created by ~sbinet on ~sbinet/star-tex

this probably needs a "union" fs.FS implementation, so one can "mount" a set of fs.FS under a "root" one.

#9 kpath: add proper support for Context.Open 12 days ago

Ticket created by ~sbinet on ~sbinet/star-tex

Paths that are built from an ls-R database are, ultimately, absolute. But the associated kpath.Context may have been created from an fs.FS root that won't be able to recoup the extra leading path.

ctx.fs.Open may thus fail to open the named file because of absolute vs relative path issues. e.g.:

  • ctx.fs is rooted at /usr/share/texmf-dist
  • one requests /usr/share/texmf-dist/foo.txt (which exists) Name is thus "/usr/share/texmf-dist/foo.txt", but from the POV of ctx.fs, only "foo.txt" exists. Giving the absolute path from "/" won't work.

We'd probably need to create an fs.FS that nows its root directory and subtract it from absolute paths that are given to it via Open.

#9 add support for git.sr.ht 18 days ago

Comment by ~sbinet on ~sircmpwn/gddo

ah... I think I got it: it's because git.sr.ht/~sbinet/star-tex doesn't have a master branch (but a main one). (same for git.sr.ht/~eliasnaur/gioui)

if I add a master branch, it works.

#8 font/pk: add support for pk fonts 19 days ago

Ticket created by ~sbinet on ~sbinet/star-tex

#9 add support for git.sr.ht 19 days ago

Comment by ~sbinet on ~sircmpwn/gddo


On Wed Mar 24, 2021 at 02:13 CET, ~adnano wrote:

This should be resolved with the move to Go modules (#2). The import path works in my tests.

thanks for the update.

do you mean it's the exact combination of a git.sr.ht-hosted repository exposed through a Go vanity import path and with a go.mod modus operandi that isn't supported w/ godocs.io ?

running locally, I see:

term1> curl localhost:8080/star-tex.org/x/tex
2021/03/24 10:07:34 git ls-remote --heads --tags https://git.sr.ht/~sbinet/star-tex
2021/03/24 10:07:35 web   fetch: 1430 notfound: Tag or branch not found. star-tex.org/x/tex

term1> curl localhost:8080/gioui.org
2021/03/24 10:08:01 git ls-remote --heads --tags https://git.sr.ht/~eliasnaur/gio
2021/03/24 10:08:01 web   fetch: 626 notfound: Tag or branch not found.gioui.org

term1> curl localhost:8080/go-hep.org/x/hep
2021/03/24 10:08:19 web   fetch: 1071 put: 8-226a27a5d008d406f1cd2dad40369823a988526c go-hep.org/x/hep

where term2 is the terminal where my local godocs.io (e80759b) instance is running.

  • gioui.org is hosted on sr.ht
  • go-hep.org/x/hep is hosted on github.com/go-hep/hep


#6 tex: add support for MetaFont/MetaPost 20 days ago

Comment by ~sbinet on ~sbinet/star-tex

#5 cmd/dvi2pdf: add support for creating a PDF file out of a DVI one 20 days ago

Comment by ~sbinet on ~sbinet/star-tex

#4 cmd/dvi2png: add support for converting DVI files to a (set of) PNG file(s) 20 days ago

Comment by ~sbinet on ~sbinet/star-tex

#7 doc: document new star-tex vanity import 20 days ago

Ticket created by ~sbinet on ~sbinet/star-tex