Re: [NTG-context] seeking 'hello world' example for Arabic typesetting with conTeXt

2010-12-01 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Wed, 01 Dec 2010 02:48:13 -0700, luigi scarso luigi.sca...@gmail.com  
wrote:



2010/11/30 Idris Samawi Hamid ادريس   سماوي حامد isha...@colostate.edu:

What we need is for new users to be able to say, eg,

\setmainlanguage[arabic]
\setupdirections[bidi=global] % maybe this should be implied by
\setmainlanguage[arabic]

\starttext
أهلا بالعالم!
\stoptext

And get Scheharezade without doing anything else.

Maybe we can put the fonts as an extra module .


Why a seperate module? It's an Open Font License. Why add unnecessary  
extra work for users, especially new ones?


Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shiʿi Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] seeking 'hello world' example for Arabic typesetting with conTeXt

2010-11-29 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Mon, 29 Nov 2010 11:03:06 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



I've to dig for it, I'm sure it is there somewhere. However, I've long
abandoned the idea of improving Scheherezade and instead concentrating
on my own (Amiri) font, but it does not work with MkIV right now (and
vowel marks are half done), so it is not a replacement yet. I do plan
for a simplified version of Amiri that would fulfil the original goal of
the modified Scheherezade font (and also developed in a way that works
with most of the current broken OpenType implementations, unlike the
current Amiri) and that one would be suitable as a default font, but
this is months away at best.


OK: In that case, let's include the standard Scheharezade as is in the  
minimals until another unicode-complete font comes along. It has an Open  
Font License so should be no problem.


Miojca: Till then, where do you suggest placing Scheharezade in the tree?

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shiʿi Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 10+ reasons why I still use MKII

2010-05-13 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Thu, 13 May 2010 10:00:01 -0500, Hans Hagen pra...@wxs.nl wrote:


On 13-5-2010 4:32, Khaled Hosny wrote:

On Thu, May 13, 2010 at 04:16:12PM +0200, Hans Hagen wrote:

On 13-5-2010 3:42, Mojca Miklavec wrote:


\startyoumayignorethis
The only thing that really bothers me are so much different vertical
differences which show up in almost every document I ever write. MKIV
consistently takes more vertical space, so no matter what document I
try to recompile, it always ends up with more pages (and some weird
page breaks) when processing it with MKIV.


\startcantresistmode

the lineheight relates to the ex height and as in mkiv we don't have
the tfm limitations (those 16 values of ht dp) we have slightly
different spacing


Something I find very annoying is variable interline spacing, if I've,
for example, a line with some Arabic words vocalized I get some times
too much white space above it that it almost looks like an empty line.
It makes the page look like crap. Is there a way to force fixed
interline spacing?


Can you give an example?

turn turn grid on .. but even then, we need some nice heuristic for  
determing the right ht/dp ratio for arabic (can be set up)


I have some nice texts that illustrate a standard balance, but I'd like to  
see what Khaled has in mind exactly before I comment further...


Peace
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] wikipedians: kind request

2010-05-13 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Thu, 13 May 2010 14:19:52 -0500, Mojca Miklavec  
mojca.miklavec.li...@gmail.com wrote:



http://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Hans_Hagen
http://en.wikipedia.org/wiki/Wikipedia:Articles_for_deletion/Taco_Hoekwater


Don't these people have a life at all? What a bunch of puny trolls

Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 10+ reasons why I still use MKII

2010-05-13 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Thu, 13 May 2010 15:06:09 -0500, Khaled Hosny khaledho...@eglug.org
wrote:


Something I find very annoying is variable interline spacing, if I've,
for example, a line with some Arabic words vocalized I get some times
too much white space above it that it almost looks like an empty line.
It makes the page look like crap. Is there a way to force fixed
interline spacing?

Can you give an example?

turn turn grid on .. but even then, we need some nice heuristic
for determing the right ht/dp ratio for arabic (can be set up)

I have some nice texts that illustrate a standard balance, but I'd
like to see what Khaled has in mind exactly before I comment
further...

Nothing special, I always expect interline space to be fixed, I don't
know if TeX always make interline spacing variable, but this wasn't an
issue with English text. However, with Arabic, Tashkil marks seems to
always cause a noticeable extra whitespace above the line.
See the uneven distribution of vertical whitespace in this example (it
can be even worse than this in reality):
\usemodule[simplefonts]
\setmainfont[Arabic Typesetting][features=arabic]
\starttext
\pardir TRT\textdir TRT
\dorecurse{10}{\dorecurse{20}{نص عربي } نَصُّ مُشكَّل \dorecurse{20}{نص  
عربي}}

\stoptext


I used to find this annoying years ago but today I look at it as a good
feature. In your \definebodyfontenvironment you just have to define a good
interlinespace. Presumably the one picked up from the font by luatex is
not high enough.

In my journal, I used to use \struttedbox's (or something similarly named)
to suppress this when mixing english and arabic...

Professionally mixed latin-arabic texts often adjust the interline
spacing, especially when arabic is introduced into latin paragraphs. This
is almost unavoidable since making arabic-script readable and matchable to
latin involves a larger relative size for aesthetic optics.

Sometimes forcing will look nice, but even then one probably has to add a
bit of interlinespace to the latin font to get the right balance. That is,
a latin document that uses a LOT of interparagraph arabic will want a bit
extra interlinespace to begin with, so that forcing will generally give
good results.

Best wishes
Idris


--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Typographical Engineering in Context

2010-04-12 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Sun, 11 Apr 2010 02:40:29 -0600, Otared Kavian ota...@gmail.com wrote:


On 3 avr. 2010, at 19:00, Idris Samawi Hamid ادريس سماوي حامد wrote:

News flash: it's already there! See attached.



Hi Idriss,

That's wonderful!


:-)


Could you please tell us what font you have used


It's very experimental at the moment, but I hope to have a release by the  
end of this year or earlier ... still working on the details of how to  
release it etc...


and give us the font features turned on to get that kind of coloring and  
« kashide »?


Those are not font features, but rather a goodies package by Hans that  
allows one to set glyphs for coloring.


The trick in this case is that I separate the main shapes from the dots in  
the font, otherwise this won't work with any other arabic font afaik.


Can you send an example ConTeXt file that produces what you sent as a  
png file?


It's part of a larger file, and somewhat useless as a sample for a moment,  
but I'll contact you offlist for some discussion about it if u're  
interested.


:-)

Peace
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What do you miss in ConTeXt?

2010-02-09 Thread Idris Samawi Hamid ادريس سماوي ح امد



Salaam, Khaled,

On Tue, 09 Feb 2010 11:44:55 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



IIRC, I reported all of that months ago but I usually get no answer.


Are you sure about that? A quick check shows answers...eg

http://archive.contextgarden.net/message/20080816.075921.0f92a2d3.en.html

In any case: Can you provide minimal samples of problems with the current  
mechanism? I have a bidi test-suite that I will revisit but some sample  
files from you will help too.


One sample-per-problem would be a help.

:-) :-)

سلام
Idris

PS Some of these problems have been on the backburner but there is already  
a TON of other things on the plate so ... I use formatting characters +  
mirroring in the meantime ...


I

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Offtopic: a gift for Luigi

2009-09-05 Thread Idris Samawi Hamid ادريس سماوي ح امد

Dear gang,

Here is a gift for our favorite off-topic expert:

Typography Fans Say Ikea Should Stick to Furniture
http://www.nytimes.com/2009/09/05/arts/design/05ikea.html?hp

Hans, you have to replace all your IKEA furniture now...

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: [XeTeX] List of free Unicode fonts

2009-08-29 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 29 Aug 2009 12:40:49 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:



Am 29.08.2009 um 20:06 schrieb Derek CORDEIRO:

On Sat, Aug 29, 2009 at 5:06 PM, Mohamed Bana  
mbana.li...@googlemail.comwrote:


i had no idea that the free ver. of minion pro came with small caps an  
od

st nums.


I don't think its really free. If you download, you will be told so:
*Note:* The Font Pack software contained in this package is being  
licensed
to you solely for use with Adobe® Reader® software (Adobe Reader) and  
is

subject to the terms and conditions of the electronic End-User License
Agreement accompanying your version Adobe Reader.


The question wether you can use the fonts with other programs than Adobe  
Reader
was asked a few times in different lists and the only useful answer i  
found is
the following:  
http://www.typeforum.de/modules.php?op=modloadname=Newsfile=articlethold=-1mode=flatorder=0sid=259


Err, can you provide at least a 1-sentence summary in English?

:-)

IANAL, but TeX users will mostly be using the font only with Adobe  
Reader/Acrobat anyway. So as long as you don't use gs or xpdf :D


[What a nonsensical rule, I doubt it's enforceable]

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Intro to Luatex

2009-08-29 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 29 Aug 2009 15:35:33 -0600, John Culleton j...@wexfordpress.com  
wrote:



Luatex has a lot of features that Context doesn't. Where is the best
place to start learning about it?


Category mistake: luatex is an engine, like pdftex and xetex :-)

luatex is one of three official engines that context can use:

MkII: pdftex,xetex
MkIV: luatex

MkII is frozen afaik: MkIV is the main development branch. Eventually MkIV  
will _be_ Context for all practical purposes.


The most obvious thing MkIV gives you at the moment is advanced control of  
OpenType fonts. For developers, lua provides advanced scripting and  
extensibility. see also


http://wiki.contextgarden.net/Mark_IV
http://www.pragma-ade.com/general/manuals/mk.pdf

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Footnotes and body text

2009-08-26 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 26 Aug 2009 07:26:31 -0600, Vyatcheslav Yatskovsky  
yatskov...@gmail.com wrote:



Hello,

Looks like my previous message was overlooked. Let mecry again.

  ^^^
= try

That's what we call a Freudian slip in English ;-)



In my document footnotes' upper line clashes with body text. In result,
last line of body text looks

underlined.

Please, take a look at the attachment.


I've run into this before. Play with

\setupfootnotes[before=\vskip1ex]

Although I suppose may be a bug in mkiv, since this spacing should be  
automatic.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد

Wolfgang answered your main question, so that leaves

On Tue, 11 Aug 2009 09:41:26 -0600, U Avalos amscopub-m...@yahoo.com  
wrote:



How can I get a question answered on this list, BTW?


Very simple: politely send the question a second time if you don't get a  
response. I've had to do that many times myself in the past, no one is  
priveleged here...



It seems that no
one either knows anything or are too busy for simple questions.


People are busy, and no one necessarily reads every single mail. It is a  
busy list after all. But see above.



FYI, devs, this language is going to die if you don't get more users


Who says we don't get more users?

Best wishes

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 11 Aug 2009 11:13:02 -0600, Stéphane Goujet  
stephane.gou...@wanadoo.fr wrote:



Simple questions from end-users
are barely answered while questions from developpers/people with
experience are generaly answered and generate rather long threads.


This is simply not true AFAICT. I've been around for years and my  
questions were not always answered immediately or on a first try. And I've  
seen newbies whose questions generated very long answers/threads.


If you don't get an immediate/timely answer, politely post a second or  
even third time if necessary. As I said earlier, there are no privileged  
users on this list.


Key: politeness and persistence :-)

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change whitespace before item?

2009-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 11 Aug 2009 11:13:02 -0600, Stéphane Goujet  
stephane.gou...@wanadoo.fr wrote:



  I have tried posting questions once or twice and I never got a single
answer. The result is that, now, I do not post them here any more.


Just try again and don't take it personally. That's what I've done for  
years. As a last resort, write Hans, Taco or whoever is most relevant to  
your question directly and say, I've posted this to the list a couple of  
times and have not goten an answer yet. Could you take a look?


Key: politeness and persistence :-)

The developers are very busy, well, developing. Be patient with them.



  The flow of development/high level messages (that I do not
understand) is important, too important for me to see and possibly try
to answer most end-users questions. Perhaps it would be time to split
this mailing-list in 2 parts, one really for users and the other for
developpers, beta testers, package programmers, etc.


That has already been done ;-) But understand that ConTeXt is a HUGE  
system, and hardly anyone understands it all.



  Of course, the drawback of doing this is that the gurus will not be
interested in following the users' list and will be kept busy with other
lists, so they will not be present to enlighten beginners.


In my experience this is simply not the case. One could create at least  
one book out of, say, Wolfgang's answers to newbies and users in general  
[actually, that might not be such a bad idea].


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] RTF to ConTeXt

2009-06-26 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 24 Jun 2009 03:30:02 -0600, Cecil Westerhof  
cldwester...@gmail.com wrote:



I have a RTF document I like to convert to a ConTeXt document. Are
there tools for this?

I would also like the other way around, but I understood that this is
only possible through ConTeXt - PDF - RTF, or has the situation
changed.


step 1:  odt2txt.py
step 2: pandoc

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Aditya,

On Thu, 18 Jun 2009 02:03:44 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



The math fonts compatible with Palatino are px math and math paza ConTeXt
only has support for px math.


ok, good to know... [I rarely use math these past few years]


[Hint:
it's not LM] I had to roll my own typescript so what I need to fill in  
is the

commented line below

\definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] %  
[pagella_arabic]

% \definetypeface [pagella_ar] [mm] [math]  [palatino]   [default]

Uncommenting the above gives me an incomplete math font



Currently, no math font in mkiv is complete. Which specific glyphs are
missing for you?


\alpha


The easiest opiton is to use asana math, which is an otf math font based
on px fonts.

\starttypescript [math] [asana] [name]
 \definefontsynonym [MathRoman] [name:Asana-Math]  
[features=math\mathsizesuffix]

\stoptypescript

and then

\definetypeface [pagella_ar] [mm] [math]  [asana]   [default]


LuaTeX warning (file  
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2  
Charstring Parser: Unknown charstring operator: 0x00


!LuaTeX error (file  
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2  
Charstring Parser: Parsing charstring failed: (status=-1, stack=0)

 == Fatal error occurred, no output PDF file produced!

Have any of you run into this before?

If this is a showstopper, then a fallback will have to do. Have any of you  
made fallbacks for math fonts? Are there any subtleties compared to  
regular fonts? What is the unicode slot for math \alpha?



that does not look good. Any ideas on getting this right?


I also find px math ugly (although I did use it for my thesis). math pazo
is not much better, it uses most of the symbols from cm. There is a
commerical math from micropress that is supposed to be compatible with
palatino, but I have never used it myself.


Is there an otf euler option?


No. Also keep in mind that euler is no where close to being a complete
math font. Mkii used a virtual font that took missing symbols from px
math and cm.

I have a local half baked support for Euler, which uses missing symbols
from iwona. I can send the patch if you want to experiment with it.


Thanks! time is very short, although I like Euler and think it would work  
for palatino... maybe we need to get the gyre people on it for the  
future:-)


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 18 Jun 2009 02:03:44 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



What is the best available math font for use with Pagella/Palatino?


The math fonts compatible with Palatino are px math and math paza ConTeXt
only has support for px math.


Turns out that cambria is preset in mkiv and works, so I'll use that for  
now. I filed a report about the asana error so hopefully that will be  
solved as well.


[I use math so little I had completely forgotten about cambria].

Thanks, Aditya!

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math and palatino

2009-06-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 18 Jun 2009 10:06:07 -0600, Aditya Mahajan adit...@umich.edu  
wrote:



LuaTeX warning (file
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2
Charstring Parser: Unknown charstring operator: 0x00

!LuaTeX error (file
C:/ConTeXt/tex/texmf-project/fonts/data/asana/Asana-Math.otf): Type2
Charstring Parser: Parsing charstring failed: (status=-1, stack=0)
== Fatal error occurred, no output PDF file produced!

Have any of you run into this before?


No. I am using the minimals from 2009.05.26, and asana math works fine.
Are you using the latest version of the font from
http://openfontlibrary.org/media/files/asyropoulos/219


seems the same date as

http://www.ctan.org/get/fonts/Asana-Math/Asana-Math.otf

+

This is LuaTeX, Version beta-0.41.0-2009061016

I reported this to Taco so we'll see what he says...

If this is a showstopper, then a fallback will have to do. Have any of  
you
made fallbacks for math fonts? Are there any subtleties compared to  
regular

fonts? What is the unicode slot for math \alpha?


Basic greek should work in math. I cannot get the latest minimals right
now (slow internet connection), but px math and lm math use the same code
to generate virtual fonts, so px math should work in the latest minimals.


Using the predefined

[mm] [math] [palatino]

You can test these formulas in px-math:

\starttext
\startformula
Y=AK^{\alpha{}}L^{1-\alpha{}} \eqno(1)
\stopformula

\startformula
y-l=a+\alpha(k-l) \eqno(2)
\stopformula

\startformula
a = (y-l) - \alpha{} (k-l) \eqno(3)
\stopformula

\startformula
A = (3-7)-(0.3) (5-3) = 3.4
\stopformula

\alpha{}
\stoptext

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] math and palatino

2009-06-17 Thread Idris Samawi Hamid ادريس سماوي ح امد

Dear gang,
[mkiv only]

What is the best available math font for use with Pagella/Palatino? [Hint:  
it's not LM] I had to roll my own typescript so what I need to fill in is  
the commented line below


\definetypeface [pagella_ar] [rm] [serif] [pagella_arabic] %  
[pagella_arabic]

% \definetypeface [pagella_ar] [mm] [math]  [palatino]   [default]

Uncommenting the above gives me an incomplete math font that does not look  
good. Any ideas on getting this right? Is there an otf euler option?


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] structure bugs: \nomarking

2009-06-15 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi,

As we discussed, I'm submitting structure bugs as we move along to get  
this manuscript to the publisher. \nomarking fails:


! Undefined control sequence.
\@@mklimittext -\@@kolimittext

\doifelse #1#2-\edef \!!stringa {#1
}\edef \!!stringb {#2}\ifx \!!stringa  
\!...

\splitsequence #1#2-\doifelse {#1}\v!no
 {#2}{\doifelse {#1}\v!yes  
{\languag...

l.1 ...\nomarking {it extends way past the margin}

\sectionheadmarkingtitle ...arks.title(#1,#2)}

\fetchmark ...sname \??mk \??mk #3\endcsname {#1}}
  \fi \fi
...
l.5

?

test file attached

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

test-marking.tex
Description: TeX document
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] stand-alone ConTeXt

2009-06-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 11 Jun 2009 09:05:07 -0600, Kevin D. Robbins  
krobb...@alumni.princeton.edu wrote:


Good news! I just wanted to say that including Scite with ConTeXt  
support in minimals as an option will be very helpful to me, because I  
need to support users who only work on Windows and are not really  
comfortable using only a command line interface. I'll be happy to test  
this option.


If you want something really comfortable for Windows users, try the  
Notepad++ setup:


http://wiki.contextgarden.net/Image:Npp_ConTeXt-Uni.zip

I don't have Vista, which uses a different dir structure for the files,  
but you can easily adopt this as needed.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MS Word/HTML examples needed

2009-06-10 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi,

On Wed, 10 Jun 2009 15:21:00 -0600, Vyatcheslav Yatskovsky  
yatskov...@gmail.com wrote:



Hello,

Seems that my GUI-based Word-to-Text converter didn't gain much  
attention, but that's OK.


Sorry, I did not catch that post earlier... but I'm very interested  
indeed! My minimal needs involve entire documents with footnotes,  
basically the current features of odt2txt:


http://www.freewisdom.org/projects/python-markdown/odt2txt

Unfortunately that script is a bit buggy... but a reliable word2context  
script with just those features alone would be a boon.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font features

2009-05-15 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 15 May 2009 00:21:58 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:



\definefontfeature[onum][default][onum=yes]


What is the second option for?

\definefontfeature[onum][onum=yes] should work as well.

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What happened with sectionworld?

2009-04-29 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Wolfgang,

On Wed, 29 Apr 2009 06:54:50 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:



Anyway: which is the best method to get the list of all params
one can give to \startSOMETHING  (in this case \startchapter and
the meanings of this params (some are obvious : title= ..., but not  
all).


http://pragma-ade.nl/show-man-10.htm


I did not see the ne sectioning there... Anyway

\startchapter[title=,reference=,bookmark=,...][optional user data]

Could you [or someone] give a couple of example of how to use

[optional user data]

Also, where in the base files does this stuff get defined? I could not  
find it.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What happened with sectionworld?

2009-04-29 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 29 Apr 2009 12:14:38 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:



\startchapter[title=,reference=,bookmark=,...][optional user data]

Could you [or someone] give a couple of example of how to use

[optional user data]

Also, where in the base files does this stuff get defined? I could not  
find it.


strc-sec.tex

start/stop commands are created with \definehead automatically


ok, thnx! OTOH, I did not see any illustrative examples of the use of
[optional user data]

:-)

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What happened with sectionworld?

2009-04-29 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 29 Apr 2009 12:31:27 -0600, Wolfgang Schuster  
schuster.wolfg...@googlemail.com wrote:




Am 29.04.2009 um 20:23 schrieb Idris Samawi Hamid ادريس سماوي حامد:


ok, thnx! OTOH, I did not see any illustrative examples of the use of
[optional user data]


\setuphead[title][align=middle,command=\TitleCommand]

\define[2]\TitleCommand
   {\startframedtext[frame=off,width=\hsize,align=middle]
#2\hairline
\structureuservalue{author}\hfill\structureuservalue{date}
\stopframedtext}

\starttext

\startchapter[title={How to make Idris happy?},reference={sec:happy}] 
[author={Wolfgang Schuster},date=\currentdate]


It's not as hard you think, just show him a few nice things and he is  
happy.


See \in{section}[sec:happy] at \at{page}[sec:happy].

\stopchapter

\stoptext

Are you now happy?


Indeed I am :D

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Producing dvi

2009-04-19 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sun, 19 Apr 2009 07:39:58 -0600, Michail Vidiassov mas...@iaas.msu.ru  
wrote:



If mkiv does not produce dvi (now? never will? not intended to?),
what about mkii?


sure, mkii can produce dvi for several drivers


And what about the first part of the question?


mkiv does not now, probably never will, and is not intended, to support  
dvi ;-)


dvi is considered obsolete. Maybe newer technologies like xps -- which  
claims better integration with opentype etc -- will be supported sometime  
down the road... no time soon.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arabic protrosion

2009-04-06 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Mon, 06 Apr 2009 00:40:12 -0600, Khaled Hosny khaledho...@eglug.org  
wrote:



The attached patch adds Arabic coma, semicolon, full stop (used in Urdu)
and question mark to font-ext.lua for protrusion.
Now, combined with glyph expansion, I don't get any overfull boxes.


Arabic-script microtypography is one of the cornerstones of the Oriental  
TeX project. We've been studying this matter for some time now:


Because of

a) the normal wide spacing around Arabic punctuation, and

b) the large size of Arabic punctuation relative to Latin,

I'm not sure that protrusion of Arabic-script punctuation is a good idea.  
It needs a lot of thought, and a lot of testing, before adding it to the  
system. As for glyph expansion, I don't see how that works at all with the  
current model, except perhaps with very horizontal fonts. But in that case  
all that's needed is smart tatweel, not glyph expansion. For hq fonts the  
current glyph expansion model will mess up the contextual connections.


Although one can certainly do things with the current model of protrusion  
and hz, we need more, much more. Khaled, send me some tests off-list and  
I'll examine them in light of the overall analysis as we prepare for  
adding Arabic microtypography support, hopefully pretty soon. Thanks  
plenty for the contributions, and


سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug with Adobe Arabic font kerning

2009-04-05 Thread Idris Samawi Hamid ادريس سماوي ح امد

On Sun, 05 Apr 2009 15:24:36 -0600, Hans Hagen pra...@wxs.nl wrote:


Khaled Hosny wrote:
The font seems to have a buggy (too big) GPOS kerning table (it does  
cause
fontforge to hang writing the font). If 'kern' is set to 'yes', I get  
this

error:
 ...text/tex/texmf-context/tex/context/base/node-inj.lua:62:
attempt to index local 'kb' (a nil value)
 I had to put if..then around that line to suppress the error, may be
some checks are needed for such broken fonts.


i don't get that error (might be catched already in my version) but  
indeed the font has weird kerning


The VOLT sources for Adobe Arabic are freely available:

http://blogs.adobe.com/typblography/2007/06/adobe_arabic_sa.html

Looking at the kerning, it appears at first glance to be contextual single  
adjustment kerning that's messing things up. Will make some test files  
this week sigh. Basically, Single Adjustment uses the advance width  
parameter alone, with dx/dy=0. This should move the right sidebearing of  
an initial arabic char to the right while leaving the left one alone. In  
pair adjustment Arabic kerning generally sets dx=c=width. mkiv supports  
the latter but not the former. I'll continue this discussion with Hans off  
list. It's a weird font -- all due respect to Tim Halloway the designer  
*** -- but very complete in many ways. A good test case for mkiv.


Best wishes
Idris

*** Arabic Palatino by Zapf looks really weird too.

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \framed (and others) don't honor directional switches

2009-04-03 Thread Idris Samawi Hamid ادريس سماوي ح امد

On Fri, 03 Apr 2009 15:08:48 -0600, Hans Hagen pra...@wxs.nl wrote:


you can comment this in cont-new.mkiv
 % \def\pagedir{\expandafter\gobblethreearguments}
% \def\bodydir{\expandafter\gobblethreearguments}
 i'm trying to figure out what dirs make sense (even when all are  
enabled the alignment is no 100% ok; for instance, why should bodydir  
influence textdir and pardir (i.e. when i would expect the content to be  
rl independent of page/bodydir
 (we need some higher level interface and not these low level *dir  
commands)


Indeed. We may also need Taco's help; he's about the only one I know who  
precisely understands the distinction between \pardir and \bodydir. I did  
some extensive testing on this nearly two years ago and could hardly make  
sense of it. The user should never have to touch \pardir or \bodydir and  
we need a higher level command. Not sure if the same will work at the  
macro level.


I'll search for Taco's old detailed explanations of these two and forward  
them to you and Khalid.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Affiliation change

2009-04-02 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 02 Apr 2009 01:40:26 -0600, Taco Hoekwater t...@elvenkind.com  
wrote:



As Arthur emailed me already: you people are just too gullible ! :)


Actually, I guessed that it was a joke in the first few minutes after  
receiving it .. It was a well-staged prank, but your talk of selling the  
bib module gave you away...


I was really surprised that Wolfgang fell for it...

:-)

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] more stretch

2009-03-31 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi,

On Mon, 30 Mar 2009 16:49:57 -0600, Vyatcheslav Yatskovsky  
yatskov...@gmail.com wrote:


How to instruct TeX to relax and allow more spacing between words (or  
more stretching?)


\setuptolerance .. options in the manual

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] recurse bug?

2009-03-30 Thread Idris Samawi Hamid ادريس سماوي ح امد

Dear gang,

The following, using the latest beta, moves the last recurse to the next  
page:


\setuplayout
  [lines=12]

\starttext \pardir TRT
\dorecurse{12}{This is a recursive line. \crlf}

\stoptext

so we get only 11 lines on page 1. Is this a bug?

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] substitutions: can i send this?

2009-03-28 Thread Idris Samawi Hamid ادريس سماوي ح امد

On Fri, 27 Mar 2009 06:05:03 -0600, Khaled Hosny khaledho...@eglug.org
wrote:


(I know this an old thread, but I just happen to exactly the same
feature Idris was asking for)

On Thu, Oct 09, 2008 at 12:53:47AM +0200, Mojca Miklavec wrote:

usage: ruby scriptname.rb  input.tex  output.tex

#!/usr/bin/env ruby

subs_hash = {
  Mohamed = Muḥammad,
  Idris = ادريس,
}

while line = STDIN.gets
  subs_hash.each do |key,value|
line.gsub!(Regexp.new(key), value)
  end
  puts line
end


Such approach has a major disadvantage, one have to take care of not
altering macros and tex commands or we may end with a broken document (I
have more general use case where the to be substituted strings can
occur in macros as well), and we know that only TeX can read TeX :)

I'm thinking in lua callback that get fed with text buffers in a similar
way to OTPs, so one can use regular expressions to pre-process the text
without messing with node list, think in code that replaces 2nd with
2\high{nd} etc. which would be very complex to be done at node list
level.


If it's not so complex, have you considered overloading font features with
fea files? Now that Adobe has (finally!) completed a major overhaul of the
spec, including the features neeeded for arabic, that's an option.

But for your more complex needs, see the m-translate module. Maybe that
can be developed further? Note that Hans has pointed out that this is NOT
a core module and that it is preferable to fix the source beforehand.

سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typescript repository

2009-03-24 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 24 Mar 2009 09:27:09 -0600, Bruce D'Arcus  
bdarcus.li...@gmail.com wrote:



c) that there's no reason at all to make a distinction between free
and professional fonts in such a repository


I absolutely agree with Bruce on this point :-)

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Pierre,

On Fri, 13 Mar 2009 08:51:31 -0600, Pierre Huyghebaert  
pie...@speculoos.com wrote:


Quite new in the TeX field, and having traveled a bit through LaTex and  
Xetex, I couln't figure how to make it work.


Given Mojca's comments, have you considered luatex/mkiv instead of xetex?  
That will give you working and supported higher-level control of opentype  
fonts etc etc. It sounds like you're willing to experiment, in which case  
mkiv might be worth spending some time with. I typeset an acedmic journal  
with it as well.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-25 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 24 Feb 2009 13:41:39 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



Not too bad a font. Like Lotus, it works best at smaller text sizes, not
greater than 12 point.

The فلله lig should be off by default, there are other Arabic word
combinations that use that combo that have nothing to do with الله.


I can't think in any other word on top of my head,


فَلَّلَهُ he notched or broke it in many places


but I'm fine with
making it a 'dlig' instead, it isn't very common any way.


sure


Next steps:

1. Can I add some fixes to this thing as well or would you like to keep
100% maintainance?

2. I can try to put in some time in the coming weeks to develop this  
into

a default setup for ConTeXt-mkiv -- per recent discussions -- or I can
leave that to you/Otared and just review the results. Just let me know
how you would like to proceed.


Of course you are welcomed, actually I won't have much free time till
the end of march, it'd be nice if you can work on it.


Ok, let's say whoever gets to it first in the next few days and weeks :-)

سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Mon, 23 Feb 2009 05:02:39 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



I'm not very fond if Scheherazade as it has many wrong glyphs (most of
the Quranic glyphs are completely wrong) and it doesn't even have an الله
ligature, which most Arabic users won't accept.


There is a hadith

لا يسقط الميسور بالمعسور

Scheherazade is certainly not perfect -- and I doubt I'll ever use it  
personally -- but it's the best freely available option we have. If I  
understand the license correctly, we can rename it and turn it into a  
project. You, Otared, and others are expressing the need for a standard,  
default interface, so let's start with this and build on it. If there is  
another pure opentype font that is better, let me know and I'll test it.


The key point is that SIL has taken care to support nearly every  
Arabic-script language, not just Arabic, so this gives us a platform that  
all Arabic-script users can use by default until other free fonts -- or a  
fork of Scheherazade -- become available.


BTW: There is an الله lig in Scheherazade -- rather unattractive, but it's  
there. Maybe you have an old version?



I was experimenting with
a modified version that fixes those issues, but I gave up since the font
lacks any contextual forms but the basic four ones and extending the
font the way it is designed proved to be cumbersome and very error
prone.


I'm not sure if the VOLT sources are available, although I used a  
font-to-volt script that seems to have captured nearly everything. I guess  
you use FF but no matter: Just make a list of problems and the minimal --  
as opposed to ideal -- set of recommended changes and one or both of us  
can work on this over the next few months.


I would also look at Lotus Light -- a simple/simplistic yet probably the  
most commonly used commercial traditional font in the Arabic and Farsi  
worlds -- as an ideal default font for general usage. Khaled, note that,  
although Lotus also has a few contextual forms, in practice it is  
generally used by publishers without them.


BTW: The above is solely for the purposes that Khaled and Otared are  
pointing out, viz, a default Very High Level Interface for default Arabic  
script, for use by the average user for general documents, and with  
little-to-no tweaking. Otherwise, Scheherazade is virtually useless for my  
own projects.



If it is needed, I can clean the font and provide it to be included in
the minimal distribution temporarily, as I hope that we'll have a viable
alternative by the end of this year.


See the above... make a list of errors in the font and we'll both work on  
it one way or other. Back to Lotus: I suggest to you and Otared the  
following project: develop Scheherazade into a free alternative to Lotus.  
Lotus is that is as close to a pure OpenType font as we are going to  
easily get. Although it supports less of Arabic-script unicode than  
Scheherazade, it is a standard in the Arabic-script publishing world. So  
if our default interface supports Lotus and Scheherazade out of the box,  
we will be well on our way to what you guys are looking for.


سلام
ادريس سماوي
Idris Samawi

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Mon, 23 Feb 2009 15:51:13 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



On Mon, Feb 23, 2009 at 10:56:07AM -0700, Idris Samawi Hamid wrote:

So just start with Arabic, then Farsi, and forget the rest for now. No
need for perfection at the outset ;-)

Actually, I suggest forgetting about ligatures etc. for now, and just  
get

the basics done for Scheherazade. We can work on ligatures etc later.


OK, here is an initial version. The glyphs are scaled up since
Scheherazade is tiny, fixed الله ligature, added لله and فلله ligatures
as well, fixed the swash kaf and the Sindi meem and a bunch of Quranic
marks as well: http://www.khaledhosny.org/files/simplenaskhi.zip


Ok, thnx, Khaled. I looked at it: The الله is infinitely better, but does  
not quite match the rest -- the shaddah is way too big for it (or maybe  
the الله lig is too short). On closer inspection, I see that this is not  
the full الله lig, but a mix of the no-vowel version with the default  
shaddah. The actual FDF2 looks better. So there is still some OT work that  
needs to be done.


I also have some poetry macros that might help, need to port them to the  
new system...


Not too bad a font. Like Lotus, it works best at smaller text sizes, not  
greater than 12 point.


The فلله lig should be off by default, there are other Arabic word  
combinations that use that combo that have nothing to do with الله.


Next steps:

1. Can I add some fixes to this thing as well or would you like to keep  
100% maintainance?


2. I can try to put in some time in the coming weeks to develop this into  
a default setup for ConTeXt-mkiv -- per recent discussions -- or I can  
leave that to you/Otared and just review the results. Just let me know how  
you would like to proceed.


سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sun, 22 Feb 2009 14:03:56 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



I totally agree with you, more ever I hop that at some point in the
future, just selecting certain language will be enough to get proper
display of it, some thing like:

\mainlanguage[arabic]
\startext
أهلا بالعالم!
\stoptext


Fonts will always be complicated... for what you are describing we need to  
start with a default Arabic-script font for TeX, like LM for Latin. My  
suggestion is to make Scheherazade that font, since it is free,  
distributable, and supports nearly all Arabic script languages. We could  
make two settings:


one for Scheherazade as the LM fallback for the needed Ar-script ranges  
for unicode,


another for Scheherazade as the main font, with Termes as Latin fallback.  
That will give us a benchmark from which to proceed with other fonts. If I  
get time I'll try to build typescripts etc for this scenario, or Khaled or  
someone else can take on this task, and I'll review it.


Even Scheherazade has lots of options, and it will take some research to  
get the ideal default even here.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Otared,

On Sat, 21 Feb 2009 06:05:01 -0700, Otared Kavian ota...@gmail.com wrote:

If a humble opinion from an ordinary user may be issued, I agree with  
Khaled that it would be extremely useful to have some basic default  
settings for Arabic fonts, and even more generally for any particular  
fonts used for other languages. This would not prevent those specialist  
typesetters who want particular features to be turned on, to do so  
through appropriate mechanisms.


sure, but it needs some thought. As I mentioned in my latest reply to  
Khaled, we can start with Scheherazade as an initial benchmark and proceed  
from there.


As a basic user I am frustrated when using mkiv, that most declaration  
of features are completely cryptic, and not being a specialist of OTF or  
other font specifications, I don't know which features are essential for  
writing and typesetting an article in Persian or any language using  
Arabic alphabet.


The difference -- I think -- is that xetex uses the system libraries.  
Uniscribe is not configurable, so you're stuck with however uniscribe  
interprets the ot features.


snip


%\font\Faarsi=Scheherazade*CrypticFeatures at 14pt  % this does not work


Hmm, I wonder why...



The ideal situation would be:
• in a document, when one sets a language then a certain font, with  
certain standard features is set by default;


sure, I suggest Scheherazade

• when an adapted font for that language is defined by the user, then  
certain features are set by default;


that needs some research, for reasons Hans has explained.

• possibly a command like \setupArabic[state=start] 
[...=...,features=...] (and the analogous settings for other languages  
such as \setupHanzi[state=start][...=...,features=...], and alike),  
could be imagined;


sure

Therefore, in the same spirit one should have some default allowing the  
user to write

\setupArabic[state=start]
\setupHanzi[state=start]
\starttext
goedmorgen Hans! This is some maths formula: $a^2+b^2 = c^2$.
And this is some Arabic text written and typeset from right to left, in  
the midst of some English text:

\startArabic
  سلام خالد، درود بر ادریس
\stopArabic

I understand that this can be done by each user upon defining his own  
environment and installing fonts, etc. But

for the non specialist it is not that easy to understand the intricacies.


For now the focus is getting OpenType and the mid-level interface solid,  
then we can focus on the high-level interface as you have described. OTOH,  
Getting Scheherazade (or some other mutually agreed-upon font) set up as  
default with a high-level interface should not be that hard.


سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sun, 22 Feb 2009 13:54:51 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



http://www.microsoft.com/typography/otfntdev/arabicot/features.htm

:-)


watch the The standard order for applying Arabic features encoded in
OpenType fonts ... an earlier mkiv otf handler did this but then we
found out that it violates the otf 'any order possible' rule so now we
do just the order as we encounter it (and even then it took us a while
to figure out where/how to avoid interferences); so ... it's up to the
font designer (or technician)


IIRC, the 'ccmp' should be applied before any other lookup, the rest are
applied as they are ordered in the font, at least this makes sense more.


It is not the order of the features, but the order of the lookups that  
really counts here. So, more precisely, the lookups in ccmp should be  
defined in the font before all other lookups.


See also

http://www.microsoft.com/typography/otfntdev/arabicot/shaping.htm
http://www.microsoft.com/typography/otfntdev/arabicot/default.htm


now, having init, medi, fina, isol, rlig enabled might be the default,
but for instance arabtype output looks much better when instead of rlig
we use calt/clig etc so, in that case the defaults would bot be the best
choice; again an argument for a database approach


Arabic Typesetting is a quit a special case font, though I believe that
'calt' and 'clig' should be on by default for any font.


That's just it, there are so many exceptional cases it's not trivial to  
define a rule. Again, Scheherazade seems appropriate as a place to  
start... I will try to find some time in the next month to work on this,  
or someone can start and Hans and I can complete the module.



there are even fonts out there that have the right gsub/gpos info but
lack the feature being listed in the script/lang dictionary which is
complicating live even more; maybe we should assume that the renderers
of ms and adobe have some additional built in heuristics of using
specific fonts


Any links to such fonts? Looks interesting.


Hans may be referring to hybrids like Traditional Arabic

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-22 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi,

On Sat, 21 Feb 2009 06:05:01 -0700, Otared Kavian ota...@gmail.com wrote:


%\font\Faarsi=Scheherazade*CrypticFeatures at 14pt  % this does not work


The following works here:

% engine=luatex

\definefontfeature
  [scheherazade-test]
  [analyze=yes,mode=node,   
   language=dflt,script=arab,   
   ccmp=yes,
   init=yes,medi=yes,fina=yes,
   rlig=yes,
   calt=yes,
   salt=yes,
   curs=yes,
   mark=yes,
   mkmk=yes]

\font \Scheherazademk  = ScheherazadeRegOT*scheherazade-testat 28pt
\setcharactermirroring[1]

\noheaderandfooterlines

\Scheherazademk

\starttext

سلام خالد، درود بر ادریس

\stoptext

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-20 Thread Idris Samawi Hamid ادريس سماوي ح امد

On Fri, 20 Feb 2009 11:57:22 -0700, Hans Hagen pra...@wxs.nl wrote:


Khaled Hosny wrote:


Currently, when defining a font feature one has to enable all features
by hand which is IMHO not very user friendly as it implies prior
knowledge about OpenType font features and the meaning of each one, not
every Arabic user, for example, knows what does 'init', 'medi, etc.
ligatures mean yet to know that he must enable them to get proper font
rendering.  I think some font features should be on by default, so that
\definefontfeature[script=arabic] should be enough to get an Arabic font
rendered correctly with the default features as its designer intended
(designers assume that certain will be on while other are off by
default, like liga vs. dlig), and if some one wants to disable a certain
default feature he can turn it off, not the reverse.


Hmm, not sure if this is a good idea, see below.


 Microsoft's OpenType features list page
(http://www.microsoft.com/typography/otspec/features_ae.htm) gives a UI
suggestion for each feature noting if it should be on by default, I
think those are what most OpenType enable by default (at least the ones
I tested).


i've been thinking of a features=default option (as there is already  
features=yes|no)


Maybe we can have a features=ms_arabic

instead of defaulting to MS' recommendation. So in the final high-end user  
interface we can have keys like


featureset=ms_arabic

But I agree with Hans that this is a matter that needs more thought. For  
example, Traditional Arabic mixes OpenType and older M$ specs in  
Uniscribe, so just plugging in the default features that M$ suggests is  
not sufficient for, eg, vowel function in Tr Ar. Also, what about Arabic  
fonts on the mac, so they follow the same specs as M$?


We've still got lots to do before settling on a very high-end interface so  
there is time to think about this some more...


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-20 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 20 Feb 2009 14:02:58 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



 Microsoft's OpenType features list page
(http://www.microsoft.com/typography/otspec/features_ae.htm) gives a  
UI

suggestion for each feature noting if it should be on by default, I
think those are what most OpenType enable by default (at least the  
ones

I tested).



i've been thinking of a features=default option (as there is already
features=yes|no)


Maybe we can have a features=ms_arabic

instead of defaulting to MS' recommendation. So in the final high-end
user interface we can have keys like

featureset=ms_arabic


I think the 'ms' part is't really needed, we can just call itarabic,
or are we going to have more Arabic feature sets?


We are almost certainly going to have more :-)


But I agree with Hans that this is a matter that needs more thought. For
example, Traditional Arabic mixes OpenType and older M$ specs in
Uniscribe, so just plugging in the default features that M$ suggests is
not sufficient for, eg, vowel function in Tr Ar.


That is beyond OpenType support, since Traditional Arabic is essentially
broken at many levels, even when Uniscribe is used (vowel marks break
lam-alef ligatures for example), Ms Arabic fonts are special case since
they were developed long ago before OpenType and aren't the best
examples.


OTOH there are a lot of arabic fonts like this around that we want to  
support as well if we can... We a font categorization scheme to fit the  
most used fonts in the this regard.



Also, what about Arabic
fonts on the mac, so they follow the same specs as M$?


AFAIK, Microsoft's Uniscribe is the reference OpenType implementation,
and I assume that Apple's OpenType implementation follows its
recommendations (I can't test that).


This is something we should investigate... uniscribe is quirky in a few  
areas -- it does extra spell-checking beyond what Arabic actually needs,  
for example. That's one reason I'm not comfortable with using it as a  
default standard.


Khaled: Have you considered making an inventory of available Arabic fonts?  
Or does one already exist? We could put together a table of what's  
available, checking for available OT features, etc.


سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-20 Thread Idris Samawi Hamid ادريس سماوي ح امد

On Fri, 20 Feb 2009 15:10:52 -0700, Hans Hagen pra...@wxs.nl wrote:


Idris Samawi Hamid ادريس سماوي حامد wrote:

Khaled: Have you considered making an inventory of available Arabic  
fonts? Or does one already exist? We could put together a table of  
what's available, checking for available OT features, etc.


also, it would be nice to have some quality otf arabic fonts in tex live


Why not just include the SIL arabic fonts?

http://scripts.sil.org/cms/scripts/page.php?site_id=nrsiitem_id=OFL-FAQ_web

===
1.3  Can I make the fonts available to others from my web site?
Yes, as long as you meet the conditions of the license (do not sell by  
itself, include the necessary files, rename Modified Versions, do not  
abuse the Author(s)' name(s) and do not sublicense).


1.4  Can the fonts be included with Free/Libre and Open Source Software  
collections such as GNU/Linux and BSD distributions?
Yes! Fonts licensed under the OFL can be freely aggregated with software  
under FLOSS (Free/Libre and Open Source Software) licenses. Since fonts  
are much more useful aggregated to than merged with existing software,  
possible incompatibility with existing software licenses is not a problem.  
You can also repackage the fonts and the accompanying components in a .rpm  
or .deb package and include them in distro CD/DVDs and online repositories.

===

Seems similar enough to Texie licences for inclusion.

[cc'ing karl]

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Making necessary OpenType features on by default

2009-02-20 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 20 Feb 2009 11:39:23 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



Microsoft's OpenType features list page
(http://www.microsoft.com/typography/otspec/features_ae.htm) gives a UI
suggestion for each feature noting if it should be on by default,


Hmm, I think this page is more relevant for what you have in mine:

http://www.microsoft.com/typography/otfntdev/arabicot/features.htm

:-)

سلام
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Arabic typesetting in Plain TeX over LuaTeX

2009-02-13 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi,

On Thu, 12 Feb 2009 20:17:26 -0700, Ilda Khaki ilda.kh...@gmail.com  
wrote:


I am trying to compare the results of Arabic typesetting between  
different

TeX engines to decide the best one. Can anyone send a samplwe file for
typesetting Arabic in Plain TeX over luatex where the alphabets are not
isolated?


1. Mixed-up categories: Plain TeX is a macropackage, luaTeX is an engine.

2. Your question is way too general. You could use ArabTeX with the  
original TeX engine, and there are other systems out there too...


3. For real-life 21'st century practical purposes (viz utf-8 + opentype)  
your choices are XeTeX and LuaTeX.


4. Without a more precise question I cannot really recommend which way to  
go from here.


Search the wiki as well :-)

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Latest Notepad++ package for ConTeXt

2009-01-23 Thread Idris Samawi Hamid ادريس سماوي ح امد

Dear gang,

I have uploaded the latest version of the ConTeXt support package for  
Notepad++.


http://wiki.contextgarden.net/Image:Npp_ConTeXt-Uni.zip

It has been updated to 5.1.4, the latest stable version.

There are now two versions of Notepad++: ANSI and Unicode. The ANSI  
version is mostly a legacy version,
which supports Win95/98/ME. Unicode Npp supports Unicode path names etc.,  
and is the main release.


Most to all important plugins have been ported to Unicode Npp; this and  
future versions of this package

for ConTeXt will only support Unicode Npp from now on.

Old plugins will not work with Unicode Npp, so be sure to remove them  
before installing the latest Npp.


See

https://sourceforge.net/forum/message.php?msg_id=5503888

for more details.

NppExec console plugin is essential for this package. It is installed by  
default by the Npp installer.
This support package includes a redundant NppExec plugin -- in case you  
forgot to install it ;-) --
as well as the Explorer plugin and the XBrackets plugin -- not included in  
the main distro.

XBrackets provides bracket autocompletion and is configurable.

Directory structure has changed a bit:

Npp now stores some config settings in

Application Data\Notepad++\plugins\config

that used to be stored in eg

Program Files\Notepad++\plugins\Config

the startstop module has been moved to texmf-project. Most of its features  
are or soon will be made

obsolete in mkiv.

The run commands are now all linked to scripts. Shortcuts are in the  
Macros menu, and you by F6 you can
open the scripts console and editor. This way it's easier to edit the  
commands as well as to keep up with

changes in the way ConTeXt does things etc.

All reference to aleph is gone, luatex is its successor.

Update ConTeXt is almost certainly obsolete; I never use it anyway. Feel  
free to send me an updated

script for inclusion.

I have never used XeTeX, the XeTeX related scripts may need adjustment.

Please send me any comments, suggestions, or improvements!

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unicode and BibTeX

2008-12-23 Thread Idris Samawi Hamid ادريس سماوي ح امد

Salaam, Khaled,

On Mon, 22 Dec 2008 10:51:56 -0700, Khaled Hosny khaledho...@eglug.org  
wrote:



I'm trying to typeset an Arabic book with Arabic bibliography, I'm using
bib module, but bibtex doesn't support unicode. Any workaround or another
alternative?


Can you port your database to bbl format -- \start-stoppublication -- and  
just use the bib module without bibtex?


Best wishes
Idris


--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Contributing [was: Re: starting headings at top of column

2008-12-17 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Lars,

On Wed, 17 Dec 2008 10:57:41 -0700, Lars Huttar lars_hut...@sil.org  
wrote:



I've started talking to people in charge about contributing some money
to this mailing list, or the wiki, or something ... we're certainly
getting a lot of help from it. Is there an org or project to contribute  
to?


My suggestion is to start a fund to sponsor the first commercial ConTeXt  
book. Steve Peter, myself and others have been pushing in this direction  
for awhile, and the time is approaching to work on it in earnest. Feel  
free to contact me off-list to discuss this if you like.


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Optical scaling

2008-12-03 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Wed, 03 Dec 2008 01:30:33 -0700, Michail Vidiassov [EMAIL PROTECTED]  
wrote:

 among advertised advantages of TeX there used to be optical scaling,

It still is

 when text in the same font but in different sizes has different shapes of
 glyphs. That used to be the feature of metafont fonts and derived
 PostScript ones (like cm-super).

Or Latin Modern, also derived from the meta sources.

 But it seems now, with TeX Gyre becoming the default free fonts set, it
 seems the idea is dropped.

LM is default, and is fully optically scaled

 Is it really so or one just needs some
 commercial OpenType font family to use it (Adobe Opticals)?

TeX/ConTeXt supports optical fonts, such fonts (=LM) are still the  
default, and you can plug any commercially available set like Minion  
Optical Pro into the system.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] difference between TeX behavior and ConTeXt

2008-11-25 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Tue, 25 Nov 2008 14:29:09 -0700, Lars Huttar [EMAIL PROTECTED]  
wrote:

 P.S. The same TeX reference reports,

Be careful, PlainTeX is a macropaackage, just as ConTeXt is. One must  
distinguish PlainTeX commands from the TeX (and pdftex/luaTeX) primitives.  
Although some PlainTeX commands work similarly to the ConTeXt  
counterparts, you can rarely assume this. There are lots and lots more  
examples. Better to just treat them as very distinct macropackages, with a  
few commonly USED command names in common, but used to MENTION different  
things.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] embedding 3d pdf

2008-11-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 22 Nov 2008 10:53:33 -0700, Renaud Aubin [EMAIL PROTECTED] wrote:

 Blender (+type1 font) then Right Hemisphere for the conversion...

What is Blender -- the name is too generic for google...

Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] embedding 3d pdf

2008-11-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 22 Nov 2008 10:57:58 -0700, Matija Šuklje  
[EMAIL PROTECTED] wrote:

 http://www.blender.org/

On Sat, 22 Nov 2008 11:10:56 -0700, Renaud Aubin [EMAIL PROTECTED] wrote:

 See http://www.blender.org/ and
 http://www.righthemisphere.com/products/dexp/de_std.html (I've used an
 old windows version of Deep Exploration)

Thank you, Matija and Renaud!

Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Using a .fea file disable arabic contextual analysis

2008-10-31 Thread Idris Samawi Hamid ادريس سماوي ح امد
Salaam, Khaled,


On Fri, 31 Oct 2008 08:12:34 -0600, Khaled Hosny [EMAIL PROTECTED]  
wrote:

 See the attached files, the mark features seem to work but contextual
 forms (init, medi amnd fina) don't

As a workaround, try using a fallback, defining two fontfeature's and  
letting arabtype fall back on itself for just those digits (untested here).

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What should I learn?

2008-10-21 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Tue, 21 Oct 2008 07:14:50 -0600, Mauricio [EMAIL PROTECTED]  
wrote:

 Original Tex is not an option, since PDF, today's font formats
 (and Unicode) and many algorithms didn't exist when Knuth decided
 no features would be added anymore. Maybe I should hack the source
 code of pdftex or luatex?  I can try that, but that's going to be
 hard work and I would like to know how far I can get before
 starting, or if there are easier options (like libraries to write
 PDF and read OpenType and books or example code of typesetting
 algorithms).

The beginning of the above paragraph is confused, but I have no time to  
disambiguate :-)

What you are looking for sounds like a pipe dream. OTOH, see

http://en.wikipedia.org/wiki/Lout

It is apparently a Haskell-like language that seems to roughly  
correspond to what you are looking for.

Best wishes

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Vertically centered title page

2008-10-21 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 21 Oct 2008 14:22:08 -0600, Flavien Lambert  
[EMAIL PROTECTED] wrote:

 Dear all, I am trying to build a presentation with specific  
 requirements. I
 would like to have the title of the presentation on the middle (both
 vertical and horizontal) of the first page. I tried, on one hand, two
 \vfill, and, on the other hand, \framed[location=middle,align=middle] but
 without success. The title is always on the top of the text area. Any  
 help
 is welcome !

You may play with

\starttext

\startstandardmakeup
\startalignment[middle]
test
\stopalignment
\stopstandardmakeup

\stoptext

Best wishes

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with Palatino sans serif

2008-10-19 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 18 Oct 2008 20:10:02 -0600, Aditya Mahajan [EMAIL PROTECTED]  
wrote:

 What is wrong with my installation (or my document)?

 Can you attach your log file? Does adding \usetypescriptfile[type-gyr]  
 on
 top of the document help?

 Adding that line doesn't change the behavior.  I've attached a copy of  
 the
 log.
 Your log file is exactly same as the log file that I get (but I go get
 correct font scaling).

Rory, if updating your old ConTeXt mkii is not an option, then try this.  
It's form is also instructive and may help you with future setups.

=
\starttypescript [palatino-ec]
% \definebodyfontenvironment %% optional
% [palatino]
% [default]
% [interlinespace=2.7ex]

 \definetypeface [palatino] [rm] [serif] [palatino] [default]  
[encoding=ec]
 \definetypeface [palatino] [ss] [sans]  [modern]   [default]  
[encoding=ec,rscale=1.075]
 \definetypeface [palatino] [tt] [mono]  [modern]   [default]  
[encoding=ec,rscale=1.075]
 \definetypeface [palatino] [mm] [math]  [palatino] [default]
 \quittypescriptscanning
\stoptypescript

\usetypescript[palatino-ec]
\setupbodyfont[palatino,12pt]

\starttext

test

\ss Hello world!

{\tfa\ss tfa}
{\tfb\ss tfb}
{\tfc\ss tfc}
{\tfd\ss tfd}

\stoptext
=

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2008-10-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 17 Oct 2008 03:15:19 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 a next release will have
 sectioning redone

so will we finally get

\startsection
\stopsection

etc.? :-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] new beta

2008-10-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 18 Oct 2008 16:31:46 -0600, Aditya Mahajan [EMAIL PROTECTED]  
wrote:

 On Sat, 18 Oct 2008, Idris Samawi Hamid ادريس سماوي حامد wrote:

 On Fri, 17 Oct 2008 03:15:19 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 a next release will have
 sectioning redone

 so will we finally get

 \startsection
 \stopsection

 etc.? :-)

 We already have them, just try it out :-)

Really?

\startchapter

gives me an undefined control sequence...

Maybe you mean

\startsectionworld

etc. I forgot about that, although Hans mentioned that this is just a  
stopgap measure till sectioning is redone...

http://archive.contextgarden.net/message/20080817.132203.12343f00.en.html

Thanks for reminding me

Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with Palatino sans serif

2008-10-18 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Sat, 18 Oct 2008 17:13:04 -0600, Rory Molinari  
[EMAIL PROTECTED] wrote:

 Hi,

 I'm having problems with Palatino sans serif in my documents.

 Consider the following small file:

 \usetypescript[palatino][ec]
 \setupbodyfont[palatino,10pt]

 \starttext
 \ss Hello world!

 {\tfa\ss tfa}
 {\tfb\ss tfb}
 {\tfc\ss tfc}
 {\tfd\ss tfd}

 \stoptext



 On live.contextgarden.net this renders correctly, with sans serif text
 and appropriate character sizes.

 On my local system, though, all the text is serif and at the same
 size.  There is no size variation with \tfa, \tfb, etc.  If I remove
 all the \ss commands then the sizing works again.

I just tried your example; \ss works here just fine.

 I'm using MacTeX 2008.  Here are my version strings from texexec:

 This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 ConTeXt  ver: 2008.04.11 00:07 MKII  fmt: 2008.10.11  int: english/
 english


 What is wrong with my installation (or my document)?

Your ConTeXt is ancient. Try updating to the latest current version or  
beta. My beta is

ConTeXt  ver: 2008.10.12 22:46 MKII

The latest beta should be safe since mkii is pretty much fixed, if not  
frozen.

Best wishes

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] substitutions

2008-10-08 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 07 Oct 2008 12:16:42 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Hans and Taco can probably tell you more.
 it all depends on what we want to achieve ...

 - we can have font fixers (dynamically extend fonts with features, but
 this demands knowledge of the font)
 - we can have replacements in the node list (attribute driven,
 relatively easy to implement)
 so before i start looking into this, we need to investigate what is
 needed (and what for)

For things like my journal, I get lots of inconsistent transliterations,  
and we are not yet at the stage where we can enforce behavior on authors.  
I would like to be able to do things like

Mohamed - Muḥammad

which would save me a lot of time in proofreading, editing, etc. Getting  
the transliteration for the entire journal consistent is a tedious pain,  
and eventually I can have a nice database that will cover most cases. This  
is also much more convenient than using control-sequence definitions and  
watching out for spaces etc.

 (only mkiv)

Indeed ;-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] substitutions

2008-10-08 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 07 Oct 2008 04:53:40 -0600, Mojca Miklavec  
[EMAIL PROTECTED] wrote:

 On Mon, Oct 6, 2008 at 1:57 AM, Idris Samawi Hamid ادريس سماوي حامد

 Sometimes I use the following for simple substitutions:

 \defineactivecharacter  '  {\otfchar{quoteright}}

 But is there a more general mechanism to do things

 \definesubstitution{string1}{string2}

 eg

 \definesubstitution{--}{–}

 Of course ConTeXt already provides this particular substitution

 In mkii it doesn't. Fonts do that substitution. In mkiv a hack is
 applied to fonts (not to TeX macros), so that this particular
 substitution works.

Hmm, so this is much more complicated than I thought...

 but I'm
 interested in such a mechanism for more general purposes.

 In mkii this is not possible, except with some ugly hacks. You can
 easily substitute a single character by making it active. To
 substitute whole words, you either need to modify fonts, or write some
 dirty macros.

I see. In any case, mkii is obsolete for my purposes, if/when I get to  
writing a book on ConTeXt it will cover mkiv only.

 In mkiv you can either apply some patches to fonts (search for tlig
 in ConTeXt source, for example font-otf.lua, also, there are some fea
 files in fonts/fea/context capable of doing that), or change input
 text while reading/digesting some TeX file.

tlig was buggy, but it works in the latest beta. Thank you, Hans!

 Hans and Taco can probably tell you more.

And Thank you, Mojca!

Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] substitutions

2008-10-06 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

Sometimes I use the following for simple substitutions:

\defineactivecharacter  '  {\otfchar{quoteright}}

But is there a more general mechanism to do things

\definesubstitution{string1}{string2}

eg

\definesubstitution{--}{–}

Of course ConTeXt already provides this particular substitution but I'm  
interested in such a mechanism for more general purposes.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Still missing some farsi characters

2008-09-03 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Mehdi,

On Wed, 03 Sep 2008 09:10:41 -0600, Mehdi Omidali [EMAIL PROTECTED]  
wrote:

 Hi Idris and others,
 In the latest font-otf.lua some farsi characters are not included in  
 isol_final
 and isol_final_medi_init functions. Here they are

 isol_final: 0698

 isol_final_medi_init: 06AF 06A9 06CC

I thought we had fixed this months ago... Hans, could you add this patch:

=
 local isol = {
  [0x0621] = true, [zwnj] = true,
 }

 local isol_fina = {
 [0x0622] = true, [0x0623] = true, [0x0624] = true, [0x0625] =  
true, [0x0627] = true, [0x062F] = true,
 [0x0630] = true, [0x0631] = true, [0x0632] = true,
 [0x0648] = true, [0x0698] = true,
 [0xFEF5] = true, [0xFEF7] = true, [0xFEF9] = true, [0xFEFB] = true,
 }

 local isol_fina_medi_init = {
 [0x0626] = true, [0x0628] = true, [0x0629] = true, [0x062A] =  
true, [0x062B] = true, [0x062C] = true, [0x062D] = true, [0x062E] = true,
 [0x0633] = true, [0x0634] = true, [0x0635] = true, [0x0636] =  
true, [0x0637] = true, [0x0638] = true, [0x0639] = true, [0x063A] = true,
 [0x0640] = true, -- tadwil
 [0x0641] = true, [0x0642] = true, [0x0643] = true, [0x0644] =  
true, [0x0645] = true, [0x0646] = true, [0x0647] = true, [0x0649] = true,  
[0x064A] = true,
 [0x067E] = true, [0x0686] = true, [0x06AF] = true, [0x06A9] =  
true, [0x06CC] = true,
[zwj] = true,
 }
=

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Figures are misplaced with \pagedir TRT\bodydir TRT

2008-09-02 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 02 Sep 2008 15:58:21 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Khaled Hosny wrote:
 Figures are shifted to the right (the left edge is where right edge
 should) when I set \pagedir TRT\bodydir TRT.

 \pagedir TRT \bodydir TRT

 \setupheadertexts[from left to right]

 \starttext

 \input tufte

 \placefigure
[here,force]
[fig:Mill]
{Test.}
{\externalfigure[mill]}

 \input tufte

 \stoptext

 i'm wondering ... why do we need pagedir and bodydir?

Try this one, and play with commenting lines 1 or 2:

\pagedir TRT \bodydir TRT
\pardir TRT \textdir TRT

\setupheadertexts[from left to right]

\starttext

\input tufte\footnote{\input ward }

\placefigure
[here,force]
[fig:Mill]
{Test.}
{\externalfigure[mill]}

\input tufte\footnote{\input ward }

\stoptext

As to the original problem:

\textdir TRT
\input epsf

\epsfbox{fig.eps}\input knuth

\bye

I don't think this is an omega/aleph/luatex bug, but rather that epsf.tex  
does not take the global direction change into account. It seems that, for  
any figure mechanism in TeX, the coordinates of the figure need to be  
vertically reversed when
\pagedir TRT \bodydir TRT
in effect.

Best wishes
Idris


-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mswincontext.zip

2008-08-26 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Tue, 26 Aug 2008 18:27:37 -0600, [EMAIL PROTECTED] wrote:

 All,

 A bit frustrated as I cannot seem to get a mswincontext scite  
 combination going. I gave up on:  
 http://pragma-ade.com/context/install/mswintex.zip. I got absolutely  
 nowhere with the installation and trying to connect scite.

 So, I just downloaded:   
 http://pragma-ade.com/context/install/mswincontext.zip

 After extracting to c:\context, I ran the file first-setup.bat, which  
 proceeded to install a lot of files. Was this a correct thing to do?

Not sure, but I did not do it :-)

 Strange, as the distribution size was already huge. It would really help  
 to have a readme.txt in this distribution with installation directions.

 After first-setup was complete, I ran cscite.bat. Scite opened. Good! I  
 entered the usual test file:

 \starttext
 Hello, World!
 \stoptext

 And saved as test.tex.

 Then I tried Tools-Compile, which resulted in this error mesage:

 texmfstart concheck test.tex
 ruby: no such file to load--ubygems (LoadError)

Reinstall Ruby without RubyGems. That worked for me.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-24 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sun, 24 Aug 2008 08:26:20 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 In the readme.txt you wrote...
 13. A note: In Preferences, always leave the option Remember the last
 operation directory unchecked.
 What's the reason for this recommendation ?

It used to be the case that Npp would always open in the  
%Appdata%/Notepad++ directory. Maybe that's been fixed. Just play with it  
and see what happens. Unchecked, it will open in the dir of the current  
file.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Sat, 23 Aug 2008 03:29:56 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 (1) FYI, Application Data.zip also contains a 'Program Files' folder  
 which has the same contents as 'Program Files.zip'

Strange; I'll correct it.

 From readme.txt :
 (2) 9. Copy the directory Program Files\Notepad++ to Program Files
 Shouldn't it be copy the *contents* of these (sub)directories to their  
 corresponding
 C:\Program Files\Notepad++ (sub)directories ?

Put another way: Drop Program Files\Notepad++ onto C:\Program Files

 (3) 10. Copy the directory Application Data\Notepad++ to Application  
 Data.
 To Windows XP's C:\Documents and Settings\(username)\Application Data or
 C:\Documents and Settings\All Users\Application Data ?

See earlier in the readme: in what follows I assume that all  
configuration files are saved
in \username\Application Data\Notepad++

Thanks for the comments and

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 23 Aug 2008 10:58:44 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 Correction...

 * Encoding: UTF 8, UTF 8 with BOM - what must be selected for ConTeXt ?

 What must be selected for ConTeXt-MK IV ?

Either will work fine, since luatex always assumes utf-8 input. My own Npp  
setup defaults to utf-8 (with BOM) for new docs.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 23 Aug 2008 10:56:03 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 Two other questions, if I may...

 (1) The folding feature behaves strangely.

 - Instead of folding it collapses everything what's underneath.

 - Once a folding section gets initiated from within the ConTeXt setup  
 area (
 at a \startsomething command ), it runs straight down to \stoptext  
 instead
 of from every \startsomething to \stopsomething

There are different levels of folding, 0--8: Alt-0, Alt-1,  Alt-8.  
Alt-0 collapses all, use Alt-Shift-n to uncollapse to the desired degree.

 (2) Preferences - New Document tab

 * Format: Windows - Unix - Mac - are (*.tex) files between these OSs
 incompatible ?

Should make absolutely no difference, since TeX looks for a blank line to  
mark paragraph breaks -- or a '\par' -- and does not care about linebreak  
conventions

OTOH: Maybe support will be added for unicode parsep at some point...

 * Encoding: UTF 8, UTF 8 with BOM - what must be selected for ConTeXt ?

Either will work for mkiv. If you enable the utf-8 regime in mkii that  
should also work.

 Looks like great editor nevertheless, much better than SciTE.Thanks again
 for the ConTeXt package.

You are welcome :-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 23 Aug 2008 14:13:09 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 There are different levels of folding, 0--8: Alt-0, Alt-1,  Alt-8.
 Alt-0 collapses all, use Alt-Shift-n to uncollapse to the desired  
 degree.

 These work ok indeed. Nevertheless, the folding marks and foldings  
 themselves
 run awkwardly in some tex files.

Are you using TeX or ConTeXt from the language menu?


 Back to readme.txt :

 ---
 2) Folding

 a) ... All \start-stops are foldable, and you can easily
 add your own in the User-Defined-Language dialog; just select ConTeXt
 and you can edit all entries.
 ---

 Strange... the User Define Dialog User Language drop down box
 has only one entry: User Define Language. There is nothing else, no
 ConTeXt entry.

I suspect that your userDefineLang.xml is not being recognized and that  
you are using the default TeX setup. Don't know why... Are you sure the  
package is installed correctly? Lookk for where Npp installs the original  
userDefineLang.xml, then overide it with mine.

One thing I have noticed is that the default TeX language support in Npp  
is much better than in past versions. Folding is not so good, though.

Note that Hans wrote the original TeX lexer for scite that Npp uses by  
default (with some modifications). So probably there has been some  
development of this lexer on the scite side of things.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 22 Aug 2008 09:03:55 -0600, [EMAIL PROTECTED] wrote:

 The reason I use acrobat.lnk is because it does not rezize my acrobat
 window the way texexec's autopdf option does. I want my Acrobat window  
 to
 be positioned in the same place and size whenever I open it.

 Best wishes
 Idris

 That's strange. Have you tried edit-prefs-documents then enable  
 restore
 last view settings when reopening documents?

Yes, and to be sure I checked and tried it again just now. The --autopdf  
--pdf option resizes the acrobat window to default... very annoying.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 22 Aug 2008 09:00:00 -0600, [EMAIL PROTECTED] wrote:

 Seems like Idris forgot to include the readme

thnx, i uploaded a new version with the updated readme. I'll polish it  
later.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Alan,

On Fri, 22 Aug 2008 09:54:05 -0600, Alan Stone  
[EMAIL PROTECTED] wrote:

 If texexec and company choke on directory names with characters like  
 '+' in them why would one nevertheless assume that the directory name  
 remains 'Notepad++'  ?

Because that's the default and I don't try to run tex files from the  
either Notepad++ directory. This is mainly a warning for the uninitiated,  
I learned the hard way ;-)

 And, even if you rename the installation directory, the name of the  
 local user application directory will still be 'Notepad++ why would one  
 choose to not to use the default destination folder, 'Notepad++'. ..  
 and change it to, eg, 'Notepadpp'  ?

Presumably someone good at registry trickery, recompiling the source etc  
could rename that one too. Again, just providing info for those who can  
use it. I use the default.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-21 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

I have uploaded the latest version of the ConTeXt support package for  
Notepad++.

http://wiki.contextgarden.net/Image:Npp_ConTeXt.zip

It has been updated to 5.0.3, the latest stable version. The main  
difference in the package is the new autocompletion file format. See  
context.xml. I have also included the Explorer plugin and the latest  
NppExec plugin (2.4) -- the NppExec that comes with 5.0.3 is just slightly  
out of date (2.4 RC1).

Npp now supports calltips. I was thinking of adding them to context.xml  
but it would be very time-consuming. Basically, when typing a context  
command you would get a little window giving you some info about that  
command if you want it. I may make some suggestions to the Npp team to  
make this feature more useful.

Anyway, Npp keeps getting better and better. It recently won the  
SourceForge's Community Choice Awards for Best Tool or Utility for  
Developers:

http://ostatic.com/169634-blog/sourceforges-community-choice-awards-winners-named

There are just a few more things Npp could use to make this a near-perfect  
ConTeXt editor, I'll bug the developers soon...

Npp can now use external lexers. Eventually I would like to translate the  
ConTeXt syntax setup to a lexer so we can add a bit more flexibility.  
Lexer development is way beyond my skills at the moment but if anyone is  
interested in contributing to this I'd be happy for the help.

F7 will repeat the last script executed by F6. So it behaves differently  
than F7 in Hans' Scite setup (Build). I use NppExec instead of Run anyway.  
In the next version, I may deprecate the Run menu commands and attach the  
shortcuts to the NppExec scripts; I think there is even a way to then may  
a menu of these NppExec shortcuts. This will allow for easier tweaking and  
experimenting by users, and also updating when Hans changes things ;-)

The startstop module is still included, though Hans has just added support  
for footnote etc environments so that part of the module can be commented  
out. For mkiv a new sectioning mechanism is on the way, and mkii users can  
still use Wolfgang's module. See startstop.tex.

The original instructions are here:

http://archive.contextgarden.net/message/20070813.050137.7a5796f0.en.html

Enjoy!

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-21 Thread Idris Samawi Hamid ادريس سماوي ح امد
Mohamad, سلام,

On Thu, 21 Aug 2008 16:35:33 -0600, Mohamed Bana [EMAIL PROTECTED]  
wrote:

 Idris, thanks alot!  Also what OS do you happen to be using?

XP

 On my Vista 64bit box I had trouble running the default Process ConTeXt  
 file
 (pdf) command, the document compiles fine but fails on opening adobe  
 reader;

 TeXExec | runtime: 3.646
  Process finished.
 acrobat.bat  pdfopen --file C:\context\test.pdf
 CreateProcess() failed
  READY 

Hmm, try making .LNK files executable in Control Panel, System, Advanced,  
Environment Variables.

The reason I use acrobat.lnk is because it does not rezize my acrobat  
window the way texexec's autopdf option does. I want my Acrobat window to  
be positioned in the same place and size whenever I open it.

Or maybe Vista64 has a different way of handling symlinks.

 If anyone knows how to assign to shortcuts to the NppExec scripts,  
 please, do
 post them.

Go to PluginsNppExecAdvanced Options, left side. Then you can add the  
scripts to the menu. I discovered this myself just now ;-)

I guess you then use the shortcut mapper to give shortcuts to the new menu  
items.

I'll try to find some time to do this and post an updated package sometime  
soon... Then the Run menu items for ConTeXt will be deprecated or removed.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] grouped sections and footnotes

2008-08-16 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Hans,

I am using a module -- non-distributed as far as I know -- created by  
Wolfgang. It provides grouped sectioning and footnotes:

startstop-t.tex==
\unprotect

\def\se{se}

\def\definegroupedsection[#1]%
   {\setvalue{\e!start#1}[##1]%
  {\getparameters[\se#1][\c!ref=,\c!title=,##1]%
\getvalue{#1}[\getvalue{\se#1\c!ref}]{\getvalue{\se#1\c!title}}}
\setvalue{\e!stop#1}{\relax}}

\def\definegroupednote[#1]%
   {\edef\currentnote{#1}%
\def\dostartcurrentnote[##1][##2]{\setnote[##1][##2]\bgroup\ignorespaces}%
\setvalue{\e!start\currentnote}{\dodoubleempty\dostartcurrentnote[#1]}%

\setvalue{\e!stop\currentnote}{\removeunwantedspaces\egroup\noteparameter\c!next}}

\definegroupedsection[title]
\definegroupedsection[chapter]
\definegroupedsection[section]
\definegroupedsection[subsection]
\definegroupedsection[subsubsection]
\definegroupednote   [footnote]

\setupfootnotes[next=\autoinsertnextspace]

\protect

\starttext
\starttitle[title=Title]
\stoptitle
\startchapter[title=Chapter]
\startsection[title=Section]
\input knuth
Text
\startfootnote[nabiyy]
A footnote
\stopfootnote
text
\startsubsection[title=Subsection]
Text
\startfootnote
A footnote. See \in{footnote}[nabiyy]
\stopfootnote
text
\startsubsubsection[title=Subsubsection]
Text
\startfootnote
A footnote
\stopfootnote
text
\stopsubsubsection
\stopsubsection
\stopsection
\stopchapter
\stoptext
=

Question:

a) Have you added support for grouped sectioning and footnotes in mkiv yet?
b) Does the above code seem safe for mkiv?
c) (For Wolfgang:) Has the above code been updated or extended etc. yet?

For long documents this kind of grouping has become indispensable (easy  
code-folding etc.)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Non-printable Unicode control characters

2008-08-16 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 16 Aug 2008 01:53:06 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Khaled Hosny wrote:
 Unicode has many control characters that only control text behaviour
 and shouldn't be rendered visually in the text, such as Bidi_Control and
 Join_Control chars (see
 http://www.unicode.org/Public/5.1.0/ucd/PropList.txt and
 http://unicode.org/Public/UNIDATA/UCD.html)
 Currently, ConTeXt handles ZWJ and ZWNJ, but other characters get
 rendered if the font has glyphs for them or make no effect at all if the
 font has no glyphs for them. I think that the optimum behaviour is to
 make those characters affect text formatting while not visually rendered
 whether the font has glyphs for them or not.
 It might be also useful if we can enable rendering those characters
 manually, for drafts and such.

 actually we need:

 - ignore them (like in verbatim)

Eventually we want to be able to show them in verbatim also (provided the  
font has them).

Indeed, I suggest that -- given an appropriate teletype font -- the  
default for _verbatim text_ should be to _show_ the control chars.

 - act upon them

 and

 - show them (might somehow interfere with other things)

Showing the control chars in typeset text -- non-verbatim -- should be  
rare; more appropriate for verbatim

 - hide them

I suggest that the default for _typeset text_ should definitely be to  
_hide_ the control chars.

 if i'm right, when bidi is turned on, those chars get processed and then
 discarded from the node list, so some more than zwj and zwnj is handled,

It appears to me that zwj and zwnj etc. should be invisible in  
typeset-text output -- as explained above, but should still be encoded in  
the output pdf. Think pdf-text extraction, converting between Arabic and  
Farsi typesetting conventions, etc.

 and of course others need to be handled as well

Even lsep's and psep's should be present in the output pdf (eg \par =  
psep). Will make text extraction much more useful, etc.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-14 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Thu, 14 Aug 2008 02:15:39 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ادريس سماوي حامد wrote:
 On Wed, 13 Aug 2008 15:26:02 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ادريس سماوي حامد wrote:

 Could there be something screwy in cscite.bat? Or setuptex.bat?

 what does

 echo %PATH%

 report?
  \testecho %PATH%
 C:\ConTeXt\goodies\bin;C:\ConTeXt\xmllib\bin;C:\ConTeXt\gs\bin;C:\ConTeXt\ruby\bin;C:\ConTeXt\tex\texmf-mswin\bin;
   
   [followed by the rest of my global environment variables, including  
 the presets following]
   
 C:\ConTeXt;C:\ConTeXt\tex;C:\ConTeXt\tex\texmf-mswin\bin;C:\ConTeXt\tex\texmf-project\bin\miktex-bin;
   
   
 C:\ConTeXt\tex\texmf-project\bin\fptex-bin;C:\ConTeXt\tex\texmf-context\scripts\context\ruby;
 ^
 old

Those are some old aleph utilites for making ocp's, ofm's etc. cobbled  
 from ancient versions of miktex and fptex -- sometimes the miktex binary  
would work but not the fptex binary and vice versa -)

 C:\ConTeXt\tex\texmf-local\scripts\context\stubs\mswin;C:\ruby\bin;C:\Perl\bin\;

 i wonder if c:\ruby\bin is the problem;

 can you run ruby texmfstart,rb ?

ruby: No such file or directory -- texmfstart.rb (LoadError)

 (this while script becoming a exe is quite painful and fragile, which is  
 why i always run things by stub)

there is no texmfstart.bat in \scripts\context\stubs\mswin

Is there another way?

 also, if you use luatex ... you can adapt the scite properties files  
 (user ones) to use 'context' instead of 'texexec'

luatex/context.cmd is working, it's just that I want to be able to compile  
the pdftex format for testing, legacy files, etc. Otherwise I am gradually  
moving everything over to luatex.

For the record, going back to my backup context works. texmfstart.exe and  
the scripts seem the same. The only difference I can see is going from  
texmf-local to -context. I wonder what's triggering this.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-14 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Mojca,

On Thu, 14 Aug 2008 02:06:59 -0600, Mojca Miklavec  
[EMAIL PROTECTED] wrote:

 But for

 texmfstart.exe texexec

 I keep getting

 ruby: no such file to load -- ubygems (LoadError)

 texmfstart --locate texexec.rb

 gives me

 /texmf-context/scripts/context/ruby/texexec.rb

 Any ideas on what's wrong?

 I would say it's a broken ruby installation, or some other file is
 broken, but I cannot find anything in ConTeXt, maybe in standalone
 ConTeXt environment ...

I tried moving all setuptex.bat variables to the global XP environment  
variables. Then I could make a pdftex format without cscite.bat. But I  
could not run any pdftex files because texexec keeps looking for the  
format in -local/web2c/pdftex instead of -mswin\web2c\pdftex.

I've removed those global variables and again trying to get  
setuptex/cscite.bat/pdftex working.

 Can you try to find a string ubygems in some .rb file? It should be
 rubygems at most, but I have no idea where this is comming from.

That is weird indeed.

Thnx and

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-14 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Hans, Mojca, and all,

I uninstalled ruby and reinstalled: no joy.

Then I uninstalled ruby and reinstalled without installing RubyGems.

Believe it or not that worked! I can compile the format and run mkii now.

This still leaves open the question as to how RubyGems and cscite.bat  
(which is the source of npp.bat for notepad++) are interfering with each  
other in the new minimals/maximal (what is ubygems without the r  
anyway?). Might be worth investigating at some point...

Thnx and Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-13 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

On Tue, 12 Aug 2008 15:59:20 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ? ?  wrote:
 Dear gang,

 I am upgrading my system to the latest mswincontext distro.

 After some hiccups, context.cmd finds its target script, so I can  
 generate
 the mkiv format

 But for

 texmfstart.exe texexec

 I keep getting

 ruby: no such file to load -- ubygems (LoadError)

 hm, some rubygems interaction; i really dislike these 'package managers
 overloading the module loaders'

 texmfstart --locate texexec.rb

 gives me

 /texmf-context/scripts/context/ruby/texexec.rb

 Any ideas on what's wrong?

 some messy ruby in your path

 you can make a small bat file that starts texmfstart

 @echo off
 setlocal
 ruby c:\pathtoscript\texmfstart.rb %*
 endlocal

 might work

 or (what i have here) just add scripts/context/ruby to your PATH
 variable and associate .rb with ruby

Still no luck. Here is some info:

ruby 1.8.4 (2005-12-24) [i386-mswin32]

\texmf-context\scripts\context\rubytexmfstart texexec
ruby: no such file to load -- ubygems (LoadError)

I ran the above in the directory with the scripts.

Is there a setup or ini file where I need to change the path?

I compared my old setuptex.bat with the new one. No real clues yet.

\texmf-context\scripts\context\ruby is in the PATH, rebooted

Any ideas? What has changed since the last mswincontext, other that the  
switch from -local/ to -context/?

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-13 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Hans,

I think I found a clue:

If I start a command shell (no scite or npp or other editor) and do

setuptex c:\context\tex
texmfstart texexec

I get

TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

TeXExec | --checkcheck versions
TeXExec | --figures  generate overview of figures
TeXExec | --listing  list of file content
TeXExec | --make make formats
TeXExec | --modules  generate module documentation
TeXExec | --mpgraphicprocess mp file to stand-alone graphics
TeXExec | --mpstatic process mp/ctx file to stand-alone graphics
TeXExec | --mptexprocess mp file
TeXExec | --mpxtex   process mpx file
TeXExec | --pdfarrange   impose pages (booklets)
TeXExec | --pdfcombine   combine multiple pages
TeXExec | --pdfcopy  copy pages from file(s)
TeXExec | --pdfselectselect pages from file(s)
TeXExec | --pdfsplit split file in pages
TeXExec | --pdftrim  trim pages from file(s)
TeXExec | --process  process file
TeXExec |
TeXExec | --help --all   shows all switches

If I click on

cscite.bat

scite opens. Then I do CTRL-6 for a window. then I do

texmfstart texexec

getting

ruby: no such file to load -- ubygems (LoadError)

Even

setuptex c:\context\tex
texmfstart texexec

in scite gives me

ruby: no such file to load -- ubygems (LoadError)

Could there be something screwy in cscite.bat? Or setuptex.bat?

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-13 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Wed, 13 Aug 2008 15:26:02 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ادريس سماوي حامد wrote:

 Could there be something screwy in cscite.bat? Or setuptex.bat?

 what does

 echo %PATH%

 report?

\testecho %PATH%
C:\ConTeXt\goodies\bin;C:\ConTeXt\xmllib\bin;C:\ConTeXt\gs\bin;C:\ConTeXt\ruby\bin;C:\ConTeXt\tex\texmf-mswin\bin;

[followed by the rest of my global environment variables, including the  
presets following]

C:\ConTeXt;C:\ConTeXt\tex;C:\ConTeXt\tex\texmf-mswin\bin;C:\ConTeXt\tex\texmf-project\bin\miktex-bin;
C:\ConTeXt\tex\texmf-project\bin\fptex-bin;C:\ConTeXt\tex\texmf-context\scripts\context\ruby;
C:\ConTeXt\tex\texmf-local\scripts\context\stubs\mswin;C:\ruby\bin;C:\Perl\bin\;

...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] texmfstart texexec

2008-08-12 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

I am upgrading my system to the latest mswincontext distro.

After some hiccups, context.cmd finds its target script, so I can generate  
the mkiv format

But for

texmfstart.exe texexec

I keep getting

ruby: no such file to load -- ubygems (LoadError)

texmfstart --locate texexec.rb

gives me

/texmf-context/scripts/context/ruby/texexec.rb

Any ideas on what's wrong?

Best wishes
Idris

PS I like the new directory structure -- texmf-cache, texmf-context etc.

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] When I don't want quotes

2008-08-12 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Maurí­cio,

On Tue, 12 Aug 2008 12:50:07 -0600, Maurí­cio [EMAIL PROTECTED]  
wrote:

 \starttext
 With 0-kern: '\kern0pt'\kern0pt'\kern0pt'\kern0pt'

 The easy way: \dorecurse5'
 \stoptext

 Cheers, Peter


 Neither of them work. ' (Unicode 0027) is still
 converted to ’ (Unicode 2018).

\starttext
\dorecurse5'{}
% or \dorecurse{5}{'{}}
\stoptext

works here. I copied the text from the pdf into a unicode editor and it  
gives 0027.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] When I don't want quotes

2008-08-12 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 12 Aug 2008 12:50:07 -0600, Maurí­cio [EMAIL PROTECTED]  
wrote:

 I need to write ' in a text. However, since
 it's a special tag in wiki language, I really
 need it to be 5 times U0027, not ””’ (U201C and
 U2018). How can I do that?

 \starttext
 With 0-kern: '\kern0pt'\kern0pt'\kern0pt'\kern0pt'

 The easy way: \dorecurse5'
 \stoptext

 Cheers, Peter


 Neither of them work. ' (Unicode 0027) is still
 converted to ’ (Unicode 2018).

Even better:

\starttext
\defineactivecharacter  '  {\otfchar{quoteright}}

'
\stoptext

Tested here.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] When I don't want quotes

2008-08-12 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 12 Aug 2008 14:12:04 -0600, Maurí­cio [EMAIL PROTECTED]  
wrote:

   I need to write ' in a text. However,
   (...) I really need it to be 5 times U0027,
   not ””’ (U201C and U2018). (...)

   \starttext
   \dorecurse5'{}
   % or \dorecurse{5}{'{}}
   \stoptext

   Even better:
  
   \starttext
   \defineactivecharacter  '  {\otfchar{quoteright}}
  
   '
   \stoptext
  

 Both also didn't work. Are you using Mark IV? I'm
 using regular Context (the one that comes with
 Ubuntu), maybe that's the difference.

Indeed, I am using mkiv... But you should be able to use \char etc. to get  
the same effect.

pdftex is not working at the moment here -- see my message to the list --  
so I can't test this at the moment, but in pdftex there is

  \unicodecharacter{number}

so

  \unicodecharacter{27}

should work.

Another option is to use utf8 encoding and insert a zero-width space  
(200B) between the 0027's.

Finally: Did you try \dorecurse{5}{{'}}?

{'}{'} should break the dbl-quote just as {f}{i} breaks the fi ligature...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texmfstart texexec

2008-08-12 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Hans,

On Tue, 12 Aug 2008 15:59:20 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 texmfstart --locate texexec.rb

 gives me

 /texmf-context/scripts/context/ruby/texexec.rb

 Any ideas on what's wrong?
 some messy ruby in your path
 you can make a small bat file that starts texmfstart
 @echo off
 setlocal
 ruby c:\pathtoscript\texmfstart.rb %*
 endlocal
 might work

$C:\ConTeXt\tex\texmf-context\scripts\context\ruby\texmfstart.rb texexec
ruby: no such file to load -- ubygems (LoadError)

This makes no sense: texexec.rb and texmfstart.rb are in the same  
directory! I wonder why texmfstart can't find texexec...

$texmfstart --path  
C:\ConTeXt\tex\texmf-context\scripts\context\ruby\texexec.rb test.tex

gives no error but does nothing else but return the command prompt.

 or (what i have here) just add scripts/context/ruby to your PATH

did that and relogged in: does not work.

 variable and associate .rb with ruby

XP already associates .rb files with the ruby interpreter.

Stumped
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placing section heads in toc

2008-08-11 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Mon, 11 Aug 2008 00:19:03 -0600, Wolfgang Schuster  
[EMAIL PROTECTED] wrote:
On Mon, 11 Aug 2008 02:06:24 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 incrementnumber=list

Thank you guys, I knew it had to be something simple [that one's not  
documented]...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] placing section heads in toc

2008-08-10 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang,

This used to work:

=
\definehead[intro][chapter]
\setuphead [intro][numberstyle=normal,
  number=no,
  ownnumber=no,
  incrementnumber=no,
  continue=no,
  placehead=yes]
\definecombinedlist[mycontent][intro,chapter]   
\setupcombinedlist [mycontent][alternative=c]

\starttext
\title{Table of Contents}
\placemycontent

\intro{Preface}

\chapter{Test}

\chapter{Test}

\stoptext
=

The \intro head does not appear in the toc unless I first comment  
incrementnumber=no, which, of course, ruins the numbering. Is this a bug  
or is there a new protocol? Both mkiv and mkii diplay the same behavior.

using ConTeXt  ver: 2008.08.09

Is this a bug? If not, how can I get a non-numbered head into the toc?

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] placing section heads in toc

2008-08-10 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Hans,

On Sun, 10 Aug 2008 16:03:19 -0600, Hans Hagen [EMAIL PROTECTED] wrote:

 Idris Samawi Hamid ? ?  wrote:

 Is this a bug? If not, how can I get a non-numbered head into the toc?

 \startfrontmatter

 ... \chapter{...} ...

 \stopfrontmatter

Ok thnx a lot. But is that just a workaround or is there a new protocol?  
\start|stopfrontmatter seems like overkill...

incrementnumber=no,
placehead=yes

used to work in the toc before, and I can forsee places where I'll need  
this in the mainmatter...

So is it a bug? If not, why not?

Thanks again and all

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear Mehdi,
سلام

On Tue, 22 Jul 2008 08:48:46 -0600, Mehdi Omidali [EMAIL PROTECTED]  
wrote:

 Hi everyone,
 Is it possible to pass a character to another in MKIV, I mean, like
 XeTeX in which one can pass one unicode character to another one (this
 is done in some mapping files with some lines in it of the form
 U+0030  U+06F0 )

I'm not quite sure I understand you, but there is a mechanism so that you  
can write your own feature file with your own gsubs and gposs and then  
pass those along to luatex.

This was broken in earlier versions of luatex; seems to be working now --  
just checked. See below.

Best wishes
Idris

===verbose.fea==
lookup NumericLookupDFLT {
 lookupflag 0 ;
 sub zero  by z e r o ;
 sub one   by o n e ;
 sub two   by t w o ;
 sub three by t h r e e ;
 sub four  by f o u r ;
 sub five  by f i v e ;
 sub six   by s i x ;
 sub seven by s e v e n ;
 sub eight by e i g h t ;
 sub nine  by n i n e ;
} NumericLookupDFLT ;

feature verb {

 script DFLT ;
 language dflt ;
 lookup NumericLookupDFLT ;

 script latn;
 language dflt ;
 lookup NumericLookupDFLT ;
 language AZE exclude_dflt ;
 lookup NumericLookupDFLT ;
 language CRT exclude_dflt ;
 lookup NumericLookupDFLT ;
 language MOL exclude_dflt ;
 lookup NumericLookupDFLT ;
 language ROM exclude_dflt ;
 lookup NumericLookupDFLT ;
 language TRK exclude_dflt ;
 lookup NumericLookupDFLT ;

} verb ;


=verb.tex===
% engine=luatex

% \setupoutput[pdftex]

\starttext

\installfontfeature[otf][verb]

\definefontfeature  
[test][mode=node,language=dflt,script=latn,verb=yes,featurefile=verbose.fea]

\font\test=lmroman10-regular*test at 20pt

\test 1 2 3 4

\stoptext

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MinionPro Opticals

2008-07-20 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Ulrich,

On Sun, 20 Jul 2008 01:55:02 -0600, Ulrich Dirr [EMAIL PROTECTED] wrote:

 Hi,

 does there exist a package (typescript) for Adobe's MinionPro (with
 optical)? By now I've used LaTeX for MinionPro because of the MinionPro
 package which has a lot of features ...

See

http://archive.contextgarden.net/message/20080720.015059.a4d7f438.en.html

 How can I define a command for setting text in small caps with some user
 defined tracking value?

What do you mean by 'defined tracking value'?

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem in arabic script

2008-07-20 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear Mehdi,
سلام

On Sat, 19 Jul 2008 17:13:12 -0600, Mehdi Omidali [EMAIL PROTECTED]  
wrote:

 I use context+luatex to write farsi texts. A problem that I have been
 faced is that some characters (those that are in farsi and not in
 arabic like Gaf, Kaf, Ya and Che) are shown only in isolated
 form. How can I solve this problem. I use ubuntu and latest context
 and luatex.

Please send me -- off list -- a small sample file with the font, and I'll  
examine it.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem in arabic script

2008-07-20 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear Mehdi,

On Sun, 20 Jul 2008 10:15:09 -0600, Mehdi Omidali [EMAIL PROTECTED]  
wrote:

 I use context+luatex to write farsi texts. A problem that I have been
 faced is that some characters (those that are in farsi and not in
 arabic like Gaf, Kaf, Ya and Che) are shown only in isolated
 form. How can I solve this problem. I use ubuntu and latest context
 and luatex.

I have added support for farsi in font-otf.lua. Ultimately we need to add  
all unicode chars that submit to contextual analysis, like Urdu, Pashto  
etc.

Until Hans gets back, do the following:

open font-otf.lua

go to line 4660

replace that definition with this one:

 local isol_fina_medi_init = {
 [0x0626] = true, [0x0628] = true, [0x0629] = true, [0x062A] =  
true, [0x062B] = true, [0x062C] = true, [0x062D] = true, [0x062E] = true,
 [0x0633] = true, [0x0634] = true, [0x0635] = true, [0x0636] =  
true, [0x0637] = true, [0x0638] = true, [0x0639] = true, [0x063A] = true,
 [0x0640] = true, -- tadwil
 [0x0641] = true, [0x0642] = true, [0x0643] = true, [0x0644] =  
true, [0x0645] = true, [0x0646] = true, [0x0647] = true, [0x0649] = true,  
[0x064A] = true,
 [0x067E] = true, [0x0686] = true, [0x0698] = true, [0x06A9] =  
true, [0x06AF] = true, [0x06CC] = true,
 [zwj] = true,
 }

save and regenerate the format.

try your file again. Works here.

Note that artro.ttf does not seem to have the correct opentype info for  
06CC, so it's not processed correctly.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Warnock Pro, Chaparral Pro, Jenson Pro and Myriad Pro

2008-07-20 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sun, 20 Jul 2008 16:20:24 -0600, Mohamed Bana [EMAIL PROTECTED]  
wrote:
 Idris Samawi Hamid ادريس سماوي حامد ishamid at colostate.edu writes:

 Are you using mkii or mkiv? I have Minion Pro and Myriad Pro for mkii...


 I'm using the minimals from the site, so I guess I'm using mkiv.

not necessarily. Unless you are explicitly using luatex then you are using  
mkii

 Typescripts
 for mkii, mkiv or XeTeX would be great.


 For mkii, see the guide that I've written on this, as well as those
 written by others:


 Do you happen to have an updated copy which explains how to the install  
 the
 OpenType version?

See the end of that document; it explains how to install the otf version.

But if you are using luatex/mkiv, then you just use the otf fonts  
directly, no need for any pre-processing or any map files.

I have not ported my minion/myriad setup to mkiv but when I do I'll try to  
post an addendum...

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Warnock Pro, Chaparral Pro, Jenson Pro and Myriad Pro

2008-07-19 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi Muhammad,

On Sat, 19 Jul 2008 15:50:56 -0600, [EMAIL PROTECTED] wrote:

 1. Does anyone have the typescripts for these fonts with or without the
 opticals?

Are you using mkii or mkiv? I have Minion Pro and Myriad Pro for mkii...

 2. Has anyone come across a guide for installing the optical
 versions of Warnock, Chaparral and Jenson

For mkii, see the guide that I've written on this, as well as those  
written by others:

http://wiki.contextgarden.net/My_Way
http://dl.contextgarden.net/myway/expertfonts.pdf

Once you've done one complete typescript it's easy -- if tedious at times  
-- to make others...

سلام
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >