Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.project > #12472 > unrolled thread

Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents

Started byDiederik de Haas <didi.debian@cknow.org>
First post2021-09-06 23:10 +0200
Last post2021-09-09 12:20 +0200
Articles 8 — 4 participants

Back to article view | Back to linux.debian.project

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Diederik de Haas <didi.debian@cknow.org> - 2021-09-06 23:10 +0200
    Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Gard Spreemann <gspr@nonempty.org> - 2021-09-07 11:40 +0200
      Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Diederik de Haas <didi.debian@cknow.org> - 2021-09-07 14:30 +0200
        Re: Bug#273323: scripting solution Daniel Lange <DLange@debian.org> - 2021-09-08 07:50 +0200
        Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Gard Spreemann <gspr@nonempty.org> - 2021-09-08 09:30 +0200
          Re: Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Diederik de Haas <didi.debian@cknow.org> - 2021-09-08 15:20 +0200
            Re: Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Paul Wise <pabs@debian.org> - 2021-09-09 06:10 +0200
              Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents Diederik de Haas <didi.debian@cknow.org> - 2021-09-09 12:20 +0200

#12472 — Bug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-09-06 23:10 +0200
SubjectBug#273323: doc-debian: please ship typesettable version of social contract and dfsg documents
Message-ID<CUu2l-3wG-9@gated-at.bofh.it>
Package: doc-debian
Version: 6.5
Followup-For: Bug #273323
X-Debbugs-Cc: debian-project@lists.debian.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I wanted to print the Debian Social Contract, which turned out to be WAY
more difficult then I expected and then it should be.

So I went to https://www.debian.org/social_contract and wanted to print
that. Apparently there isn't a print stylesheet for it, so if you print
that, you also get 'Blog', 'Micronews', 'Planet' and a search box.
Of course I didn't mind the Debian logo.
The last page (of the print preview) shows that it's available in a whole
bunch of languages, which is good, but undesirable for a print version. 
And then you get a bunch of links, also undesirable for a print version.

Then I went looking for a PDF version and didn't find anything.

I did find a 'social-contract.txt.gz' (why compressed?), but that's
missing any form of nice formatting (that the webpage does have).
I did try 'zcat <path-to-social-contract-txt-gz>' and editing that in
LibreOffice Writer, but apparently I've lost my skills in office
programs, so I bailed on that.

I ended up using a Firefox addon (Print Edit WE) to strip all the things
I didn't need. That still didn't give me an option to have
- - 1 page with the Social Contract and
- - 1 page with the Debian Free Software Guidelines

(I also lost the Debian logo, but that may be a PEBKAC issue)
It doesn't have to be a 2 page document, but that seems kind of nice.

It really shouldn't be this hard to print the most essential document of
the Debian Project.
It was surprising (and a bit disappointing) that there isn't a nicely
formatted printable document/PDF available.

So hereby my +1 to getting this bug fixed.

Cheers,
  Diederik


- -- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (101, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 5.10.0-8-amd64 (SMP w/16 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

doc-debian depends on no packages.

Versions of packages doc-debian recommends:
ii  debian-faq  10.1

Versions of packages doc-debian suggests:
ii  firefox [www-browser]                   88.0.1-1
ii  firefox-esr [www-browser]               78.13.0esr-1
ii  ghostscript [postscript-viewer]         9.53.3~dfsg-7+b1
ii  konqueror [www-browser]                 4:21.08.0-1
ii  okular [postscript-viewer]              4:21.08.0-1
ii  qpdfview-ps-plugin [postscript-viewer]  0.4.18-5
ii  qutebrowser [www-browser]               2.3.1-1
ii  w3m [www-browser]                       0.5.3+git20210102-6

- -- no debconf information

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

iHUEARYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCYTaBAwAKCRDXblvOeH7b
bt67AP9BUY8KDSj0YMWMbwkBQS8SVcvR19de+lz6FPQX/HHnVgD8Dhffl9+ikEZn
ob3WraENDf4xMZTMSqGJf0kB8X+8YQU=
=v0jd
-----END PGP SIGNATURE-----

[toc] | [next] | [standalone]


#12476

FromGard Spreemann <gspr@nonempty.org>
Date2021-09-07 11:40 +0200
Message-ID<CUFKa-2zP-5@gated-at.bofh.it>
In reply to#12472

[Multipart message — attachments visible in raw view] — view raw

Diederik de Haas <didi.debian@cknow.org> writes:

> I wanted to print the Debian Social Contract, which turned out to be WAY
> more difficult then I expected and then it should be.
>
> So I went to https://www.debian.org/social_contract and wanted to print
> that. Apparently there isn't a print stylesheet for it, so if you print
> that, you also get 'Blog', 'Micronews', 'Planet' and a search box.
> Of course I didn't mind the Debian logo.
> The last page (of the print preview) shows that it's available in a whole
> bunch of languages, which is good, but undesirable for a print version. 
> And then you get a bunch of links, also undesirable for a print version.
>
> Then I went looking for a PDF version and didn't find anything.
>
> I did find a 'social-contract.txt.gz' (why compressed?), but that's
> missing any form of nice formatting (that the webpage does have).
> I did try 'zcat <path-to-social-contract-txt-gz>' and editing that in
> LibreOffice Writer, but apparently I've lost my skills in office
> programs, so I bailed on that.

Are any of these helpful? I'm happy to do more iterations – perhaps
using LuaLaTeX and better fonts? This is so far just rushed lunch-work:

https://nonempty.org/~gspr/social.tex

https://nonempty.org/~gspr/social.pdf


 -- Gard
 

[toc] | [prev] | [next] | [standalone]


#12477

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-09-07 14:30 +0200
Message-ID<CUIoH-4go-11@gated-at.bofh.it>
In reply to#12476

[Multipart message — attachments visible in raw view] — view raw

On dinsdag 7 september 2021 11:26:15 CEST Gard Spreemann wrote:
> Diederik de Haas <didi.debian@cknow.org> writes:
> > I wanted to print the Debian Social Contract, which turned out to be WAY
> > more difficult then I expected and then it should be.
> > ...
> 
> Are any of these helpful? I'm happy to do more iterations – perhaps
> using LuaLaTeX and better fonts? This is so far just rushed lunch-work:
> 
> https://nonempty.org/~gspr/social.tex
> 
> https://nonempty.org/~gspr/social.pdf

I only looked at the pdf and it's a very nice start, thanks!

Couple of remarks, all in my opinion of course:
- I don't know if there is or should be different versions based on paper size 
(A4 vs US Letter).
- I like to have a header which is repeated on all pages and a footer which 
says "Page X of Y", so you know those (currently 3) pages belong together and 
know the sequence and how large it is in total.
In my LO Writer attempt, I had "Debian Social Contract" on the first page as 
header and "Debian Free Software Guidelines (DFSG)" on second, but I squeezed 
things to fit in those 2 pages. Probably not worth aiming for.
*If* there is an official location for the Social Contract, like 
https://www.debian.org/social_contract then I'd like to have that in the page 
header or footer as well.
- it's not in f.e. the web page, but I'd suggest the "Supersedes Version 1.0 
..." on a new line. This prevent the case where '1997' is on a line on it's 
own. It's all in 1 line on my printed version, but I decreased margins.
(Whether version history should be part of the document itself is a separate 
matter, so I'll leave that aside)
- the header "Debian will remain 100% free"* (f.e.) should be on its own line 
and I prefer it to be in "bold" or something like that to visually make a 
distinction between the header and the text.
- ideally an item of the Social Contract should fully on 1 page. The amount of 
white space on especially the first page is quite high and if that gets 
reduced, item 4 should fit on the first page as well. The amount of white space 
at the bottom of the pages seems rather high as well. It doesn't bug me, but 
if you want/need some extra lines to put text in, you could squeeze some from 
that. But not too much as some printers may then run into issues ;-)
It's possibly hard to realize this in a general case, but I assume doable for 
this specific document.
- the last part after "Example Licenses" is formatted differently on the 
website from the rest of the Social Contract and that seems correct.
The first paragraph gives some history. The 2nd shows a link between The Open 
Source Definition and the Social Contract. The 3rd looks like a kind of 
license? (without making it explicit; but also outside the scope of this bug)

Cheers,
  Diederik

*) when copying from the pdf the spaces around '100%' vanished, resulting in 
'remain100%free'

[toc] | [prev] | [next] | [standalone]


#12478 — Re: Bug#273323: scripting solution

FromDaniel Lange <DLange@debian.org>
Date2021-09-08 07:50 +0200
SubjectRe: Bug#273323: scripting solution
Message-ID<CUYD8-69j-1@gated-at.bofh.it>
In reply to#12477
This works reasonably well:

curl "https://www.debian.org/social_contract.en.html" |\
sed '/^<div id="content">/,/^<\/div> <!-- end content -->/{//!b};d' |\
pandoc -f html -t latex -V geometry:a4paper,margin=2cm -o social_contract.pdf

[toc] | [prev] | [next] | [standalone]


#12479

FromGard Spreemann <gspr@nonempty.org>
Date2021-09-08 09:30 +0200
Message-ID<CV0bT-7p1-1@gated-at.bofh.it>
In reply to#12477

[Multipart message — attachments visible in raw view] — view raw

Diederik de Haas <didi.debian@cknow.org> writes:

> I only looked at the pdf and it's a very nice start, thanks!
>
> […]

Thanks for the feedback.

Daniel Lange's email made me think that there should perhaps be an
authoritative version of the text, from which PDF, whatever-printable,
HTML, etc. can be generated (using for example pandoc)?

 -- Gard
 

[toc] | [prev] | [next] | [standalone]


#12480

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-09-08 15:20 +0200
Message-ID<CV4Sd-1Zq-1@gated-at.bofh.it>
In reply to#12479

[Multipart message — attachments visible in raw view] — view raw

On woensdag 8 september 2021 09:22:11 CEST Gard Spreemann wrote:
> there should perhaps be an authoritative version of the text,
> from which PDF, whatever-printable, HTML, etc. can be generated

I think that's a good idea.
But then the question becomes: what is the authoritative version?

I get the impression that https://www.debian.org/social_contract 
is (often?) seen as *the* version. But that page is generated from 
https://salsa.debian.org/webmaster-team/webwml/-/blob/master/english/social_contract.wml

The homepage for wml according to the wml package is 
https://www.shlomifish.org/open-source/projects/website-meta-language/

which mentions "which is an old offline preprocessor for HTML 
and XHTML which is sophisticated but quirky and slow" and 
the linked GitHub repo has the following in its about section:

"An old offline HTML preprocessor (which can be used for static 
site generation), written in Perl and C that is still maintained for 
legacy reasons, but probably not recommended for new sites."

Given that, is it wise to have the WML version as the 
authoritative one?

Pandoc supports various input formats, but I didn't see WML.
It does support DocBook and Joost did provide a patch which
contains a DocBook version of the Social Contract
(converted from the WML version btw)

OTOH, it feels like I'm WAY overthinking this ;-P

Cheers,
  Diederik

[toc] | [prev] | [next] | [standalone]


#12481

FromPaul Wise <pabs@debian.org>
Date2021-09-09 06:10 +0200
Message-ID<CVjxU-2Cb-9@gated-at.bofh.it>
In reply to#12480
On Wed, Sep 8, 2021 at 1:11 PM Diederik de Haas wrote:

> But then the question becomes: what is the authoritative version?

The other copies of it (in doc-debian and the doc directory of the
Debian apt archive) are all copied/built from the version on the
website.

https://salsa.debian.org/ddp-team/doc-debian/blob/master/doc-debian/debian/README.source
https://salsa.debian.org/ddp-team/doc-debian/blob/master/doc-debian/doc/social-contract.wml
https://deb.debian.org/debian/doc/

> Given that, is it wise to have the WML version as the
> authoritative one?

At some point the website may switch from WML to something else but it
will be a lot of work to achieve.

> Pandoc supports various input formats, but I didn't see WML.

You could convert to HTML and use that as Pandoc input.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[toc] | [prev] | [next] | [standalone]


#12482

FromDiederik de Haas <didi.debian@cknow.org>
Date2021-09-09 12:20 +0200
Message-ID<CVpjX-6fG-1@gated-at.bofh.it>
In reply to#12481

[Multipart message — attachments visible in raw view] — view raw

On donderdag 9 september 2021 05:56:17 CEST Paul Wise wrote:
> On Wed, Sep 8, 2021 at 1:11 PM Diederik de Haas wrote:
> > But then the question becomes: what is the authoritative version?
> 
> The other copies of it (in doc-debian and the doc directory of the
> Debian apt archive) are all copied/built from the version on the
> website.

Thank you.
Until you pointed out otherwise, I assumed the .txt version was the original/
authoritative version.

> > Given that, is it wise to have the WML version as the
> > authoritative one?
> 
> At some point the website may switch from WML to something else but it
> will be a lot of work to achieve.

I should've made it explicit in my previous mail that I solely meant the 
Social Contract and didn't mean/intend to suggest the whole website should be 
in a different format.

Cheers,
  Diederik

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.project


csiph-web