Re: [9fans] htmlroff -ms footnotes

2023-10-06 Thread umbraticus
okay, yeah, .SH calls .RT calls .BG calls .rn FJ FS you could drop -ms but you probably don't want that either... you could use ms2html :) you could write your own macros :))) umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups

Re: [9fans] htmlroff -ms footnotes

2023-10-06 Thread umbraticus
>/dev/null |[2] grep FS you can see that the FS macro is being messed with. I'll dig further... umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T530822947a31ba06-M34d92b1177885d8baf1d0ab6 Delivery options: ht

Re: [9fans] wctl

2023-05-09 Thread umbraticus
; read -c 72 /dev/wctl rio(4) umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf13f657beb7b12c0-Ma0337129de0681f834f7e7c7 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] use of plumber for new rule

2022-10-20 Thread umbraticus
I think you probably want: plumb start rc -c 'kertex/divps '$wdir'/'$0' | page -w' umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-M95c2618ac3b3dd2f17c75c24 Delivery options: https://9fans.topicbox.com

Re: [9fans] use of plumber for new rule

2022-10-20 Thread umbraticus
dow: ^echo w; window troff $% '|' page The last shell command is remembered, so subsequent write'n'reviews are a simple ^ thereafter. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tce7385fe52c532d6-Me347adb350456cff65756

Re: [9fans] troff and fonts

2022-09-23 Thread umbraticus
Someone in another forum chased down the sdf thing. Here is an example: https://fontforge.org/downloads/Big5.txt and here is the format: https://manpages.ubuntu.com/manpages/jammy/man1/ttf2tfm.1.html#subfont%20definition%20files Hope that helps, umbraticus

Re: [9fans] troff and fonts

2022-09-16 Thread umbraticus
rge.org/archive/generate.html umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T5091c0751c09-M45d4ec39bfb47669e432a2e1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] troff and fonts

2022-09-16 Thread umbraticus
Here are my notes & a script for troff fonts: http://runjimmyrunrunyoufuckerrun.com/fonts/ umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T5091c0751c09-M44d0b0baa163a1282f8973ac Delivery options: h

Re: [9fans] sam and 'here documents' on Unix [WAS: Re: Making multiple changes to dot using sam -d]

2022-05-12 Thread umbraticus
hmm, interesting. ^ is indeed very useful; making it work in sam -d is probably the correct thing to do but here's a quick hack. (9front specific, tho you can probably figure out another way to pretend you typed.) umbraticus ; fn f{echo ,x/red/c/blue >/dev/kbdin} ; sam -d -. a I hired a

Re: [9fans] Deleting lines in sam - d

2022-05-12 Thread umbraticus
I mean, if you really want it, you can ,|awk '{print NR "\t" $0}' then ,x/^[0-9]+ /d or something. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc5c492077a61275c-Mf73fea5ddae7354548491a99 Delivery opti

Re: [9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread umbraticus
Don't forget Esc cuts a selection. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T06d3bdd208f5a90b-Maa4736ab2beb35086413d070 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] Deleting lines in sam - d

2022-05-11 Thread umbraticus
= prints line number 3,7d deletes some lines Setting and working with the mark may also suit your problem find a place, press k, find another place, then ',.d or .,' deletes everything in between. Multiple marks à la ed would be a nice addition to sam. umbraticus P.S. Here's a patch to make

Re: [9fans] acme and sam - mouse suggestions?

2022-01-27 Thread umbraticus
ick/chord with my left hand on the thinkpad's trackpad buttons while rolling the ball with my right hand, but chording with the trackball buttons is also fine. The scrollwheel thing is pretty nice too. umbraticus -- 9fans: 9fans Permalink: https://9fans.top

Re: [9fans] acme and sam - mouse suggestions?

2022-01-27 Thread umbraticus
Trackballs also often have more than two real buttons. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T49f3cceea70d2b61-Mba1f4f1caaa4c6c3a0189de1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] Autoexpand in sam

2021-09-22 Thread umbraticus
are confident with the first part of a word look(1) could be handy. You could also write a filter that transposes letters until it finds a match in /lib/words. Some toys along these lines: http://runjimmyrunrunyoufuckerrun.com/rc/anagram http://runjimmyrunrunyoufuckerrun.com/rc/bee umbraticus

Re: [9fans] Autoexpand in sam

2021-09-22 Thread umbraticus
> autocorrect in sam not really but you can ,>spell -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0e2541a723ce90e5-Mbb8fbc041f3be84400daf880 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] UTF-8 characters in acme

2021-09-07 Thread umbraticus
> How to write UTF-8 caracters keyboard(6) -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T0d54d4b593281935-Mb9d3caaf9c167393db658f43 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] A few more questions about sam

2021-08-05 Thread umbraticus
$#*){ case 0 xargs -n1 plumb Can someone point me to a specific resource that explains > these expressions in more detail than does the sam man and > sam tut? http://sam.cat-v.org/ has a cheat sheet & some other resources. What is sam_tut.pdf mi

Re: [9fans] sam label and rio snarf buffer

2021-07-23 Thread umbraticus
> I've to think about the plumber and the the named pipe to be able > to plumb a file and bring to the front a sam instance if it has > the file open, moving the file's window to the front with dot set at > the address, if one is given. I have this: diff -u /sys/src/cmd/samterm/plan9.c ./plan9.c

Re: [9fans] Help with a sam cleanup script

2021-07-21 Thread umbraticus
> bash: fg: %: no such job The % is a prompt: ignore it. I think your script boils down to something like: ,x/\*|^ +| +$/d ,x/ +//c/ ,x/[‘‘’’“”‘’]/c/" ,x/\\p|\\b/c/\n\n\n ,x/\n\n+/c/\n umbraticus -- 9fans: 9fans Permalink: https://9fans.topi

