Jean-Marc Lasgouttes schrieb:

Why is this weird? Every language package manual I know states to load
babel this way,

The babel documentation states:

But the vietnam.ldf is not part of the oficial babel package, it's provided by 
the VnTeX-package.
This is the same as for other language-packages, armTeX, arabi, etc.

also the VnTeX-package manual.

Do you read vietnamese? I don't. Where would an english manual
(besides the README, which does not say much) be found?

Here:
http://www.ctan.org/tex-archive/language/vietnamese/vntex/doc/generic/vntex/vntex.txt

* Use babel instead of vietnam package:
  ________________________________________________________
  \documentclass{report}
  \usepackage[utf8]{inputenc} % other encoding as `viscii'
                              % or `tcvn' can be used
                              % instead of utf8
  \usepackage[vietnam]{babel}

  \begin{document}
  <...text in utf8 encoding...>
  \end{document}
  ________________________________________________________


It is weird because at _LaTeX_ level, all options of \documentclass
are passed to all packages. I would be surprised to learn that
vietnam.ldf is different.

For me too. But that the utf8 encoding must be enabled before loading the file 
sounds reasonable.

I do not have a recent enough TeX to test it out unfortunately (and it
is not my top priority), but I would have expected you to ask to
somebody who knows vntex very well why such a thing is needed.

I'll contact Hàn Thế Thành, who is btw. also the creator of pdftex.
For testing my implemntation in LyX, I provided two testcases in bugzilla, see 
me first mail.

I don't know exactly why vietnamese is special here, I guess because
the inputenc package must be loaded with utf8 before the vietnam.ldf
can be taken by babel. Because when you put vietnam only to
documentclass options, you get a babel error, that no language option
is given.

Hmmm. What is the code that would be generated for vietnamese without
your patch? Could you show me the error?

What do you mean by "without my patch"?

---
\documentclass{report}
\usepackage[utf8]{inputenc}

\begin{document}
 Văn bản này dùng cỡ chữ
\end{document}

gives:
! Package inputenc Error: Unicode char \u8:ả not set up for use with LaTeX.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.7  Văn bả
              n này dùng cỡ chữ
?

---
\documentclass[vietnam]{report}
\usepackage[utf8]{inputenc}
\usepackage{babel}

\begin{document}
 Văn bản này dùng cỡ chữ
\end{document}

gives:
! Package babel Error: You haven't specified a language option.

See the babel package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.142 ...ry to proceed from here, type x to quit.}

regards Uwe

Reply via email to