help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] Non ascii to pdf.


From: tomas
Subject: Re: [help-texinfo] Non ascii to pdf.
Date: Sat, 14 Jan 2012 09:55:38 +0100
User-agent: Mutt/1.5.15+20070412 (2007-04-11)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jan 11, 2012 at 10:06:09PM +0100, Thien-Thi Nguyen wrote:
> () address@hidden
> () Wed, 11 Jan 2012 20:07:03 +0100
> 
>    Alas, my superficial tests in this direction just eat the cyrillic text
>    (see attached test.texi). Leaving out the @documentlanguage thingies
>    doesn't seem to change things either.
> 
>    Writing a conventional LaTeX doc, with babel does work.
> 
>    My texi2pdf is "texi2dvi (GNU Texinfo 4.13) 1.135"
> 
>    Glad to provide more details.
> 
> Could you post the LaTeX equivalent of this test that does work?

Yes. Here it is (as it's short -- just inline):

% % % % % % % % % % % % % % % % 
% LaTex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english,russian]{babel}
\begin{document}
\title{Thirteen Drunken Sailors}
\section{The Persons}
\subsection{First Sailor}

He drank lots of rum

\subsection{Second Sailor}

He was Russian, and was often heard exclaiming "Чёрт!"

\end{document}
% % % % % % % % % % % % % % % % 

It works out nicely (note: LaTeX's inputenc seems to want "utf8", no
caps, no dash).

> 
> BTW, i botched the address@hidden declaration in two ways:
>  - it should go AFTER the address@hidden line
>    (info "(texinfo) documentencoding");
>  - the token ‘utf-8’ is ok for makeinfo, but texi2pdf complains
>    unless it is written as ‘UTF-8’.
> 
> So, i modified cyrillic-test.texi (as it is saved here) to read:
> 
>  @setfilename cyrillic-test.texi
>  @documentencoding UTF-8

Had to find out experimentally first myself. You know: do first, read
instructions later :-/

But thanks for the hint: had I read your mail carefully first...

> and did:
> 
>  $ texi2pdf cyrillic-test.texi && xpdf cyrillic-test.pdf
> 
> and can confirm erroneous output with texi2dvi (GNU Texinfo 4.13) 1.135,
> aka "texi2pdf".  Output of that command is, in full:
> 
>  This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
>  entering extended mode
>  (./cyrillic-test.texi (/usr/share/texmf/tex/texinfo/texinfo.tex
>  Loading texinfo [version 2008-04-18.10]: pdf, fonts, page headings, tables,
>  conditionals, indexing, sectioning, toc, environments, defuns, macros,
>  cross references, insertions, localization, formatting,
>  and turning on texinfo input format.) (./cyrillic-test.aux) Chapter 1
>  (/usr/share/texmf/tex/texinfo/txi-ru.tex)
>  l.16: Unicode char @u8:Ч not defined for Texinfo
>  l.16: Unicode char @u8:ё not defined for Texinfo
>  l.16: Unicode char @u8:р not defined for Texinfo
>  l.16: Unicode char @u8:т not defined for Texinfo

Same here.

> So bottom line, i don't have any more clue than you; sorry for the noise!
> (I'm hoping the LaTeX equivalent you will post will have some bits in the
> header that could be useful in a address@hidden .. address@hidden iftex’ 
> block, however.)

But I see texi2pdf is delegating to pdflatex -- which in principle is
capable of doing the trick. So there might be hope...

Thanks, regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFPEUMKBcgs9XrR2kYRAsrrAJ41UouenQkuA3JdGv8b4n6CCISv+QCbBll4
hQekXyZOh2bG7sOIsjSORXo=
=NI9l
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]