Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info docs without images #1552

Open
DaviRaubach opened this issue Jul 1, 2023 · 1 comment
Open

Info docs without images #1552

DaviRaubach opened this issue Jul 1, 2023 · 1 comment

Comments

@DaviRaubach
Copy link

I manage to make the info version of abjad documentation and installed it correctly. It's great to have it inside emacs.

Captura de Tela 2023-07-01 às 08 34 21

However, it does not insert images rendered by lilypond. I got the correct result in html so I believe it's something in sphinx configuration regarding texinfo.

@DaviRaubach
Copy link
Author

DaviRaubach commented Jul 3, 2023

Sorry, I should have offered more information.

Steps:

  • checked: graphviz, sphinx version (5.3), abjad extensions
  • make texinfo on docs folder
    I got several warnings:
/Users/davi/github/abjad/docs/source/index.rst:2: WARNING: tipo de nó desconhecido: <lilypond_block: <#text: '\\version "2.19 ...'>>

"tipo de nó desconhecido" = unknown node

System info:

  • MacOs 10.13.6
  • Python 3.11
  • Abjad 3.18 (pip install abjad)
  • I used current github repository to generate docs

--

Maybe this is the expected behavior. I believe it would require a lot of work to have images there. I don't know if uqbar could do that...

In the case it should continue like that, maybe we could better separate the lilypond output. See how it is presented in my info file:

As a first example, start Python, import Abjad, make some notes:

     >>> import abjad
     >>> string = "c'16 f' g' a' d' g' a' b' e' a' b' c'' f' b' c'' d''16"
     >>> voice_1 = abjad.Voice(string, name="Voice_1")
     >>> staff_1 = abjad.Staff([voice_1], name="Staff_1")
     >>> abjad.show(staff_1)
\version "2.19.83" \language "english" \score { \context Staff =
"Staff_1" { \context Voice = "Voice_1" { c’16 f’16 g’16 a’16 d’16 g’16
a’16 b’16 e’16 a’16 b’16 c’’16 f’16 b’16 c’’16 d’’16 } } } Use Python’s
list operations to split, reverse, join the input string.  Then extend
voice 1:

     >>> pitches = string.split()
     >>> pitches = reversed(pitches)
     >>> retrograde = " ".join(pitches)
     >>> voice_1.extend(retrograde)
     >>> abjad.show(staff_1)
\version "2.19.83" \language "english" \score { \context Staff =
"Staff_1" { \context Voice = "Voice_1" { c’16 f’16 g’16 a’16 d’16 g’16
a’16 b’16 e’16 a’16 b’16 c’’16 f’16 b’16 c’’16 d’’16 d’’16 c’’16 b’16
f’16 c’’16 b’16 a’16 e’16 b’16 a’16 g’16 d’16 a’16 g’16 f’16 c’16 } } }
Create a second voice in a second staff:

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant