Re: [NTG-context] XeTeX and/or LuaTeX?

2009-01-31 Thread Mojca Miklavec
On Sat, Jan 31, 2009 at 7:54 PM, J.A.J. Pater wrote:
> My guess was incorrect.
> I copy-pasted the underneath text into my test file and I got good results.
> No tXeTnoC.
> So here it just works like a charm.

I'm sorry. I accidentally commented out \setcharactermirroring[1]
while switching between XeTeX and LuaTeX. So this time just for fun:
XeTeX doesn't know textdir command, so I commented out both textdir
and setcharactermirroring. And then you get XtEConT with XeTeX :) :)
:)

Mojca

PS: keep in mind that the problem lies in user-end not in engine, but
I still find the result funny :)
I used the wrong set of direction-switching commands, though it's
still interesting that XeTeX and LuaTeX both accept input, but
generate completely different results. (\pardir without \textdir has
no influence in mkiv while it changes word stacking direction in
XeTeX.)
___
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] How to capture a typeset page into a box instead of shipping it out

2009-01-31 Thread Kevin D. Robbins
Thanks for the suggestions Wolfgang and Luigi. I've now got several good
options to research.

Kevin

On Sat, Jan 31, 2009 at 2:18 AM, Wolfgang Schuster <
schuster.wolfg...@googlemail.com> wrote:

>
> Am 31.01.2009 um 00:34 schrieb Kevin D. Robbins:
>
>  I am looking for ideas of how to capture a typeset page (as it would
>> appear in the resulting pdf output) into a box instead of actually shipping
>> it out directly, if it is possible. I would like to take advantage of
>> ConTeXt's layout features including layers, otherwise I would just create
>> the box with \setbox.
>>
>
> That's AFAIK not possible. Layer are not limited to the complete page,
> you could use them also with \framed and with streams you get many
> features of the page builder.
>
>  My intent is to draw slides using all of ConTeXt's many layout features,
>> but capture the rendered slide in a box so I can use it either as a full
>> page in the presentation output or as a scaled image included as a figure in
>> a full text "train the trainer" document.
>>
>
> Why don't you include the pages from the finished pdf, with ConTeXt's
> modes it is possible to wrote both parts in one document and create
> two files.
>
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
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] XeTeX and/or LuaTeX?

2009-01-31 Thread J.A.J. Pater

My guess was incorrect.
I copy-pasted the underneath text into my test file and I got good results.
No tXeTnoC.
So here it just works like a charm.

Grtz, Adriaan.


On Sat, Jan 31, 2009 at 12:50 AM, Hans Hagen wrote:
  

attached a more efficient variant



Hello Hans,

I don't know anything about right-to-left typesetting, but is the
result of this desired? (not sure if I copy-pasted properly)

\sethebrew test \ConTeXt\  הָלַך test

Mojca

PS: I get tXeTnoC. I also get some funny results like disappearing
words, but since I'm completely ignorant here, I won't even start
complaining.
___
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
___
  


___
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] XeTeX and/or LuaTeX?

2009-01-31 Thread J.A.J. Pater

It works OK here:

\sethebrew test3 \ConTeXt\ הָלַך test4

gives => test4 הָלַך test3 ConTeXt

This is the way the macro is meant to be!

I guess the tXeTnoC is indeed a result of improper copy-pasting.

Unicode works with invisible formatting characters used to control 
bidirectional typesetting.

[LTR: (U+202D); RTL: (U+203D); (U+202C) cancels the effect of the other two]

Copy-pasting (@-mailing?) can be a problem since sometimes these 
characters fall away.
The RTL unicode charater is missing from the text underneath so I guess 
that's the problem.


Adriaan.


Mojca Miklavec schreef:
> On Sat, Jan 31, 2009 at 12:50 AM, Hans Hagen wrote:
>> attached a more efficient variant
>
> Hello Hans,
>
> I don't know anything about right-to-left typesetting, but is the
> result of this desired? (not sure if I copy-pasted properly)
>
> \sethebrew test \ConTeXt\  הָלַך test
>
> Mojca
>
> PS: I get tXeTnoC. I also get some funny results like disappearing
> words, but since I'm completely ignorant here, I won't even start
> complaining.
> 
___
> 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
> 
___


___
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] XeTeX and/or LuaTeX?

