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

Please help to improve i18n support of DebianDoc-SGML (Was: Re: Work started on Release Notes for Etch (II))



On Sun, Nov 05, 2006 at 08:17:45PM +0100, Jens Seidel wrote:
> On Sun, Nov 05, 2006 at 12:51:50PM +0100, Daniel Nylander wrote:
> > debiandoc2html -c -l sv release-notes.sv.sgml
> > Warning: locale 'sv' not supported, using en_US.ISO8859-1
> 
> That's right: locale 'sv' is not supported. Is this your native
> language?
> 
> If yes, please obtain the source package of debiandoc-sgml and
> adapt the directory tools/lib/Locale/ according. If
> you have questions just ask me in a private mail ...

Thanks to Daniel, debiandoc-sgml supports now (soon) Swedish as well.

The following languages are currently supported. If you want to add
a new language, please adapt the attached files.

		   ca_ES.ISO8859-1
		   cs_CZ.ISO8859-2
		   da_DK.ISO8859-1
		   de_DE.ISO8859-1
		   en_US.ISO8859-1
		   es_ES.ISO8859-1
		   eu_ES.ISO8859-1
		   eu_FR.ISO8859-1
		   fi_FI.ISO8859-1
		   fr_FR.ISO8859-1
		   gl_ES.ISO8859-1
		   hr_HR.ISO8859-2
		   it_IT.ISO8859-1
		   ja_JP.eucJP
		   ja_JP.ujis
		   ko_KR.eucKR
		   nl_NL.ISO8859-1
		   pl_PL.ISO8859-2
		   pt_BR.ISO8859-1
		   pt_PT.ISO8859-1
		   ro_RO.ISO8859-2
		   ru_RU.KOI8-R
		   sk_SK.ISO8859-2
		   sl_SI.ISO8859-2
		   sv_SE.ISO8859-1
		   tr_TR.ISO8859-9
		   uk_UA.UTF-8
		   zh_CN.GB2312
		   zh_HK.Big5
		   zh_TW.Big5

The files contain strings similar to:
'copyright notice' => 'Copyright Notice'
The left column is the English key and the right one the translation.

It would be great if you could test your work by creating a local deb
package and testing especially the LaTeX and PDF builds
(debiandoc2<format> -l <your language> file.sgml).  Remember that you
need also suggested and recommended packages of debiandoc-sgml for some
formats such as PDF.

$ apt-get source debiandoc-sgml
# apt-get build-dep debiandoc-sgml
$ cd debiandoc-sgml-<version>

Add your language files to tools/lib/Locale/ and adapt
tools/lib/Locale/Alias.pm.

Create a new package
# dpkg-buildpackage -rfakeroot -us -uc
and install it:
# dpkg -i ../debiandoc-sgml*.deb

Now you can test it ...

If you have further questions or to send me your files contact me in a
private mail.

Jens
## -*- perl -*-
## ----------------------------------------------------------------------
## Locale/en_US.ISO8859-1/HTML: locale for English output in HTML format
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
%locale = (
	   'charset' => 'iso-8859-1',
	   'abstract' => 'Abstract',
	   'copyright notice' => 'Copyright Notice',
	   'contents' => 'Contents',
	   'chapter' => sub { return "Chapter $_[0]" },
	   'appendix' => sub { return "Appendix $_[0]" },
	   'section' => sub { return "Section $_[0]" },
	   'subsection' => sub { return "Section $_[0]" },
	   'subsubsection' => sub { return "Section $_[0]" },
	   'paragraph' => sub { return "Section $_[0]" },
	   'subparagraph' => sub { return "Section $_[0]" },
	   'footnotes' => 'Footnotes',
	   'comments' => 'Comments',
	   'next' => 'next',
	   'previous' => 'previous',
	   );

## ----------------------------------------------------------------------
## -*- perl -*-
## ----------------------------------------------------------------------
## Locale/en_US.ISO8859-1/LaTeX2e: locale for English output in LaTeX2e format
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
%locale = (
	   'babel' => 'english',
	   'inputenc' => 'latin1',
	   'abstract' => 'Abstract',
	   'copyright notice' => 'Copyright Notice',
	   );

## ----------------------------------------------------------------------
## -*- perl -*-
## ----------------------------------------------------------------------
## Locale/en_US.ISO8859-1/Texinfo: locale for English output in Texinfo format
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
%locale = (
	   'detailed' => 'The Detailed Node Listing',
	   'chapter' => sub { return "Chapter $_[0]" },
	   'appendix' => sub { return "Appendix $_[0]" },
	   'section' => sub { return "Section $_[0]" },
	   'subsection' => sub { return "Section $_[0]" },
	   'subsubsection' => sub { return "Section $_[0]" },
	   'paragraph' => sub { return "Section $_[0]" },
	   'subparagraph' => sub { return "Section $_[0]" },
	   );

## ----------------------------------------------------------------------
## -*- perl -*-
## ----------------------------------------------------------------------
## Locale/en_US.ISO8859-1/Text: locale for English output in plain text format
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
%locale = (
	   'abstract' => 'Abstract',
	   'copyright notice' => 'Copyright Notice',
	   'contents' => 'Contents',
	   'chapter' => sub { return "Chapter $_[0]" },
	   'appendix' => sub { return "Appendix $_[0]" },
	   'section' => sub { return "Section $_[0]" },
	   'subsection' => sub { return "Section $_[0]" },
	   'subsubsection' => sub { return "Section $_[0]" },
	   'paragraph' => sub { return "Section $_[0]" },
	   'subparagraph' => sub { return "Section $_[0]" },
	   );

## ----------------------------------------------------------------------
## -*- perl -*-
## ----------------------------------------------------------------------
## Locale/en_US.ISO8859-1/TextOV: locale for English output in overstrike text format
## ----------------------------------------------------------------------

## ----------------------------------------------------------------------
%locale = (
	   'abstract' => 'Abstract',
	   'copyright notice' => 'Copyright Notice',
	   'contents' => 'Contents',
	   'chapter' => sub { return "Chapter $_[0]" },
	   'appendix' => sub { return "Appendix $_[0]" },
	   'section' => sub { return "Section $_[0]" },
	   'subsection' => sub { return "Section $_[0]" },
	   'subsubsection' => sub { return "Section $_[0]" },
	   'paragraph' => sub { return "Section $_[0]" },
	   'subparagraph' => sub { return "Section $_[0]" },
	   );

## ----------------------------------------------------------------------

Reply to: