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

text-only mode #1039

Closed
eroux opened this issue Mar 16, 2016 · 2 comments
Closed

text-only mode #1039

eroux opened this issue Mar 16, 2016 · 2 comments
Assignees
Milestone

Comments

@eroux
Copy link
Contributor

eroux commented Mar 16, 2016

It would be useful for some Abbey if GregorioTeX had a text-only mode that just prints the text, with hyphens between each syllable and just a simple space between words. The idea is to typeset a document in this mode and give the result to someone who would proofread hyphenation.

I think this should be simple enough by overriding \GreSyllable and \GreBarSyllable with a simple \GreTextOnlySyllable.

@rpspringuel
Copy link
Contributor

This is mostly already possible via existing settings. If you generate a score with the following settings:

\gresetinitiallines{0}
\gresetclef{invisible}
\gresetlines{invisible}
\gresethyphen{force}
\grechangestaffsize{1}
\grechangedim{interwordspacetext}{0.5em}{fixed}
\grechangedim{interwordspacetext@bars}{0.5em}{fixed}

the results are pretty much as you describe. The notes are still technically being printed, just very small to the point of being almost (but not quite) unnoticeable. If this isn't sufficient, then I could add a flag which makes the notes truly invisible.

A parallel flag to make the lyrics invisible would then complete the set, allowing the user to toggle the visibility of pretty much every element of the score.

@eroux
Copy link
Contributor Author

eroux commented Mar 17, 2016

Interesting, thanks for that!

It would be best if the notes could disappear completely indeed, but maybe just handling \grechangestaffsize{0} correctly should be enough.

End of lines should also not be handled in this mode, but it's not a big problem, we can close this even if they're not handled.

@henryso henryso closed this as completed Mar 28, 2016
@henryso henryso added this to the 4.2 milestone Mar 28, 2016
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

3 participants