\documentclass{article}
\usepackage{vietnam}

\def\cmd#1{\normalfont\texttt{\char92\relax#1}}
\def\smallsep{\vspace{1mm}\\}
\def\testfontswitch#1{%
    \leftline{\csname#1\endcsname This is a sample of #1}%
}

\parskip=10pt
\parindent=0pt

% To change the fonts being used, you can:

% uncomment the following lines to use vnr fonts, which are bitmapped (pk)
% and thus don't look very nice when used with PDF output. This is the
% default setting.
%
% \def\rmdefault{cmr}
% \def\ttdefault{cmtt}
% \def\sfdefault{cmss}

% uncomment the following lines to use bk fonts (you must have them
% installed first, of course).
%
% \def\rmdefault{vtir}
% \def\ttdefault{vcour}
% \def\sfdefault{vhvr}

% uncomment the following lines to use vcmr fonts (T5 virtual fonts based on
% cmr). These fonts are included in vntex.
%
% \def\rmdefault{vcmr}
% \def\ttdefault{vcmtt}
% \def\sfdefault{vcmss}

% uncomment the following lines to use vnps fonts (T5 virtual fonts based on
% ps fonts). These fonts are included in vntex.
%
\def\rmdefault{ptm}
\def\ttdefault{pcr}
\def\sfdefault{phv}

\begin{document}
% Test of support for various input encodings
\section{Test of VISCII encoding support}
\inputencoding{viscii}

Test of lowercase letters\smallsep
塣⤧ꪮ\\


Test whether \cmd{MakeLowercase} works correctly\smallsep
\MakeLowercase{%
Łɉˈʊ̛͘\\
Ӛҙԏڞٜ}

Test of upper case character\smallsep
Łɉˈʊ̛͘\\
Ӛҙԏڞٜ

Test whether \cmd{MakeUppercase} works correctly\smallsep
\MakeUppercase{%
塣⤧ꪮ\\
}

\section{Test of TCVN encoding support}
\inputencoding{tcvn}

Test of lowercase letters\smallsep
ƻɮϪ\\


Test whether \cmd{MakeLowercase} works correctly\smallsep
\MakeLowercase{%
Ćçڌِ\\
𥛜}

Test of upper case character\smallsep
Ćçڌِ\\
𥛜

Test whether \cmd{MakeUppercase} works correctly\smallsep
\MakeUppercase{%
ƻɮϪ\\
}

\section{Test of VPS encoding support}
\inputencoding{vps}

Test of lowercase letters\smallsep
桥ꉌ\\
ӶҰ֧ٿغ

Test whether \cmd{MakeLowercase} works correctly\smallsep
\MakeLowercase{%
ʐ\\
ԖѬЭ}

Test of upper case character\smallsep
ʐ\\
ԖѬЭ

Test whether \cmd{MakeUppercase} works correctly\smallsep
\MakeUppercase{%
桥ꉌ\\
ӶҰ֧ٿغ}

\section{A text sample in VISCII encoding}
\inputencoding{viscii}

            Em khng nghe ma thu\\
            D߾i trng m thn thc?\\
            Em khng nghe ro rc\\
            Hnh nh k chinh phu\\
            Trong lng ng߶i c ph?\\
            Em khng nghe rng thu,\\
            L thu ku xo xc,\\
            Con nai vng ng ngc\\
            p trn l vng kh?

\section{Test of some font switching commands}
\testfontswitch{rmfamily}
\testfontswitch{sffamily}
\testfontswitch{ttfamily}
\testfontswitch{mdseries}
\testfontswitch{bfseries}
\testfontswitch{itshape}

\end{document}
