[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case of 'c' in partcombine
From: |
Carl Sorensen |
Subject: |
Re: Case of 'c' in partcombine |
Date: |
Tue, 30 May 2017 00:34:16 +0000 |
User-agent: |
Microsoft-MacOutlook/14.7.3.170325 |
On 5/29/17 2:49 PM, "lilypond-devel on behalf of Winston, Charles R."
<address@hidden on behalf of
address@hidden> wrote:
>
>
>> On May 29, 2017, at 4:27 PM, David Kastrup <address@hidden> wrote:
>>
>> Charles Winston <address@hidden> writes:
>>
>>>> On May 29, 2017, at 1:40 PM, David Kastrup <address@hidden> wrote:
>>>>
>>>> Charles Winston <address@hidden> writes:
>>>>
>>>>> Could you explain the following line which appears all over convert
>>>>>rules.py:
>>>>>
>>>>> str = re.sub (r³str1², r³str2², str)
>>>>>
>>>>> I want to change all instances of ³partcombine...² to
>>>>> ³partCombineŠ". If I were to do this:
>>>>>
>>>>> str = re.sub (r³partcombine², r³partCombine², str)
>>>>>
>>>>> Would that work?
>>>>
>>>> Probably would change a couple too many occurrences.
>>>
>>> Could you elaborate?
>>
>> git grep partcombine ly Documentation
>>
>> will list more or less all occurences bound to be changed by your
>> script.
>
>Yes. I'm just confused when you say that the script will probably change
>too many occurrences. What do you mean by too many? I want to change all
>occurrences.
I can't speak for David, but you may wish to start on a word boundary.
somepartcombine would change to somepartCombine with your given regex. I
don't know if that's a problem or not; you'd want to look carefully to
make sure there's nothing that would be adversely affected by being in the
middle of a word.
HTH,
Carl
- Re: Case of 'c' in partcombine, (continued)
- Re: Case of 'c' in partcombine, Charles Winston, 2017/05/25
- Re: Case of 'c' in partcombine, Carl Sorensen, 2017/05/25
- Re: Case of 'c' in partcombine, Charles Winston, 2017/05/25
- Message not available
- Re: Case of 'c' in partcombine, Charles Winston, 2017/05/29
- Re: Case of 'c' in partcombine, David Kastrup, 2017/05/29
- Re: Case of 'c' in partcombine, Charles Winston, 2017/05/29
- Re: Case of 'c' in partcombine, David Kastrup, 2017/05/29
- Re: Case of 'c' in partcombine, Charles Winston, 2017/05/29
- Re: Case of 'c' in partcombine, David Kastrup, 2017/05/29
- Re: Case of 'c' in partcombine, Winston, Charles R., 2017/05/29
- Re: Case of 'c' in partcombine,
Carl Sorensen <=