lilypond-user-fr
[Top][All Lists]
Advanced

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

Lilypond-book et l'encodage


From: flup
Subject: Lilypond-book et l'encodage
Date: Mon, 15 Feb 2010 02:35:36 -0800 (PST)

Bonjour,

J'ai eu pas mal de soucis avec lilypond-book dernièrement, et la façon dont
je les ai résolu pose question: je reçevais des messages d'erreur dans la
console:

lilypond-book (GNU LilyPond) 2.13.12
Traceback (most recent call last):
  File "/Applications/LilyPond.app/Contents/Resources/bin//lilypond-book",
line 2215, in <module>
    main ()
  File "/Applications/LilyPond.app/Contents/Resources/bin//lilypond-book",
line 2197, in main
    chunks = do_file (files[0])
  File "/Applications/LilyPond.app/Contents/Resources/bin//lilypond-book",
line 2100, in do_file
    progress (_ ("Compiling %s...") % output_filename)
  File
"/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/python/lilylib.py",
line 59, in stderr_write
    encoded_write (sys.stderr, s)
  File
"/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/python/lilylib.py",
line 51, in encoded_write
    f.write (s.encode (f.encoding or 'utf_8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 80:
ordinal not in range(128)
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
 \write18 enabled.
entering extended mode
! I can't find file `test_fev.lytex.tex'.
<*> test_fev.lytex.tex

En voyant "ascii" et "utf_8" me suis demandé s'il n'était pas question
d'encodage dans mon texte, et j'en ai donc testé plusieurs, mais sans rien
qui fonctionne.

J'ai, tout à fait au hasard, changé le chemin d'accès à ces fichiers pour y
enlever toute trace d'accent, et là ça marche sans problème. Le problème
viendrait-il de Lilypond, ou plutôt de la commande qui me permet de le
lancer ?

J'utilise TeXShop comme pour tous mes documents LaTeX, et voici le script
utilisé (sous forme d'engine TeXShop) pour lilypond-book:

#!/bin/tcsh
# Updated on 2006/10/17 - Thanks to Marc Schonbrun!
#
set LILYPONDFOLDER = /Applications
set path = ($path $LILYPONDFOLDER/LilyPond.app/Contents/Resources/bin/)

rm -r dir
lilypond-book --output=dir --pdf "$1"
cd dir
#pdflatex "$1"
pdflatex --shell-escape --synctex=1 "$1"
mv "$1:r".pdf ..



# Create directory to put all temporary stuff
#mkdir -p "$1:r"-out/
# Copy local style files, if any, where latex will be able to find them
#cp *.sty "$1:r"-out
#if ({ lilypond-book --output="$1:r"-out  "$1" }) then
#  cd "$1:r"-out
#  if ({ latex "$1" }) then
#    if ({ dvips -o -Ppdf -R0 -h "$1:r".psfonts "$1:r".dvi }) then
#      if ({ ps2pdf "$1:r".ps }) then
#        mv "$1:r".pdf ..
#      endif
#    endif
#  endif
#endif
-- 
View this message in context: 
http://n2.nabble.com/Lilypond-book-et-l-encodage-tp4573816p4573816.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.




reply via email to

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