From: Hans Hagen <j.hagen@xs4all.nl>
To: "Jairo A. del Rio" <jairoadelrio6@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: About vertical typesetting in ConTeXt
Date: Tue, 4 Aug 2020 14:42:51 +0200 [thread overview]
Message-ID: <ff924d28-6ff3-e7c6-569d-a6311e738e6d@xs4all.nl> (raw)
In-Reply-To: <CAKyqqab11A7un1ei+82TkR5osxiSg7XfzFwXabeyw5sXPHKUpQ@mail.gmail.com>
On 8/4/2020 10:32 AM, Jairo A. del Rio wrote:
> http://www.mongolfont.com/en/font/mnglwhiteotf.html
hm, only for testing, not for use
> I can rotate boxes in ConTeXt using other methods than those used in
> LaTeX. However, my main concern is about "translating" the Lua(La)TeX
> piece to be used in ConTeXt. I've read about "finalizers" in the CLD
> manual and somewhere online, but I don't know how to access to
> node.subtype("pdf_literal"). I'll be happy to know about a better
> solution if ConTeXt offers it so it is accessible to other users. Thank
> you in advance.
The problem (or challenge) as usual is not in the coding but in what is
a reasonable user interface. So, what are the use cases. Her eis one
solution:
\protected\def\startvertical
{\dosingleempty\dostartvertical}
\def\dostartvertical[#1]%
{\begingroup
\getdummyparameters[width=\textwidth,height=\textheight,#1]%
\vbox
orientation 1
\doifelsedimension{\dummyparameter{width}}{to
\dummyparameter{width}}{}%
\bgroup
\doifelsedimension{\dummyparameter{height}}{\hsize
\dummyparameter{height}}{}}
\protected\def\stopvertical
{\vfill
\egroup
\endgroup}
% test
\starttext
\definefont
[MyFont]
[file:mnglwhiteotf.ttf*default,mongolian @ 24pt]
\showframe
\startvertical
\MyFont
\setupalign[stretch,tolerant,stretch]
\setupinterlinespace[40pt]%
ᠣᠢᠷᠠ ᠵᠢᠨ ᠡᠳᠦᠷ᠂ ᠦᠪᠦᠷ ᠮᠣᠩᠭᠣᠯ ᠦᠨ ᠰᠢᠯᠢ ᠵᠢᠨ ᠭᠣᠣᠯ ᠠᠢᠮᠠᠭ ᠦᠨ ᠰᠢᠯᠣᠭᠣᠨ ᠬᠦᠬᠡ
ᠬᠣᠰᠢᠭᠣᠨ ᠦ ᠰᠢᠭᠦᠬᠦ ᠬᠣᠷᠢᠶᠠ ᠨᠢᠭᠡᠨ ᠬᠦᠴᠦᠷᠬᠡᠭᠯᠡᠨ ᠨᠦᠵᠢᠳᠯᠡᠭᠰᠡᠨ ᠶᠠᠯᠠᠲᠣ ᠬᠡᠷᠡᠭ ᠲᠦ
ᠰᠢᠭᠦᠯᠲᠡ ᠬᠢᠪᠡ᠃ ᠰᠢᠭᠦᠨ ᠲᠠᠰᠣᠯᠣᠯᠳᠠ ᠪᠠᠷ᠂ ᠵᠠᠭᠠᠯᠳᠣᠭᠳᠠᠭᠴᠢ ᠡᠷᠬᠢᠮᠲᠦ ᠵᠢ ᠬᠦᠴᠦᠷᠭᠡᠭᠯᠡᠨ᠂
ᠨᠦᠵᠢᠳᠯᠡᠭᠰᠡᠨ ᠶᠡᠯᠡ ᠪᠡᠷ ᠭᠣᠷᠪᠠᠨ ᠵᠢᠯ ᠦᠨ ᠬᠣᠭᠣᠴᠠᠭᠠ ᠲᠠᠢ ᠬᠣᠷᠢᠬᠣ ᠡᠷᠡᠭᠦᠦ ᠪᠡᠷ
ᠰᠢᠳᠬᠡᠭᠰᠡᠨ ᠪᠠᠢᠨᠠ᠃
\stopvertical
\page
\startvertical[height=.75\textheight]
\MyFont
\setupalign[flushleft]
\setupinterlinespace[40pt]%
ᠣᠢᠷᠠ ᠵᠢᠨ ᠡᠳᠦᠷ᠂ ᠦᠪᠦᠷ ᠮᠣᠩᠭᠣᠯ ᠦᠨ ᠰᠢᠯᠢ ᠵᠢᠨ ᠭᠣᠣᠯ ᠠᠢᠮᠠᠭ ᠦᠨ ᠰᠢᠯᠣᠭᠣᠨ ᠬᠦᠬᠡ
ᠬᠣᠰᠢᠭᠣᠨ ᠦ ᠰᠢᠭᠦᠬᠦ ᠬᠣᠷᠢᠶᠠ ᠨᠢᠭᠡᠨ ᠬᠦᠴᠦᠷᠬᠡᠭᠯᠡᠨ ᠨᠦᠵᠢᠳᠯᠡᠭᠰᠡᠨ ᠶᠠᠯᠠᠲᠣ ᠬᠡᠷᠡᠭ ᠲᠦ
ᠰᠢᠭᠦᠯᠲᠡ ᠬᠢᠪᠡ᠃ ᠰᠢᠭᠦᠨ ᠲᠠᠰᠣᠯᠣᠯᠳᠠ ᠪᠠᠷ᠂ ᠵᠠᠭᠠᠯᠳᠣᠭᠳᠠᠭᠴᠢ ᠡᠷᠬᠢᠮᠲᠦ ᠵᠢ ᠬᠦᠴᠦᠷᠭᠡᠭᠯᠡᠨ᠂
ᠨᠦᠵᠢᠳᠯᠡᠭᠰᠡᠨ ᠶᠡᠯᠡ ᠪᠡᠷ ᠭᠣᠷᠪᠠᠨ ᠵᠢᠯ ᠦᠨ ᠬᠣᠭᠣᠴᠠᠭᠠ ᠲᠠᠢ ᠬᠣᠷᠢᠬᠣ ᠡᠷᠡᠭᠦᠦ ᠪᠡᠷ
ᠰᠢᠳᠬᠡᠭᠰᠡᠨ ᠪᠠᠢᠨᠠ᠃
\stopvertical
\stoptext
But it's kind of a quick hack interface. We can have alignment,
interlinespace etc parameters to. Maybe definable verticals and so.
Hans
ps. for chinese one would probably kick in an extra feature
% \definefontfeature
% [vertical]
% [vertical={%
% orientation=3,%
% down=.1,%
% right=.1,%
% ranges={%
% cjkcompatibility,%
% cjkcompatibilityforms,%
% cjkcompatibilityideographs,%
% cjkcompatibilityideographssupplement,%
% cjkradicalssupplement,%
% % cjkstrokes,%
% cjksymbolsandpunctuation,%
% cjkunifiedideographs,%
% cjkunifiedideographsextensiona,%
% cjkunifiedideographsextensionb,%
% cjkunifiedideographsextensionc,%
% cjkunifiedideographsextensiond,%
% cjkunifiedideographsextensione,%
% cjkunifiedideographsextensionf,%
% }%
% }]
and maybe some extreme hz would work out well too.
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-08-04 12:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 5:49 Jairo A. del Rio
2020-06-10 7:30 ` Hans Hagen
[not found] ` <CAKyqqaaqEL8J73Hogii91xB4E69xn_ibyEWj4ANzL_EVYtpZMg@mail.gmail.com>
2020-08-04 8:32 ` Jairo A. del Rio
2020-08-04 12:42 ` Hans Hagen [this message]
[not found] ` <b8495842-1b1d-7e1f-71cd-a6df97c1d54d@xs4all.nl>
2020-08-04 13:32 ` Jairo A. del Rio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff924d28-6ff3-e7c6-569d-a6311e738e6d@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=jairoadelrio6@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).