ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Building format with TeX [and Omega]
@ 2000-09-15  9:47 Behnam Tabatabai
  2000-09-15 10:19 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Behnam Tabatabai @ 2000-09-15  9:47 UTC (permalink / raw)
  Cc: ntg-context

Thank you Hans for your answer. You don't need to change anything in 
"supp-pdf.tex", because it works fine as is.

In fact I had messed up my Context installation, which normaly resides under 
my "localtexmf\tex\context", but I had forgotten some old files from a 
previous installation under "texmf\tex\context\base". After removing the old 
context files from "texmf\..." the problem is solved.

I'm sorry for this.

>I strongly suggest you to use pdfetex, since that way you got quite some
>goodies for free
>

I do use pdftex as my default tex-engine. The reason for creating other 
formats was that I was experimenting to use Omega+Context, where I 
encountered this problem, and so tried the same using TeX and eTeX.

Appropos Omega:
--------------
I have already tried the Omega specific commands (direction switching 
commands and OTP's) in some small Context documents and the results are very 
good: I used the Omega commands "\pagedir TRT" etc. for right-to-left, as 
well as a chain of OTP's for mapping from ISIRI (8-bit standard for Persian) 
to Unicode, context analysis, etc., for some Persian text. I was very 
impressed by the results!

Unfortunately I know too little about Context/TeX to be able to set up by my 
own a clean language environment for Farsi (and other right-to-left scripts 
like Arabic and Hebrew) using these features. However if somebody starts 
that, I would be very happy to contribute my part (at least to the language 
specific issues).

Regards,
Behnam
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Example for Persian
@ 2000-09-18 14:08 Behnam Tabatabai
  2000-09-18 15:08 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Behnam Tabatabai @ 2000-09-18 14:08 UTC (permalink / raw)
  Cc: ntg-context

Hi Hans!
Thank you for having examined my Persian exmaple!

>Your file says:
>
>\font\OMARAB=omarab
>
>far better is a definition like
>
>\definefont[OMARAB][omarab sa 1]
>

That's right. I have still very little experience in Context, that's why I 
chose the most straightforward way of switching to "omarab". In the next 
examples I'll use this construct.

>
>Then there is the OTP mechanism, which chains a series of filters. Whet we
>need there is something similar, like (maybe we can leave the synonym here,
>and auto resolve indirect mappings)
>
>\definefiltersynonym [OTF8 to UNICODE16]   [inutf8]
>\definefiltersynonym [farsi to arabic]     [FarsiToArabic]
>\definefiltersynonym [preprocess arabic]   [uni2cuni]
>\definefiltersynonym [build arabic glyphs] [cuni2oar]
>
>next there is:
>
>\definefiltersequence[Farsi][OTF8 to UNICODE16, farsi to arabic, preprocess
>arabic, build arabic glyphs]
>

Besides "normal" OTP's Omega can also use so called "external" OPT's, which 
are any executables (perl scripts, ...) acting as filters. These can also be 
interfaced by similar macros.

>[what is the 1000 in \ocplist\OCPListFarsiUTF=\addbeforeocplist 1000
>\OCPutf ?]
>

This a positive value which can be used to fine tune the bahavior of 
\pushocplist in respect of the final placement of ocp's in the list. A 
detailed description can be found in the Omega documentation doc-1.8.dvi, 
pp. 31-34.

Personally I have not seen any real examples using this feature: All 
examples I have seen so far use 1 or 1000 uniquely for all ocp's added to 
the list.

>now we can say:
>
>\Farsi\OMARABIC
>
>and get thoce nice sequences of glyphs. In this way we can hide the otp
>interface and protect macros.
>

Well, this example was a more or less brute force hack for getting Farsi 
with the help of Omega primitives. Relying on these Omega features 
(direction switching commands and OTP's) do you see any chances for a more 
structured support in future versions of Context (e.g., a "lang-far.tex")?

Regards,
Behnam

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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

end of thread, other threads:[~2000-09-18 19:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-15  9:47 Building format with TeX [and Omega] Behnam Tabatabai
2000-09-15 10:19 ` Hans Hagen
2000-09-15 17:52   ` Tobias Burnus
2000-09-16  4:48     ` Radhakrishnan C V
2000-09-16 21:08   ` Example for Persian Behnam Tabatabai
2000-09-17  4:00     ` Radhakrishnan C V
2000-09-17 21:44     ` Hans Hagen
2000-09-18 14:08 Behnam Tabatabai
2000-09-18 15:08 ` Hans Hagen
2000-09-18 19:56   ` Behnam Tabatabai

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