[TWN team] Script to automatically number the references

harmony harmony01 at riseup.net
Thu Sep 12 10:39:33 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Awesome, thanks for this.

Sorry to be dense, but if I have the file to wrap and the script in my
home folder, and the file is called 'torwrap', what exactly do I type
to get it to work? I tried './numerize.rb torwrap' and './numerize.rb
<<torwrap' but it just complains or gives me an expectant '>' character.

You can probably tell I'm new here...

Lunar:
> Hi!
> 
> I am not sure we're handling the references the easiest way right
> now, but for the latest edition I wrote a little Ruby script to
> make it easier.
> 
> Example:
> 
> $ ./numerize.rb <<EOF I like references [XXX] so much you would not
> believe it [XXX]!
> 
> [XXX] http://example.org/ [XXX] http://example.com/ EOF I like
> references [1] so much you would not believe it [2]!
> 
> [1] http://example.org/ [2] http://example.com/
> 
> See attachment.
> 
> 
> 
> ________________________________________________________________________
>
> 
Tor Weekly News coordination mailing-list
> 
> To unsubscribe or change other options, please visit: 
> https://lists.torproject.org/cgi-bin/mailman/listinfo/news-team
> 

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJSMZnkAAoJEPIBzxrnTA33/94P/A+4Xsr9FC50I3cDG6juThGn
mZ7YPUYK44l5syLvup7zlQ1AEuteIfEGsCEpLnqduK4U0sEZqERPjkOCaRKzki6m
CHUy7/GHC1NPG+Q/++oEH5mnbxLzEL53E6S2dNsun9N4xMd4nofe9tLGL0ZF6HHz
YtH/r21IIrEeOCNTWdZh3ALZjpwMhSb6dzMDw9OR4XyQjnZkZTPm/j+nAOXinmex
zU2Qi8IKXhQ5ZD7i3FjS1vP2CurZj49LqM0OGjhKufTC7qNGDk9fV1MB7g3oZHBe
mhNGsxcY/6AE+eFzAspo62QVeVXzlPr/tt+IVgVi2EmTTkckBO+LQ+RONoreixLf
lPSM3EmuddSWROdLaImIY52iNe0sEKcdTY73yGpi5U5g08/N80qOXsYWGXXxYEs4
yZM4X3XM1XvAE0fNXsfxBP4tL8IWo1ixqJo4rO0m+ZNhWlBVq7FquRVTvIm54cNF
GYGL81GaX6luW2SCRBC/ILHq8DZtLokOms0PmOVJmboPeHeHFrBIzzjOmLJuSVFT
yJR2Mqlp8AmHhIrh54EjifBrZjT1QX4G6EDjO/0Au46YNp6c6WolEq4Qyf6smAUM
EnBjksSSqCovvJu7nvBbOaSE3ddG1OqH/pzUkmIcArUSBYzLumrMUcWDis2VoqMW
nMSklEmjZOVui2Zm1o2T
=t9i6
-----END PGP SIGNATURE-----


More information about the news-team mailing list