[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuatio
From: |
David Kastrup |
Subject: |
Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug |
Date: |
Sat, 24 Feb 2018 16:59:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
David Wright <address@hidden> writes:
> On Sat 24 Feb 2018 at 11:06:20 (+0100), David Kastrup wrote:
>> Thomas Morley <address@hidden> writes:
>>
>> > 2018-02-24 3:45 GMT+01:00 Kieren MacMillan <address@hidden>:
>> >> Hi all,
>> >>
>> >> When a lyric syllable begins with a typographer’s single quote
>> >> (e.g., ’cause, ’ll, etc.), the "ignore-punctuation" hack doesn't
>> >> work. Any hints on how to fix this would be appreciated.
>> >>
>> >> Thanks,
>> >> Kieren.
>> >>
>> >> %%% SNIPPET BEGINS
>> >> \version "2.19"
>> >>
>> >
>> > Only characters from `space-set' are respected by `center-on-word'.
>> > Extend the given string with "’"
>> >
>> >> #(define space-set
>> >> (list->char-set
>> >> (string->list "—.?-;,:“†‘’–— */()[]{}|<>!`~&…")))
>> >
>> > #(define space-set
>> > (list->char-set
>> > (string->list "’—.?-;,:“†‘’–— */()[]{}|<>!`~&…")))
>> >
>> > works for me.
>>
>> Doesn't really look like dealing sensibly with utf-8.
>
> AFAICT the string in the original snippet is
>
> —.?-;,:“”‘’–— */()[]{}|<>!`~&…
I was talking about the code, not the string (which is garbled, sure).
> What I haven't figured out is why there are two long dashes;
en-dash and em-dash are different code points.
--
David Kastrup
- Lyric centre-on-word / ignore-punctuation bug, Kieren MacMillan, 2018/02/23
- Re: Lyric centre-on-word / ignore-punctuation bug, Thomas Morley, 2018/02/24
- Re: Lyric centre-on-word / ignore-punctuation bug, David Kastrup, 2018/02/24
- Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug, David Wright, 2018/02/24
- Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug,
David Kastrup <=
- Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug, Kieren MacMillan, 2018/02/24
- Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug, madMuze, 2018/02/24
- Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug, David Wright, 2018/02/24
- Re: Snippet 888 string, was Re: Lyric centre-on-word / ignore-punctuation bug, David Wright, 2018/02/24