there is a thread a while back about this from R. Elmers. search
contextgarden.net for detail.
I am using context 2005.31.1 and arabtex 3.11m on MacOSX , bas-ed on gwTeX.
I did play around this and found a few interesting things. The result
is simply wonderful. \placecontent and \section can appear in arabic!
1) I rename font-arb.tex to m-arabtex.tex and \usemodule[arabtex]. it
works. ( as to why it works and was it OK to do it, I cannot explain )
2) need to add at top of document , ( probably any font definition )
font-arb.tex did mention something about font macro.
\usetypescript[postscript]
\switchtotypeface[postscript]
if you did not, the body text will appear in \em .
3) there is some spurious arabic text, align left. I believe there is
bug in \startarabic ... \stoparabic code.
my request;
can Hans look over font-arb.tex, see if there need some
updating/changes. It was written way back in 1999. can font-arb be
turn into a module?
My reason;
I am hoping to write a paper using jawi script, which is supported by
arabtex. I am aware of omega, aleph + context , xetex. but,
unfortunately, these 3 doesn't have the necessary jawi glyph.
with a bit of polishing, it believe arabext and context would be a
great tool for me.
many thanks in advance.
minimal test file below
=============== test.tex ===========================
\usemodule[arabtex]
\usetypescript[postscript]
\switchtotypeface[postscript]
% without this lines, body font appear in \em
\setarab % \<..> will not work if we skip this
\novocalize
\starttext
\placecontent
\section{\
mohd zamri murah wrote:
1) I rename font-arb.tex to m-arabtex.tex and \usemodule[arabtex]. it works. ( as to why it works and was it OK to do it, I cannot explain )
I wonder too since you exceed the 8 char limit of module names (i will remove trat restriction in the next version of context); so i tested your file with % \input m-arabtex \input font-arb
2) need to add at top of document , ( probably any font definition ) font-arb.tex did mention something about font macro. \usetypescript[postscript] \switchtotypeface[postscript]
if you did not, the body text will appear in \em .
making it a module will get around this font switch (originally it was thought that arabtex would be used for arab docs, but it's also used for mixed docs, so a module more in sync with greek and chinese
3) there is some spurious arabic text, align left. I believe there is bug in \startarabic ... \stoparabic code.
i'll send you another version (i can't read arab so i dunny what is spurious or not)
can Hans look over font-arb.tex, see if there need some updating/changes. It was written way back in 1999. can font-arb be turn into a module?
sure Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
testing and result.
========== test.tex ====================================
\input font-arb % the new font-arb you send me
\starttext
\setarab
\novocalize % normal arab document doesn't have the vocal signs.
Some texts in arab. some random thought. here are some arabic words.
\<bwkw pndwAn>. Below some arabic word with english word. We can
combine them in one paragraph. % \<..> will produce line beyond the
margin. use for short arabic only.
\startarabic
kAjyn ayn mmr.hAl sAtw prwtwtA'yp awntwq mnjAnkn dwkwmn jAwy dry
dwkwmn rwmy <some english words> . ay mggwnAkn kwnsyp pgatwrcArA'n
brAsAskn kwmpwnwn . ay mggwnAkn kwnsyp pgatwrcArA'n brAsAskn kwmpwnwn.
\stoparabic
\stoptext
===============================================
1) it fail with log;
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour;
mag:=1; nonstopmode;
input ArabicItalic
This is METAFONT, Version 2.71828 (Web2C 7.5.3)
kpathsea: Running mktexmf ArabicItalic
! I can't find file ArabicItalic'.
solution;
add these to font-arb.tex near line 213.
\definefontsynonym [ArabicItalic] [xnsh14]
% nash14 doesn't have italic. the error probably at line 43.
\font\arbfont=\truefontname{Arabic#1} at \currentfontscale\scratchdimen
2) the body text in english such as "some text ..." appear in \em.
solution: add these to top of file test.tex.
\usetypescript[postscript]
\switchtotypescript[postscript]
3) the symbol "|" and "~" is broken in arabic mode.
code "\
mohd zamri murah wrote:
1) I rename font-arb.tex to m-arabtex.tex and \usemodule[arabtex]. it works. ( as to why it works and was it OK to do it, I cannot explain )
I wonder too since you exceed the 8 char limit of module names (i will remove trat restriction in the next version of context); so i tested your file with
% \input m-arabtex \input font-arb
2) need to add at top of document , ( probably any font definition ) font-arb.tex did mention something about font macro. \usetypescript[postscript] \switchtotypeface[postscript]
if you did not, the body text will appear in \em .
making it a module will get around this font switch (originally it was thought that arabtex would be used for arab docs, but it's also used for mixed docs, so a module more in sync with greek and chinese
3) there is some spurious arabic text, align left. I believe there is bug in \startarabic ... \stoparabic code.
i'll send you another version (i can't read arab so i dunny what is spurious or not)
can Hans look over font-arb.tex, see if there need some updating/changes. It was written way back in 1999. can font-arb be turn into a module?
sure
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
mohd zamri murah wrote:
testing and result.
========== test.tex ==================================== \input font-arb % the new font-arb you send me \starttext
\setarab \novocalize % normal arab document doesn't have the vocal signs.
Some texts in arab. some random thought. here are some arabic words. \<bwkw pndwAn>. Below some arabic word with english word. We can combine them in one paragraph. % \<..> will produce line beyond the margin. use for short arabic only.
\startarabic
kAjyn ayn mmr.hAl sAtw prwtwtA'yp awntwq mnjAnkn dwkwmn jAwy dry dwkwmn rwmy <some english words> . ay mggwnAkn kwnsyp pgatwrcArA'n brAsAskn kwmpwnwn . ay mggwnAkn kwnsyp pgatwrcArA'n brAsAskn kwmpwnwn.
\stoparabic
\stoptext
with the attached file and \input m-arabtex (attached) it works here, (tex live 2005 fonts/arabtex) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
h h extern
-
Hans Hagen
-
mohd zamri murah