ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Something about vertical Chinese typesetting
@ 2006-12-18 11:02 Zhichu Chen
  2006-12-20 13:06 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Zhichu Chen @ 2006-12-18 11:02 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]

Dear Texers,

I am typesetting some traditional Chinese articles. They are
typesetted in vertical, and the reading order is from right to left.
This can be done by Hans' \startvertical . . . \stopvertical pair. But
as shown in the attached file, there are some famous notes,
descriptions and explanations to these articles. The traditional way,
in Chinese, to typeset these notes is rather to insert them in some
small fonts (say, half size of the \bodyfontsize) right below the word
to be explained, than to use footnotes which is common in English.

I've tried some ways, e.g., use \startcolumnsetspan . . .
\stopcolumnsetspan to put the body text across the note text, but all
failed.

Can anyone give me some clue?


-- 
Sincerely yours,
Chen
----------------------------------------------------------------

          Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
         No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
             tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                               | www.sinap.ac.cn
----------------------------------------------------------------

[-- Attachment #2: test.zip --]
[-- Type: application/zip, Size: 32194 bytes --]

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Something about vertical Chinese typesetting
  2006-12-18 11:02 Something about vertical Chinese typesetting Zhichu Chen
@ 2006-12-20 13:06 ` Wolfgang Schuster
  2006-12-21  1:08   ` Zhichu Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2006-12-20 13:06 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

On Mon, 18 Dec 2006 19:02:43 +0800
"Zhichu Chen" <zhichu.chen@gmail.com> wrote:

Hi Zhichu Chen,

> Dear Texers,
> 
> I am typesetting some traditional Chinese articles. They are
> typesetted in vertical, and the reading order is from right to left.
> This can be done by Hans' \startvertical . . . \stopvertical pair. But
> as shown in the attached file, there are some famous notes,
> descriptions and explanations to these articles. The traditional way,
> in Chinese, to typeset these notes is rather to insert them in some
> small fonts (say, half size of the \bodyfontsize) right below the word
> to be explained, than to use footnotes which is common in English.
> 
> I've tried some ways, e.g., use \startcolumnsetspan . . .
> \stopcolumnsetspan to put the body text across the note text, but all
> failed.
> 
> Can anyone give me some clue?
> 

I dont't how the result you wanted looks exactlxy but I hope my
attached example file helps you.

To give you a better results give us a specification about the rules
how the explanations should be written.

Can you also take a look at the following pages if there is what you
want as result:

- http://www.w3.org/TR/ruby/
- http://www.w3.org/International/questions/qa-ruby
- http://www.w3.org/International/tutorials/ruby/
- http://www.w3.org/TR/css3-ruby/

Wolfgang

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: chinese.tex --]
[-- Type: text/x-tex; name="chinese.tex", Size: 1010 bytes --]

\unprotect

\def\????zc{@@@@zc}

\def\sidetext
  {\dosingleempty\dosidetext}

\def\dosidetext[#1]#2#3%
  {\bgroup
   \setupsidetext[#1]
   \edef\sidetextsize{\switchtobodyfont[\the\dimexpr\@@@@zcscale\bodyfontsize\relax]}%
   \setbox0\vbox{\startvertical#2\stopvertical}
   \setbox1\vbox{\startvertical\sidetextsize\@@@@zcstyle#3\stopvertical}
   \dimen0\ht0\advance\dimen0-\dp0
   \hbox{\box0\rlap{\vbox\!!to\dimen0{\vss\box1\vss}}}
   \egroup}

\def\setupsidetext
  {\dosingleargument\getparameters[\????zc]}

\setupsidetext
  [\c!scale=.5,
   \c!style=]

\protect

\enableregime[utf]
\usemodule[chi-00]
\setupbodyfont[24pt]
%\showmakeup

\starttext
\startvertical
你好你好你好你好你好你好你好\sidetext{好}{好好}
你好你好你好你好你好你好你好\sidetext[scale=.8]{好}{好好}
你好你好你好\sidetext[style=\bf]{好}{好}你好你好
好你好你好你好你你好你好你好你你好你好你好你你好你好
\stopvertical
\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Something about vertical Chinese typesetting
  2006-12-20 13:06 ` Wolfgang Schuster
@ 2006-12-21  1:08   ` Zhichu Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Zhichu Chen @ 2006-12-21  1:08 UTC (permalink / raw)


Thank you very much Wolfgang, although this is not exactly what I
want, your help still gives me some important hints. I guess I should
do it myself.

By the way, no offending, are you german? I've seen many german guys
insterested in Chinese. And the CJK package for LaTeX is designed by
Werner Lemberg who is german too.

On 12/20/06, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> On Mon, 18 Dec 2006 19:02:43 +0800
> "Zhichu Chen" <zhichu.chen@gmail.com> wrote:
>
> Hi Zhichu Chen,
>
> > Dear Texers,
> >
> > I am typesetting some traditional Chinese articles. They are
> > typesetted in vertical, and the reading order is from right to left.
> > This can be done by Hans' \startvertical . . . \stopvertical pair. But
> > as shown in the attached file, there are some famous notes,
> > descriptions and explanations to these articles. The traditional way,
> > in Chinese, to typeset these notes is rather to insert them in some
> > small fonts (say, half size of the \bodyfontsize) right below the word
> > to be explained, than to use footnotes which is common in English.
> >
> > I've tried some ways, e.g., use \startcolumnsetspan . . .
> > \stopcolumnsetspan to put the body text across the note text, but all
> > failed.
> >
> > Can anyone give me some clue?
> >
>
> I dont't how the result you wanted looks exactlxy but I hope my
> attached example file helps you.
>
> To give you a better results give us a specification about the rules
> how the explanations should be written.
>
> Can you also take a look at the following pages if there is what you
> want as result:
>
> - http://www.w3.org/TR/ruby/
> - http://www.w3.org/International/questions/qa-ruby
> - http://www.w3.org/International/tutorials/ruby/
> - http://www.w3.org/TR/css3-ruby/
>
> Wolfgang
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>
>


-- 
Sincerely yours,
Chen
----------------------------------------------------------------

          Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
         No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
             tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                               | www.sinap.ac.cn
----------------------------------------------------------------

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

end of thread, other threads:[~2006-12-21  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-18 11:02 Something about vertical Chinese typesetting Zhichu Chen
2006-12-20 13:06 ` Wolfgang Schuster
2006-12-21  1:08   ` Zhichu Chen

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