Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-21 Thread Ihor Radchenko
Jonathan Gregory writes: >>> - b c d e >>> + b4 c d e >> >> Is there any specific reason for this change? > > This is to ensure that the notes use the correct duration in > arrange-mode. 4 is the default duration and is carried over until > a new value is added, in this case c1. 1 is then

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-20 Thread Dr. Arne Babenhauserheide
Jonathan Gregory writes: > On 20 Aug 2023, Ihor Radchenko wrote: > >> Jonathan Gregory writes: >> >>> ob-doc-lilypond.html looks good, but I changed lilypond.org in: >>> >>> https://git.sr.ht/~bzg/worg/commit/6b9da77c8078be183971575fdc79d402bf6184c2 >> >>> - b c d e >>> + b4 c d e >> >> Is

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-20 Thread Jonathan Gregory
On 20 Aug 2023, Ihor Radchenko wrote: Jonathan Gregory writes: ob-doc-lilypond.html looks good, but I changed lilypond.org in: https://git.sr.ht/~bzg/worg/commit/6b9da77c8078be183971575fdc79d402bf6184c2 - b c d e + b4 c d e Is there any specific reason for this change? This is to

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-20 Thread Ihor Radchenko
Jonathan Gregory writes: > ob-doc-lilypond.html looks good, but I changed lilypond.org in: > > https://git.sr.ht/~bzg/worg/commit/6b9da77c8078be183971575fdc79d402bf6184c2 > - b c d e > + b4 c d e Is there any specific reason for this change? -- Ihor Radchenko // yantar92, Org mode

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-19 Thread Jonathan Gregory
On 11 Aug 2023, Ihor Radchenko wrote: And do I understand correctly that no changes in https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html are needed? ob-doc-lilypond.html looks good, but I changed lilypond.org in:

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-17 Thread Ihor Radchenko
Jonathan Gregory writes: >> Ok. Would you mind adding a commit message, as described in >> https://orgmode.org/worg/org-contribute.html#first-patch? > > Patch attached. I also attached a test file. Thanks! Applied, onto main. Fixed.

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-16 Thread Jonathan Gregory
Hi Ihor, On 11 Aug 2023, Ihor Radchenko wrote: Ok. Would you mind adding a commit message, as described in https://orgmode.org/worg/org-contribute.html#first-patch? Patch attached. I also attached a test file. And do I understand correctly that no changes in

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-15 Thread Ihor Radchenko
Henrik Frisk writes: >> ob-lilypond is distributed together with Org mode > ... > I know it is and I didn't know it was maintained so I've kept using this > old version updating it myself. In that case you can probably safely ignore > what I wrote below. Great to know it's part of org... It is

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-15 Thread Henrik Frisk
On Tue, Aug 15, 2023, 12:41 PM Ihor Radchenko wrote: > Henrik Frisk writes: > > > Sorry for being late in this discussion. As a user of ob-lilypond I'm > very > > happy about these changes. On my last install, as well as my current I > have > > had to change the following: > > > >

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-15 Thread Ihor Radchenko
Henrik Frisk writes: > Sorry for being late in this discussion. As a user of ob-lilypond I'm very > happy about these changes. On my last install, as well as my current I have > had to change the following: > > (org-babel-get-header params :var) which appears to be outdated, to: > >

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-15 Thread Henrik Frisk
Den fre 11 aug. 2023 kl 09:04 skrev Ihor Radchenko : > Jonathan Gregory writes: > > >> Jonathan, do you think that your original patch is still what > >> you want to get merged? > > > > Yes, the one I sent on 20 Jul 2023. I haven't had any issues with > > it so far. > > Ok. Would you mind adding

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-11 Thread Ihor Radchenko
Jonathan Gregory writes: >> Jonathan, do you think that your original patch is still what >> you want to get merged? > > Yes, the one I sent on 20 Jul 2023. I haven't had any issues with > it so far. Ok. Would you mind adding a commit message, as described in

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-10 Thread Jonathan Gregory
Hi Ihor, On 08 Aug 2023, Ihor Radchenko wrote: Jonathan, do you think that your original patch is still what you want to get merged? Yes, the one I sent on 20 Jul 2023. I haven't had any issues with it so far. -- Jonathan

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-08-08 Thread Ihor Radchenko
Jonathan Gregory writes: > On 31 Jul 2023, Ihor Radchenko wrote: > >> May it be possible to mix multiple \version commands? So that we >> declare \version for \paper and user can declare other \version >> for the code block body. > > Probably not. Wouldn't that confuse the compiler? In any

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-31 Thread Jonathan Gregory
On 31 Jul 2023, Ihor Radchenko wrote: May it be possible to mix multiple \version commands? So that we declare \version for \paper and user can declare other \version for the code block body. Probably not. Wouldn't that confuse the compiler? In any case, the \version number is relative to

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-31 Thread Ihor Radchenko
Jonathan Gregory writes: >> For example, python2/3 or MathJax4,4- were breaking and some >> people were relying on legacy code. So, we had to provide some >> extra versions checks and toggles on Org side as well. > > We're talking about different things here. Lilypond needs the > \version to

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-31 Thread Jonathan Gregory
On 29 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: The basic-mode term is not very helpful. Perhaps [inline/cropped/embedded]-mode would have been more descriptive in terms of what it does. Sounds reasonable. I like "inline-mode", although no strong opinion. I like it

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-29 Thread Ihor Radchenko
Jonathan Gregory writes: > The basic-mode term is not very helpful. Perhaps > [inline/cropped/embedded]-mode would have been more descriptive in > terms of what it does. Sounds reasonable. I like "inline-mode", although no strong opinion. > ... Anyway, hard-coding paper settings would >

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-28 Thread Jonathan Gregory
On 28 Jul 2023, Ihor Radchenko wrote: I am slightly confused because there seems to be a need to define some page settings manually to get "embedded" images. In the examples in https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html#org2c29903, there is no mention that we

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-28 Thread Ihor Radchenko
Jonathan Gregory writes: >> May your please explain what is "basic mode". > > Basic mode is explained in > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html. > In summary: > > With basic-mode you can embed LilyPond snippets into an Org-mode > file, compile and export

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-27 Thread Jonathan Gregory
On 27 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Ok. That fix has been already installed. https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 To the extent of the lilypond.org file, yes, but only if the output is a PDF. My suggestion is to revert

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-27 Thread Ihor Radchenko
Jonathan Gregory writes: >> Ok. That fix has been already installed. >> https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 > > To the extent of the lilypond.org file, yes, but only if the > output is a PDF. My suggestion is to revert that commit and > incorporate the

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-26 Thread Jonathan Gregory
On 26 Jul 2023, Ihor Radchenko wrote: Ok. That fix has been already installed. https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 To the extent of the lilypond.org file, yes, but only if the output is a PDF. My suggestion is to revert that commit and incorporate

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-26 Thread Ihor Radchenko
Jonathan Gregory writes: > On 22 Jul 2023, Ihor Radchenko wrote: > >> I guess I do not fully understand what your patch is trying to >> achieve. I thought that the patch would make it not necessary to >> write some extra boilerplate code, like \version or specifying >> the page size. > > The

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Henrik Frisk
Den tis 25 juli 2023 kl 19:26 skrev Jonathan Gregory : > Hi Henrik, > > On 25 Jul 2023, Henrik Frisk wrote: > > > Den tis 25 juli 2023 kl 18:16 skrev Henrik Frisk > > : > > > My bad, putting :file ionian.cropped.png only results in > > ionian.cropped.cropped.png (as expected). Unclear why it

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Jonathan Gregory
On 22 Jul 2023, Ihor Radchenko wrote: I guess I do not fully understand what your patch is trying to achieve. I thought that the patch would make it not necessary to write some extra boilerplate code, like \version or specifying the page size. The purpose of the patch was to fix the

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Jonathan Gregory
Hi Henrik, On 25 Jul 2023, Henrik Frisk wrote: Den tis 25 juli 2023 kl 18:16 skrev Henrik Frisk : My bad, putting :file ionian.cropped.png only results in ionian.cropped.cropped.png (as expected). Unclear why it worked the first couple of times. /Henrik No need to crop the output. If

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Henrik Frisk
Den tis 25 juli 2023 kl 18:16 skrev Henrik Frisk : > Hi, > > I have been struggling with the same issues to but have completely missed > this thread. I haven't tried the patch of ob-lilypond but testing the file >

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-25 Thread Henrik Frisk
Hi, I have been struggling with the same issues to but have completely missed this thread. I haven't tried the patch of ob-lilypond but testing the file https://git.sr.ht/~bzg/worg/tree/6f69d212f41bc372426dc9b4df286638fe8f2a92/item/org-contrib/babel/examples/lilypond.org I'm getting cropped

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-22 Thread Ihor Radchenko
Jonathan Gregory writes: > On 21 Jul 2023, Ihor Radchenko wrote: > >> The png is still a full page on my side. > > That's not what I get. You're probably missing the paper settings: > > #+begin_src lilypond :exports none > \version "2.20" > \paper { > indent=0\mm > tagline="" >

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-21 Thread Jonathan Gregory
On 21 Jul 2023, Ihor Radchenko wrote: The png is still a full page on my side. That's not what I get. You're probably missing the paper settings: #+begin_src lilypond :exports none \version "2.20" \paper { indent=0\mm tagline="" line-width=170\mm oddFooterMarkup=##f

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-21 Thread Ihor Radchenko
Jonathan Gregory writes: > On 20 Jul 2023, Ihor Radchenko wrote: > >> With your patch, I cannot produce png output. The file is just >> not created: [...] > > You're right. Thanks for the feedback. > > I've made some changes and was able to produce the correct results > using pdf, eps, and png

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-20 Thread Jonathan Gregory
On 20 Jul 2023, Ihor Radchenko wrote: With your patch, I cannot produce png output. The file is just not created: [...] You're right. Thanks for the feedback. I've made some changes and was able to produce the correct results using pdf, eps, and png (tested with 2.20.0 and 2.24.1). I think

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-20 Thread Ihor Radchenko
Jonathan Gregory writes: >> I do not mind. But remember that we are talking just about an >> example file. What you are suggesting appears to be closer to >> what we might do in ob-lilypond itself, when calculating default >> layout. > > That would be even better, I agree. > > Can you test my

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-19 Thread Jonathan Gregory
On 18 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: I also checked what will happen with future versions, and it looks like \version "2.24.1" actually means >=. That's good to know. I know version 2.20.0 works without the update, so perhaps we could set those variables

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-18 Thread Ihor Radchenko
Jonathan Gregory writes: >> I also checked what will happen with future versions, and it >> looks like \version "2.24.1" actually means >=. > > That's good to know. > > I know version 2.20.0 works without the update, so perhaps we > could set those variables conditionally, WDYT? > > \version

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-17 Thread Jonathan Gregory
Hi Ihor, On 14 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Looks like this on my side as well. Given the feedback, I went ahead and changed the lilypond.org file: https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 Thanks! It would be even nicer

Re: [BUG] WORG example for ob-lilypond is no longer working as described

2023-07-17 Thread Graham King
I'm late to this thread, and I might be missing some crucial aspect of the problem, but if you just want to integrate lilypond scores and fragments into a LaTeX document, and you're able to choose to use Luatex, the lyluatex and lilyglyphs packages work beautifully with the latest Lilypond

Re: [BUG] WORG example for ob-lilypond is no longer working as described

2023-07-16 Thread Ihor Radchenko
Graham King writes: > I'm late to this thread, and I might be missing some crucial aspect of the > problem, but if you just want to integrate lilypond scores and fragments into > a LaTeX document, and you're able to choose to use Luatex, the lyluatex and > lilyglyphs packages work beautifully

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-14 Thread Ihor Radchenko
Jonathan Gregory writes: >> Looks like this on my side as well. > > Given the feedback, I went ahead and changed the lilypond.org > file: > > https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 Thanks! It would be even nicer if we allowed

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-14 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > -#+begin_src org :exports none > +#+begin_src lilypond :exports none > > That’s strange — what was the reason for using org as source before? Could be just a typo. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-14 Thread Dr. Arne Babenhauserheide
Jonathan Gregory writes: > Given the feedback, I went ahead and changed the lilypond.org file: > > https://git.sr.ht/~bzg/worg/commit/6f69d212f41bc372426dc9b4df286638fe8f2a92 -#+begin_src org :exports none +#+begin_src lilypond :exports none That’s strange — what was the reason for using org

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-14 Thread Jonathan Gregory
Hi On 13 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Can you check if adding: \version "2.24.1" #(ly:set-option 'use-paper-size-for-page #f) #(ly:set-option 'tall-page-formats 'pdf) to the version-and-paper block fixes the issue. Yes, except that I have lilypond 2.24.0,

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-13 Thread Jonathan Gregory
Hi On 13 Jul 2023, Ihor Radchenko wrote: Jonathan Gregory writes: Can you check if adding: \version "2.24.1" #(ly:set-option 'use-paper-size-for-page #f) #(ly:set-option 'tall-page-formats 'pdf) to the version-and-paper block fixes the issue. Yes, except that I have lilypond 2.24.0,

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-13 Thread Ihor Radchenko
Jonathan Gregory writes: > Can you check if adding: > > \version "2.24.1" > #(ly:set-option 'use-paper-size-for-page #f) > #(ly:set-option 'tall-page-formats 'pdf) > > to the version-and-paper block fixes the issue. Yes, except that I have lilypond 2.24.0, which failed until I changed the

Re: [BUG] WORG example for ob-lilypond is no longer working as described

2023-07-13 Thread Jean Abou Samra
Le jeudi 13 juillet 2023 à 08:33 +0200, Dr. Arne Babenhauserheide a écrit : > This is the lilypond-file in questoin: > https://hg.sr.ht/~arnebab/draketos-songbook/browse/delfini-tune.ly?rev=tip > > Converted to PNG in a two step process: > lilypond -dbackend=eps -dno-gs-load-fonts

Re: [BUG] WORG example for ob-lilypond is no longer working as described

2023-07-13 Thread Dr. Arne Babenhauserheide
"Dr. Arne Babenhauserheide" writes: > Ihor Radchenko writes: > >> "Dr. Arne Babenhauserheide" writes: >> >>> I typically use it directly, but if the maintenance burden is >>> manageable, I could offer maintenance here, too (once I have the papers >>> in place). >> >> I have recently seen

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-13 Thread Dr. Arne Babenhauserheide
Jonathan Gregory writes: > Hi Ihor > > On 12 Jul 2023, Ihor Radchenko wrote: > > [...] > >> I have recently seen https://masto.ai/@rfc1149/110674961710491363 >> that revealed a problem with example from >> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html#org29a742f >>

Re: [BUG] WORG example for ob-lilypond is no longer working as described

2023-07-13 Thread Dr. Arne Babenhauserheide
Ihor Radchenko writes: > "Dr. Arne Babenhauserheide" writes: > >> I typically use it directly, but if the maintenance burden is >> manageable, I could offer maintenance here, too (once I have the papers >> in place). > > I have recently seen https://masto.ai/@rfc1149/110674961710491363 that >

Re: [BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-12 Thread Jonathan Gregory
Hi Ihor On 12 Jul 2023, Ihor Radchenko wrote: [...] I have recently seen https://masto.ai/@rfc1149/110674961710491363 that revealed a problem with example from https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html#org29a742f Instead of lilypond fragments, full pages

[BUG] WORG example for ob-lilypond is no longer working as described (was: Moving some lisp/ob-*.el files to org-contrib - your advice?)

2023-07-12 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: > I typically use it directly, but if the maintenance burden is > manageable, I could offer maintenance here, too (once I have the papers > in place). I have recently seen https://masto.ai/@rfc1149/110674961710491363 that revealed a problem with example from