Thomas Morley <thomasmorle...@gmail.com> writes: [...]
>> > ;; >> > (ps-quote >> > (if guile-v2 >> > (let* ((utf16be-bom #vu8(#xFE #xFF))) >> > (string-append (bytevector->string utf16be-bom "ISO-8859-1") >> > (bytevector->string (string->utf16 val >> > 'big) "ISO-8859-1"))) >> > (ly:encode-string-for-pdf val)))) >> > >> > ...) >> > >> > >> > Though, this does not work, because guile-1.8 would issue an error >> > about the unknown syntax. >> >> You can always write something like #vu8(#xFE #xFF) as a function call >> rather than as "read syntax". > > Don't understand. Could you give a code-example? (u8-list->bytevector '(#xFE #xFF)) >> > Any chance to create something which will work in guilev1 and guilev2? >> >> I think the sane perspective would be fixing the problem where it >> appears rather than at some later point of time. > > Agreed. > Though, to fix ly:encode-string-for-pdf, some C++-work is requiered, > which is beyond my capabilities. Sure, but the 2.0/2.2 differences will have more pressing consequences elsewhere. Document metadata is not the highest priority and may even "happen" to be fixed as a side effect of other fixes. -- David Kastrup _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond