ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: zamri <zamri@sun1.ftsm.ukm.my>
Subject: context + omega + tetex 2.0 : success story
Date: Sat, 22 Feb 2003 05:07:32 +0800	[thread overview]
Message-ID: <7E78E258-45E0-11D7-8F21-000393D94AEC@sun1.ftsm.ukm.my> (raw)

hello all,

after on-and-off effort, I finally get context + omega working. The 
result is impressive. hat off to hans and idris samawi for their 
effort. omega is a tex version that support utf-8 input. it can be used 
to typeset arabic. here are some of the things I discovers that might 
be useful to others;

my system: context 2003.1.31 omega 1.23.2.1 tetex 2.0

1. using the command
	
  	 texexec --make --alone --tex=omega en

    fail. you need to recompile omega.  get tetex-src-2.0.tar.gz.  I am 
not a programmer, but know enough to hack bit and pieces. also, I 
cannot assure whether it safe or not. but, it works. do the usual 
./configure and make stuff.

After finish, make changes to  omegad.h;

	#define infmaxstrings ( 800000L )
	#define supmaxstrings ( 900000L )
	#define infmainmemory ( 8000000L )

recompile omega. this is the tricky part. the command I use;
(the proper way to make changes is in the .ch files, but I have no idea 
what to change)

gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omegaini.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omega0.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omega1.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omega2.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omegaextra.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omega.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omegabis.c
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./..   -g -O2  -c omega3.c
./../klibtool link gcc -o omega   omegaini.o omega0.o omega1.o omega2.o 
omegaextra.o omega.o omegabis.o omega3.o  lib/lib.a 
../kpathsea/libkpathsea.la -lm
gcc -o omega omegaini.o omega0.o omega1.o omega2.o omegaextra.o omega.o 
omegabis.o omega3.o lib/lib.a ../kpathsea/STATIC/libkpathsea.a -lm

2. cp this 'omega' to 'bigomega' or whatever you like.
3.  do
	texexec --make --alone --tex=bigomega en
4. you will get cont-en.oft. cp 'cont-en.oft' to 'bigomega.oft'
5. move the .oft format to the usual place. run 'texhash'
6. test.
	bigomega omtest.tex
	(* omtest.tex is from gamma.zip from idris )

	or this simple file
	====== test.tex=======
	\usemodule[gamma]
	\starttext
	\startarab
	A b t
	\section{\arab{A b t }}

	\stoparab
	\stoptext
6. you get test.dvi, do this to get pdf.
	odvisp -V -o test.ps test.dvi
	ps2pdf test.ps

I am sure some of the steps can be simplified or corrected by the 
experts. I think you need to rename the new omega to avoid clash with 
the original omega.

again, thanks to hans and idris.
zamri

             reply	other threads:[~2003-02-21 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 21:07 zamri [this message]
2003-02-27 16:58 ` Idris S Hamid
2003-03-06 13:08   ` Hans Hagen

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=7E78E258-45E0-11D7-8F21-000393D94AEC@sun1.ftsm.ukm.my \
    --to=zamri@sun1.ftsm.ukm.my \
    --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).