[NTG-context] Interlinear translations in Context

Floris van Manen vm at klankschap.nl
Mon Dec 3 14:59:21 CET 2018


where can i find the description and features of the \ruby and  \defineruby commands?

.F


> On 3 Dec 2018, at 13:36, Wolfgang Schuster <wolfgang.schuster.lists at gmail.com> wrote:
> 
> 
> 
> Huseyin Özoguz schrieb am 03.12.18 um 12:51:
>> Thanks and I may have questions to the actual question about interlinear typesetting later, will try to define some nice macros with arabic-german interlinear texts.
> 
> Before you write your own commands try to use what is available.
> 
> If there is something missing existing commands can be extended
> and Hans is in many cases open to add new function to ConTeXt.
> 
> \usemodule [database]
> 
> % Source for the sample text:
> % https://interlinearbooks.com/blog/german-interlinear-translation-of-franz-kafkas-the-metamorphosis-released/
> 
> \startbuffer[sample]
> "Als","As"
> "Gregor","Gregor"
> "Samsa","Samsa"
> "eines","one"
> "Morgens","morning"
> "aus","from"
> "unruhigen","uneasy"
> "Träumen","dreams"
> "erwachte,","woke up,"
> "fand","found"
> "er","he"
> "sich","himself"
> "in","in"
> "seinem","his"
> "Bett","bed"
> "zu","in"
> "einem","an"
> "ungeheuren","enormous"
> "Ungeziefer","kind of monstrous vermin"
> "verwandelt.","transformed."
> \stopbuffer
> 
> \define[2]\InterlinearText
>  {\ruby{#1}{#2} }
> 
> \definedatabase
>  [interlineartext]
>  [quotechar={"},
>   command=\InterlinearText]
> 
> \setupinterlinespace[line=6ex]
> 
> \setupruby[voffset=-2.5ex]
> 
> \starttext
> \processdatabasebuffer[interlineartext][sample]
> \stoptext
> 
> Wolfgang
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20181203/c4b08852/attachment.sig>


More information about the ntg-context mailing list