Re: [NTG-context] Text wrapping in SciTE

2006-01-20 Thread Hans Hagen

Hooman Javidnia wrote:


Hi,

I was wondering what is the correct way of wrapping text while typing in
SciTE. SciTE can wrap the text, but it is basically a virtual wrap, it is
a long line tailored to the view of your editing window. On the other hand
you can wrap the lines yourself by pressing enter wherever you think it is
necessary. Which one of these methods is better? Or maybe there are better
alternatives? 
 

if you use the properties files that come with context (as well as the 
lua script) then you have a justification option as well as spell checking


(justification: the margin is set to the first position in the 
selection, which is handy for aligning e.g. itemizations)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Text wrapping in SciTE

2006-01-20 Thread Ville Voipio

I was wondering what is the correct way of wrapping text while typing in
SciTE. SciTE can wrap the text, but it is basically a virtual wrap, it is
a long line tailored to the view of your editing window. On the other hand
you can wrap the lines yourself by pressing enter wherever you think it is
necessary. Which one of these methods is better? Or maybe there are better
alternatives? 


I use the one long line per paragraph approach. The reason is simple: 
it is fairly simple to wrap the lines afterwards. It is far from simple 
to unwrap them if you have the hard line breaks. Also, with soft (or 
virtual) wrapping you can add or remove text without any hassle.


So, I cannot figure out any common situation where hard formatting would 
be significantly better.


Just my two eurocents.

- Ville
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] SciTE Setup in Windows and .rb scripts

2006-01-20 Thread Hans Hagen

Hooman Javidnia wrote:


It seems that SciTE can't still detect type of the file that I want to
compile or build. I get the same message when I Build myfile.tex too,
although Build process finishes without any errors.
 

run this once in a console: 


FTYPE RubyScript=c:\data\system\ruby\bin\ruby.exe %%1 %%*
FTYPE PerlScript=c:\data\system\perl\bin\perl.exe %%1 %%*
FTYPE PythonScript=c:\data\system\python\bin\python.exe %%1 %%*
FTYPE LuaScript=c:\data\system\lua\bin\lua.exe %%1 %%*

ASSOC .rb=RubyScript
ASSOC .rbw=RubyScript
ASSOC .pl=PerlScript
ASSOC .py=PythonScript
ASSOC .lua=LuaScript

FTYPE SomeText=c:\data\system\scite\wscite\scite.exe
ASSOC .exa=SomeText
ASSOC .xml=SomeText
ASSOC .tex=SomeText
ASSOC .mp=SomeText



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] palatino fonts

2006-01-20 Thread Hans Hagen

Hi,

In a previous post, sjoerd mentioned fonts from the tower of babel 
project (russia).


http://newstar.rinet.ru/downl.php?lan=en#dict

There you can also download fonts, like some palatino and a cjk font. To 
me it looks quite illegal: the palatino variant has indeed over 2500 
glyphs but also contains copyright notices (heidelberg/linotype as well 
as microsoft).  When fonts lack glyphs one normally may make companions, 
but that;s not the case here: same name, probably same glyphs as in the 
original. i wonder why they were not yet taken off line. Stealing fonts 
happens, but here they didn't even bother to disguise the original name 
and author. Ok, I may be wrong and it may be a donation to the project, 
but even then it should be mentioned in the copyryright. (Somehow I'm 
pretty sure that the designer of the Palatino (Hermann Zapf) is not 
aware or this rip-off.) LInotype now ships the Palatino Nova, but that 
does not mean that the old one is obsolete and free.


Technically you can configure the context unicode handler to take chars 
from multiple fonts, so my advise is to use another font or a 
combination of fonts. Maybe it's worth investigating which free fonts 
contain the glyphs you need.


Hans

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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \uchar and italics question

2006-01-20 Thread Henning Hraban Ramm

Am 2006-01-19 um 21:51 schrieb sjoerd siebinga:
I have never before had reason to suspect the heritage of this font  
since it was also used in a web-based project by the Santa Fe  
institute of advanced studies.


Some academics don't seem to care about copyrights.
(I did tell you more via PM.)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Henning Hraban Ramm

Am 2006-01-20 um 10:23 schrieb Hans Hagen:

Technically you can configure the context unicode handler to take  
chars from multiple fonts, so my advise is to use another font or a  
combination of fonts. Maybe it's worth investigating which free  
fonts contain the glyphs you need.


Of course this one is illegal, but I can understand their intention  
to collect all the glyphs in one font (they don't normally use TeX, I  
guess).


I know no font that contains every kind of Latin/Greek based glyph  
(as this does); Gentium is aiming that target, but it lacks cyrillic  
at the moment (and it doesn't look like it would be further  
developed, even if they released the sources some months ago). And  
there isn't a bold variant either.

http://scripts.sil.org/Gentium
Other projects:
- Linux Libertine is just ugly (0 is only a circle!?)
http://linuxlibertine.sourceforge.net/
- Junicode is interesting, but also lacks Cyrillic
http://www.engl.virginia.edu/OE/junicode/junicode.html
- more?

And as far as I can see, the Babel folks even had to make up some  
glyphs for their project.
Sure, it would be far better if they had contributed to one of the  
above projects (or perhaps one of the GUST projects or just use TeX)  
instead stealing a commercial font.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Text wrapping in SciTE

2006-01-20 Thread Taco Hoekwater


Ville Voipio wrote:

I was wondering what is the correct way of wrapping text while typing in
SciTE. SciTE can wrap the text, but it is basically a virtual wrap, it is
a long line tailored to the view of your editing window. On the other 
hand
you can wrap the lines yourself by pressing enter wherever you think 
it is
necessary. Which one of these methods is better? Or maybe there are 
better
alternatives? 



I use the one long line per paragraph approach. The reason is simple: 
it is fairly simple to wrap the lines afterwards. It is far from simple 
to unwrap them if you have the hard line breaks. Also, with soft (or 
virtual) wrapping you can add or remove text without any hassle.


I normally use hard line breaks, for some reasons:

  * I use 'grep' a lot. grepping long lines is problematic, at best
  * It is easier to comment/uncomment short lines, or to add remarks
  * Editor navigation is somewhat easier. Home/End are not very
useful for long lines
  * line numbers in TeX warnings and errors make more sense
  * easier to copy and paste to my e-mail client

All very personal preferences, just use what you like best

Cheers, taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Hans Hagen

Henning Hraban Ramm wrote:



Sure, it would be far better if they had contributed to one of the  
above projects (or perhaps one of the GUST projects or just use TeX)  
instead stealing a commercial font.


indeed, they could have made a companion font to the urw paladio 

Hans 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Figures in a table?

2006-01-20 Thread Hans Hagen

David Arnold wrote:


All,

I've almost answered my own question with:

\startbuffer[table]
\setupTABLE[c][1][width=0.6\textwidth]
\setupTABLE[c][2][width=0.2\textwidth]
\setupTABLE[c][3][width=0.2\textwidth]
\bTABLE[align={middle,lohi}]
\bTR
\bTH Number line \eTH
\bTH Set-builder notation \eTH
\bTH Interval notation \eTH
\eTR
\bTR
\bTD \externalfigure[realline4] \eTD
\bTD $\{x:\,x3\}$ \eTD
\bTD $(3,\infty)$ \eTD
\eTR
\bTR
\bTD \externalfigure[realline5] \eTD
\bTD $\{x:\,x3\}$ \eTD
\bTD $(-\infty,3)$ \eTD
\eTR
\bTR
\bTD \externalfigure[realline6] \eTD
\bTD $\{x:\,x\ge3\}$ \eTD
\bTD $[3,\infty)$ \eTD
\eTR
\bTR
\bTD \externalfigure[realline7] \eTD
\bTD $\{x:\,x\le3\}$ \eTD
\bTD $(-\infty,3]$ \eTD
\eTR
\eTABLE
\stopbuffer

\placefigure[][tbl:numlines]
{Table}
{\getbuffer[table]}


However, two things:

1. My figures are not centered in their first column.



somehow strut=no does not work, so for the moment use:

\bTD \setnostrut \dontleavehmode \externalfigure[realline4] \endgraf 
\removedepth \eTD

or make a \def\MyExternalFigure[#1]{...} 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Figures in a table?

2006-01-20 Thread Hans Hagen

David Arnold wrote:

in the next release you can do:


\setupTABLE[c][1][width=0.6\textwidth,strut=no]

\bTD \dontleavehmode \externalfigure[realline4] \eTD


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Text wrapping in SciTE

2006-01-20 Thread Henning Hraban Ramm

Am 2006-01-20 um 10:50 schrieb Taco Hoekwater:

  * It is easier to comment/uncomment short lines, or to add remarks


If you need that you can still hard wrap.


  * Editor navigation is somewhat easier. Home/End are not very
useful for long lines


That's only a problem with vi ;-)


  * line numbers in TeX warnings and errors make more sense


That matters only if you use a lot or markup.


  * easier to copy and paste to my e-mail client


But only if you use the same line length there.
And it's very inconvenient if you happen to copy to a word processor  
or DTP program.


I really hate editors that force their hard wrapping on me.

In most cases I try to let paragraphs in whole (as I'm used to from  
other apps).



All very personal preferences, just use what you like best


Indeed.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Thomas A. Schmitz


On Jan 20, 2006, at 10:47 AM, Henning Hraban Ramm wrote:

Gentium is aiming that target, but it lacks cyrillic at the moment  
(and it doesn't look like it would be further developed, even if  
they released the sources some months ago).


What makes you say that? I heard that Victor Gaultney will release a  
new version soonish, and that it will have bold and bold italic. And  
the status part of the Gentium website looks like they are actively  
developing the font.


Best

Thomas

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Wolfgang Zillig

Hello all,

I just had a look the the Gentium fonts and I like them. Did anybody 
start to make them available in Context? And does anybody know if there 
will be a math font set available?


Kind regards

Wolfgang




Thomas A. Schmitz schrieb:


On Jan 20, 2006, at 10:47 AM, Henning Hraban Ramm wrote:

Gentium is aiming that target, but it lacks cyrillic at the moment 
(and it doesn't look like it would be further developed, even if they 
released the sources some months ago).


What makes you say that? I heard that Victor Gaultney will release a 
new version soonish, and that it will have bold and bold italic. And 
the status part of the Gentium website looks like they are actively 
developing the font.


Best

Thomas

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Thomas A. Schmitz

I can send you typescript, map, and tfms off-list if you want.

Thomas

On Jan 20, 2006, at 3:02 PM, Wolfgang Zillig wrote:

I just had a look the the Gentium fonts and I like them. Did  
anybody start to make them available in Context?


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Steve Peter



indeed, they could have made a companion font to the urw paladio Hans


Then it would be a hans serif! 
___

ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Stand alone Context editing environment

2006-01-20 Thread Mojca Miklavec
On 1/19/06, Miguel Queiros wrote:

  http://www.pragma-ade.com/context/install/mswincontext.zip
 
  Can someone explain to me what this is? If it is downloaded and
  unzipped, is it ready to go? Is there documentation of this
  particular zip?

See isoimage\usr\local\context\tex\setuptex.bat:

REM Installatie van Minimal ConTeXt
REM
REM Instellingen ten behoeve van CONTEXT (TEX) installatie.
REM Deze file moet worden aangeroepen in de file
REM autoexec.bat die te vinden is onder c:\. Voeg aan die
REM file toe:
REM
REM   call c:\tex\setuptex.bat
...

Haven't you noticed/read this? :)

  Is there an editor in this zip configured and ready
  to go?

Scite (as was already described, execute cdemo.bat).

 If you had instaled Miktex on Windows before you should note that
 you might need to take Miktex from your PATH. I had to do it.

No, there's no need to remove MikTeX from PATH. I've put an
pragmatex.bat into path with the content (one line only):

C:\context\misc\context\usr\local\context\tex\setuptex.bat
C:\context\misc\context\usr\local\context\tex

I've also written this on
http://wiki.contextgarden.net/Windows_Installation, but my edits need
a revision.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] margin text headings

2006-01-20 Thread Idris Samawi Hamid

Dear consortium,

In

\setuptexttexts[margin]

it would be nice to have an option for the margin text (used for headings  
here) to start from the top of the textblock, instead of the middle,  
something like


marginposition = top, middle % middle is default

\setuptexttexts[margin][][\setups{text a}][\setups{text b}][]
\setuptext[marginposition=top,state=high,]

As is one has to do alot of guesswork. Can this be implemented (if it is  
not already)?


In any case, is there a better way to do this (see example file)?

Best
Idris

===
% output=pdf interface=en

%\setuppapersize [A5][A4]

\newdimen\Margin
\Margin=1.5cm

\newdimen\MarginRaise
\MarginRaise=112.6ex % guesswork

\setuptexttexts[margin][][\setups{text a}][\setups{text b}][]
\setuptext[style=\it,state=high]

\startsetups[text a]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
  \startalignment[right]
  Testing Knuth 2
  \stopalignment
}}
\stopsetups

\startsetups[text b]
\raise\MarginRaise\hbox{\vtop{\hsize=\Margin%
  \startalignment[right]
  Testing Knuth 1
  \stopalignment
}} \stopsetups

\setuppagenumbering[alternative=doublesided,
location={footer,middle}]

\showframe

\starttext

\dorecurse{20}{\input knuth\par }

\stoptext

===

--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Units -- a few things

2006-01-20 Thread Ville Voipio
There seems to be a small glitch in m-units.tex. The unit \Bit typesets 
Bit. This is wrong, as bits are always in lowercase first letter:


  a single bit: bit
  a byte: B

It is also possible to use b (for bit) and Byte (for B). However, bits 
are always small and Bytes large. The best practice seems to be to spell 
bits out (bit) and use abbreviation for Bytes (B). This minimizes confusion.


I fixed this problem in my ConTeXt installation by tweaking rows 664 and 
666.


For more discussion, see:

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

It might be worth it to implement the octet (o), as well. It is a good 
unit (more precise and descriptive than byte) but the abbreviation is 
horrible.


---

Another related thing is whether ConTeXt should implement IEC 60027-2 
binary prefices (Ki, Mi, Gi, Ti). More info on this:


  http://www.iec.ch/zone/si/si_bytes.htm

---

Well, then to a more practical thing... This is a very trivial question, 
but still. When writing a number and the unit, it would be nice to have 
automatic formatting. What I mean is that when I have a million two 
hundred thousand kilograms, I would like it to be typeset:


 1(small space)200(small space)000(small space)kg

Everything on a single row despite where it is. Now I write:

 1\,200\,000\,\Kilo\Gram

It would be more legible, if I could just write:

 \unit{120}{\Kilo\Gram}

Taking care of all the fancy small spaces should be computer's problem. 
not mine... (Or does this mechanism already exist?)


- Ville
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Venn diagram

2006-01-20 Thread Mojca Miklavec
On 1/20/06, Aditya Mahajan wrote:
 --- On Jan 19, David Arnold wrote ---
  I need an easy way of shading these areas:
 
  1. A intersect B
  2. A union B
  3. A intersect (complement of B)
  4. (complement of A) intersect B

 There is venn.mp on ctan. Using it you can do basic shading of
 intersection, union etc for 0,1,2 or 3 sets very quickly. Read the
 documentation in source for details. For example

Thanks a lot for the very nice example;

 \startMPinclusions
input venn;
pair A,B,T[];
A = (.4venn_width-.5venn_circle_diameter,.5venn_height);
B = (.6venn_width+.5venn_circle_diameter,.5venn_height);
T1 = (.5venn_width , 0);
T2 = (.5venn_width,.5venn_height-.5venn_circle_diameter);
vardef venn_shade = red;

 vardef venn_shade = red enddef;

I tried the (transparent(.8,3,blue)) at that place, but it seems that
either ConTeXt or Acrobat have problems here. It either compiled, but
then Adobe Reader complained, if I tried to compile
fill fullcircle scaled 3cm withcolor (transparent(.8,3,blue));
manually, then I got an error

**\relax venn-mpgraph.3
 (venn-mpgraph.3
! Undefined control sequence.
\handleMPspecialscommentx #1 -\doifelse
 {#1}{1}{\settrue \manyMPspecial...
l.15 %%MetaPostSpecials: 2.0 123 1000

?
Missing character: There is no 1 in font nullfont!
...

 Perhaps one can combine the transparent color functionality of
 metapost with venn.mp to get really nice colors for intersections etc.

Hans: please fix the typo on line 488 in mp-spec.mp. I copied the
example from there and wondered why it didn't work (well, it still
doesn't work - the problem described above).


Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Units -- a few things

2006-01-20 Thread Hans Hagen

Ville Voipio wrote:



Well, then to a more practical thing... This is a very trivial 
question, but still. When writing a number and the unit, it would be 
nice to have automatic formatting. What I mean is that when I have a 
million two hundred thousand kilograms, I would like it to be typeset:


 1(small space)200(small space)000(small space)kg

Everything on a single row despite where it is. Now I write:

 1\,200\,000\,\Kilo\Gram

It would be more legible, if I could just write:

 \unit{120}{\Kilo\Gram}

Taking care of all the fancy small spaces should be computer's 
problem. not mine... (Or does this mechanism already exist?)


grep for \digits 

Hans 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Henning Hraban Ramm

Am 2006-01-20 um 16:39 schrieb Mojca Miklavec:


I can send you typescript, map, and tfms off-list if you want.


What about putting them to the modules section of contextgarden or to
Hraban's server (the first place where someone would search for
typescripts :)


The Gentium typescript is already in the typescripts.zip for a long  
time.
Since I read the I'm allowed to re-distribute the font, I'll prepare  
a package soon,

but I should rework my fonts page (or better the whole site)...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \uchar and italics question

2006-01-20 Thread Mojca Miklavec
On 1/18/06, sjoerd siebinga wrote:
 On 18 Jan 2006, at 13:10, Mojca Miklavec wrote:
  If the placement of the
  macron doesn't suit your font, you can redefine it and get rid of
  those \uchar-s.

 What is the best way to redefine the accents (like macron, acute,
 etc.) to say a standard tex accent?

See enco-def.tex:

\definecharacter Amacron {\buildtextaccent\textmacron A}

This places the accent in the default way. But for example:

\definecharacter Adotbelow  {\buildtextbottomdot A}

In enco-ini.tex:
\def\buildtextbottomdot{\bottomaccent{.25ex}{0}{5}{\textbottomdot}}
\def\buildtextmacron{\bottomaccent{.25ex}{0}{15}{\textmacron}}
\def\buildtextgrave{\topaccent{0pt}{0}{15}{\textgrave}}

You can fine-tune those three argument to suit you best.

See also enco-acc.tex.

 Is there a command to pick up certain utf-glyphs that aren't picked-
 up by context? See the  ƃ ǖ in my example file.

I don't understand much abot the fonts and typescripts you are using,
but if you are using pdfTeX, two criteria have to be met:

1. you have to have it in the font (not only in the ttf, but also in
tfm I guess) - this seem to be rather complex font definitions; in
case of usual 256-character fonts you could get them with something
similar to \getglyph{UnicodeRegular01}{\char131} (you can define the
character name somewhere else, so that you don't need to say that
explicitely) or

% has to be included inside the proper encoding  typescript file
% I doubt that this would suit your needs
\definecharacter btopbar   131

But I don't know how this fits with your fonts.

2. If you have low-level access to proper glyphs described above, take
a look at unic-001.tex (or enco-uc.tex, but I guess that the later is
only used in XeTeX):

\startunicodevector 1
  \expandafter\strippedcsname
  \ifcase\numexpr#1\relax
\Amacron   \or
...
\Zcaron\or
\zcaron\or
\slong \or % 127 \slong \else
\unknownchar   \or % could be \bstroke
\unknownchar   \or % could be \Bhook
\unknownchar   \or
\unknownchar   \or % this could be your \btopbar (ƃ)
   % (LATIN SMALL LETTER B WITH TOPBAR)
   % or some more appropriate name
...
\uhorn \or
...
\udiaeresismacron \or % ǖ LATIN SMALL LETTER U WITH DIAERESIS AND MACRON
...
\else
\unknownchar
  \fi
\stopunicodevector

And then \btopbar has to be defined in the encoding to result in the
proper glyph. These slots were left undefined since nobody is
currently using them. If you can invent appropriate names, plese
consider contributing to the list. I collected some of the names
(those that I was able to find) on
http://pub.mojca.org/tex/enco/contextlist/contextnames.html (not all
of them are present in unic-*). unic-*.tex, enco-uc.tex are not really
sinchronized yet (in one file some names are defined which are not
defined in the other one).

