bug-lilypond
[Top][All Lists]
Advanced

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

Re: Wrong letter in title


From: David Kastrup
Subject: Re: Wrong letter in title
Date: Mon, 01 Oct 2018 12:08:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Thomas Morley <address@hidden> 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



reply via email to

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