Re: [9fans] troff refer and bib

2021-04-09 Thread Xiao-Yong Jin
> On Apr 9, 2021, at 12:57 PM, sirjofri  wrote:
> 
> Writer's Workbench
> 
> https://git.sr.ht/~sirjofri/wwb9
> 
> (Works on 9, but I need to make it better for different platforms and some 
> tools need adjustments. Send patches.)

What exactly is the license?  Even just reading code of unclear license could 
get many people in trouble.
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-Mb0405caa0117990059f8a6d6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread sirjofri



09.04.2021 21:51:50 Charles Forsyth :

I personally found the code hard to read,


The original looked like this:


Yeah, I've seen the original wwb Unix V10 code. Looks very similar...

But still I'm surprised I got it to compile without many adjustments. 
Most changes were pure syntax changes.


If someone's interested, you can compare my source with the v10 code at 
tuhs. I didn't touch anything I didn't need to.


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-Mab7e17b74e3df52fe2dcdd66
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread Charles Forsyth
> I personally found the code hard to read,


The original looked like this:

tabs (sv, line)
char *sv[], *line;
{
char *p;
int n 0;
sv[n++] = line;
for( p= line; *p; p++)
{
if (*p == '\n')
{
*p=0;
sv[n++] = p+1;
}
}
return(n-1);
}
class (nt, tv)
char *tv[];
{
if (hastype (nt, tv, 'J'))
return("1 journal-article");
if (hastype (nt, tv, 'B'))
return("3 article-in-book");
if (hastype (nt, tv, 'R'))
return ("4 tech-report");
if (hastype (nt, tv, 'G'))
return ("4 tech-report");
if (hastype (nt, tv, 'I'))
return("2 book");
if (hastype (nt, tv,'M'))
return ("5 bell-tm");
return("0 other");
}

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-M256992115658f974c595849a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread sirjofri



09.04.2021 18:25:32 David du Colombier <0in...@gmail.com>:

may be offtopic but now I'm just curious :-) what's wwb ?


Writer's Workbench.


Writer's Workbench

https://git.sr.ht/~sirjofri/wwb9

(Works on 9, but I need to make it better for different platforms and 
some tools need adjustments. Send patches.)


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-M02cb4dc02fc2a63a8badfcc1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread David du Colombier
> may be offtopic but now I'm just curious :-) what's wwb ?

Writer's Workbench.

https://archive.org/details/wwb-user

-- 
David du Colombier

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-Md4922718a45eddc8adecd3ce
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread Maurizio Boriani


sirjofri writes:

> (This reminds me, I should finish my wwb port, but that's offtopic.)

may be offtopic but now I'm just curious :-) what's wwb ?


thanks,


-- 
Maurizio Boriani 
PGP key: 0xCC0FBF8F

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-Md853c2a39477dbfca91f2778
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread sirjofri



09.04.2021 16:39:53 Charles Forsyth :
I still use it. I think it differs in many ways from the original 
version (the Caldera licence was to allow the 7th Edition code to be 
used in 2002).


Nice to read from you!

I personally found the code hard to read, but I feel it's just normal for 
the complexity of the task. Managing references is harder than it may 
sound, I'm sure.


I used your refer version for my two last theses in university, I just 
wished it had a native solution for double references. I needed the 
reference as footnotes in the text, as well as at the very end of the 
thesis under a bibliography/literature section. Refer can do both, but 
not simultaneously. I built a rc script around this which calls refer 
twice and merges the results, which is a very hacky solution... but it 
worked.


I like how refer embeds nicely into Plan 9 (with calls like refer/refer).

(This reminds me, I should finish my wwb port, but that's offtopic.)

Thanks for porting refer. Again, I wish we had some easier way to manage 
contrib packages, e.g. by having repositories and just clone and mk them. 
I never know which package is still supported and supposed to work and 
which ones are legacy and don't work.


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-Mfb6ec0c66efd9e616fb98338
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread Maurizio Boriani


Charles Forsyth writes:

> I still use it. I think it differs in many ways from the original
> version

the version you contributed in extra/refer.tgz ?


Thanks,

best regards.


-- 
Maurizio Boriani 
PGP key: 0xCC0FBF8F

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-Me4c33d0565f71039d3a33649
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-09 Thread Charles Forsyth
I still use it. I think it differs in many ways from the original version
(the Caldera licence was to allow the 7th Edition code to be used in 2002).
Not least that it's formatted and arranged to be readable. It made some
things dynamic so it could handle large reference libraries.
There were bug fixes.
I also replaced the original's internal fgrep implementation by the
Aho-Corasick as developed in the paper.

On Thu, Apr 8, 2021 at 12:28 PM sirjofri 
wrote:

>
> 08.04.2021 12:57:15 Maurizio Boriani :
> >   is there somewhere in plan9 code base (9front, plan9port etc...) the
> > source code of refer and/or bib? I found many references to 'em but
> > didn't found the code or programs.
> 
> I got mine from contrib:
> 
> https://9p.io/wiki/plan9/contrib_index/index.html
> (EXTRA section, by charles forsyth)
> 
> sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-M56c244cf2509e8b0a3e5dbb9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-08 Thread arnold
Maurizio Boriani  wrote:

> Hi,
>   is there somewhere in plan9 code base (9front, plan9port etc...) the
> source code of refer and/or bib? I found many references to 'em but
> didn't found the code or programs.

The Research Unix versions can be found in the TUHS archives (see
tuhs.org).  I suspect that the Heirloom Troff versions could also
be made to work.

HTH,

Arnold

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-M46ff38b6dae4038e6646cb33
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] troff refer and bib

2021-04-08 Thread sirjofri



08.04.2021 12:57:15 Maurizio Boriani :

  is there somewhere in plan9 code base (9front, plan9port etc...) the
source code of refer and/or bib? I found many references to 'em but
didn't found the code or programs.


I got mine from contrib:

https://9p.io/wiki/plan9/contrib_index/index.html
(EXTRA section, by charles forsyth)

sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T2e70e97724f65028-M7e2b2731146732279feba38e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription