ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: ruby module
       [not found] <mailman.3.1330858802.3519.ntg-context@ntg.nl>
@ 2012-03-04 13:26 ` S Barmeier
  2012-03-09  8:32   ` Wolfgang Schuster
  2012-03-04 14:43 ` ruby overhang S Barmeier
  1 sibling, 1 reply; 4+ messages in thread
From: S Barmeier @ 2012-03-04 13:26 UTC (permalink / raw)
  To: ntg-context

>> Is it possible to place the ruby text in a margin?
> 
> No.
> 
>> This would allow me to keep line spacing decently tight and also prevent
>> the reader from only reading the annotation.
> 
> This can be added but then you need a symbol (or something else) to see
> to which word the annotation refers.

I'm just thinking of annotating one or two words per line, which in an
appropriately small font size could just be stacked at the end of the
line in order of occurrence.
Problems would only arise if one line contained 3 or more words to be
annotated, and the next line also contained one...

Would this be possible to implement? Would this just be a \defineinright?

Severin
___________________________________________________________________________________
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

* ruby overhang
       [not found] <mailman.3.1330858802.3519.ntg-context@ntg.nl>
  2012-03-04 13:26 ` ruby module S Barmeier
@ 2012-03-04 14:43 ` S Barmeier
  2012-03-05  0:01   ` Wolfgang Schuster
  1 sibling, 1 reply; 4+ messages in thread
From: S Barmeier @ 2012-03-04 14:43 UTC (permalink / raw)
  To: ntg-context

\usemodule[ruby]
\setupruby[overhang=start]
\starttext
foo \ruby{bar}{foo bar baz} baz
\stoptext

end,yes,auto all give overhang=none. Am I doing something wrong?

Severin
___________________________________________________________________________________
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: ruby overhang
  2012-03-04 14:43 ` ruby overhang S Barmeier
@ 2012-03-05  0:01   ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-03-05  0:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.03.2012 um 15:43 schrieb S Barmeier:

> \usemodule[ruby]
> \setupruby[overhang=start]
> \starttext
> foo \ruby{bar}{foo bar baz} baz
> \stoptext
> 
> end,yes,auto all give overhang=none. Am I doing something wrong?

You need also “align=center” because by default the base text is stretched (with a small space at the left and right side) to the width of the ruby text, look for distribute-space in the css3 spec [1].

[1] http://www.w3.org/TR/css3-ruby/#rubyalign

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: ruby module
  2012-03-04 13:26 ` ruby module S Barmeier
@ 2012-03-09  8:32   ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-03-09  8:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.03.2012 um 14:26 schrieb S Barmeier:

>>> Is it possible to place the ruby text in a margin?
>> 
>> No.
>> 
>>> This would allow me to keep line spacing decently tight and also prevent
>>> the reader from only reading the annotation.
>> 
>> This can be added but then you need a symbol (or something else) to see
>> to which word the annotation refers.
> 
> I'm just thinking of annotating one or two words per line, which in an
> appropriately small font size could just be stacked at the end of the
> line in order of occurrence.
> Problems would only arise if one line contained 3 or more words to be
> annotated, and the next line also contained one...
> 
> Would this be possible to implement? Would this just be a \defineinright?

\define[2]\Note
  {#1\inright[stack=yes,style=\txx]{#2}}

\starttext

text \Note{TEXT}{MARGIN} text \Note{TEXT}{MARGIN} text

\stoptext

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

end of thread, other threads:[~2012-03-09  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.3.1330858802.3519.ntg-context@ntg.nl>
2012-03-04 13:26 ` ruby module S Barmeier
2012-03-09  8:32   ` Wolfgang Schuster
2012-03-04 14:43 ` ruby overhang S Barmeier
2012-03-05  0:01   ` Wolfgang Schuster

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).