2009-01-31 Thread Mojca Miklavec
On Sat, Jan 31, 2009 at 12:50 AM, Hans Hagen wrote:
>
> attached a more efficient variant

Hello Hans,

I don't know anything about right-to-left typesetting, but is the
result of this desired? (not sure if I copy-pasted properly)

\sethebrew test \ConTeXt\  הָלַך test

Mojca

PS: I get tXeTnoC. I also get some funny results like disappearing
words, but since I'm completely ignorant here, I won't even start
complaining.
___
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] XeTeX and/or LuaTeX?

2009-01-31 Thread J.A.J. Pater

So what I wanted was just:

\environment heb-sty

\starttext

test1 {\switchtotypeface [hebrew] הָלַך} test2

\stoptext

Thanks again!
I'll be using MarkIV for my thesis with XeTeX as a fallback option.

Adriaan.
___
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] XeTeX and/or LuaTeX?

2009-01-31 Thread J.A.J. Pater

Thanks very much Hans!

I will start reading everything about fonts next week.


J.A.J. Pater wrote:
I've already send a mail in reply to Hans, but it was to big since I 
attached the TTF.

I don't know if the moderator will approve of posting fonts.
But it can also be found on the web: 
http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=EzraSIL_Home

So the moderator can drop my last mail, it was to extensive anyway.
Installed on my computer [Ubuntu Intrepid 8.10] 
/usr/share/fonts/truetype/ttf-sil-ezra/SILEOT.ttf


I got the font working by adapting the ara-sty from 
http://wiki.contextgarden.net/Arabic_and_Hebrew to heb-sty (attached)

I also adapted the example from the above link (attached as test.tex).
I ran it with the minimals.

Issues I still have:
I don't know how to use Hebrew and Latin text next to each other.
I don't like the font I get with \setlatin
I don't want every word on a new page
I don't have the faintest clue as to what I'm doing inside of heb-sty.

What's important for me is to use hebrew text inside of latin text.
I'd like to be able to do things like:

\starttext
This is the word for peace: \hebrew[שלם].
Isn't that what we all wish for?
\stoptext

Many thanks to Hans and Mojca!

Adriaan.

P.S. If you're interested in what I don't get in ara-sty casu quo 
heb-sty:


1. \mainlanguage[hebrew]
The wiki: "Sets the main language to hebrew, so that translatable titles
are translated to Arabic."
What exactly does "translatable titles" mean in this senctence?
The main language of my document is in Latin.

2a. Why all the following stuff:

\starttypescript [serif] [hebrew] [name]
\usetypescript[serif][fallback]
\definefontsynonym [Serif] [Ezra SIL] [features=hebrew]
\definefontsynonym [SerifItalic] [Ezra SIL] [features=hebrew]
\definefontsynonym [SerifBold] [Ezra SIL] [features=hebrew]
\definefontsynonym [SerifBoldItalic] [Ezra SIL] [features=hebrew]
\stoptypescript

2b. What does serif mean?

3. I don't get the defining of the directional commands either.

4. I absolutely don't get what I'm doing here

\definestartstop
[hebrewpar]
[commands=\Hebrew\HebrewParDir]

\define[1]\RT
{{\Hebrew\HebrewTextDir#1}}


attached a more efficient variant

btw:

= there will be a more high level par direction text dir changer
= you can use the hebrew font also for latin
= you can combine fonts into one font *using teh font fallback mechanism)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-


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


___
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] How to capture a typeset page into a box instead of shipping it out

2009-01-31 Thread Wolfgang Schuster


Am 31.01.2009 um 00:34 schrieb Kevin D. Robbins:

I am looking for ideas of how to capture a typeset page (as it would  
appear in the resulting pdf output) into a box instead of actually  
shipping it out directly, if it is possible. I would like to take  
advantage of ConTeXt's layout features including layers, otherwise I  
would just create the box with \setbox.


That's AFAIK not possible. Layer are not limited to the complete page,
you could use them also with \framed and with streams you get many
features of the page builder.

My intent is to draw slides using all of ConTeXt's many layout  
features, but capture the rendered slide in a box so I can use it  
either as a full page in the presentation output or as a scaled  
image included as a figure in a full text "train the trainer"  
document.


Why don't you include the pages from the finished pdf, with ConTeXt's
modes it is possible to wrote both parts in one document and create
two files.

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