Bug#820119: tidy reports valid NCR as invalid

2017-11-07 Thread Neil Roeth
Laura asked for my help on this issue.  What I found is that setting the
environment variable SP_CHARSET_FIXED to 1 makes the onsgmls program use
the Unicode 2.0 character set, as the referenced web page says. 
However, it uses only the first 65536 characters (the iso10646-ucs-2
character set), so character number 128513 triggers the error since it
is outside that range.  In order to make that work, you need to ensure
SP_CHARSET_FIXED is unset in the validate script.  However, XML files
need SP_CHARSET_FIXED set.  So, I suggest something like this (patch
attached):

    if ($xhtml{$htmlLevel}) {
    $ENV{'SGML_CATALOG_FILES'} = $xhtmlCatalog;
    $ENV{'SP_CHARSET_FIXED'} = 1;
    $ENV{'SP_ENCODING'} = 'xml';
    } else {
    $ENV{'SGML_CATALOG_FILES'} = $htmlCatalog;
    if (defined $charset) {
    $ENV{'SP_BCTF'} = $charset;
    } else {
    $ENV{'SP_BCTF'} = "utf-8";
    }
    }

That also changes the default character set for HTML from ISO-8859-1 to
UTF-8 because the former is not a valid BCTF option.  It appears the
validate script only uses that default if there is not a character set
defined in the HTML file itself and there is no character set option
passed to the script.

I didn't set up the whole web site build on my machine to test if this
change has any negative effects on pages other than en_GB.it.html , so
it needs broader testing.


diff --git a/scripts/validate b/scripts/validate
index 7d20f1c..a41c1cb 100755
--- a/scripts/validate
+++ b/scripts/validate
@@ -364,16 +364,16 @@ foreach $file (@files) {
 # environment accordingly.
 if ($xhtml{$htmlLevel}) {
 $ENV{'SGML_CATALOG_FILES'} = $xhtmlCatalog;
+	$ENV{'SP_CHARSET_FIXED'} = 1;
 $ENV{'SP_ENCODING'} = 'xml';
 } else {
 $ENV{'SGML_CATALOG_FILES'} = $htmlCatalog;
 if (defined $charset) {
-$ENV{'SP_ENCODING'} = $charset;
+$ENV{'SP_BCTF'} = $charset;
 } else {
-$ENV{'SP_ENCODING'} = "ISO-8859-1";
+$ENV{'SP_BCTF'} = "utf-8";
 }
 }
-$ENV{'SP_CHARSET_FIXED'} = 1;
 
 if ($verbose) {
 if ($file eq '-') {


Bug#820119: tidy reports valid NCR as invalid

2017-11-07 Thread Neil Roeth
Sorry, I should have used my Debian email address on that last update. 
I'm the maintainer of the opensp package which provides the onsgmls
executable used by validate.

-- 
Neil Roeth



Bug#845297: [www.debian.org] Website transition from CVS to Git - Perl scripts to compare revisions

2017-11-07 Thread Laura Arjona Reina
Package: www.debian.org

Dear all
I have started to work in the scripts that we would need to convert from
the CVS logic (centralized system, a CVS/ folder with the info of the
files, version numbers) into a Git logic (decentralized system, commit
hashes instead of version numbers).

Lev's approach of having a "database" of numeric, consecutive versions
for each web file
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845297#25) sounds
difficult for me to understand and implement, so for now I'm not using
it, just trying to think in commit hashes as revision numbers, and the
own git tools to compare (most important is the diff content, not the
_version_number_ of the revisions, I think. Translators just update
manually the version_number right now, so I guess copy-pasting a git
hash is not so pretty as writing a number, but could work in a similar way).

Thanks to previous web team members, the current code is quite
versioning-system-agnostic and it's very modular. So I've dared to try
to do something non-nonsense:

* in the Perl/Local folder I copied the existing VCS_CVS.pm and
Cvsinfo.pm files into 2 new files, VCS_git.pm and Gitinfo.pm

* I've done some search and replace for the variables and comments (CVS
-> git)

* Inserted some "#FIXME" comments in the functions that I think need
conversion

* I've tried to convert some of the functions. Didn't test them, though.

Since the website uses the VCS_CVS.pm and the Cvsinfo.pm files, and I
didn't touch any file that calls them, I've committed my changes to the
CVS repo. See the current status:

https://anonscm.debian.org/viewvc/webwml/webwml/Perl/Local/VCS_git.pm
https://anonscm.debian.org/viewvc/webwml/webwml/Perl/Local/Gitinfo.pm

OTOH, I have updated the webwml git repo

https://anonscm.debian.org/cgit/webwml/webwml2git.git/

to include the last commits and these files too, so they can be tested.

If you can and want to help, please review my changes, checkout the git
repo and test the different functions, or go on with the conversion in
the rest of the functions. I'll try to come back to this before the end
of the month.

If you have changes to do on the Perl files that don't affect the
current way of working with the website, please commit them in the CVS
repo, and ping me if you need that I update the git repo afterwards.
Other way is to work in the githashes branch of the git repo. I guess
you need that branch to point to the current master HEAD first, and then
do your changes.

Cheers

-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona



Pomagaj im podejmować decyzje

2017-11-07 Thread Psychologia Perswazji
20 technik, które zmienią Twoje życie...

 


Zmotywuj siebie i innych do zachowań, które

przyniosą Wam korzyści


Do konferencji “Psychologia Perswazji” zostały już tylko 3 tygodnie. 
Tymczasem dr Mateusz Grzesiak przygotował kolejne nagranie dające przedsmak 
tego wyjątkowego wydarzenia.

Zastanawiasz się, co możesz zyskać dzięki skutecznemu stosowaniu perswazji?

W jaki sposób może ono wpłynąć na Twoje życie zawodowe, ale i prywatne?

Sprawdź, co ma na ten temat do powiedzenia dr Mateusz Grzesiak!



Uwaga!

Pamiętaj, że niższe ceny biletów obowiązują tylko do najbliższego piątku!

Pozdrawiamy,

Zespół Tickerence.


 
 



Zobacz inne nasze konferencje na:


 
 
 

Jeśli chcesz zrezygnować z otrzymywania wiadomości dotyczących konferencji 
organizowanych przez Trakido kliknij w LINK


Zobacz wiadomość w przeglądarce


Re: Who's using Debian?

2017-11-07 Thread Kåre Thor Olsen
On Mon, 30 Oct 2017 15:50:54 +0100
StanoMotycka  wrote:

>State nature conservation agency, SLOVAKIA
[...]

The site will be added to the "Who's using Debian" page in a few hours.

Thanks for your support!

-- 
Regards, Kaare



Richiesta informazioni

2017-11-07 Thread Gessica Speranza
Salve,
Sono Gessica Speranza consulente commerciale per quanto riguarda la telefonia e 
l'adsl, attuelmente ho nel mio portafogli prodotti diversi brand con tariffe 
business o residenziali che partono da 19€ al mese. Mi farebbe piacere poter 
discutere con lei telefonicamente di questa proposta, se gentilmente mi 
fornisce un suo recapito la ricontatto così da illustrarle il tutto.

Resto in attesa di un suo riscontro.
Cordialmente, Gessica.