side not found

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

side not found

C_G_Zeller
debian-handbook

Side not found

6.6

6.6.1

6.6.2

Have a nice Day

Reply | Threaded
Open this post in threaded view
|

Re: side not found

Shlomi Fish
Hi!

On Fri, 10 Apr 2020 04:03:06 +0200
C_G_Zeller <[hidden email]> wrote:

> debian-handbook
>
> Side not found
>
> 6.6
>
> 6.6.1
>
> 6.6.2
>
> Have a nice Day
>

I don't understand. Please clarify. Also see
https://github.com/shlomif/writing-the-perfect-question .

--

Shlomi Fish       https://www.shlomifish.org/
List of Portability Libraries - https://shlom.in/port-libs

The Zeroth Rule of Fight Club is that Chuck Norris can talk about Fight Club.
No one tells Chuck Norris what not to do.
    — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

Reply | Threaded
Open this post in threaded view
|

Re: side not found

Holger Wansing-4
Hi,

Shlomi Fish <[hidden email]> wrote:

> Hi!
>
> On Fri, 10 Apr 2020 04:03:06 +0200
> C_G_Zeller <[hidden email]> wrote:
>
> > debian-handbook
> >
> > Side not found
> >
> > 6.6
> >
> > 6.6.1
> >
> > 6.6.2
> >
> > Have a nice Day
> >
>
> I don't understand. Please clarify. Also see
> https://github.com/shlomif/writing-the-perfect-question .

That's
Bug#818927: Fw: broken links, German Debian handbook 'Das Debian Administrationshandbuch'


Holger

--
Holger Wansing <[hidden email]>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

Reply | Threaded
Open this post in threaded view
|

Re: side not found

Shlomi Fish
On Fri, 10 Apr 2020 12:13:30 +0200
Holger Wansing <[hidden email]> wrote:

> Hi,
>
> Shlomi Fish <[hidden email]> wrote:
> > Hi!
> >
> > On Fri, 10 Apr 2020 04:03:06 +0200
> > C_G_Zeller <[hidden email]> wrote:
> >  
> > > debian-handbook
> > >
> > > Side not found
> > >
> > > 6.6
> > >
> > > 6.6.1
> > >
> > > 6.6.2
> > >
> > > Have a nice Day
> > >  
> >
> > I don't understand. Please clarify. Also see
> > https://github.com/shlomif/writing-the-perfect-question .  
>
> That's
> Bug#818927: Fw: broken links, German Debian handbook 'Das Debian
> Administrationshandbuch'
>

I see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818927 - thanks for
clarifying.

>
> Holger
>



--

Shlomi Fish       https://www.shlomifish.org/
List of Portability Libraries - https://shlom.in/port-libs

Buddha has the Chuck Norris nature.
    — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

Reply | Threaded
Open this post in threaded view
|

Re: side not found

Holger Wansing-4
Hi,

Shlomi Fish <[hidden email]> wrote:

> On Fri, 10 Apr 2020 12:13:30 +0200
> Holger Wansing <[hidden email]> wrote:
>
> > Hi,
> >
> > Shlomi Fish <[hidden email]> wrote:
> > > Hi!
> > >
> > > On Fri, 10 Apr 2020 04:03:06 +0200
> > > C_G_Zeller <[hidden email]> wrote:
> > >  
> > > > debian-handbook
> > > >
> > > > Side not found
> > > >
> > > > 6.6
> > > >
> > > > 6.6.1
> > > >
> > > > 6.6.2
> > > >
> > > > Have a nice Day
> > > >  
> > >
> > > I don't understand. Please clarify. Also see
> > > https://github.com/shlomif/writing-the-perfect-question .  
> >
> > That's
> > Bug#818927: Fw: broken links, German Debian handbook 'Das Debian
> > Administrationshandbuch'
> >
>
> I see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818927 - thanks for
> clarifying.

I found the problem in
https://salsa.debian.org/webmaster-team/cron/-/blob/master/parts/7doc line 206:

The if clause

        if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
            pagecopy2 $lang "$pagefile" "$destdir/$(basename $page .html).$lang.html"
        ...

checks if the files to be processed are html files with language extensions,
otherwise it skips the file in question.
In case of the file "sect.dist-upgrade.html" the 'if' does not give an EQUAL,
because the "de.html" at the end is truncated ("de" is seen as language extension,
not as part of the base-filename). That's why that file is not copied and is
therefore missing on the webpage.

So adding a dot like
- if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
+ if [ "$(basename $page .$lang.html)" = "$(basename $page)" ]; then
ensures, that only language extensions are truncated, and everything works
as expected.


Holger


--
Holger Wansing <[hidden email]>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

Reply | Threaded
Open this post in threaded view
|

Re: side not found

Holger Wansing-4
Hi,

Holger Wansing <[hidden email]> wrote:

> I found the problem in
> https://salsa.debian.org/webmaster-team/cron/-/blob/master/parts/7doc line 206:
>
> The if clause
>
> if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
>             pagecopy2 $lang "$pagefile" "$destdir/$(basename $page .html).$lang.html"
>         ...
>
> checks if the files to be processed are html files with language extensions,
> otherwise it skips the file in question.
> In case of the file "sect.dist-upgrade.html" the 'if' does not give an EQUAL,
> because the "de.html" at the end is truncated ("de" is seen as language extension,
> not as part of the base-filename). That's why that file is not copied and is
> therefore missing on the webpage.
>
> So adding a dot like
> - if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
> + if [ "$(basename $page .$lang.html)" = "$(basename $page)" ]; then
> ensures, that only language extensions are truncated, and everything works
> as expected.
While diffing the results of the original and the changed 7doc script, I found
that there were several more files suffering from this problem:

network-services.es.html
sect.administration-interfaces.es.html
sect.aptosid.id.html
sect.automatic-upgrades.es.html
sect.common-procedures.es.html
sect.dist-upgrade.de.html
sect.office-suites.es.html
sect.other-derivatives.es.html
sect.regular-upgrades.es.html
sect.rtc-services.es.html
sect.searching-packages.es.html
sect.user-group-databases.es.html
unix-services.es.html

... all those files, who have their language extension identical to the last
two characters of the base-filename.


And while we are at it:
the above is with the mvhtml2() stanza, but the same problem is also in the
mvhtml() and mvhtml_sphinx() stanzas (these did not make it into effect on
the webpage though). So I will fix those too.

I have attached a patch, which I will commit shortly.

Holger



--
Holger Wansing <[hidden email]>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

7doc.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: side not found

Shlomi Fish
On Fri, 10 Apr 2020 19:02:14 +0200
Holger Wansing <[hidden email]> wrote:

> Hi,
>
> Holger Wansing <[hidden email]> wrote:
> > I found the problem in
> > https://salsa.debian.org/webmaster-team/cron/-/blob/master/parts/7doc line
> > 206:
> >
> > The if clause
> >
> > if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
> >             pagecopy2 $lang "$pagefile" "$destdir/$(basename $page
> > .html).$lang.html" ...
> >
> > checks if the files to be processed are html files with language extensions,
> > otherwise it skips the file in question.
> > In case of the file "sect.dist-upgrade.html" the 'if' does not give an
> > EQUAL, because the "de.html" at the end is truncated ("de" is seen as
> > language extension, not as part of the base-filename). That's why that file
> > is not copied and is therefore missing on the webpage.
> >
> > So adding a dot like
> > - if [ "$(basename $page $lang.html)" = "$(basename $page)" ]; then
> > + if [ "$(basename $page .$lang.html)" = "$(basename $page)" ]; then
> > ensures, that only language extensions are truncated, and everything works
> > as expected.  
>

Thanks for your contribution, Holger!

--

Shlomi Fish       https://www.shlomifish.org/
https://www.shlomifish.org/humour/ways_to_do_it.html

Chuck Norris does not keep any numbers on his mobile phone’s address book.
Instead, he memorised the entire phone directory.
    — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

Reply | Threaded
Open this post in threaded view
|

Re: side not found

Holger Wansing-4
In reply to this post by Holger Wansing-4
Hi,

Holger Wansing <[hidden email]> wrote:

> While diffing the results of the original and the changed 7doc script, I found
> that there were several more files suffering from this problem:
>
> network-services.es.html
> sect.administration-interfaces.es.html
> sect.aptosid.id.html
> sect.automatic-upgrades.es.html
> sect.common-procedures.es.html
> sect.dist-upgrade.de.html
> sect.office-suites.es.html
> sect.other-derivatives.es.html
> sect.regular-upgrades.es.html
> sect.rtc-services.es.html
> sect.searching-packages.es.html
> sect.user-group-databases.es.html
> unix-services.es.html

After the need to fix another issue first, all the above now work correctly.


Holger

--
Holger Wansing <[hidden email]>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

Reply | Threaded
Open this post in threaded view
|

Re: Bug#818927: side not found

Laura Arjona Reina-4
Thanks, Holger!

El 12 de abril de 2020 14:45:25 CEST, Holger Wansing <[hidden email]> escribió:

>Hi,
>
>Holger Wansing <[hidden email]> wrote:
>> While diffing the results of the original and the changed 7doc script, I found
>> that there were several more files suffering from this problem:
>>
>> network-services.es.html
>> sect.administration-interfaces.es.html
>> sect.aptosid.id.html
>> sect.automatic-upgrades.es.html
>> sect.common-procedures.es.html
>> sect.dist-upgrade.de.html
>> sect.office-suites.es.html
>> sect.other-derivatives.es.html
>> sect.regular-upgrades.es.html
>> sect.rtc-services.es.html
>> sect.searching-packages.es.html
>> sect.user-group-databases.es.html
>> unix-services.es.html
>
>After the need to fix another issue first, all the above now work correctly.
>
>
>Holger
>

--
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
Sent with K-9 mail