Re: [9fans] Help with a sam cleanup script

2021-07-21 Thread umbraticus
e, you will have to set dot before running ^ but this allows more flexibility, eg. you can apply the edits to a section of a document instead of always the whole thing. One step at a time, though. It would be neat if you could use ! ^ < > _ | in conjunction with X…

Re: [9fans] Help with a sam cleanup script

2021-07-21 Thread umbraticus
you probably want to use ssam (no wq required) what isn't working? some suggestions: ,x/‘‘|’’/s//"/ and ,x/‘|’/s//"/ → ,x/[“‘’”]/c/" .x s/\*//g → ,x/\*/d ,x/^ +/s/// → ,x/^ +/d ,x/ +$/s/// → ,x/ +$/d ,x/ +/s// / → ,x/ +/c/ / take your time, learn the language, &

Re: [9fans] ed regular expressions in sam

2021-07-20 Thread umbraticus
or: ,x/^/i/echo " ,x/$/i/" -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te7fcdc06a68bb777-M3a70c9ddc3e626951d6349fb Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] Command to set samterm label

2021-07-19 Thread umbraticus
to use the rio snarf buffer directly. There is a patch for this floating around somewhere: perhaps whoever wrote it can chime in. Below is a quick illustration of the other thought I had, having label reflect the most recently topped buffer, in case you are or anyone else is interested. umbraticus

Re: [9fans] Command to set samterm label

2021-07-18 Thread umbraticus
t recently active buffer. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf1e211daf823c0e0-M1e8dc73ec3b6f44f7e047e5b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] Command to set samterm label

2021-07-18 Thread umbraticus
> This patch adds a command 'l' to set the label, and sets it at > startup as described above. meh; you can already run !label blah from inside sam not sure the label-on-startup adds much… but I guess you could just add that at the call to initdraw. umbr

Re: [9fans] Alternative to fine-grained mouse usage?

2021-07-02 Thread umbraticus
nothing's tying you to sam syntax: ,|awk '{print NR "\t" $0}' then undo. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T716c5aa0e2aa8a27-Mc258d9e136ffe16b7aeb04fa Delivery options: https://9fans.topicbox.com/gr

Re: [9fans] Alternative to fine-grained mouse usage?

2021-06-30 Thread umbraticus
uld be to implement windows-style Ctrl+←/→ word boundary jumping, maybe even Shift to select… umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T716c5aa0e2aa8a27-M962e5aa87312fb3af7063d84 Delivery options: https://9fans.topicbox.com/gro

Re: [9fans] Alternative to fine-grained mouse usage?

2021-06-30 Thread umbraticus
back to buffer. Make use of <>!| commands and so on... standard ^W ^U ^A ^E stuff... plumbing, searching, command language. rio window placement mostly automated. I have sam just open files fullscreen automatically, which is quite nice… umbraticus -

Re: [9fans] tbl page width

2021-02-09 Thread umbraticus
.LL is to early for tbl but even .ll doesn't do anything in the following. ; {echo .ll 28c; echo .sp 4c; echo .TS; read -c 30 https://9fans.topicbox.com/groups/9fans/T8da23d19a22963e2-M3c72233bbcfbd7760d9d35a1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] 9term, insta scroll to bottom?

2020-10-23 Thread umbraticus
> I tried ^ b, it has the same effect as pg down. It doe snot take me to the > bottom Yeah. Are you pressing Del to kill the cat? umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T13b7a14fa28da183-M3f2ab540cd456d40b6

Re: [9fans] Request for (constructive?) comments: Plan 9 : 2020

2019-10-29 Thread umbraticus
; 9fs docs.google.com srv: timeout establishing connection to net!docs.google.com!9fs -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T7414e0ecd12c8643-Me5e7390dda458d519a62ae21 Delivery options:

Re: [9fans] Accessing old Bell labs URLs

2019-10-18 Thread umbraticus
http://9p.io is what you want. Your example: http://9p.io/magic/man2html/1/acme see also http://man.cat-v.org -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tda617782a458b1cf-M4b92ae63af31badd6999bebf Delivery options:

Re: [9fans] auth server on a different port

2019-10-17 Thread umbraticus
I use the instructions here: http://fqa.9front.org/fqa8.html#8.4.8.2 to drawterm past the firewall at work; perhaps useful? umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T438cfac2481e3602-Md27f232343773d1082ca85e8 Delivery

Re: [9fans] printing from Plan 9

2019-09-14 Thread umbraticus
I use this with lp(1): HP Color LaserJet Pro MFP M281fdw I just looked for something that could speak postscript. umbraticus

Re: [9fans] Someone made a Wayland compositor based on Rio, Wio

2019-05-04 Thread umbraticus
> you'll need to install hubfs first not true; just: srv -c tcp!107.191.50.176!9997 gridchat /n/chat then read and write from /n/chat/chat in whatever manner you please.

Re: [9fans] Someone made a Wayland compositor based on Rio, Wio

2019-05-04 Thread umbraticus
info trav

Re: [9fans] focus window on plumb

2018-09-03 Thread umbraticus
sysfatal("couldn't open /dev/wctl"); for(;;){ if((m = plumbrecv(port)) == nil) sysfatal("error on plumb port %s", argv[1]); plumbfree(m); fprint(wctl, "unhide"); fprint(wctl, "current"); } } umbraticus

[9fans] focus window on plumb

2018-09-02 Thread umbraticus
ed something like this? umbraticus#include #include #include enum{LEN = 128}; int match(int n, char *label) { int fd, len; char s[LEN]; snprint(s, LEN, "/dev/wsys/%d/label", n); if((fd = open(s, OREAD)) < 0) return 0;