A vector rendering tool would be nice. Do we have anything else besides, paint, crop, and rotate. I would like to combine gemoetric shapes with text if possible and not rely on gimp or inkscape.
Quoth william@thinktankworkspaces.com:
> A vector rendering tool would be nice. Do we have anything else besides, paint, crop, and rotate. I
> would like to combine gemoetric shapes with text if possible and not rely on gimp or inkscape.
you're probably looking for pic(1)
wow. No way to become lazy in plan9 for sure. Thanks. I will explore
Quoth ori@eigenstate.org:
> Quoth william@thinktankworkspaces.com:
> > A vector rendering tool would be nice. Do we have anything else besides, paint, crop, and rotate. I
> > would like to combine gemoetric shapes with text if possible and not rely on gimp or inkscape.
>
> you're probably looking for pic(1)
>
wow. No way to become lazy in plan9 for sure. Thanks. I will explore
Quoth ori@eigenstate.org:
> Quoth william@thinktankworkspaces.com:
> > A vector rendering tool would be nice. Do we have anything else besides, paint, crop, and rotate. I
> > would like to combine gemoetric shapes with text if possible and not rely on gimp or inkscape.
>
> you're probably looking for pic(1)
>
Quoth william@thinktankworkspaces.com: > wow. No way to become lazy in plan9 for sure. Thanks. I will explore > pic(1) is quite nice for these kinds of diagrams, in my experience. There are also things like pico (https://github.com/qwx9/pico), but they're also textual. I'm not aware of anyone writing anything much more advanced than paint for interactive drawing. Programs welcome.
I'm happy with pic(1). I got some of it working.
Just tired of open/close file for every little thing or constantly pasting
pic test.ms | troff | page.
I would like to have it open in acme and click put or sam and :w or and see it change quickly.
Its juust slower
Quoth ori@eigenstate.org:
> Quoth william@thinktankworkspaces.com:
> > wow. No way to become lazy in plan9 for sure. Thanks. I will explore
> >
>
> pic(1) is quite nice for these kinds of diagrams, in my experience.
>
> There are also things like pico (https://github.com/qwx9/pico), but
> they're also textual.
>
> I'm not aware of anyone writing anything much more advanced
> than paint for interactive drawing. Programs welcome.
>
>
>
[-- Attachment #1: Type: text/plain, Size: 935 bytes --] this will also run on 9front: http://plan9.stanleylieber.com/uxn/ sl > On Sep 22, 2022, at 10:12 PM, william@thinktankworkspaces.com wrote: > > I'm happy with pic(1). I got some of it working. > > Just tired of open/close file for every little thing or constantly pasting > pic test.ms | troff | page. > > I would like to have it open in acme and click put or sam and :w or and see it change quickly. > > Its juust slower > > Quoth ori@eigenstate.org: >> Quoth william@thinktankworkspaces.com: >>> wow. No way to become lazy in plan9 for sure. Thanks. I will explore >>> >> >> pic(1) is quite nice for these kinds of diagrams, in my experience. >> >> There are also things like pico (https://github.com/qwx9/pico), but >> they're also textual. >> >> I'm not aware of anyone writing anything much more advanced >> than paint for interactive drawing. Programs welcome. >> >> >> > > [-- Attachment #2: Type: text/html, Size: 2258 bytes --]
intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
Quoth Stanley Lieber <sl@stanleylieber.com>:
> http://plan9.stanleylieber.com/uxn/
no, this works fine on the mnt reform. uxn is a virtual machine, it works on any architecture.
sl
> On Sep 22, 2022, at 10:38 PM, william@thinktankworkspaces.com wrote:
>
> intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
>
> Quoth Stanley Lieber <sl@stanleylieber.com>:
>> http://plan9.stanleylieber.com/uxn/
>
> Just tired of open/close file for every little thing or constantly pasting
> pic test.ms | troff | page.
In sam you can do this:
!fn p{echo w; window 'pic '^$%^' | troff | page'}
Then running ^p will write changes and pop up an updated render.
umbraticus
there was a program watch.c kicking about,
this just polled the mod time on the given file every second and ran the given command when it changed.
i used to use this for writing troff docs in a semi wysiwyg style.
i may even have some code somwhere.
-Steve
> On 23 Sep 2022, at 05:22, umbraticus@prosimetrum.com wrote:
>
>
>>
>> Just tired of open/close file for every little thing or constantly pasting
>> pic test.ms | troff | page.
>
> In sam you can do this:
>
> !fn p{echo w; window 'pic '^$%^' | troff | page'}
>
> Then running ^p will write changes and pop up an updated render.
>
> umbraticus
>
> there was a program watch.c kicking about, Here is my version: http://shithub.us/kvik/watch/HEAD/info.html
Le Thu, Sep 22, 2022 at 05:58:51PM -0700, william@thinktankworkspaces.com a écrit : > A vector rendering tool would be nice. Do we have anything else besides, paint, crop, and rotate. I > would like to combine gemoetric shapes with text if possible and not rely on gimp or inkscape. John Hobby's MetaPost allows you to combine complicated text (TeX or troff) with geometries. Everything is in kerTeX: https://kertex.kergis.com/ and it installs on Plan9. KerTex also provides mp2ps(1) (and even converting to PDF using gs(1) with the "-p" flag) allowing to generate images from MetaPost pictures, not having to bother about the fonts definitions and allowing to generate a PS/PDF just the size of your(s) picture(s). -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
william@thinktankworkspaces.com writes:
> A vector rendering tool would be nice. Do we have anything else besides, paint, crop, and rotate. I
> would like to combine gemoetric shapes with text if possible and not rely on gimp or inkscape.
Not exactly a native Plan 9 tool, but Ghostscript works. I've used it
on 9front to create generative animations.
Or bring ideal(1) along from v10 Unix. Like pic but parametric.
On 23/09/2022, ori@eigenstate.org <ori@eigenstate.org> wrote:
> Quoth william@thinktankworkspaces.com:
>> A vector rendering tool would be nice. Do we have anything else besides,
>> paint, crop, and rotate. I
>> would like to combine gemoetric shapes with text if possible and not rely
>> on gimp or inkscape.
>
> you're probably looking for pic(1)
>
I managed to get uxn to compile and download noodle but it only comes up with a gray screen. But
I am curious to know more about this tool.
Quoth Stanley Lieber <sl@stanleylieber.com>:
> no, this works fine on the mnt reform. uxn is a virtual machine, it works on any architecture.
>
> sl
>
> > On Sep 22, 2022, at 10:38 PM, william@thinktankworkspaces.com wrote:
> >
> > intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
> >
> > Quoth Stanley Lieber <sl@stanleylieber.com>:
> >> http://plan9.stanleylieber.com/uxn/
> >
>
>
I managed to get uxn to compile and download noodle but it only comes up with a gray screen. But
I am curious to know more about this tool.
Quoth Stanley Lieber <sl@stanleylieber.com>:
> no, this works fine on the mnt reform. uxn is a virtual machine, it works on any architecture.
>
> sl
>
> > On Sep 22, 2022, at 10:38 PM, william@thinktankworkspaces.com wrote:
> >
> > intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
> >
> > Quoth Stanley Lieber <sl@stanleylieber.com>:
> >> http://plan9.stanleylieber.com/uxn/
> >
>
>
it’s very similar to the original mac paint.
it’s been a few days since i updated, maybe something in uxn is broken again. when i’m at a keyboard later tonight i’ll take a look.
unfortunately uxn stuff is a fast moving target.
sl
> On Sep 23, 2022, at 5:18 PM, william@thinktankworkspaces.com wrote:
>
> I managed to get uxn to compile and download noodle but it only comes up with a gray screen. But
> I am curious to know more about this tool.
>
> Quoth Stanley Lieber <sl@stanleylieber.com>:
>> no, this works fine on the mnt reform. uxn is a virtual machine, it works on any architecture.
>>
>> sl
>>
>>>> On Sep 22, 2022, at 10:38 PM, william@thinktankworkspaces.com wrote:
>>>
>>> intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
>>>
>>> Quoth Stanley Lieber <sl@stanleylieber.com>:
>>>> http://plan9.stanleylieber.com/uxn/
>>>
>>
>>
>
>
Cool. I tried two differnt rom's and only gray screen. But this is interesting for sure. I also
tried to make a rom with uxnasm and a tal file but I ran into errors with that. Such as path ~src
and theme issue. I tried to correct it but Not sure. Also I was running it in current working
directory. In the mean time pic(1) might give me traction for other drawing cases. Thanks
Quoth Stanley Lieber <sl@stanleylieber.com>:
> it’s very similar to the original mac paint.
>
> it’s been a few days since i updated, maybe something in uxn is broken again. when i’m at a keyboard later tonight i’ll take a look.
>
> unfortunately uxn stuff is a fast moving target.
>
> sl
>
>
> > On Sep 23, 2022, at 5:18 PM, william@thinktankworkspaces.com wrote:
> >
> > I managed to get uxn to compile and download noodle but it only comes up with a gray screen. But
> > I am curious to know more about this tool.
> >
> > Quoth Stanley Lieber <sl@stanleylieber.com>:
> >> no, this works fine on the mnt reform. uxn is a virtual machine, it works on any architecture.
> >>
> >> sl
> >>
> >>>> On Sep 22, 2022, at 10:38 PM, william@thinktankworkspaces.com wrote:
> >>>
> >>> intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
> >>>
> >>> Quoth Stanley Lieber <sl@stanleylieber.com>:
> >>>> http://plan9.stanleylieber.com/uxn/
> >>>
> >>
> >>
> >
> >
>
>
> Not exactly a native Plan 9 tool, but Ghostscript works. I've used it
> on 9front to create generative animations.
That sounds pretty neat. Any scripting or examples you can share?
umbraticus
this is how i start it:
/bin/uxnemu $home/uxn/noodle.rom
sl
> On Sep 23, 2022, at 6:03 PM, william@thinktankworkspaces.com wrote:
>
> Cool. I tried two differnt rom's and only gray screen. But this is interesting for sure. I also
> tried to make a rom with uxnasm and a tal file but I ran into errors with that. Such as path ~src
> and theme issue. I tried to correct it but Not sure. Also I was running it in current working
> directory. In the mean time pic(1) might give me traction for other drawing cases. Thanks
>
> Quoth Stanley Lieber <sl@stanleylieber.com>:
>> it’s very similar to the original mac paint.
>>
>> it’s been a few days since i updated, maybe something in uxn is broken again. when i’m at a keyboard later tonight i’ll take a look.
>>
>> unfortunately uxn stuff is a fast moving target.
>>
>> sl
>>
>>
>>>> On Sep 23, 2022, at 5:18 PM, william@thinktankworkspaces.com wrote:
>>>
>>> I managed to get uxn to compile and download noodle but it only comes up with a gray screen. But
>>> I am curious to know more about this tool.
>>>
>>> Quoth Stanley Lieber <sl@stanleylieber.com>:
>>>> no, this works fine on the mnt reform. uxn is a virtual machine, it works on any architecture.
>>>>
>>>> sl
>>>>
>>>>>> On Sep 22, 2022, at 10:38 PM, william@thinktankworkspaces.com wrote:
>>>>>
>>>>> intersting. I'm using the imx8 arm. I will need to find x86 to try it out. Thanks
>>>>>
>>>>> Quoth Stanley Lieber <sl@stanleylieber.com>:
>>>>>> http://plan9.stanleylieber.com/uxn/
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
umbraticus@prosimetrum.com writes: >> Not exactly a native Plan 9 tool, but Ghostscript works. I've used it >> on 9front to create generative animations. > > That sounds pretty neat. Any scripting or examples you can share? > > umbraticus I collected them in this repo: https://git.sr.ht/~raingloom/postscript-sketches There are examples and links to documentation and books that are good starting points.
with all the latest code, everything works fine for my on my mnt reform. but, if you're still stuck, and you're like to just try my binaries, unpack this over /: http://plan9.stanleylieber.com/src/arm64.uxn.tgz and use this rom: http://plan9.stanleylieber.com/uxn/roms/noodle.rom then run it like this: /arm64/bin/uxn/uxnemu noodle.rom sl
Wonderful. Very interesting indeed. Thanks
Quoth sl@stanleylieber.com:
> with all the latest code, everything works fine for my on my mnt reform.
> but, if you're still stuck, and you're like to just try my binaries,
> unpack this over /:
>
> http://plan9.stanleylieber.com/src/arm64.uxn.tgz
>
> and use this rom:
>
> http://plan9.stanleylieber.com/uxn/roms/noodle.rom
>
> then run it like this:
>
> /arm64/bin/uxn/uxnemu noodle.rom
>
> sl
>
> https://git.sr.ht/~raingloom/postscript-sketches Thanks for the pointers. Fun stuff; here's a quick one: http://runjimmyrunrunyoufuckerrun.com/demo/pspjw Make sure to sysupdate first to get the latest togif fix (thanks sigrid!) or just feast your eyes on the result: http://runjimmyrunrunyoufuckerrun.com/demo/pspjw.gif I know there is an ongoing effort to get a native pdf renderer going but ps seems quite entwined in the system and kinda enjoyable in its own right, so I wonder whether that will indeed put an end to our crusty old gs... umbraticus
On Tue, Sep 27, 2022 at 10:56:50PM +1300, umbraticus@prosimetrum.com wrote:
> > https://git.sr.ht/~raingloom/postscript-sketches
>
> Thanks for the pointers. Fun stuff; here's a quick one:
>
> http://runjimmyrunrunyoufuckerrun.com/demo/pspjw
>
> Make sure to sysupdate first to get the latest togif fix (thanks sigrid!)
> or just feast your eyes on the result:
> http://runjimmyrunrunyoufuckerrun.com/demo/pspjw.gif
>
> I know there is an ongoing effort to get a native pdf renderer going
> but ps seems quite entwined in the system and kinda enjoyable in
> its own right, so I wonder whether that will indeed put an end to
> our crusty old gs...
>
> umbraticus
If I had Infrastructure Money, an API-compatible ghostscript replacement
would be a boon to the whole world. Shame the folks who haunt bug
trackers demanding things be rewritten in their language du jour are
focused on overthrowing the tyranny of ls(1) than doing something
genuinely productive.
khm
Quoth Kurt H Maier <khm@sciops.net>: > On Tue, Sep 27, 2022 at 10:56:50PM +1300, umbraticus@prosimetrum.com wrote: > > > https://git.sr.ht/~raingloom/postscript-sketches > > > > Thanks for the pointers. Fun stuff; here's a quick one: > > > > http://runjimmyrunrunyoufuckerrun.com/demo/pspjw > > > > Make sure to sysupdate first to get the latest togif fix (thanks sigrid!) > > or just feast your eyes on the result: > > http://runjimmyrunrunyoufuckerrun.com/demo/pspjw.gif > > > > I know there is an ongoing effort to get a native pdf renderer going > > but ps seems quite entwined in the system and kinda enjoyable in > > its own right, so I wonder whether that will indeed put an end to > > our crusty old gs... > > > > umbraticus > > If I had Infrastructure Money, an API-compatible ghostscript replacement > would be a boon to the whole world. Shame the folks who haunt bug > trackers demanding things be rewritten in their language du jour are > focused on overthrowing the tyranny of ls(1) than doing something > genuinely productive. > > khm Maybe not API-compatible, but pdffs-adjacent folks (me too) were looking at https://github.com/luser-dr00g/xpost as a possible base for future work in ghostscript replacement effort in 9front. As usual, a lot code has to be written and main resource for that is time.
Le Tue, Sep 27, 2022 at 05:59:32PM +0200, Sigrid Solveig Haflínudóttir a écrit : > Quoth Kurt H Maier <khm@sciops.net>: > > On Tue, Sep 27, 2022 at 10:56:50PM +1300, umbraticus@prosimetrum.com wrote: > > > > https://git.sr.ht/~raingloom/postscript-sketches > > > > > > Thanks for the pointers. Fun stuff; here's a quick one: > > > > > > http://runjimmyrunrunyoufuckerrun.com/demo/pspjw > > > > > > Make sure to sysupdate first to get the latest togif fix (thanks sigrid!) > > > or just feast your eyes on the result: > > > http://runjimmyrunrunyoufuckerrun.com/demo/pspjw.gif > > > > > > I know there is an ongoing effort to get a native pdf renderer going > > > but ps seems quite entwined in the system and kinda enjoyable in > > > its own right, so I wonder whether that will indeed put an end to > > > our crusty old gs... > > > > > > umbraticus > > > > If I had Infrastructure Money, an API-compatible ghostscript replacement > > would be a boon to the whole world. Shame the folks who haunt bug > > trackers demanding things be rewritten in their language du jour are > > focused on overthrowing the tyranny of ls(1) than doing something > > genuinely productive. > > > > khm > > Maybe not API-compatible, but pdffs-adjacent folks (me too) were > looking at https://github.com/luser-dr00g/xpost as a possible base for > future work in ghostscript replacement effort in 9front. > > As usual, a lot code has to be written and main resource for that is > time. [Delenda Carthago...] There is a PostScript scripting program called: MetaPost. This programs allows to mixed complex tex formatted (by TeX or by *roff) with geometries. MetaPost was derived from D. E. Knuth's METAFONT. It is not difficult to replace the MetaPost production by an extended DVI production. Why? Because METAFONT is also a _rasterizer_ so a whole solution can be implemented with TeX/METAFONT and al. So an alternative plan (mine) is to extend DVI with graphical primitives and to have a totally self-sufficient formatting/printing solution, written in C (the pseudo-Pascal WEB to C translation is common), not requiring anything else than C, with a huge part already written (the formatter: TeX; the rasterizer: METAFONT; the geometry scripting: MetaPost -> MetaDraw; a bunch of fonts: CM from D. E. Knuth; the Hershey fonts). And then converting DVI in tiff or whatever rasterized format to only embed in whatever printing language recognized by the printer. FWIW, -- Thierry Laronde <tlaronde +AT+ polynum +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
I'm really interested in this metapost. I was also tinkering with making some sort of front end that we can use in plan9 but mostly specific to vectoring rather than rastering. Something similar to dia http://dia-installer.de/ As far as rastering. I kind of think paint is fine but it would be nice to extend it a little more add the ability for straight lines, dithering and a few other things. Until you shared metafont I was resigned to build it using pic, troff and setup some sort of xml or yml to hold the information before genrating or running some of those tools to render or generate the appropriate output. But the more I think about it I start talking myself out of it. I think its a lot of work. I was thinking to use golang but I didn't want to piss off the 9fronters so C would be ideal but I wanted some sort of extensible features or plugins using Lua. I feel like plan9 needs this. Regardless. Nice find and I will spend more time reading about this. Thanks Quoth tlaronde@polynum.com: > https://github.com/luser-dr00g/xpost
I'm really interested in this metapost. I was also tinkering with making some sort of front end that we can use in plan9 but mostly specific to vectoring rather than rastering. Something similar to dia http://dia-installer.de/ As far as rastering. I kind of think paint is fine but it would be nice to extend it a little more add the ability for straight lines, dithering and a few other things. Until you shared metafont I was resigned to build it using pic, troff and setup some sort of xml or yml to hold the information before genrating or running some of those tools to render or generate the appropriate output. But the more I think about it I start talking myself out of it. I think its a lot of work. I was thinking to use golang but I didn't want to piss off the 9fronters so C would be ideal but I wanted some sort of extensible features or plugins using Lua. I feel like plan9 needs this. Regardless. Nice find and I will spend more time reading about this. Thanks Quoth tlaronde@polynum.com: > https://github.com/luser-dr00g/xpost
Quoth william@thinktankworkspaces.com:
> I would like to have it open in acme and click put or sam and :w or and see it change quickly.
% cat /mnt/acme/log | awk '{ if($2 == "put") system("command goes here") }
You can run that in acme to run arbitrary commands whenever a file is saved. File name is available as $3 in that awk script, so it can also be limited to specific files.
I have hooks to automatically run `go fmt` when a Go file is saved, for instance.
- Noam Preil
> % cat /mnt/acme/log | awk '{ if($2 == "put") system("command goes here") }
Nice. (Although, what did that cat ever do to you?)
I would probable do it in rc:
</mnt/acme/log while(line = `{read}) if(~ $line(2) put) { … }
I probably mentioned already but the sam version is:
!fn w{echo w; command}
Then ^w writes and runs command.
umbraticus
I owe noam an apology for hassling him about cat abuse; apparently it's needed to be able to work on the log line by line. You can still replace the awk with rc if that way inclined. umbraticus