Re: [NTG-context] ntg-context Digest, Vol 67, Issue 18
![](https://secure.gravatar.com/avatar/30ef4fea8acc9a4c7a392675260cfcb9.jpg?s=120&d=mm&r=g)
Thanks for answers, friends! I don't have ruby installed, so I try Mojca solution. It works perfectly (thanks!), except I need to wrap the lyrics into the 'lines' envinroment. To achieve this, I need to replace \setupwhitespace with \setupinterlinespace and adjust raisebox amount. \starttext \def\Ch#1{% \strut\hbox to 0pt{\raisebox{0.45\baselineskip}\hbox{\bf#1}\hss}} \setupinterlinespace[big] \startlines \Ch{E}Cvet dišeč z \Ch{H7}jutrom se od\Ch{cis}pre, \Ch{A}sonce od\Ch{E}pira o\Ch{H}či. \Ch{E}Polje z vetrom v \Ch{H7}plesu ziblje \Ch{cis}se. Gos\Ch{E}pod, pov\Ch{H}sod vidim \Ch{E}Te. \stoplines \stoptext What do you mean talking about optimization? ) Regards, Vyatcheslav
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 12 Jan 2010, Vyatcheslav Yatskovsky wrote:
Thanks for answers, friends!
I don't have ruby installed, so I try Mojca solution.>
Wolfgang's module is for writing Ruby annotations (http://www.w3.org/TR/ruby), it is not require Ruby programming language.
From W3c's website:
Ruby text is usually presented alongside the base text, using a smaller typeface. The name "ruby" in fact originated from the name of the 5.5pt font size in British printing, which is about half the 10pt font size commonly used for normal text. Aditya
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 12.01.2010 um 18:24 schrieb Aditya Mahajan:
On Tue, 12 Jan 2010, Vyatcheslav Yatskovsky wrote:
Thanks for answers, friends!
I don't have ruby installed, so I try Mojca solution.>
Wolfgang's module is for writing Ruby annotations (http://www.w3.org/TR/ruby), it is not require Ruby programming language.
I attached my last version of the module with two test files to show Vyatcheslav what Mojca meant with a optimized version of her code, the module provides the same as she showed by hidden from the user and customizable with different keys. Wolfgang
participants (3)
-
Aditya Mahajan
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster