Jean-Marc Lasgouttes wrote:

>>>>>> "Georg" == Georg Baum
>>>>>> <[EMAIL PROTECTED]>
>>>>>> writes:
> 
> Georg> I guess this should also go in 1.4?
> 
> Yes please.
> 
> JMarc

I've played a little bit with importing quotes with tex2lyx and it seems
quite broken, even round trip LyX --> LaTeX --> LyX is not perfect.

The Ducth and German citation quotes also does not work. Try importing this
file in Lyx :

%% LyX 1.4.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[dutch]{article}
\usepackage{bookman}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\newcommand{\tab}{\hspace{5mm}}

\usepackage[dutch]{babel}
\makeatother
\begin{document}
,,Rotterdam''

"`Rotterdam"'

\end{document}

Georg proposed a longer patch on LyX French mailing list :

/// LaTeX names for quotes
char const * const known_quotes[] = {
// single quotes
"glq", "grq", "quotesinglbase", "textquotesinglbase", "textquoteleft",
"guilsinglleft", "guilsinglright", "textflq", "textfrq", "flq", "frq",
// double quotes
"glqq", "grqq", "quotedblbase", "textquotedblbase", "textquotedblleft",
"textglqq", "textgrqq",
"guillemotleft", "guillemotright", "textflqq", "textfrqq", "flqq", "frqq",
"og", "fg", 0};

/// the same as known_quotes with .lyx names
char const * const known_coded_quotes[] = {
"gls", "grs", "gls", "gls", "grs",
"fls", "frs", "fls", "frs", "fls", "frs",
"gld", "grd", "gld", "gld", "grd", "gld", "grd",
"fld", "frd", "fld", "frd", "fld", "frd", "fld", "frd", 0};

explaining that it may cause some interferences with some languages. 

Thinking about it, I think the problem is the translation of :

\textquoteblbase Rotterdam  \textquotedblright

\textquotedblleft Rotterdam \textquotedblright

That should be in the first case 

gld Rotterdam grd

and in the second case

eld Rotterdam erd

tex2lyx should translate pair of quotes and not single quotes.

Cheers,
Charles
-- 
http://www.kde-france.org

Reply via email to