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

Support generation of lilypond-like textedit links #528

Closed
henryso opened this issue Jun 28, 2015 · 4 comments
Closed

Support generation of lilypond-like textedit links #528

henryso opened this issue Jun 28, 2015 · 4 comments

Comments

@henryso
Copy link
Contributor

henryso commented Jun 28, 2015

This idea comes from http://www.mail-archive.com/gregorio-users%40gna.org/msg02769.html

The format of the URL is textedit://{filename}:{line}:{char}:{column}. Line and column appear to be 1-based and char is the character-offset from the beginning given line, 0-based. Column expands tabs.

Links would be created for score glyphs and for syllable text.

This feature would be disabled by default. You would need to enable it both when calling gregorio to generate additional information in the gtex files (because this "leaks" filenames into the gtex file) as well as in the TeX code (which is possible to drive strictly based on whether the additional information is in the gtex file, but I like the idea of toggling it from TeX as well).

Obviously, it would be disabled if gregorio is reading from stdin since it can't know the filename.

https://www.tug.org/pipermail/pdftex/2006-March/006475.html shows how to generate links without LaTeX and hyperref.

@igneus
Copy link
Contributor

igneus commented Jun 28, 2015

Wow! I'm afraid I love you :)

@igneus
Copy link
Contributor

igneus commented Jun 28, 2015

Oh, sorry, not yet. :) I thought it's already a PR.

@henryso
Copy link
Contributor Author

henryso commented Jun 28, 2015

Good code takes time :)

@henryso
Copy link
Contributor Author

henryso commented Jun 29, 2015

@igneus Pull request #530 is ready.

You will need to set \gresetpointandclick{on} to enable this from TeX and compile your scores with '-p' (which is automatic if you are using auto- or forced- compilation, but you might have to delete pre-existing auto-compiled gabc files, as the timestamps would not have changed).

@henryso henryso closed this as completed Jul 4, 2015
rpspringuel added a commit to rpspringuel/gregorio that referenced this issue Jul 5, 2015
…texrenaming

* commit '2ad2fcdc7e8feed4612cc1ede9d03e1e9285669b':
  Matched LilyPond's algorithm for counting columns.
  Added missing point-and-click link to bar syllable text.
  Fixes to handle above lines text.
  Emit a warning on dynamically sized braces spanning multiple lines.
  Further documentation adjustments.
  Adjust warning wording, update the documentation.
  Fix a pasto in [ub:\[01\]{] handling.
  Rework variable length brace handling to use luatexlatelua, and store/read all the variable length brace info from *.greaux file.
  Pass 0 always to grevarbracer in grevarbraces.
  Compute cur_score_id always.
  Read *.gaux file in lua, avoid \AtBeginDocument and \AtEndDocument.
  Parsing of [ob:1{] [ob:0}] and other variable length over and under braces, store horizontal position in *.gaux file.
  Added the ability to generate LilyPond-like textedit links. Fixes gregorio-project#528.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants