Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5621)

Issue 5553056: lilypond-book: Group line-width settings together (issue 2222). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by Julien Rioux
Modified:
12 years, 3 months ago
Reviewers:
Graham Percival, janek, Reinhold, carl.d.sorensen
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

lilypond-book: Group line-width settings together (issue 2222). Also, specify filename and ext for all snippets.

Patch Set 1 #

Total comments: 18
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -17 lines) Patch
M python/book_snippets.py View 9 chunks +18 lines, -17 lines 18 comments Download

Messages

Total messages: 13
Julien Rioux
Please review.
12 years, 3 months ago (2012-01-19 00:17:18 UTC) #1
Carl
LGTM. Carl
12 years, 3 months ago (2012-01-19 03:59:30 UTC) #2
Graham Percival
LGTM
12 years, 3 months ago (2012-01-20 13:52:01 UTC) #3
janek
Hi Julien, could you please explain to me how your patch fixes this issue? I've ...
12 years, 3 months ago (2012-01-21 18:28:19 UTC) #4
Graham Percival
I believe the problem had to do with filename extensions; as such, I think the ...
12 years, 3 months ago (2012-01-21 18:32:04 UTC) #5
janek
2012/1/21 <graham@percival-music.ca>: > I believe the problem had to do with filename extensions; as such, ...
12 years, 3 months ago (2012-01-21 18:54:22 UTC) #6
Julien Rioux
There were actually two issues. The second was discovered after fixing the first. I intend ...
12 years, 3 months ago (2012-01-21 19:14:14 UTC) #7
janek
Thanks for explanations, Julien! Janek http://codereview.appspot.com/5553056/diff/1/python/book_snippets.py File python/book_snippets.py (left): http://codereview.appspot.com/5553056/diff/1/python/book_snippets.py#oldcode184 python/book_snippets.py:184: line-width = #(- line-width ...
12 years, 3 months ago (2012-01-21 21:17:55 UTC) #8
Julien Rioux
On Sat, Jan 21, 2012 at 4:18 PM, <janek.lilypond@gmail.com> wrote: > On 2012/01/21 19:14:15, Julien ...
12 years, 3 months ago (2012-01-21 21:38:11 UTC) #9
Reinhold
LGTM in general. Some comments though. Plus: The example in the comment above will now ...
12 years, 3 months ago (2012-01-21 23:54:36 UTC) #10
Julien Rioux
Thanks for reviewing it. Regards, Julien http://codereview.appspot.com/5553056/diff/1/python/book_snippets.py File python/book_snippets.py (left): http://codereview.appspot.com/5553056/diff/1/python/book_snippets.py#oldcode806 python/book_snippets.py:806: self.ext = os.path.splitext ...
12 years, 3 months ago (2012-01-22 00:08:45 UTC) #11
Reinhold
http://codereview.appspot.com/5553056/diff/1/python/book_snippets.py File python/book_snippets.py (left): http://codereview.appspot.com/5553056/diff/1/python/book_snippets.py#oldcode806 python/book_snippets.py:806: self.ext = os.path.splitext (os.path.basename (self.filename))[1] On 2012/01/22 00:08:45, Julien ...
12 years, 3 months ago (2012-01-24 17:06:57 UTC) #12
Julien Rioux
12 years, 3 months ago (2012-01-24 21:51:10 UTC) #13
Hi Reinhold,

On 2012/01/24 17:06:57, Reinhold wrote:
> What about --use-source-file-names?

I just tested this. I used lilypond-book --use-source-file-names --output=out
file1, where `file1' includes `file2'. In the output, we link to `file2', so
that part looks correct. But the file `file2' is not copied to the `out' dir. I
also tested on 2.15.25, and it didn't work back then either.

> I was rather talking about e.g. when the papersize=... snippet option is used
in
> a texi file... (I think that doesn't work currently, either, though).
> The line width is implicitly specified by the paper size.

Then we need to derive the line-width from the papersize, and we need to do so
in exactly the same way lilypond itself would do. Then adjust this line-width
according to the padding. This is obviously not yet implemented, also not back
in 2.15.25, but it shouldn't be terribly hard to do.

So I think we have two new bugs in need of issue numbers.

Thanks and regards,
Julien
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b