ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* on the t-ruby module
@ 2015-02-18 19:04 Pablo Rodriguez
  2015-02-18 19:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Pablo Rodriguez @ 2015-02-18 19:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang,

I have just discovered your t-ruby module.

Many thanks for this module, which is extremely useful for interlinear
translations.

Here you have the sample:

\usemodule[ruby]
\defineruby[trans][textstyle=\it]

\starttext
\startTEXpage[offset=1em]
\trans{The}{Der} \trans{sentence}{Satz}
\trans{is}{ist} \trans{right}{richtig}.

\blank[big]

\trans{Der}{The} \trans{Satz}{sentence}
\trans{ist}{is} \trans{richtig}{right}.
\stopTEXpage
\stoptext

Is there no way that text above doen’t overlap?

Sorry, I should be too sleepy, because the hang and overhang options
don’t seem to work for me.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: on the t-ruby module
  2015-02-18 19:04 on the t-ruby module Pablo Rodriguez
@ 2015-02-18 19:25 ` Wolfgang Schuster
  2015-02-18 19:36   ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2015-02-18 19:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 18.02.2015 um 20:04 schrieb Pablo Rodriguez <oinos@gmx.es>:
> 
> Hi Wolfgang,
> 
> I have just discovered your t-ruby module.
> 
> Many thanks for this module, which is extremely useful for interlinear
> translations.
> 
> Here you have the sample:
> 
> \usemodule[ruby]
> \defineruby[trans][textstyle=\it]
> 
> \starttext
> \startTEXpage[offset=1em]
> \trans{The}{Der} \trans{sentence}{Satz}
> \trans{is}{ist} \trans{right}{richtig}.
> 
> \blank[big]
> 
> \trans{Der}{The} \trans{Satz}{sentence}
> \trans{ist}{is} \trans{richtig}{right}.
> \stopTEXpage
> \stoptext
> 
> Is there no way that text above doen’t overlap?
> 
> Sorry, I should be too sleepy, because the hang and overhang options
> don’t seem to work for me.

It’s a bug.

BTW: The following definition does what you want.

\define[2]\trans
  {\dontleavehmode\framed[frame=off,offset=0pt,location=bottom,align=middle]{{\it #1}\\#2}}

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: on the t-ruby module
  2015-02-18 19:25 ` Wolfgang Schuster
@ 2015-02-18 19:36   ` Wolfgang Schuster
  2015-02-18 19:48     ` Pablo Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2015-02-18 19:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1018 bytes --]


> Am 18.02.2015 um 20:25 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:
> 
>> 
>> Am 18.02.2015 um 20:04 schrieb Pablo Rodriguez <oinos@gmx.es>:
>> 
>> Hi Wolfgang,
>> 
>> I have just discovered your t-ruby module.
>> 
>> Many thanks for this module, which is extremely useful for interlinear
>> translations.
>> 
>> Here you have the sample:
>> 
>> \usemodule[ruby]
>> \defineruby[trans][textstyle=\it]
>> 
>> \starttext
>> \startTEXpage[offset=1em]
>> \trans{The}{Der} \trans{sentence}{Satz}
>> \trans{is}{ist} \trans{right}{richtig}.
>> 
>> \blank[big]
>> 
>> \trans{Der}{The} \trans{Satz}{sentence}
>> \trans{ist}{is} \trans{richtig}{right}.
>> \stopTEXpage
>> \stoptext
>> 
>> Is there no way that text above doen’t overlap?
>> 
>> Sorry, I should be too sleepy, because the hang and overhang options
>> don’t seem to work for me.
> 
> It’s a bug.

I have to correct myself, you can use „hang=none“ to avoid the overlapping texts in your case.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3227 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: on the t-ruby module
  2015-02-18 19:36   ` Wolfgang Schuster
@ 2015-02-18 19:48     ` Pablo Rodriguez
  0 siblings, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2015-02-18 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 02/18/2015 08:36 PM, Wolfgang Schuster wrote:
>> Am 18.02.2015 um 20:25 schrieb Wolfgang Schuster:
>>> Am 18.02.2015 um 20:04 schrieb Pablo Rodriguez:
>>>
>>> I have just discovered your t-ruby module.
>>>
>>> Many thanks for this module, which is extremely useful for interlinear
>>> translations.
>>> [...]
>>> Is there no way that text above doen’t overlap?
>>>
>>> Sorry, I should be too sleepy, because the hang and overhang options
>>> don’t seem to work for me.
>>
>> It’s a bug.
> 
> I have to correct myself, you can use „hang=none“ to avoid the
> overlapping texts in your case.

Many thanks for your help, Wolfgang.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-18 19:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 19:04 on the t-ruby module Pablo Rodriguez
2015-02-18 19:25 ` Wolfgang Schuster
2015-02-18 19:36   ` Wolfgang Schuster
2015-02-18 19:48     ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).