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

caractères accentués dans packaging-tutorial



Bonjour Lucas,

Lors de la traduction de packaging-tutorial, nous avons rencontré
une difficulté en traduisant les commentaires présents dans les
environnements lstlisting. En effet, ces environnements ne semblent pas
comprendre le utf-8, et l'utilisation des commandes LaTex (\'e, etc.) ne
sont possibles que si une option supplémentaire est passée à ces
environnements.

Est-ce qu'il serait envisageable d'intégrer le patch si joint, qui pour
les quatre transparents concernés (dhelper, cdbs, dh) d'utiliser des
commandes LaTeX entre accolades pour utiliser des caractères accentués,
comme par exemple :

# D{\\'e}commentez cette ligne pour passer en mode bavard.\n

Amicalement,

	Cédric
diff --git a/packaging-tutorial.tex b/packaging-tutorial.tex
index e564304..ea77195 100644
--- a/packaging-tutorial.tex
+++ b/packaging-tutorial.tex
@@ -496,7 +496,7 @@ Description: retrieves files from the web
 \end{frame}
 
 \begin{frame}[fragile]{debian/rules using debhelper (1/2)}
-  \begin{lstlisting}[basicstyle=\ttfamily\footnotesize]
+  \begin{lstlisting}[basicstyle=\ttfamily\footnotesize,escapeinside=\{\}]
 #!/usr/bin/make -f
 
 # Uncomment this to turn on verbose mode.
@@ -524,7 +524,7 @@ install: build
 \end{frame}
 
 \begin{frame}[fragile]{debian/rules using debhelper (2/2)}
-  \begin{lstlisting}[basicstyle=\ttfamily\footnotesize]
+  \begin{lstlisting}[basicstyle=\ttfamily\footnotesize,escapeinside=\{\}]
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -577,7 +577,7 @@ binary: binary-indep binary-arch
     \end{itemize}
   \end{itemize}
   \seprule
-      \begin{lstlisting}[basicstyle=\ttfamily\footnotesize]
+      \begin{lstlisting}[basicstyle=\ttfamily\footnotesize,escapeinside=\{\}]
 #!/usr/bin/make -f
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk

Attachment: signature.asc
Description: Digital signature


Reply to: