Changes

Jump to navigation Jump to search
564 bytes added ,  12:50, 7 June 2020
m
no edit summary
by Prof. [[User:Ishamid|Idris Samawi Hamid]]
< [[Aleph]] | [[Arabian and Hebrew]] >__TOC__
==Introduction==
* Some configuration points:
** Make sure you have the following line in <tt>texexec.ini</tt> set to "true":<texcode>set UseEnginePath to true</texcode>
** In <tt>texmf-local\web2c\texmf.cnf</tt>, <tt>texmf-local\web2c\context.cnf</tt>, and <tt>texmf\web2c\texmf.cnf</tt>comment this out the following line as follows <texcode> %extra_mem_bot.context = 2000000</texcode>
otherwise Aleph will crash under some conditions, like overfull boxes and the like...<br>The [[XeTeX]] developer found the source to this bug, and a fix; hopefully [[User:Oblomov|Giuseppe]] will get to it :-))
* Get the omega support files [http://wwwftp.ctancvut.orgcz/get?fn=tex-archive/obsolete/systems/win32/fptex/0.7/package/omega.zip omega.zip] and [http://wwwftp.ctancvut.orgcz/tex-archive/get?fn=obsolete/systems/win32/fptex/0.7/package/omegafonts.zip omegafonts.zip].
* Get rid of two directories from omega.zip (not really necessary but if you want to be efficient): <tt>texmf/eomega</tt> and <tt>texmf/omega/encodings</tt>
* Put support files in <tt>texmf-local</tt>.
* Replace the default uni2cuni.ocp and uni2cuni.otp with this one: [[Media:Uni2cuni.zip]] This contains two ocp's: uni2cuni.ocp and uni2cuni-math.ocp. uni2cuni-math is the equicalent of the old omega uni2cuni.
This makes r-l numeral labels with separators easier to handle. Always use something like $<numeral>$ or ${\tf <numeral>}$ for mathematics and decimal points. $<numeral>$ uses the default math font; ${\tf <numeral>}$ uses the digits from the main text font.
* Compile the Aleph format: <texcode>mktexlsr<br>texexec --make en -tex=aleph</texcode>
* Here is a test file. Note the preamble
</texcode>
* For Arabic script you will probably want to use an [[Encodings_and_RegimesEncodings and Regimes - Old Content|encoding]] that supports direct Arabic-script editing. There are three: utf-8, iso-8859-6 (Apple/Unix), and cp1256 (Microsoft). We can define the following, using ConTeXt macros for managing filter sequences. Maybe I will add these to [[source:m-gamma-tex|m-gamma]] and ask [[User:Hagen|Hans]] to distribute. In the meantime, here are some definitions, samples of all three encodings, and an example of mixed lr-rl text:
===m-arabic-enc.tex===
==Going beyond==
* [[ImageFile:utilitiesUtilities-aleph.zip|utilities-aleph.zip]]
The last example shows how to make and apply your own filter sequences beyond the basic Gamma module. To go further you need to learn some low-level business. You will also need some [[MediaFile:utilitiesUtilities-aleph.zip|working utilities]]. I have put together a windows package that you can unzip to <tt>C:\ConTeXt</tt>. These utilities do work, but they are cobbled together from old fpTeX and MiKTeX versions.
===Example: If you want to get the final Persian kaaf instead of the default Arabic one===
* Make a pfb file containing the glyphs you need, or use an existing font
* Make a cfg file a la <tt>texmf\omega\lambda\misc\omlgc.cfg</tt>. Make sure you list your glyph positions in hexadecimal notation.
* Get <tt>makeovp.pl</tt> from the utilities. I made some small changes, <tt>makeovp2.pl</tt>. Try them both and use what works for you. There is a SH file with a sample of its use using omlgc.
* Following are instructions for cooking omarab.ovf.
** You want your own ovf, say, omlgcch.ovf.
* The otp language is a bit cryptic. Hans has suggested switching otp's to a new language (like lua or io) but I don't know how hard that will be...
* One very important feature which may work better at the primitive/engine level by extending the pdfeTeX engine: glyph substitution that depends on the paragraph. For example: In traditional Arabic typography, one way to compensate for "underfull" paragraphs is to substitute a "swash" version of a letter. Another way is by stretching the cursive tie between joining characters (which is already implemented in my own Arabic system). Combined with HZ we can get some pretty interesting high-level options, effects, etc. that the user can choose etc.
 
[[Category:Old_Content]]

Navigation menu