Re: [NTG-context] mkiv/luatex bug

2010-11-28 Thread Wolfgang Schuster

Am 27.11.2010 um 22:03 schrieb Benedikt Morbach:

 Hi,
 
 I'm currently trying out context and somehow I can't get it to behave the way 
 it should/I want it. I think I may be hitting a bug in either my setup or 
 context mkiv.
 Somehow when using luatex/mkiv the spacing and placing of figures and such 
 looks very different (and wrong) compared to pdftex/mkii (invoked using 
 context --luatex/--pdftex).
 
 I think the bug is either in context or my context setup, because lualatex 
 compared with pdflatex is fine, so it doesn't seem engine related.
 
 I already ran various combinations of (texexec|luatools|context) 
 ((--generate|--make)||--all) but that didn't help. I'm experiencing this with 
 TeXLive + TLContrib as well as context-minimals (only installed for testing)
 
 attached are: 
 - Hello World.tex (from http://wiki.contextgarden.net/Hello_world )
 - logs context.(lua|pdf).log
 - the resulting pdfs Hello World.(lua|pdf).pdf
 
 Would be nice if someone could help me with this, since I'm eager to play 
 with luatex and context a bit more.
 Benedikt

It’s a problem with the header setups in the example document, with the 
following settings the output is correct:

\setuphead
  [section,subject]
  [style={\ss\bfa},
   before={\blank[2*big]},
   after={\blank[nowhite]}]

and

\setuphead
  [title]
  [ style={\ss\bfd},
   before={\begingroup\switchtobodyfont[14.4pt]},
after={\leftaligned{\ss\tfa A. U. Thor 
$\langle$\from[author-email]$\rangle$}\blank[2*big]\endgroup}]

Wolfgang

___
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] Tabluating with fixed-width column

2010-11-28 Thread Willi Egger
Good afternoon!

After updating the minimals again, thanks for fixing the previously mentioned 
problems, I see, that the tabulating environment does no more honor fixed width 
columns, 
For left aligned the fixed width is ignored, whereas the fixed width for a 
paragraph results in a maximum width paragraph.

Please refer to the attached test-file.

Thanks for fixing this.

Willi

test-tabulate.tex
Description: Binary data


___
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] some questions related to sorting in registers

2010-11-28 Thread Vianney le Clément
Hello,

There has been some discussion about this lately, but I have some
questions about the sort order in registers. Consider this example:

\starttext
\index{42 numbers}
\index{'apostrophe}
\index{‘apostrophe}
\index{’apostrophe}
\index{quote}
\index{“quote}
\index{”quote}
\index{Oo}
\index{ob}
\index{oz}
\index{Öa}
Test
\subject{Method zm}
\placeindex[method=zm]
\subject{Method zc}
\placeindex[method=zc]
\stoptext

First of all, common to both methods, I'd like the unicode apostrophes
and quotes to be ignored just like their straight counterpart. Is
there a method to do so, apart from specifying the key manually?

Using the zm method, entries beginning with a number appear at the
very bottom of the index, which is quite a strange place especially as
there is no separation with the previous letter. Using the zc method,
the numbers are at the right place, but now entries beginning with an
accented character appear wrongly in a separate group after the
unaccented letters. Is there a way to get the best of both methods?

Thanks,
Vianney
___
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] Problem with \nolist

2010-11-28 Thread Procházka Lukáš

Hello,

I'm receiving errors when compiling the following code (although a .pdf is 
created):

---
\starttext
  \placecontent

  \section{AAA \nolist{aaa}}
\stoptext
---

Error message:

---
structure   : section @ level 3 : 0.0.1 - AAA \nolist {aaa}
! Undefined control sequence.
l.1 AAA \nolist
{aaa}
\structuretitle ...a {structures.sections.title()}

\getstructureheadtitle ... \relax \structuretitle
  \else \normalexpanded {\no...
\doplaceheadtextcomponent ...setstrut \begstrut #1
  \endstrut }\xdef \localhea...
\@@ns::normal ...eadtextwidth \fi \noindent \fi #2
  }
\placestructureheadnumbertext ...uctureheadtitle }
  }\fi \endheadplacement {\g...
...
l.4   \section{AAA \nolist{aaa}}
---

I'm trying to get something similar as described in contextref.pdf on the page 
213. What's the problem?

Latest ctx minimals.

Best regards,

Lukas

t-NoList.log
Description: Binary data


t-NoList.mkiv
Description: Binary data


t-NoList.pdf
Description: Adobe PDF 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem \input a file (lastest minimals)

2010-11-28 Thread Procházka Lukáš

Hello,

I have a problem to \input a file [in the same directory as the main file is].

This problem started appearing with the latest minimals (updated today evening) 
and there was no such a problem before.

Try this:

--- main.mkiv

\enableregime[cp1250]

\input{_inc.mkiv}

\starttext
  AAA
\stoptext

---

--- _inc.mkiv

INC.MKIV

---

And the the compilation error:

---

D:\Lukas\ConTeXt\Samples\t-Incset 
PATH=c:\ConTeXt\tex\texmf-mswin\bin;C:\WINDOWS\System32\Wbem;C:\WINDOWS/system32;C:\WINDOWS;D:/Programs/Tcl/bin;C:/gs/gs8.54/bin;C:/Program
 Files/Common Files/Autodesk Shared/;c:/Program Files/Microsoft SQL Server/90/Tool
s/binn/;C:\Program Files\Lua\5.1;C:\Program 
Files\Lua\5.1\clibs;C:\adabas\bin;C:\adabas\pgm;D:\Lukas\Bat;D:\Programs.Con;C:\Program
 Files\Gtk+\bin;;C:\PROGRA~1\COMMON~1\AUTODE~1

D:\Lukas\ConTeXt\Samples\t-Inccontext.exe main.mkiv

MTXrun | run 1: luatex 
--fmt=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en
 
--lua=c:/ConTeXt/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c/formats/cont-en.lui
 --backend=pdf ./ma
in.mkivThis is LuaTeX, Version beta-0.64.0-2010111223 (rev 3956)
 \write18 enabled.
(main.mkiv

ConTeXt  ver: 2010.11.27 14:27 MKIV  fmt: 2010.11.28  int: english/english

system  : cont-new loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil.mkiv loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-fil.mkiv
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(c:/ConTeXt/tex/texmf-context/tex/context/user/cont-sys.rme 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-def.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-lua.mkiv) 
(c:/ConTeXt/tex/texmf-context/tex/context/base/type-siz.mkiv) (c:/ConTeX
t/tex/texmf-context/tex/context/base/type-otf.mkiv))
system  : cont-err loaded
(c:/ConTeXt/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
)
system  : main.top loaded
(main.top){c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-math.map}{c:/ConTeXt/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont: 12pt rm is loaded
fonts   : preloading latin modern fonts (first stage)
language: language en is active
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/regi-ini.lua:100: 
attempt to call global 'translate' (a nil value).
insert

l.3 \input{_inc.mkiv}

?
! Emergenc^Cy stop.

insD:\Lukas\ConTeXt\Samples\t-Incert

l.3 \input{_inc.mkiv}

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

D:\Lukas\ConTeXt\Samples\t-Inc
---

Bug anywhere?

Friendly regards,

Lukas

_inc.mkiv
Description: Binary data


main.log
Description: Binary data


main.mkiv
Description: Binary data
___
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] Problem with \nolist

2010-11-28 Thread Wolfgang Schuster

Am 28.11.2010 um 18:29 schrieb Procházka Lukáš:

 Hello,
 
 I'm receiving errors when compiling the following code (although a .pdf is 
 created):
 
 [...]
 ! Undefined control sequence.
 l.1 AAA \nolist
{aaa}
 [...]
 
 I'm trying to get something similar as described in contextref.pdf on the 
 page 213. What's the problem?

Exactly what the error message tells you, the command \nolist is not defined in 
MkIV.

You can find a solution to a similar problem here:

http://wiki.contextgarden.net/MkIV_Differences#Nomarking.2FSelect

A alternative is to use the start/stop-commands where you can set a different
test for the table of contents with

\startsection[title={AAA aaa},list={AAA}]

...

\stopsection

Wolfgang

___
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] Problem \input a file (lastest minimals)

2010-11-28 Thread Wolfgang Schuster

Am 28.11.2010 um 18:52 schrieb Procházka Lukáš:

 Hello,
 
 I have a problem to \input a file [in the same directory as the main file is].
 
 This problem started appearing with the latest minimals (updated today 
 evening) and there was no such a problem before.

regi-ini.lua

  function regimes.process(s)
- return translate(s,regimes.currentregime)
+ return regimes.translate(s,regimes.currentregime)
  end

The \input command in ConTeXt has no braces, it’s

   \input file

or for files with spaces

   \input file with spaces

Wolfgang

___
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] Problem \input a file (lastest minimals)

2010-11-28 Thread Hans Hagen

On 28-11-2010 7:08, Wolfgang Schuster wrote:


Am 28.11.2010 um 18:52 schrieb Procházka Lukáš:


Hello,

I have a problem to \input a file [in the same directory as the main file is].

This problem started appearing with the latest minimals (updated today evening) 
and there was no such a problem before.


regi-ini.lua

   function regimes.process(s)
- return translate(s,regimes.currentregime)
+ return regimes.translate(s,regimes.currentregime)
   end


fixed


The \input command in ConTeXt has no braces, it’s

\inputfile

or for files with spaces

\input file with spaces


or \input {file with spaces} as luatex supports that natively

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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] footnote conversion

2010-11-28 Thread Yury G. Kudryashov
Hi!

The following doesn't work in MkIV. Tried both current and beta.

\definenote[thanks][conversion=set 2]
\starttext
Test\thanks{Thanks}
\stoptext

I get Test^1 instead of a symbol.

___
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] footnote conversion

2010-11-28 Thread Wolfgang Schuster

Am 28.11.2010 um 21:07 schrieb Yury G. Kudryashov:

 Hi!
 
 The following doesn't work in MkIV. Tried both current and beta.
 
 \definenote[thanks][conversion=set 2]

\definenote[thanks][numberconversion=set 2]

Wolfgang
___
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] Problem with \nolist

2010-11-28 Thread Procházka Lukáš

... Thanks.

Lukas


On Sun, 28 Nov 2010 19:00:37 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 28.11.2010 um 18:29 schrieb Procházka Lukáš:


Hello,

I'm receiving errors when compiling the following code (although a .pdf is 
created):

[...]
! Undefined control sequence.
l.1 AAA \nolist
   {aaa}
[...]

I'm trying to get something similar as described in contextref.pdf on the page 
213. What's the problem?


Exactly what the error message tells you, the command \nolist is not defined in 
MkIV.

You can find a solution to a similar problem here:

http://wiki.contextgarden.net/MkIV_Differences#Nomarking.2FSelect

A alternative is to use the start/stop-commands where you can set a different
test for the table of contents with

\startsection[title={AAA aaa},list={AAA}]

...

\stopsection

Wolfgang



___
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] seeking 'hello world' example for Arabic typesetting with conTeXt

2010-11-28 Thread Jon Crump
Dear all,

I'm gradually getting my head around using ConTeXt to typeset texts
marked up in TEI/XML. I'm trying to typeset an English/Arabic text and
I keep breaking my teeth on the Arabic. I'm trying to do what I can
with the macTeX 2010 distribution, but the documentation on the
conTeXt wiki has me confused. The amount I don't know about TeX is
truly daunting, but clearly there are some basic things about font
management that I don't understand.

I thought I had found a minimal example in
http://wiki.contextgarden.net/Arabic_and_Hebrew that I could use as a
starting point. After saving it locally as ara-sty.tex I tried to
typeset:

% engine=luatex
\environment ara-sty
\starttext
\setarabic

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

a PDF was produced but it contained no text save for !. Among the
things that conTeXt told me was:

!define font: font with name arabtype is not found
!define font: unknown font arabtype, loading aborted
!define font: unable to define arabtype as \*Arabic20ptrmtf*

Where should I look for this font? Where is conTeXt looking for it? If
I were to find it, where should I put it? I gather that fonts on my
system can be used, but font metric files for them have to be
generated. How to do that?

Apologies for the unfocused tyro questions, but the TeX world has
become so much larger than it was when I last used it that I feel
quite at sea with all the available documentation.

thanks,
Jon
___
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] Problem \input a file (lastest minimals)

2010-11-28 Thread Procházka Lukáš

I patched the 'regi-ini.lua' by your purpose:

---

function regimes.process(s)
--return translate(s,regimes.currentregime)
print(111, regimes)
print(222, regimes.translate)
return regimes.translate(s,regimes.currentregime)
end

---

But I'm still getting the same error message! I still have ! LuaTeX error 
...TeXt/tex/texmf-context/tex/context/base/regi-ini.lua:100: attempt to call global 'translate' (a nil 
value)., although I added two print(...) before return regimes

The line in the error message is the same: 100 - although the code is shifted 
three lines bellow.

And - no 111 or 222 appears in the scope during the error message.

- Isn't it weird?

Is there something more I should do? E.g. to delete a Lua cache manually (what 
dirs/files exactly in this case?).

I also run the mtxrun --generate but without success.

You can check the regi-ini.lua attached - it is originally placed in 
c:\ConTeXt\tex\texmf-context\tex\context\base\regi-ini.lua.

Lukas


On Sun, 28 Nov 2010 19:08:56 +0100, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:



Am 28.11.2010 um 18:52 schrieb Procházka Lukáš:


Hello,

I have a problem to \input a file [in the same directory as the main file is].

This problem started appearing with the latest minimals (updated today evening) 
and there was no such a problem before.


regi-ini.lua

  function regimes.process(s)
- return translate(s,regimes.currentregime)
+ return regimes.translate(s,regimes.currentregime)
  end

The \input command in ConTeXt has no braces, it’s

   \input file

or for files with spaces

   \input file with spaces

Wolfgang

___
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
___



regi-ini.lua
Description: Binary data
___
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] Using Bold SmallCaps in LuaTeX - typescript

2010-11-28 Thread ...
Good evening!

First of all, I'm new to this list and also a context/luatex newbe. I have 
some experience with LaTeX.
I want to use a font (Neutraface2) in my documents and I'm struggeling with 
the typescript. I'm not able to get bold SmallCaps working (the bold face .otf 
file has the feature smcp, I checked).
I tried various combinations and variations of \bf \sc in my document. It 
gives me bold OR smallcaps, but not bold AND smallcaps. Whats wrong here?
Can someone give me an example typescript that I could modify to fit the 
Neutraface2 font? My attempt to make one is attached.

Greetings,
Chris
%%%
% THIS IS THE NEUTRAFACE-2 TYPESCRIPT %
%%%

% Define font instances
%%%
\definefontfeature	[mysans]	[protrusion=pure,expansion=quality,script=latn,liga=yes,onum=yes,pnum=yes,kern=yes,tlig=yes,trep=yes]
\definefontfeature	[mysmcp]	[mode=node,script=latn,language=dflt,liga=yes,lnum=yes,tnum=yes,kern=yes,tlig=yes,trep=yes,smcp=yes]
\definefontfeature	[mysup]		[mode=node,script=latn,onum=no,pnum=yes,sups=yes]

% Set up normal and Small Caps

\starttypescript [sans] [neutraface2] 
  \definefontsynonym [Neutraface2Text-Book]		[name:neutraface2textbook]		[features=mysans] % Regular
  \definefontsynonym [Neutraface2Text-Bold]		[name:neutraface2textbold]		[features=mysans] % Bold
  \definefontsynonym [Neutraface2Text-BookItalic]	[name:neutraface2textbookitalic]	[features=mysans] % Italic
  \definefontsynonym [Neutraface2Text-Bold-Italic]	[name:neutraface2textbolditalic]	[features=mysans] % Bold-Italic
  \definefontsynonym [Neutraface2Text-SmallCaps]	[name:neutraface2textbook]		[features=mysmcp] % SmallCaps
  \definefontsynonym [Neutraface2Text-BoldSmallCaps]	[name:neutraface2textbold]		[features=mysmcp] % Bold-SmallCaps
\stoptypescript

\starttypescript [sans] [neutraface2]
  \definefontsynonym [Sans]		[Neutraface2Text-Book]		[features=mysans] % Regular
  \definefontsynonym [SansBold] 	[Neutraface2Text-Bold]		[features=mysans] % Bold
  \definefontsynonym [SansItalic]	[Neutraface2Text-BookItalic]	[features=mysans] % Italic
  \definefontsynonym [SansBoldItalic]	[Neutraface2Text-Bold-Italic]	[features=mysans] % Bold-Italic
  \definefontsynonym [SansCaps]		[Neutraface2Text-SmallCaps]	[features=mysmcp] % SmallCaps
  \definefontsynonym [SansBoldCaps]	[Neutraface2Text-BoldSmallCaps]	[features=mysmcp] % Bold-SmallCaps
 \stoptypescript

% Define Typefaces
\starttypescript [neutraface2]
  \definetypeface [neutraface2] [ss] [sans] [neutraface2] [default]
\stoptypescript
___
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-28 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Jon,

On Sun, 28 Nov 2010 14:48:32 -0700, Jon Crump jjcr...@uw.edu wrote:


Dear all,

I'm gradually getting my head around using ConTeXt to typeset texts
marked up in TEI/XML. I'm trying to typeset an English/Arabic text and
I keep breaking my teeth on the Arabic. I'm trying to do what I can
with the macTeX 2010 distribution, but the documentation on the
conTeXt wiki has me confused. The amount I don't know about TeX is
truly daunting, but clearly there are some basic things about font
management that I don't understand.


In this case it's not the font management, at least not yet ...


I thought I had found a minimal example in
http://wiki.contextgarden.net/Arabic_and_Hebrew that I could use as a
starting point. After saving it locally as ara-sty.tex I tried to
typeset:

% engine=luatex
\environment ara-sty
\starttext
\setarabic

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

a PDF was produced but it contained no text save for !. Among the
things that conTeXt told me was:

!define font: font with name arabtype is not found
!define font: unknown font arabtype, loading aborted
!define font: unable to define arabtype as \*Arabic20ptrmtf*



Where should I look for this font? Where is conTeXt looking for it? If
I were to find it, where should I put it?


arabtype is a windows font. It's free-beer with windows but try a search  
or two and you may find it stand-alone somewhere...




I gather that fonts on my
system can be used, but font metric files for them have to be
generated. How to do that?


Thankfully, with MkIV one [thankfully] no longer needs to concern oneself  
with metric files



Apologies for the unfocused tyro questions, but the TeX world has
become so much larger than it was when I last used it that I feel
quite at sea with all the available documentation.


NP, and that page needs updating anyway. For example, forget about

\setcharactermirroring[1]

and use

\setupdirections[bidi=global] or
\setupdirections[bidi=local]

as needed. And no need for

% engine=luatex

Right now you need a font. Try the free and unicode-complete scheherezade  
from SIL and replace


[name:arabtype]

with

[name:scheherezade]

or whatever the exact font name is.

There is an modified version of scheherezade for TeX distros (Khaled and I  
played with it once upon a time) but I don't know where it is at the  
moment, as it's been ages since I worked on it. I thought it was part of  
the ConTeXt distro already but I could not find it. I'll check into it  
later.


Khaled, do you have that modified scheherezade somewhere?

There is a simpler way to approach this, I'll try to post an example in  
the coming days.


Best wishes
Idris


--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī 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-28 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 28 Nov 2010 21:47:08 -0700, Idris Samawi Hamid ادريس   سماوي حامد  
isha...@colostate.edu wrote:


There is an modified version of scheherezade for TeX distros (Khaled and  
I played with it once upon a time) but I don't know where it is at the  
moment, as it's been ages since I worked on it. I thought it was part of  
the ConTeXt distro already but I could not find it. I'll check into it  
later.

 Khaled, do you have that modified scheherezade somewhere?


The modified Scheherezade is called SimpleNaskhi.ttf, I assume Khaled has  
the latest version.


Hans, Mojca: I suggest going ahead and making SimpleNaskhi the default  
arabic-script unicode fallback for MkIV:


\definefontfeature[simplearabic]
[mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,calt=yes,
rlig=yes,curs=yes,mark=yes,mkmk=yes]

It is a very unicode-complete font, while -- as the name suggests -- quite  
simple in features. For fallbacks we need:


[arabic,arabicpresentationformsa,arabicpresentationformsb,
 arabicsupplement,0x200C,0x200D]

we have to play with rscale to get the right balance with LM I guess...

If SimpleNaskhi is somehow broken or unavailable then we just go with

ScheherazadeRegOT.ttf

as the default font.

[BTW: I think we discussed this 18 months or so ago...]

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī 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] Is it posible to facilitate LongTables and Sideways Tables?

2010-11-28 Thread barndog1946
I see a note that longtables are possible. I have a book that needs  
longtables and sideways table facility like in LaTeX. If it is possible  
could someone please point me in the correct direction?


Thanks in advance

barney
___
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
___