Hi all,

I suppose that mr A.Einstein got stuck installing lilypond on cygwin :)
so it's my turn now to tackle the encodings problem in lilypond.

The thing is: are there any other (input) encodings than latin1 and TeX?

As I'm Polish, latin1 is not an option for me, and TeX is a little bit
'inconveniet'. (Try to read this: "g\\k{e}\\'sl\\k{a}" -- this is a
5-letter word!)

And one more thing -- more important than just 'inconvenience' --
there's something wrong with horizontal spacing of words that contain
TeX-encoded characters. This happens both in lyrics and headers.

Please take a look at the attached example: the title is centered only
because I've used \hspace.
The subtitle is not manually corrected, so it's not centered.
Now, the lyrics:
I've written two stanzas: one using TeX-encoded Polish characters, and
the second -- using just latin equivalents. As you can see the spacing
is not the same (it should be I think) and hyphens are misplaced.

thanks,
Pawel


\version "2.4.0"

%{
% Nie jest dobrze ludziska, nie jest dobrze.
% Ten plik ma byc wzorcem do radzenia sobie z problemem polskich literek
% w lilypond source files.
% Problem jest o tyle kiepski, ze z wersji na wersje metoda sie zmienia; 
% kiedys dzialala babelowa notacja prefixowa (\"z \"o itd)
% a niedlugo moze sie okazac, ze polskich literek w ogole w lilypondzie 
% nie bedzie (poki co backend PS dziala tylko na latin1)
%
% Zaczynamy ten plik od wersji 2.4 lilyponda, wiec o historii nie pisze:
%
% Ver: 2.4.0:
%	Dziala standardowa notacja LaTeXa.
%	Dla przejzystosci znak '\' zapisujemy w lilypondzie zawsze '\\' (chociaz np.
%		w przypadku \l{} czy \k{a} nie trzeba (nie wiadomo dlaczego)). 	
%   Problem: 	lilypond nie umie poprawnie ocenic odstepow miedzy wyrazami jezeli 
%				stosowane sa polskie litery. W zwiazku z tym problem z np. centrowaniem.
%}

\encoding "TeX"

\header {
		language = "polish"
		title = "\hspace*{6.75cm}\\k{a} \\.z \\'s \\'z \\k{e} \\'c \\'n \\'o \\l{}"
		subtitle = " \\k{A} \\.Z \\'S \\'Z \\k{E} \\'C \\'N \\'O \\L{}" 
		composer = "Kurde blade \TeX{}"
		tagline = "Te pieprzone polskie literki dzia\l{}aj\k{a} jak chc\k{a}."
		author = "To jest autor pan"
		meter = "meter"
		dedication = "dla mojej pani"
		opus = "opus"
		arranger = "aran\\.zer"
		instrument = "dup\\k{e} blad\\k{a}"
		copytright = "kopyrajt"
		
}

wlaz = \relative c'' {
	a4 e e | 
	f d d |
	c8 e a4 r | 
}  
            		                
melody = {
	\time 3/4
	\wlaz \wlaz 
}

textPL = \lyricmode {
	"wlaz\\l{}" ko -- tek 
	na p\l{}o -- tek
	i se drga!
	
	bi -- dna to 
	"\\'cwi" -- "kie\l{}" -- ka
	bez -- "z\\k{e}b" -- na!
}

text = \lyricmode {
	wlazl ko -- tek 
	na plo -- tek
	i se drga!
	
	bi -- dna to 
	cwi -- kiel -- ka
	bez -- zeb -- na!
}

\score {
	<<
	\context Voice = one  {
		\melody
	}
		<< 
			\lyricsto "one" \new Lyrics \textPL 
			\\
			\lyricsto "one" \new Lyrics \text
		>>
	>>
	
	\layout  { 
		inputencoding = "TeX" 
	}
	\midi { \tempo 4 = 100 }
	
}
                 



<<inline: bla.png>>

_______________________________________________
lilypond-user mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to