For Chinese and Japanese some other mechanism is used which doesn't
need those names (might be more appropriate for you as well?), but I
don't know any more about it.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] xml and buffers

2006-01-20 Thread Junod Antoine
On Thu, Jan 19, 2006 at 05:55:22PM +0100, Hans Hagen wrote:
 Junod Antoine wrote:
 
 Hello gurus, 
 
 I'm a bit into trouble wih buffers and xml parsing. Here is my problem:
 [...]

 \defineXMLsingular
  [meta]
  [name=,content=]
  {\setevariables[document:meta][\XMLop{name}=\XMLop{content}]}

It works fine for all normal characters but not for accented
characters. Is there a workaround?

I'm using the ConTeXt version of the 16 of this month and the latest
stable version of pdftex.

The .log of the compilation is available here:

 http://zapata.tots-ns.net/analysis.log

The parsed .xhtml is here:

 http://zapata.tots-ns.net/analysis.xhtml

and the .tex is there:

 http://zapata.tots-ns.net/analysis.tex

One more time, thanks a lot for all your help.
Have a nice week-end
-AJ
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Venn diagram

2006-01-20 Thread Hans Hagen

Mojca Miklavec wrote:



I tried the (transparent(.8,3,blue)) at that place, but it seems that
either ConTeXt or Acrobat have problems here. It either compiled, but
then Adobe Reader complained, if I tried to compile
   fill fullcircle scaled 3cm withcolor (transparent(.8,3,blue));
manually, then I got an error
 


% fill fullcircle scaled 10cm withcolor transparant(8,.3,red) ;

Hans 


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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: after=\page in natural tables]

2006-01-20 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hello,

this example from core-ntb.tex


\startbuffer[table3]
\bTABLE[split=yes]
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR[after=\page] \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
\eTABLE
\stopbuffer

\starttext
  \getbuffer[table3]
\stoptext
---

does not work. Here is a log from live-wiki:

(./texweb-table3.tmp
! Use of \dododecrement doesn't match its definition.
\doifnextcharelse ...token =#1\def \!!stringa {#2}
  \def \!!stringb
{#3}\futur...

\popTBL ...\intablefalse \fi \doglobal \decrement
  \TBLlevel \relax
l.5 \eTABLE

?
! Emergency stop.



nasty one: we need to make \page test-safe

\unexpanded\def\pagebreak
 {\dosingleempty\dopagebreak}


I seee, OK thanks, it works. And I have to admit Taco was right with 
actual page height influences column splitting. I was wrong with my 
opinion. I was confused with


1) \adaptlayout[page][height=+3cm]
   increases the height only by: min(3cm,footer-height)
   (means UPTO footer-height)

2) there is some rounding error if setting height=(fit|middle), see

---
\showframe

\setuplayout[
  height=fit, % or middle
]

\startbuffer[table]
\bTABLE[split=yes]
  \dorecurse{200}{\bTR\bTD cell #1\eTD\eTR}
\eTABLE
\stopbuffer

\starttext
\startcolumns
  \getbuffer[table]
\stopcolumns
\stoptext


Vit

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread VnPenguin
On 1/20/06, Henning Hraban Ramm [EMAIL PROTECTED] wrote:

 The Gentium typescript is already in the typescripts.zip for a long
 time.
 Since I read the I'm allowed to re-distribute the font, I'll prepare
 a package soon,
 but I should rework my fonts page (or better the whole site)...


With curiosity, does your typescripts for Gentium support T5 encoding ? :)
We use Gentium ok for Vietnamese utf-8 here (Openoffice, Abiword,)
and it will be nice if you could provide vietnamese support ... :)

Thank you,

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Venn diagram

2006-01-20 Thread Mojca Miklavec
On 1/20/06, Hans Hagen wrote:
 Mojca Miklavec wrote:

 
 I tried the (transparent(.8,3,blue)) at that place, but it seems that
 either ConTeXt or Acrobat have problems here. It either compiled, but
 then Adobe Reader complained, if I tried to compile
 fill fullcircle scaled 3cm withcolor (transparent(.8,3,blue));
 manually, then I got an error
 
 
 % fill fullcircle scaled 10cm withcolor transparant(8,.3,red) ;

 Hans

Thanks. Two typos then :) (transparant - transparent).

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] lijgatures in LM

2006-01-20 Thread Mojca Miklavec
Hello, (the Dutch team),

Is it possible to prevent the IJ ligature in ec encoding in LM fonts
in ConTeXt somehow (except with manual intervention in every word
containing IJ)? I checked the behaviour in LaTeX with
\usepackage[T1]{inputenc} with the default font (some kind of Type 1
CM, but not LM), but it seems that only LM changes I and J to a
ligature (grrr ...). With the font in LaTeX it works OK.

pdftotext only knows how to convert the LaTeX document properly.
With the document prepared by ConTeXt, it fails to recognize the
ligature properly (searching in Acrobat works however). Besides the
fact that I and J separately (without a ligature) look much better, at
least in Slovenian words.

Thanks,
Mojca

If any expert for ligatures is reading this: is it fair that ccaron
+ k (h) have negative kerning, while c + b has no kerning at
all? I guess that ck was made because of the Germans, but at the
same time I guess that they don't need čk at all and I have a
feeling that the caron almost bumps into the serif. I compared with
LaTeX, but that font uses a smaller caron. (Without EC encoding
there's no negative kerning after ccaron present anyway.)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Align a compound inequality

2006-01-20 Thread David Arnold

All,

I have:

\placeformula[-]
\startformula
  \startalign[m=2]
3-2x-1  3-2x1\\
 -2x-4   -2x-2\\
   x2  x1
  \stopalign
\stopformula

And it works. However, I want to sqeeze the word or between the  
inequalities on the first row so that it reads:


3 - 2x  -1  or  3 - 2x  1

How can I do this?

I am not sure what m and n are meant to do with this code. Hans said  
n=n_of_columns and m=n_of_pairs, but I am not sure what these mean as  
relates to my problem above.


Ideas?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] math

2006-01-20 Thread David Arnold

Hans et al,

I am going to assume that all of this is saved as math-ext.tex. None  
of it goes anywhere else at the moment. Correct?


Also, I assume that:

  \ifx\startalign\undefined \input math-ext.tex \fi

still needs to go into cont-new.tex.

Correct?

On Jan 17, 2006, at 5:50 AM, Hans Hagen wrote:


Hi,

Attached is a new version of math-ext

- multiple columns
- alignment per column

See examples in source (mixed |cr and NC|NR is no longer supported).

That's all the math for this week.

Hans
%D \module
%D   [   file=math-ext,
%Dversion=2006.01.14,
%D  title=\CONTEXT\ Math Macros,
%D   subtitle=Extra Macros,
%D author={Hans Hagen \ Taco Hoekwater},
%D   date=\currentdate,
%D  copyright=\PRAGMA]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This will go into core-mat

%M \ifx\startalign\undefined \input math-ext.tex \fi

% some simple math constructs (based on user requests)
%
% preliminary

\unprotect

% adapted stuff

% we need to make this plain code a bit more 'readable'

\def\openup
  {\afterassignment\dopenup\scratchdimen=}

\def\dopenup
  {\advance\lineskip \scratchdimen
   \advance\baselineskip \scratchdimen
   \advance\lineskiplimit\scratchdimen}

\def\jot{.25\bodyfontsize} % plain tex: 3 pt (todo: better name)

[EMAIL PROTECTED]

[EMAIL PROTECTED] % \presetdisplayspacing or so
  [EMAIL PROTECTED]
   \openup\jot
   \mathsurround\zeropoint
   \everycr{\noalign{%
  [EMAIL PROTECTED]
[EMAIL PROTECTED]
\ifdim\prevdepth-\thousandpoint
  \vskip-\lineskiplimit
  \vskip\normallineskiplimit
\fi
  \else
\penalty\interdisplaylinepenalty
  \fi}}}

% context (hooks)

[EMAIL PROTECTED]@y

[EMAIL PROTECTED]@y}

[EMAIL PROTECTED]

% plain tex value: \centering = 0pt plus 1000pt minus 1000pt
% plain tex valye: \jot = 3pt

% n1  needed, strange # interaction (maybe we need a toks in  
recurse ane no macro)


\def\buildeqalign
  {\scratchtoks\emptytoks
   \dorecurse{\mathalignparameter\c!m}
 {\ifnum\recurselevel\plusone
\appendtoks
  \tabskip\mathalignparameter\c!distance\tabskip\zeropoint
\to\scratchtoks
  \fi
  \expanded{\scratchtoks{\the\scratchtoks\the\!!toksa}}%
  \dorecurse{\numexpr\mathalignparameter\c!n-\plusone\relax}
{\expanded{\scratchtoks{\the\scratchtoks\the\!!toksb%
   \expanded{\scratchtoks{\the\scratchtoks\the\!!toksc}}}

\def\forgetalign
  {\tabskip\zeropoint\everycr\emptytoks}

\let\firstineqalign\empty
\let\nextineqalign \empty
\let\leftofeqalign \empty
\let\rightofeqalign\empty

\def\mathineqalign#1{$\forgetalign\displaystyle{{}#1{}}$}
\def\textineqalign#1{$\forgetalign#1$}

\def\eqalign#1% why no halign here, probably because of displaywidth
  {\!!toksa{\strut\hfil$\displaystyle{##}$}%
   \!!toksb{$\displaystyle{{}##{}}$\hfil}%
   \!!toksc\emptytoks
   \buildeqalign
   \null\,\vcenter
 {\openup\jot
  \mathsurround\zeropoint
  \expandafter \ialign \expandafter {\the\scratchtoks\crcr#1 
\crcr}%

   }\,}

% preamble is scanned for tabskips so we need the span to prevent  
an error message


\def\prepareeqalignno
  {\!!toksa{\strut\firstineqalign\hfil\leftofeqalign\span 
\mathineqalign{##}\rightofeqalign\tabskip\zeropoint}%
   \!!toksb{\nextineqalign\leftofeqalign\span\mathineqalign{##} 
\rightofeqalign\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\llap{\span\textineqalign{##}} 
\tabskip\zeropoint}%

   \buildeqalign
   \presetdisplaymath
   \tabskip\centering}

\def\prepareleqalignno
  {\!!toksa{\strut\firstineqalign\hfil\leftofeqalign\span 
\mathineqalign{##}\rightofeqalign\tabskip\zeropoint}%
   \!!toksb{\nextineqalign\leftofeqalign\span\mathineqalign{##} 
\rightofeqalign\tabskip\zeropoint}%
   \!!toksc{\hfil\tabskip\centering\kern-\displaywidth\rlap{\span 
\textineqalign{##}}\tabskip\displaywidth}%

   \buildeqalign
   \presetdisplaymath
   \tabskip\centering}

\chardef\eqalignmode=1

\def\eqalignno#1%
  {\prepareeqalignno
   \halign \ifcase\eqalignmode \or to \displaywidth \fi [EMAIL PROTECTED] {\the 
\scratchtoks\crcr#1\crcr}}


\def\leqalignno#1%
  {\prepareleqaligno
   \halign \ifcase\eqalignmode \or to \displaywidth \fi [EMAIL PROTECTED] {\the 
\scratchtoks\crcr#1\crcr}}


\def\aligneqalignno
  {\prepareeqalignno
   \halign \ifcase\eqalignmode \or to \displaywidth \fi [EMAIL PROTECTED] \bgroup 
\the\scratchtoks\crcr}


\def\alignleqalignno
  {\prepareleqalignno
   \halign \ifcase\eqalignmode \or to \displaywidth \fi [EMAIL PROTECTED] \bgroup 
\the\scratchtoks\crcr}


\def\finishalignno
  {\crcr\egroup}

\definesystemvariable{eq}

\def\setupmathalign
  {\dodoubleempty\dosetupmathalign}

\def\dosetupmathalign[#1][#2]%
  {\ifsecondargument
 \getparameters[\??eq#1][#2]%
   \else
 \getparameters[\??eq][#1]%
   \fi}

\let\currentmathalign\empty

\def\mathalignparameter#1%
  

[NTG-context] Referencing an align environment

2006-01-20 Thread David Arnold

All,

I tried:

\placeformula[eq:twosolve]
\startformula
  \startalign[m=3]
3-2x-1 \qor 3-2x1\\
 -2x-4   -2x-2\\
   x2  x1
  \stopalign
\stopformula

As we see in (\in[eq;twosolve]), ...

But that didn't work.

Suggestions?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Align a compound inequality

2006-01-20 Thread Aditya Mahajan

--- On Jan 20, David Arnold wrote ---


All,

I have:

\placeformula[-]
\startformula
\startalign[m=2]
  3-2x-1  3-2x1\\
   -2x-4   -2x-2\\
 x2  x1
\stopalign
\stopformula

And it works. However, I want to sqeeze the word or between the 
inequalities on the first row so that it reads:


3 - 2x  -1  or  3 - 2x  1

How can I do this?


This is how I would do this,

\startformula \startalign[n=5,align={right,left,middle,right,left}]
 3 - 2x   -1  \quad \text{or} \quad  3-2x   1 \\
 -2x   -4  \text{or}  -2x  -2 \\
\stopalign \stopformula


--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Align a compound inequality

2006-01-20 Thread David Arnold

Aditya,

Thanks, and I am getting this to work, which is similar to the way  
the align macros from the AMS work:


\placeformula[eq:twosolve]
\startformula
  \startalign[m=3]
3-2x-1 \qor 3-2x1\\
 -2x-4   -2x-2\\
   x2  x1
  \stopalign
\stopformula


On Jan 20, 2006, at 10:07 PM, Aditya Mahajan wrote:


--- On Jan 20, David Arnold wrote ---


All,

I have:

\placeformula[-]
\startformula
\startalign[m=2]
  3-2x-1  3-2x1\\
   -2x-4   -2x-2\\
 x2  x1
\stopalign
\stopformula

And it works. However, I want to sqeeze the word or between the  
inequalities on the first row so that it reads:


3 - 2x  -1  or  3 - 2x  1

How can I do this?


This is how I would do this,

\startformula \startalign[n=5,align={right,left,middle,right,left}]
 3 - 2x   -1  \quad \text{or} \quad  3-2x   1 \\
 -2x   -4  \text{or}  -2x  -2 \\
\stopalign \stopformula


--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Referencing an align environment

2006-01-20 Thread Aditya Mahajan

--- On Jan 20, David Arnold wrote ---


\placeformula[eq:twosolve]
\startformula
 \startalign[m=3]
   3-2x-1 \qor 3-2x1\\
-2x-4   -2x-2\\
  x2  x1
 \stopalign
\stopformula

As we see in (\in[eq;twosolve]), ...

But that didn't work.


There are three equations, which one do you want to refer using 
eq:twosolve? You need to refer each equation explicitly. Something 
like

\placeformula \startformula \startalign[m=3]
 \NC 3 -2x \NC -1 \NC\NC \qor \NC 3-2x \NC 1 \NR[eq:twosolve]
 \NC -2x \NC -4 \NC\NC\NC -2x \NC -2 \NR
\stopalign \stopformula

Also note that if you use ams style .. \\ you need to put \\ on the 
last one also.


Aditya
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Referencing an align environment

2006-01-20 Thread David Arnold

Aditya,

I want to reference the whole block, not any one equation.

Thanks.

On Jan 20, 2006, at 10:32 PM, Aditya Mahajan wrote:


--- On Jan 20, David Arnold wrote ---


\placeformula[eq:twosolve]
\startformula
 \startalign[m=3]
   3-2x-1 \qor 3-2x1\\
-2x-4   -2x-2\\
  x2  x1
 \stopalign
\stopformula

As we see in (\in[eq;twosolve]), ...

But that didn't work.


There are three equations, which one do you want to refer using  
eq:twosolve? You need to refer each equation explicitly. Something  
like

\placeformula \startformula \startalign[m=3]
 \NC 3 -2x \NC -1 \NC\NC \qor \NC 3-2x \NC 1 \NR[eq:twosolve]
 \NC -2x \NC -4 \NC\NC\NC -2x \NC -2 \NR
\stopalign \stopformula

Also note that if you use ams style .. \\ you need to put \\ on  
the last one also.


Aditya
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Align a compound inequality

2006-01-20 Thread Aditya Mahajan

--- On Jan 20, David Arnold wrote ---


Aditya,

Thanks, and I am getting this to work, which is similar to the way the align 
macros from the AMS work:


Keep in mind Hans comment in math-ext
   % amstex compatibility mode: (ugly)
I kinda agree. Look at the example in the source for using \NC \NC \NR 
instead of  .. \\. That gives you more flexibility in using labels 
and numbering for for specific equations.





\placeformula[eq:twosolve]
\startformula
\startalign[m=3]
  3-2x-1 \qor 3-2x1\\
   -2x-4   -2x-2\\
 x2  x1
\stopalign
\stopformula


On Jan 20, 2006, at 10:07 PM, Aditya Mahajan wrote:


--- On Jan 20, David Arnold wrote ---


All,

I have:

\placeformula[-]
\startformula
\startalign[m=2]
 3-2x-1  3-2x1\\
  -2x-4   -2x-2\\
x2  x1
\stopalign
\stopformula

And it works. However, I want to sqeeze the word or between the 
inequalities on the first row so that it reads:


3 - 2x  -1  or  3 - 2x  1

How can I do this?


This is how I would do this,

\startformula \startalign[n=5,align={right,left,middle,right,left}]
3 - 2x   -1  \quad \text{or} \quad  3-2x   1 \\
-2x   -4  \text{or}  -2x  -2 \\
\stopalign \stopformula


--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context




--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Referencing an align environment

2006-01-20 Thread Aditya Mahajan

--- On Jan 20, David Arnold wrote ---


I want to reference the whole block, not any one equation.


I do not understand how would you want the output to look like?

 a = b  (1)
 c = d  (2)
 e = f  (3)

As seen in (1),(2) and (3).

Maybe ask Hans for a feature request :-)

Aditya



On Jan 20, 2006, at 10:32 PM, Aditya Mahajan wrote:


--- On Jan 20, David Arnold wrote ---


\placeformula[eq:twosolve]
\startformula
\startalign[m=3]
  3-2x-1 \qor 3-2x1\\
   -2x-4   -2x-2\\
 x2  x1
\stopalign
\stopformula

As we see in (\in[eq;twosolve]), ...

But that didn't work.


There are three equations, which one do you want to refer using 
eq:twosolve? You need to refer each equation explicitly. Something like

\placeformula \startformula \startalign[m=3]
\NC 3 -2x \NC -1 \NC\NC \qor \NC 3-2x \NC 1 \NR[eq:twosolve]
\NC -2x \NC -4 \NC\NC\NC -2x \NC -2 \NR
\stopalign \stopformula

Also note that if you use ams style .. \\ you need to put \\ on the last 
one also.


Aditya
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context




--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context