Re: [NTG-context] ARIAL and hebrew

2019-03-03 Thread Arthur Reutenauer
On Sun, Mar 03, 2019 at 11:47:24PM +0100, Willi Egger wrote:
> I have a little project for preparing a vocabulary for an Ivrith student. — 
> The text should be typeset with Arial. However, when I try to use it I get 
> the vowel points   between the glyphs instead of thereunder.

  Example, please :-)

  The following, adapted from 
https://wiki.contextgarden.net/Arabic_and_Hebrew#Hebrew,
works well from me:

 cut before
\starttext

\definedfont[name:arial*hebrew]
Hello, World!

\setupalign[r2l]
בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ.  וְהָאָרֶץ, 
הָיְתָה תֹהוּ וָבֹהוּ, וְחֹשֶׁךְ, עַל-פְּנֵי תְהוֹם; וְרוּחַ אֱלֹהִים, 
מְרַחֶפֶת עַל-פְּנֵי הַמָּיִם.  וַיֹּאמֶר אֱלֹהִים, יְהִי אוֹר; וַיְהִי-אוֹר.  
וַיַּרְא אֱלֹהִים אֶת-הָאוֹר, כִּי-טוֹב; וַיַּבְדֵּל אֱלֹהִים, בֵּין הָאוֹר 
וּבֵין הַחֹשֶׁךְ.  וַיִּקְרָא אֱלֹהִים לָאוֹר יוֹם, וְלַחֹשֶׁךְ קָרָא לָיְלָה; 
וַיְהִי-עֶרֶב וַיְהִי-בֹקֶר, יוֹם אֶחָד.

\stoptext
 cut after

Best,

ARrthur
\starttext

\definedfont[name:arial*hebrew]
Hello, World!

\setupalign[r2l]
בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ.  וְהָאָרֶץ, הָיְתָה תֹהוּ וָבֹהוּ, וְחֹשֶׁךְ, עַל-פְּנֵי תְהוֹם; וְרוּחַ אֱלֹהִים, מְרַחֶפֶת עַל-פְּנֵי הַמָּיִם.  וַיֹּאמֶר אֱלֹהִים, יְהִי אוֹר; וַיְהִי-אוֹר.  וַיַּרְא אֱלֹהִים אֶת-הָאוֹר, כִּי-טוֹב; וַיַּבְדֵּל אֱלֹהִים, בֵּין הָאוֹר וּבֵין הַחֹשֶׁךְ.  וַיִּקְרָא אֱלֹהִים לָאוֹר יוֹם, וְלַחֹשֶׁךְ קָרָא לָיְלָה; וַיְהִי-עֶרֶב וַיְהִי-בֹקֶר, יוֹם אֶחָד.

\stoptext


hebrew-arial.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] ARIAL and hebrew

2019-03-03 Thread Willi Egger
Good evening!

I have a little project for preparing a vocabulary for an Ivrith student. — The 
text should be typeset with Arial. However, when I try to use it I get the 
vowel points   between the glyphs instead of thereunder. — So my question is, 
does anybody have experience with the use of Arial for typesetting Hebrew?

Kinde regards

Willi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
This is quite counterintuitive... It also happens if I define a string
variable, use concatenate operator to set its value, and then finally pass
the string to textext macro.

Is there a way to get around this issue?

On Sun, Mar 3, 2019, 1:13 PM Alan Braslau  wrote:

> On Sun, 3 Mar 2019 12:52:53 -0500
> Mohammad Hossein Bateni  wrote:
>
> > Hi,
> >
> > I can't understand why the following code does not work.  Could someone
> > help me out here?
> >
> > \starttext
> > \startMPpage
> > draw textext("\convertnumber{r}{12}");
> > draw textext("\convertnumber{r}{" & "12" & "}");
> > \stopMPpage
> > \stoptext
> >
> > The first draw statement works perfectly.  But the second one throws out
> > errors and complains as follows:
>
> Because luatex intercepts and processes \convertnumber{r}{
> and tries to pass this result to MP as a string, not the other way around.
>
> Alan
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Space between initials in bibliography

2019-03-03 Thread Alan Braslau
On Sat, 2 Mar 2019 10:19:35 +0100
"Mikael P. Sundqvist"  wrote:

> By default there seem to be no space between initials in bibliography
> (which I guess there should be?). I can get a space by adding
> \setupbtx[
> stopper:initials={.\btxspace},
> ]
> but I don't think that this is how the stopper is meant to be used.

In the APA specification (publ-imp-apa.mkvi), we have

stopper:initials={. }, % with a (breakable) space

but there is no space by default (publ-ini.mkiv)

stopper:initials={.},

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] textext within ConTeXt

2019-03-03 Thread Alan Braslau
On Sun, 3 Mar 2019 12:52:53 -0500
Mohammad Hossein Bateni  wrote:

> Hi,
> 
> I can't understand why the following code does not work.  Could someone
> help me out here?
> 
> \starttext
> \startMPpage
> draw textext("\convertnumber{r}{12}");
> draw textext("\convertnumber{r}{" & "12" & "}");
> \stopMPpage
> \stoptext
> 
> The first draw statement works perfectly.  But the second one throws out
> errors and complains as follows:

Because luatex intercepts and processes \convertnumber{r}{
and tries to pass this result to MP as a string, not the other way around.

Alan
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
Hi,

I can't understand why the following code does not work.  Could someone
help me out here?

\starttext
\startMPpage
draw textext("\convertnumber{r}{12}");
draw textext("\convertnumber{r}{" & "12" & "}");
\stopMPpage
\stoptext

The first draw statement works perfectly.  But the second one throws out
errors and complains as follows:

.test.tex: ! Missing number, treated as zero






 \number "

  & "12" & "

\romannumerals #1->\clf_romannumerals \numexpr #1

 \relax

 ... draw textext("\convertnumber {r}{" & "12" & "}

  ");

\meta_process_graphic ...currentMPformat }data {#1

  ;}initializations
{\meta_f...

\page_fitting_stop_command ...eter \c!command {#1}

  \page_fitting_stop_normal

Is there a workaround here?  Ultimately I want to replace "12" with a loop
variable in MetaPost.

Thanks,
~MHB
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___