Title: Designing ly.xml · Issue #8 · frescobaldi/python-ly · GitHub
Open Graph Title: Designing ly.xml · Issue #8 · frescobaldi/python-ly
X Title: Designing ly.xml · Issue #8 · frescobaldi/python-ly
Description: The xml-export.ily script is now fairly complete, although we could change it in details or to improve usability. But now it can be tested and the XML it generates carefully examined. http://python-ly.readthedocs.org/en/latest/ly.xml.htm...
Open Graph Description: The xml-export.ily script is now fairly complete, although we could change it in details or to improve usability. But now it can be tested and the XML it generates carefully examined. http://python...
X Description: The xml-export.ily script is now fairly complete, although we could change it in details or to improve usability. But now it can be tested and the XML it generates carefully examined. http://python...
Opengraph URL: https://github.com/frescobaldi/python-ly/issues/8
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Designing ly.xml","articleBody":"The `xml-export.ily` script is now fairly complete, although we could change it in details or to improve usability. But now it can be tested and the XML it generates carefully examined. http://python-ly.readthedocs.org/en/latest/ly.xml.html#the-xml-export-ily-file.\n\nLet's use this issue to discuss the XML output and see if we would need to change some aspects.\n\nThen we design our own XML (built from the tokenized source, mimicking the source document) which will be clearly different:\n- user variables are not substituted\n- because we use it to write LilyPond code from scratch, it should be possible to add comments and newlines to the tree\n- toplevel variables definitions and scheme expressions are to be preserved\n- functions like `\\transpose` and `\\relative` are not executed already, so we need a way to specify LilyPond commands in their normal syntax.\n\nIt could be thinkable that we design two styles of XML tree:\n1. very close to the source (like current `ly.music` but as XML, and akin to the XML `xml-export.ily` generates)\n2. with all substitutions done and things like `\\relative` and `\\transpose` executed. This tree then is the same as the one the `xml-export.ily` script would generate and can be used to perform conversion to other formats and XML encodings.\n\nThe conversion from 1. to 2. should be very easy to implement. 1. is then used to understand a document as good as possible, but taylored to writing LilyPond sourcecode from scratch or altering the source document; and providing information (like how many notes are entered). 2. is used to export music to other formats. Also writing code from scratch from 2. could be implemented, but it would not much look like human-written LilyPond code.\n","author":{"url":"https://github.com/wbsoft","@type":"Person","name":"wbsoft"},"datePublished":"2015-02-09T11:10:04Z","url":"https://github.com/frescobaldi/python-ly/issues/8"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c386c4b5-a06a-5554-51e0-b82dbe0fdaf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC3A:15A0A1:DB1B23:1223A19:6B09BD96 |
| html-safe-nonce | 0ae6ab66c85c7264704bb5dd6232bbffb9aa4c6543034c3792167e431a160a71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzNBOjE1QTBBMTpEQjFCMjM6MTIyM0ExOTo2QjA5QkQ5NiIsInZpc2l0b3JfaWQiOiIxNDk1MDcwMzY5NDEyMzk4NDg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a6025763dac598f503b8bf053f2f07ef3ba5176ef9af79aa690dbe1ddb8b8d5 |
| hovercard-subject-tag | issue:57017011 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/frescobaldi/python-ly/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05a762182b82f62dcd3ef7073d2af61f9dafb7905359640ea1ac5ebde8ecdb2d/frescobaldi/python-ly/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05a762182b82f62dcd3ef7073d2af61f9dafb7905359640ea1ac5ebde8ecdb2d/frescobaldi/python-ly/issues/8 |
| og:image:alt | The xml-export.ily script is now fairly complete, although we could change it in details or to improve usability. But now it can be tested and the XML it generates carefully examined. http://python... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wbsoft |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29e6866c4c5b6697a062df08d37fa80bbfb75810ca4280c0d277f04956012d39 |
| turbo-cache-control | no-preview |
| go-import | github.com/frescobaldi/python-ly git https://github.com/frescobaldi/python-ly.git |
| octolytics-dimension-user_id | 19853952 |
| octolytics-dimension-user_login | frescobaldi |
| octolytics-dimension-repository_id | 29728425 |
| octolytics-dimension-repository_nwo | frescobaldi/python-ly |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29728425 |
| octolytics-dimension-repository_network_root_nwo | frescobaldi/python-ly |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e72aac8801621433bb0313888fbbe243f5998abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width