Re: utf-8-strings

2012-07-10 Thread David Kastrup
David Nalesnik writes: > Hi Harm, > > On Tue, Jul 10, 2012 at 3:07 PM, Thomas Morley > wrote: > > > (2) The code using the regexp library does not work with windows > so > far (perhaps never). > > > Unfortunately, I'm still having no luck with Windows XP. (@David > Kastrup: than

Re: utf-8-strings

2012-07-10 Thread David Nalesnik
Hi Harm, On Tue, Jul 10, 2012 at 3:07 PM, Thomas Morley < thomasmorle...@googlemail.com> wrote: > > (2) The code using the regexp library does not work with windows so > far (perhaps never). > Unfortunately, I'm still having no luck with Windows XP. (@David Kastrup: thank you for your suggestion

Re: utf-8-strings

2012-07-10 Thread Thomas Morley
Summary: (1) The code from my initial post is not suitable, because of concerns about guilev2. (2) The code using the regexp library does not work with windows so far (perhaps never). Is there any other approach to make string->string-list work? Should I make a patch containing the new list-join-d

Re: utf-8-strings

2012-07-08 Thread David Kastrup
David Nalesnik writes: > > out/bin/lilypond scheme-sandbox > > GNU LilyPond 2.15.42 > > Processing > `/usr/local/tmp/lilypond/out/share/lilypond/current/ly/scheme-sandbox. > ly' > > Parsing... > > guile> (setlocale LC_CTYPE) > > "en_US.UTF-8" > > guile> > >

Re: utf-8-strings

2012-07-08 Thread David Nalesnik
On Sun, Jul 8, 2012 at 6:21 PM, Thomas Morley wrote: > 2012/7/9 David Kastrup : > > David Nalesnik writes: > > > >> On Sun, Jul 8, 2012 at 8:00 AM, David Kastrup wrote: > >> > >> > >> Thomas Morley writes: > >> > >> > 2012/7/8 David Nalesnik : > >> >> Hi Harm, > >> >> > >>

Re: utf-8-strings

2012-07-08 Thread David Kastrup
Thomas Morley writes: > An observation: > > Setting > export LANG=en_US > and compiling the file gives: > > > GNU LilyPond 2.15.42 > Processing `utf-8-strings-rev-03.ly' > Parsing... > (process:10496): Pango-WARNING **: Invalid UTF-8 string passed to > pango_layout_set_text() > > (process:10496):

Re: utf-8-strings

2012-07-08 Thread Thomas Morley
2012/7/9 David Kastrup : > David Nalesnik writes: > >> On Sun, Jul 8, 2012 at 8:00 AM, David Kastrup wrote: >> >> >> Thomas Morley writes: >> >> > 2012/7/8 David Nalesnik : >> >> Hi Harm, >> >> >> >>> I managed to drop about 300 lines, reducing >> >>> it to a quarter of

Re: utf-8-strings

2012-07-08 Thread David Kastrup
David Nalesnik writes: > On Sun, Jul 8, 2012 at 8:00 AM, David Kastrup wrote: > > > Thomas Morley writes: > > > 2012/7/8 David Nalesnik : > >> Hi Harm, > >> > >>>  I managed to drop about 300 lines, reducing > >>> it to a quarter of the original. > >> >

Re: utf-8-strings

2012-07-08 Thread Thomas Morley
2012/7/8 David Nalesnik : > > > On Sun, Jul 8, 2012 at 8:00 AM, David Kastrup wrote: >> >> Thomas Morley writes: >> >> > 2012/7/8 David Nalesnik : >> >> Hi Harm, >> >> >> >>> I managed to drop about 300 lines, reducing >> >>> it to a quarter of the original. >> >> >> >> >> >> Unfortunately, I'm

Re: utf-8-strings

2012-07-08 Thread David Nalesnik
On Sun, Jul 8, 2012 at 8:00 AM, David Kastrup wrote: > Thomas Morley writes: > > > 2012/7/8 David Nalesnik : > >> Hi Harm, > >> > >>> I managed to drop about 300 lines, reducing > >>> it to a quarter of the original. > >> > >> > >> Unfortunately, I'm getting "Invalid UTF-8 string..." warnings w

Re: utf-8-strings

2012-07-08 Thread David Kastrup
Thomas Morley writes: > 2012/7/8 David Kastrup : >> Thomas Morley writes: >> >>> Seems I have to extend my scheme-vocabulary. >>> I didn't know/remember `append-map' and `string-concatenate'. >> >> Picked them from the Guile manuals. > > I know. > I tend to define my own helpers if I don't find

Re: utf-8-strings

2012-07-08 Thread Thomas Morley
2012/7/8 David Kastrup : > Thomas Morley writes: > >> Seems I have to extend my scheme-vocabulary. >> I didn't know/remember `append-map' and `string-concatenate'. > > Picked them from the Guile manuals. I know. I tend to define my own helpers if I don't find sth useful in the guile-manual in a s

Re: utf-8-strings

2012-07-08 Thread David Kastrup
Thomas Morley writes: > Seems I have to extend my scheme-vocabulary. > I didn't know/remember `append-map' and `string-concatenate'. Picked them from the Guile manuals. > I really have to learn more of the predefined guile-procedures. > >>> (new-args (list-join args-rev " ")) >> >> lis

Re: utf-8-strings

2012-07-08 Thread Thomas Morley
2012/7/8 David Kastrup : > Thomas Morley writes: > >> 2012/7/8 David Kastrup : >>> >>> This can basically be done using charsets. I tried doing this with >>> regexps, but curiously enough, in contrast to Guile proper, those appear >>> to be already utf-8 aware, so >>> >>> #(use-modules (ice-9 reg

Re: utf-8-strings

2012-07-08 Thread David Kastrup
Thomas Morley writes: > 2012/7/8 David Nalesnik : >> Hi Harm, >> >>> I managed to drop about 300 lines, reducing >>> it to a quarter of the original. >> >> >> Unfortunately, I'm getting "Invalid UTF-8 string..." warnings when I run >> your revised file. (I don't with the original...) >> >> -Dav

Re: utf-8-strings

2012-07-08 Thread David Kastrup
Thomas Morley writes: > 2012/7/8 David Kastrup : >> >> This can basically be done using charsets. I tried doing this with >> regexps, but curiously enough, in contrast to Guile proper, those appear >> to be already utf-8 aware, so >> >> #(use-modules (ice-9 regex)) >> >> #(define (utf8-substring

Re: utf-8-strings

2012-07-08 Thread Thomas Morley
2012/7/8 David Nalesnik : > Hi Harm, > >> I managed to drop about 300 lines, reducing >> it to a quarter of the original. > > > Unfortunately, I'm getting "Invalid UTF-8 string..." warnings when I run > your revised file. (I don't with the original...) > > -David Hi David, are you sure? I teste

Re: utf-8-strings

2012-07-08 Thread David Nalesnik
Hi Harm, I managed to drop about 300 lines, reducing > it to a quarter of the original. > Unfortunately, I'm getting "Invalid UTF-8 string..." warnings when I run your revised file. (I don't with the original...) -David ___ lilypond-devel mailing lis

Re: utf-8-strings

2012-07-08 Thread Thomas Morley
2012/7/8 David Kastrup : > Thomas Morley writes: > >> Hi, >> >> together with Arnold I worked on a method how to compress or stretch a >> text, limiting it to the space between characters, i.e. the letters >> itself shouldn't be scaled. >> (Comes out of a discussion at the german LilyPond-Forum: >

Re: utf-8-strings

2012-07-08 Thread David Kastrup
Thomas Morley writes: > Hi, > > together with Arnold I worked on a method how to compress or stretch a > text, limiting it to the space between characters, i.e. the letters > itself shouldn't be scaled. > (Comes out of a discussion at the german LilyPond-Forum: > http://www.lilypondforum.de/index