[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Formatting suggestion for Debian Project News' similar sections



Hi David,

Sorry for my late reply.
According to your suggestions, I wrote a patch.
After apply the patch. You can use the tags as shown below.

> Why make events-ml-* configurable, while those URL are as fixed as the
> related text?
> 
> <events-ml-guide
>         events-section="$(HOME)/events"
>         events-ml-eu="http://lists.debian.org/debian-events-eu";
>         events-ml-nl="http://lists.debian.org/debian-events-nl";
>         events-ml-ha="http://lists.debian.org/debian-events-ha";
>         events-ml-na="http://lists.debian.org/debian-events-na";
> />

Upper code is equivalent to the following code.

<events-ml-guide />

It is possible to overwrite default values by specific values.

<events-ml-guide
        events-section="path/to/events-section"
        events-ml-eu="path/to/events-ml-eu"
        events-ml-nl="path/to/events-ml-nl"
        events-ml-ha="path/to/events-ml-ha"
        events-ml-na="path/to/events-ml-na"
/>

> <events-info
>         events-talks="$(HOME)/events/talks"
>         events-team="mailto:events@debian.org";
> />

Upper code is equivalent to the following code.

<events-info />

It is possible to overwrite default values by specific values.

<events-info
        events-talks="path/to/events-talks"
        events-team="path/to/events-team"
/>

> Likewise for newcontributors:
> 
> ## dd-url is always the same;
> […]
> ## uploader-url is always the same;
> ## post-name is always the same

<newcontributors
       dd-url="http://nm.debian.org/public/nmlist#done";
       dm-url="http://lists.debian.org/debian-project/2012/12/msg00072.html";
       uploader-url="http://udd.debian.org/cgi-bin/new-maintainers.cgi";
       post-name=""
>

Upper code is equivalent to the following code.

<newcontributors
        dm-url="http://lists.debian.org/debian-project/2012/12/msg00072.html";
>

It is possible to overwrite default values by specific values.

<newcontributors
       dd-url="path/to/dd-url"
       dm-url="http://lists.debian.org/debian-project/2012/12/msg00072.html";
       uploader-url="path/to/uploader-url"
       post-name=""
>

> The “New Debian Contributors” parts is so automatized that “6 people” is
> autogenerated, is it possible to generate “Six people” as we used to?

You can use dd-num, dm-num and uploader-num attributes to specify
printing surface of the number of dd, dm and uploader. If *-num
attributes are not defined or defind as "", the number of attributes in
newcontributors-dd, newcontributors-dm, newcontributors-uploader tags
are used for the value of *-num. In this case, arabic numerals are
forced.

Example:

<newcontributors
        dm-url="http://lists.debian.org/debian-project/2012/12/msg00072.html";
        dm-num="Two"
        uploader-num="eight"
>
<newcontributors-dm
        "Rahul Amaram" "Markus Frosch"
/><newcontributors-uploader
        "Thiago Franco de Moraes" "Markus Tornow" "Gert Wollny"
        "Denis Laxade" "Gary Kramlich" "Richard Ulrich"
        "Michael Franzl" "Csillag Tamas"
/></newcontributors>

* How to apply the patch

$ xz -d ~/fix0.patch.xz
$ mkdir -p ~/tmp/cvs-debian-wml
$ cd ~/tmp/cvs-debian-wml
$ cvs -d :pserver:anonymous@anonscm.debian.org:/cvs/webwml login
$ cvs -d :pserver:anonymous@anonscm.debian.org:/cvs/webwml checkout webwml
$ cd ./webwml
$ patch -p0 < ~/fix0.patch
$ cd english/News/weekly/
$ make 2012/22/index.en.html 2012/25/index.en.html
$ cd ../../../japanese/News/weekly/
$ make 2012/22/index.en.html 2012/25/index.en.html

Regards,
AYANOKOUZI, Ryuunosuke
-- 
AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>

Attachment: fix0.patch.xz
Description: Binary data

Attachment: pgpGhLzKaKWvC.pgp
Description: PGP signature


Reply to: