|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
(if you're not using 'vim', look away now.. :-))
most users of 'vim' will be familiar with 'tags' files and the '^]' key combo.
while 'ctags' does not include PovRay SDL, the support is easy to add. I've
attached an archive containing a source ('sdl.c') and a "diff" to patch a couple
of files. this first version is v basic, only recognising macros and declare +
local, but usable.
assuming the source[*] for 'ctags-5.8' in '/tmp/ctags-5.8/', extract the archive
in '/tmp/'. copy/move 'sdl.c' into the ctags directory, and cd into it. then
$ zcat ../add.sdl.diff.gz | patch --verbose -p1
that's it. then the usual './configure && make' etc.
I've installed my copy in my home path, ie '~/bin/', for now. testing, so far
so good, hope that (some of) you will provide feedback and suggestions for
improvements etc.
[*] <http://ctags.sourceforge.net/>
enjoy, jr.
Post a reply to this message
Attachments:
Download 'ctagspov.tar' (10 KB)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
the first version posted would not "see" macros/declares/locals when not the
first item on the line, eg "#if (flag_) #local a_ = 1; #end" misses the '#local
a_', now corrected.
I find the cross-referencing option too worth having, the output shown is
produced with:
$ cd /usr/local/share/povray-3.8/include
$ ctags -x debug.inc
DEBUG variable 13 debug.inc #declare DEBUG = yes;
DEBUG variable 19 debug.inc #macro Set_Debug(Bool)
#declare DEBUG = Bool; #end
DEBUG_MCR variable 11 debug.inc #declare DEBUG_MCR = true;
Debug macro 29 debug.inc #macro Debug(Condition,
Message)
Debug_Inc_Stack macro 15 debug.inc #macro Debug_Inc_Stack()
Debug_Message macro 22 debug.inc #macro Debug_Message(Str)
Error macro 39 debug.inc #macro Error(Condition,
Message)
Set_Debug macro 19 debug.inc #macro Set_Debug(Bool)
#declare DEBUG = Bool; #end
View_POV_Include_Stack variable 16 debug.inc #declare
View_POV_Include_Stack = 1;
Warning macro 34 debug.inc #macro Warning(Condition,
Message)
enjoy, jr.
Post a reply to this message
Attachments:
Download 'ctagspov2.tar' (10 KB)
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> (if you're not using 'vim', look away now.. :-))
>
> most users of 'vim' will be familiar with 'tags' files and the '^]' key combo.
> while 'ctags' does not include PovRay SDL, the support is easy to add. I've
> attached an archive containing a source ('sdl.c') and a "diff" to patch a couple
> of files. this first version is v basic, only recognising macros and declare +
> local, but usable.
>
> assuming the source[*] for 'ctags-5.8' in '/tmp/ctags-5.8/', extract the archive
> in '/tmp/'. copy/move 'sdl.c' into the ctags directory, and cd into it. then
> $ zcat ../add.sdl.diff.gz | patch --verbose -p1
>
> that's it. then the usual './configure && make' etc.
>
> I've installed my copy in my home path, ie '~/bin/', for now. testing, so far
> so good, hope that (some of) you will provide feedback and suggestions for
> improvements etc.
>
> [*] <http://ctags.sourceforge.net/>
>
>
> enjoy, jr.
I'm thrilled :-D let me explain : Following initial attempt around these
newsgroups by Koppi and SDRausty
http://news.povray.org/povray.unix/thread/%3Cweb.5703a674be33e802db8f4ad50%40news.povray.org%3E/?mtop=427658
I gave a successful try at building POV v3.8 and HG POV on Android Phones, using
Termux. (Recipe here: http://wiki.povray.org/content/HowTo:Install_POV#Termux )
Then Found out the most practical solutions to edit the pov files there out of
the box was VIM, also since Vim touch is available from Fdroid, it makes the
same editor also available outside of Termux. PLUS it did feature POV syntax
highlighting, so even tighter integration is awesome news !
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 1/2/21 12:15 PM, Mr wrote:
> "jr" <cre### [at] gmailcom> wrote:
>> hi,
>>
>> (if you're not using 'vim', look away now.. :-))
>>
>> most users of 'vim' will be familiar with 'tags' files and the '^]' key combo.
>> while 'ctags' does not include PovRay SDL, the support is easy to add. I've
>> attached an archive containing a source ('sdl.c') and a "diff" to patch a couple
...
>> enjoy, jr.
>
> I'm thrilled :-D let me explain : Following initial attempt around these
> newsgroups by Koppi and SDRausty
>
http://news.povray.org/povray.unix/thread/%3Cweb.5703a674be33e802db8f4ad50%40news.povray.org%3E/?mtop=427658
> I gave a successful try at building POV v3.8 and HG POV on Android Phones, using
> Termux. (Recipe here: http://wiki.povray.org/content/HowTo:Install_POV#Termux )
> Then Found out the most practical solutions to edit the pov files there out of
> the box was VIM, also since Vim touch is available from Fdroid, it makes the
> same editor also available outside of Termux. PLUS it did feature POV syntax
> highlighting, so even tighter integration is awesome news !
>
Your post reminds me trying jr's patch is still sitting on my todo list!
I'm still getting faster after my conversion to vim, but it's now my
daily editor.
Indeed, the vim support for POV-Ray (3.7) comes by default on most all
unix based systems because it comes with vim itself. POV-Ray (3.7) via
Debian support is there on a good many linux variants too. I installed
v3.7 on my raspberry pi 4 via a usual package install.
Bill P.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 1/2/21 12:15 PM, Mr wrote:
> > "jr" <cre### [at] gmailcom> wrote:
> >> hi,
> >>
> >> (if you're not using 'vim', look away now.. :-))
> >>
> >> most users of 'vim' will be familiar with 'tags' files and the '^]' key combo.
> >> while 'ctags' does not include PovRay SDL, the support is easy to add. I've
> >> attached an archive containing a source ('sdl.c') and a "diff" to patch a couple
> ...
> >> enjoy, jr.
> >
> > I'm thrilled :-D let me explain : Following initial attempt around these
> > newsgroups by Koppi and SDRausty
> >
http://news.povray.org/povray.unix/thread/%3Cweb.5703a674be33e802db8f4ad50%40news.povray.org%3E/?mtop=427658
> > I gave a successful try at building POV v3.8 and HG POV on Android Phones, using
> > Termux. (Recipe here: http://wiki.povray.org/content/HowTo:Install_POV#Termux )
> > Then Found out the most practical solutions to edit the pov files there out of
> > the box was VIM, also since Vim touch is available from Fdroid, it makes the
> > same editor also available outside of Termux. PLUS it did feature POV syntax
> > highlighting, so even tighter integration is awesome news !
> >
>
> Your post reminds me trying jr's patch is still sitting on my todo list!
> I'm still getting faster after my conversion to vim, but it's now my
> daily editor.
>
> Indeed, the vim support for POV-Ray (3.7) comes by default on most all
> unix based systems because it comes with vim itself. POV-Ray (3.7) via
> Debian support is there on a good many linux variants too. I installed
> v3.7 on my raspberry pi 4 via a usual package install.
>
> Bill P.
There was a time when POV was shipped with Ubuntu... It would be a good target
to try re-establishing that flag, and having integration in such corner stones
as VIM, Blender, are a big step in that direction (VIM ships with very selective
Lubuntu out of the box!). Slightly off-topic: I don't know why POV was removed
from UBUNTU, nor if any other mainstream distro still offers pov package, but
now that the relicensing to AGPL has been achieved, maybe there is hope for such
a return?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
"Mr" <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > (if you're not using 'vim', look away now.. :-))
> >
> I'm thrilled :-D let me explain : Following initial attempt around these
> newsgroups by Koppi and SDRausty
>
http://news.povray.org/povray.unix/thread/%3Cweb.5703a674be33e802db8f4ad50%40news.povray.org%3E/?mtop=427658
> I gave a successful try at building POV v3.8 and HG POV on Android Phones, using
> Termux. (Recipe here: http://wiki.povray.org/content/HowTo:Install_POV#Termux )
> Then Found out the most practical solutions to edit the pov files there out of
> the box was VIM, also since Vim touch is available from Fdroid, it makes the
> same editor also available outside of Termux. PLUS it did feature POV syntax
> highlighting, so even tighter integration is awesome news !
thank you (I'm thrilled it's being used!) POV-Ray on a mobile - v cool.
regards, jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 1/3/21 9:17 AM, Mr wrote:
> William F Pokorny <ano### [at] anonymousorg> wrote:
...
>>
>> Indeed, the vim support for POV-Ray (3.7) comes by default on most all
>> unix based systems because it comes with vim itself. POV-Ray (3.7) via
>> Debian support is there on a good many linux variants too. I installed
>> v3.7 on my raspberry pi 4 via a usual package install.
>>
...
>
> There was a time when POV was shipped with Ubuntu... It would be a good target
> to try re-establishing that flag, and having integration in such corner stones
> as VIM, Blender, are a big step in that direction (VIM ships with very selective
> Lubuntu out of the box!). Slightly off-topic: I don't know why POV was removed
> from UBUNTU, nor if any other mainstream distro still offers pov package, but
> now that the relicensing to AGPL has been achieved, maybe there is hope for such
> a return?
>
Hmm... I don't think your view of the current POV-Ray availability is
accurate.
For a long time (Ubuntu 14?) POV-Ray v3.7 has been a package available
for install from Ubuntu and any other Debian based linux distribution.
It's certainly still available from Ubuntu 20.04 to which I moved last
fall.
On my Ubuntu 20.04 upgrade I looked in some detail at the very nice job
of repackaging the POV-Ray components the Debian support people had
done. These updates were picked up for Ubuntu 20.04. There is a post in
povray.unix about this if you're interested.
For v3.8, Dick Balaska provided the only Debian POV-Ray packages of
which I'm aware - qtpovray 3.8. A native v3.8 POV-Ray Debian package is
not available for install - as far as I know.
Bill P.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
William F Pokorny <ano### [at] anonymousorg> wrote:
> On 1/3/21 9:17 AM, Mr wrote:
> > William F Pokorny <ano### [at] anonymousorg> wrote:
> ...
> >>
> >> Indeed, the vim support for POV-Ray (3.7) comes by default on most all
> >> unix based systems because it comes with vim itself. POV-Ray (3.7) via
> >> Debian support is there on a good many linux variants too. I installed
> >> v3.7 on my raspberry pi 4 via a usual package install.
> >>
> ...
> >
> > There was a time when POV was shipped with Ubuntu... It would be a good target
> > to try re-establishing that flag, and having integration in such corner stones
> > as VIM, Blender, are a big step in that direction (VIM ships with very selective
> > Lubuntu out of the box!). Slightly off-topic: I don't know why POV was removed
> > from UBUNTU, nor if any other mainstream distro still offers pov package, but
> > now that the relicensing to AGPL has been achieved, maybe there is hope for such
> > a return?
> >
>
> Hmm... I don't think your view of the current POV-Ray availability is
> accurate.
>
> For a long time (Ubuntu 14?) POV-Ray v3.7 has been a package available
> for install from Ubuntu and any other Debian based linux distribution.
> It's certainly still available from Ubuntu 20.04 to which I moved last
> fall.
>
> On my Ubuntu 20.04 upgrade I looked in some detail at the very nice job
> of repackaging the POV-Ray components the Debian support people had
> done. These updates were picked up for Ubuntu 20.04. There is a post in
> povray.unix about this if you're interested.
>
> For v3.8, Dick Balaska provided the only Debian POV-Ray packages of
> which I'm aware - qtpovray 3.8. A native v3.8 POV-Ray Debian package is
> not available for install - as far as I know.
>
> Bill P.
Thank you for partly clarifying. I was indeed only aware of the main idea (Only
stable official pov, "only" available in package repositories). When I said
"shipped", I meant "out of the box", as available without launching any synaptic
or package manager whatsoever, just like Vim is for Lubuntu or Python is
included out of the box for the one time user to fire at will in almost any
Linux distribution. Now maybe that was never actually the case for POV? (I
believed, maybe misconceived, it once was). My question now is why? And could it
ever?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 1/5/21 5:28 AM, Mr wrote:
> William F Pokorny <ano### [at] anonymousorg> wrote:
...
>
> Thank you for partly clarifying. I was indeed only aware of the main idea (Only
> stable official pov, "only" available in package repositories). When I said
> "shipped", I meant "out of the box", as available without launching any synaptic
> or package manager whatsoever, just like Vim is for Lubuntu or Python is
> included out of the box for the one time user to fire at will in almost any
> Linux distribution. Now maybe that was never actually the case for POV? (I
> believed, maybe misconceived, it once was). My question now is why? And could it
> ever?
>
I suspect it never the case for the most common linux distributions.
For mainstream linux / unix / macOS? distributions I don't think making
tooling like POV-Ray, Blender, MakeHuman, etc. part of base makes sense.
Including vim, perl, python, the usual shells, etc does.
Most of what makes each distribution unique is the choice of what
packages are already included and it makes sense to include only those
most likely to be used by most people directly or indirectly in the
mainstream ones.
That's not to say there might not be a place for such tools in
specialized linux distributions aimed at making movies, creating games,
doing gis/dem stuff or similar. These sorts of code distributions exist
and they include already extra packages related to their specialization.
Further, if you are using a computer provided by an institution,
computers are usually installed / maintained using common disk images.
Each institution would decide what packages are included by default or
not and some of these might include some form of POV-Ray.
Bill P.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|