Re: [NTG-context] Problem with XML entities in titles [2]

2007-10-05 Thread Richard Gabriel
Hans,

\xmlsetsetups throws Undefined control sequence... 
(ConTeXt 2007.09.28)

?!

R.



  _  

From: Hans Hagen [mailto:[EMAIL PROTECTED]
To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]
Sent: Thu, 04 Oct 2007 20:26:14 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]

Richard Gabriel wrote:
   Hello once again,
   
   I've puzzled my brain for a while ;-)
   and then I came to the following solution:
   
   \def\ExChapter#1{
 \expanded{\chapter{#1}}
   }
   
   \defineXMLcommand[chapter]{
 \defineXMLargument[title]\ExChapter
   }
  
  
  in mkiv ... this becomes:
  
  
  (1) register handler in setup ssection
  
  \xmlsetsetups {main} {chapter} {*}
  
  (2) access child element using lpath
  
  \startxmlsetups chapter
   \expanded{\chapter{
\xmlfirst{#1}{title}
   }}
  \stopxmlsetups
  
  
  
  -
 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] Problem with XML entities in titles [2]

2007-10-05 Thread Richard Gabriel
Oh so, thanks Hans and Thomas! Maybe I've been sleeping too long. :-) 
I'm going to setup luatex...

-Richard


  _  

From: Hans Hagen [mailto:[EMAIL PROTECTED]
To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]
Sent: Fri, 05 Oct 2007 13:53:14 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]

Richard Gabriel wrote:
   Hans,
   
   \xmlsetsetups throws Undefined control sequence... 
  
  as said ...
  
 in mkiv ... this becomes:
  
  so you need luatex
  
  btw, you can then also do things like:
  
  \xmlfirst{#1}{b[position()  2 and position()  5 and text() == 'ok']}
  \xmlfirst{#1}{b[position()  2 and position()  5 and text() == 
  upper('ok')]}
  [EMAIL PROTECTED]'03' or @n=='08']}
  \xmlall  {#1}{b[number(@n)2 and number(@n)6]}
  \xmlfirst{#1}{b[find(text(),'ALSO')]}
  
  and other complex path stuff
  
  
  
  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
  -
  
___
  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] Problem with XML entities in titles [2]

2007-10-05 Thread Richard Gabriel
Thanks Hans. Please excuse me for my impertinence, but why is any backward 
compatibility not kept? Why suddenly stopped working what did work for years? 
:-( 

Well, OK, I'm going to start with luatex... ;-)

Thanks,
R.


  _  

From: Hans Hagen [mailto:[EMAIL PROTECTED]
To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]
Sent: Fri, 05 Oct 2007 16:16:50 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]

Thomas A. Schmitz wrote:
   On Oct 5, 2007, at 12:06 PM, Richard Gabriel wrote:
   
   Hans,
  
   \xmlsetsetups throws Undefined control sequence...
   (ConTeXt 2007.09.28)
  
   ?!
  
   R.
  
   
   With --luatex?
  
  see wiki .. you also need luatex itself
  
  
  -
 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
___


[NTG-context] Problem with XML entities in titles [2]

2007-10-04 Thread Richard Gabriel
Hello Hans,

some time ago I've reported this problem with character entities. I've just 
upgraded to ConTeXt 2007-09-28, and the problem still persists!
Could you please look into it? A simple test file is attached.

Many thanks,
Richard




  _  

From: Richard Gabriel [mailto:[EMAIL PROTECTED]
To: ntg-context@ntg.nl
Cc: Hans Hagen [mailto:[EMAIL PROTECTED]
Sent: Wed, 15 Aug 2007 09:35:52 +0200
Subject: [NTG-context] Problem with XML entities in titles

Hello Hans, 

I'd like to report a problem (bug) with XML entities in chapter or section 
titles.
I've just upgraded to the recent ConTeXt version (2007.08.09) and started to 
get errors while processing the .tuo file.

Please test the attached minimal example.
During the second TeX run, I get the following error:

--- cut ---
(./test.tuo
! Misplaced alignment tab character .
argument This is anbsp;testing chapter
\listtextcommand #1-\begstrut #1 \endstrut
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4}\dostopattributes
argument ...ry {This is anbsp;testing chapter}}
  \egroup \ifdim \wd 4=\zero...
\secondoftwoarguments #1#2-#2
\dosomelistelement ...hss \dostoplistattributes }}
  \endgraf \nointerlineskip ...
...
l.29 ...p;testing chapter}{2--0-1-0-0-0-0-0--2}{2}
--- cut ---

(find the complete log in attachment)

Till today, I have been using ConTeXt version 2007.04.17 and it had worked fine!

Thanks,
Richard

  

test.tex
Description: TeX document


test.log
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  : 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] Problem with XML entities in titles [2]

2007-10-04 Thread Richard Gabriel
Hello Wolfgang,

thanks for Your hint.

 I'm not Hans but I can also give you a solution to your problem.
OK, sorry, maybe I shouldn't address Hans directly when writing to the mailing 
list... ;-)

 BTW: Your xml file is valied because you forgot to include the
chapter end tag.

Ooops! I've quickly created a minimal test file; of course I didn't want to 
attach the real file where I've encountered that problem...

Anyway, the XML file is structured the following way:

chaptertitleThis is anbsp;testing chapter/title
paraSome meaningless text.../para
/chapter

chaptertitleSo mdash; let's see/title
paraSome meaningless text.../para
/chapter

... the paragraphs are enclosed inside chapters.
So unfortunately I can't use your solution because the \chapter command needs 
to be issued at the beginning, not at the end tag.

Got any another idea?


Many thanks,
Richard


 

  _  

From: Wolfgang Schuster [mailto:[EMAIL PROTECTED]
To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]
Sent: Thu, 04 Oct 2007 13:47:27 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]

2007/10/4, Richard Gabriel [EMAIL PROTECTED]:
   Hello Hans,
  
   some time ago I've reported this problem with character entities. I've just
   upgraded to ConTeXt 2007-09-28, and the problem still persists!
   Could you please look into it? A simple test file is attached.
  
   Many thanks,
   Richard
  
  Hello Richard,
  
  I'm not Hans but I can also give you a solution to your problem.
  
  This is related to your own definition for the chapter header and
  ConTeXt's mechanism to save the two pass information of the headers,
  you should save the header text and expand the header command
  with the header text, you can use my example for your problem.
  
  BTW: Your xml file is valied because you forgot to include the
  chapter end tag.
  
  \defineXMLenvironment [chapter]
{\defineXMLsave[title]}
{\expanded{\chapter{\XMLflush{title
  
  \defineXMLenvironment[para] \dontleavehmode \par
  
  \defineXMLentities [tex] {tex} {\TeX}
  
  \starttext
  \completecontent
  
  \startXMLdata
  chaptertitleThis is a testing tex; chapter/title/chapter
  paraSome meaningless text.../para
  \stopXMLdata
  
  \stoptext
  
  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] Problem with XML entities in titles [2]

2007-10-04 Thread Richard Gabriel
Hello once again,

I've puzzled my brain for a while ;-)
and then I came to the following solution:

\def\ExChapter#1{
  \expanded{\chapter{#1}}
}

\defineXMLcommand[chapter]{
  \defineXMLargument[title]\ExChapter
}

From the first tests, it seems to work fine, anyway, I'm not sure if it won't 
break anything else... :-/
Anyway, thank for your hint with the expansion!

-Richard



  _  

From: Wolfgang Schuster [mailto:[EMAIL PROTECTED]
To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]
Sent: Thu, 04 Oct 2007 13:47:27 +0200
Subject: Re: [NTG-context] Problem with XML entities in titles [2]

2007/10/4, Richard Gabriel [EMAIL PROTECTED]:
   Hello Hans,
  
   some time ago I've reported this problem with character entities. I've just
   upgraded to ConTeXt 2007-09-28, and the problem still persists!
   Could you please look into it? A simple test file is attached.
  
   Many thanks,
   Richard
  
  Hello Richard,
  
  I'm not Hans but I can also give you a solution to your problem.
  
  This is related to your own definition for the chapter header and
  ConTeXt's mechanism to save the two pass information of the headers,
  you should save the header text and expand the header command
  with the header text, you can use my example for your problem.
  
  BTW: Your xml file is valied because you forgot to include the
  chapter end tag.
  
  \defineXMLenvironment [chapter]
{\defineXMLsave[title]}
{\expanded{\chapter{\XMLflush{title
  
  \defineXMLenvironment[para] \dontleavehmode \par
  
  \defineXMLentities [tex] {tex} {\TeX}
  
  \starttext
  \completecontent
  
  \startXMLdata
  chaptertitleThis is a testing tex; chapter/title/chapter
  paraSome meaningless text.../para
  \stopXMLdata
  
  \stoptext
  
  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
___


[NTG-context] Problem with XML entities in titles

2007-08-15 Thread Richard Gabriel
Hello Hans, 

I'd like to report a problem (bug) with XML entities in chapter or section 
titles.
I've just upgraded to the recent ConTeXt version (2007.08.09) and started to 
get errors while processing the .tuo file.

Please test the attached minimal example.
During the second TeX run, I get the following error:

--- cut ---
(./test.tuo
! Misplaced alignment tab character .
argument This is anbsp;testing chapter
\listtextcommand #1-\begstrut #1 \endstrut
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4}\dostopattributes
argument ...ry {This is anbsp;testing chapter}}
  \egroup \ifdim \wd 4=\zero...
\secondoftwoarguments #1#2-#2
\dosomelistelement ...hss \dostoplistattributes }}
  \endgraf \nointerlineskip ...
...
l.29 ...p;testing chapter}{2--0-1-0-0-0-0-0--2}{2}
--- cut ---

(find the complete log in attachment)

Till today, I have been using ConTeXt version 2007.04.17 and it had worked fine!

Thanks,
Richard

test.tex
Description: TeX document


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


[NTG-context] Problem with XML entities in titles

2007-08-13 Thread Richard Gabriel
Hello Hans, 

I'd like to report a problem (bug) with XML entities in chapter or section 
titles.
I've just upgraded to the recent ConTeXt version (2007.08.09) and started to 
get errors while processing the .tuo file.

Please test the attached minimal example.
During the second TeX run, I get the following error:

--- cut ---
(./test.tuo
! Misplaced alignment tab character .
argument This is anbsp;testing chapter
\listtextcommand #1-\begstrut #1 \endstrut
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4}\dostopattributes
argument ...ry {This is anbsp;testing chapter}}
  \egroup \ifdim \wd 4=\zero...
\secondoftwoarguments #1#2-#2
\dosomelistelement ...hss \dostoplistattributes }}
  \endgraf \nointerlineskip ...
...
l.29 ...p;testing chapter}{2--0-1-0-0-0-0-0--2}{2}
--- cut ---

(find the complete log in attachment)

Till today, I have been using ConTeXt version 2007.04.17 and it had worked fine!

Thanks,
Richard

test.tex
Description: TeX document


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


Re: [NTG-context] Hardcoded options in the Ruby scripts

2006-10-25 Thread Richard Gabriel




Hello Hans,thanks for the answer.  (adding a user inferface is more that adding something to  texexec)I understand, but I use the English interface for all languages anyway.Maybe I'm doing something wrong or in a non-standard way...For processing files with ConTeXt, I have a script which does (simplified to the minimum):texmfstart texexec --interface=cont-$1 $2So when I started to experiment with Chinese and Japanese, for example, I naturally wanted the processing to be consistent with other languages. I've simply "cloned" the cont-en.tex format file into cont-cn.tex and cont-ja.tex and defined the default language, default encoding etc. in them. And created new formats. But I had to add these new formats into scripts/ruby/base/tex.rb in order to generate and use them. In case of ConTeXt update, I have to do this change again and again. That's the reason why I've suggested to put these definitons into a separate (user) file. 2. "Make all" should make ALL the defined ConTeXt formats, not the  default ones.
--all means: all patterns Mmm, sorry... I forgot that there are many formats other than cont-*... :-/What does "all patterns" mean?Before altering the tex.rb script, I've tried "texexec --make --all" several times, and it had always rebuilt the 'cont-en', 'cont-nl' and 'mptopdf' formats (maybe also 'metafun'(?); I'm not completely sure...).-Richard
From: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Mon, 23 Oct 2006 14:42:05 +0200Subject: Re: [NTG-context] Hardcoded options in the Ruby scriptsRichard Gabriel wrote:

 Lines 131-137:
 Here are a few languages predefined which texexec "knows". If I want 
 to add a format for another language, I have to add a new line here.
such as ...? (adding a user inferface is more that adding something to 
texexec)

 Line 339:
 Here are the "default" TeX formats defined. No problem to consider 
 something as default ;-), but the point is that "texexec --make --all" 
 actually does "make all DEFAULT formats", NOT "make all AVAILABLE 
 formats". :-(
which would be quite a lot -) what do you mean with all?

 Anyway, the main problem I see is altering of a script which comes 
 with the ConTeXt distribution - the changes made into this scripts 
 must be done again and again after each update.

 My suggestion is:
 1. To put the format definition into a separate file (like user.rb or 
 so) which won't be owerwritten in any case.
 [Note: cont-usr.tex is a good analogy to this]
hm, must think about it ; i don't like too many dependencies

 2. "Make all" should make ALL the defined ConTeXt formats, not the 
 default ones.
--all means: all patterns 

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


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


[NTG-context] Hardcoded options in the Ruby scripts

2006-10-23 Thread Richard Gabriel




Hello Hans,I'm still wondering why there are certain formats hardcoded in your scripts and how the "make all formats" feature does (not work).See scripts/ruby/base/tex.rb:Lines 131-137:Here are a few languages predefined which texexec "knows". If I want to add a format for another language, I have to add a new line here.Line 339: Here are the "default" TeX formats defined. No problem to consider something as default ;-), but the point is that "texexec --make --all" actually does "make all DEFAULT formats", NOT "make all AVAILABLE formats". :-(Anyway, the main problem I see is altering of a script which comes with the ConTeXt distribution - the changes made into this scripts must be done again and again after each update.My suggestion is:1. To put the format definition into a separate file (like user.rb or so) which won't be owerwritten in any case. [Note: cont-usr.tex is a good analogy to this]2. "Make all" should make ALL the defined ConTeXt formats, not the default ones.Thanks,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel




Hello Hans and others,I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb script.1. I find quite impractical that the formats (cont-en, cont-nl etc.) are hardcoded in the scripts. When one wants to add a new format, then he must add it on 4 or 5 places in the script, and do it again and again everytime when upgrading ConTeXt. :-(2. Maybe this is an OS and TeX distribution specific issue...I use TeXLive 2005 on Windows XP.The TeX formats are located in C:\TeXLive\texmf-var\web2c. [the "kpsewhich --show-path=fmt" command also shows this path].When generating a format using "texmfstart texexec --make en", the generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. Then, when trying to use the format, it is not found...This is done on line 547 of tex.rb:texformatpath = if getvariable('local') then '.' else Kpse.formatpath(texengine,true) endSo I've changed it to "Kpse.formatpath(texengine,false)" and everything is fine.But I don't understand why it is set so by default and why it doesn't work for me. Does anybody experience the same problem?-Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] base/tex.rb comments

2006-07-21 Thread Richard Gabriel




OH SO!There was onlyTEXFORMATS = .;$TEXMF/web2c in my texmf-var/web2c/texmf.cnfI changed it into TEXFORMATS = .;$TEXMF/web2c/{$engine,}(as suggested in context.cnf) and IT WORKS!Many thanks for the hint, Taco!-RichardFrom: Taco Hoekwater [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 21 Jul 2006 14:49:34 +0200Subject: Re: [NTG-context] base/tex.rb comments

Richard Gabriel wrote:
 
 I'm attaching the complete context.cnf file for reference.

context.cnf is not actually used by any programs. It is only
provided as a sample of how texmf.cnf could be set up.

Greetings, Taco
___
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] base/tex.rb comments

2006-07-21 Thread Richard Gabriel




 well, we can use:
  def validsomething(str,something) if str then list = [str].flatten.collect do |s| something[s] || s # || s addedExcellent! Could you please add it to the distribution?Many thanks!-RichardP.S. I'll probably have to learn at basics of Ruby... I'm familiar with Perl, PHP, shell scripts... but the Ruby code is totally cryptic for me! :-(((From: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 21 Jul 2006 13:12:23 +0200Subject: Re: [NTG-context] base/tex.rb commentsRichard Gabriel wrote:
 Hello Hans and others,

 I'd have two comments to the texmf/scripts/context/ruby/base/tex.rb 
 script.

 1. I find quite impractical that the formats (cont-en, cont-nl etc.) 
 are hardcoded in the scripts. When one wants to add a new format, then 
 he must add it on 4 or 5 places in the script, and do it again and 
 again everytime when upgrading ConTeXt. :-(
well, we can use:

def validsomething(str,something)
if str then
list = [str].flatten.collect do |s|
something[s] || s # || s added
end .compact.uniq
if list.length0 then
if str.class == String then list.first else list end
else
false
end
else
false
end
end

and then you can say

texexec --all --make --texformats=cont-xx

given that you have cont-xx.tex


 2. Maybe this is an OS and TeX distribution specific issue...
 I use TeXLive 2005 on Windows XP.
 The TeX formats are located in C:\TeXLive\texmf-var\web2c. [the 
 "kpsewhich --show-path=fmt" command also shows this path].
 When generating a format using "texmfstart texexec --make en", the 
 generated format is placed into C:\TeXLive\texmf-var\web2c\pdfetex. 
 Then, when trying to use the format, it is not found...

 This is done on line 547 of tex.rb:

 texformatpath = if getvariable('local') then '.' else 
 Kpse.formatpath(texengine,true) end

 So I've changed it to "Kpse.formatpath(texengine,false)" and 
 everything is fine.

 But I don't understand why it is set so by default and why it doesn't 
 work for me.
 Does anybody experience the same problem?
we really need the engine path so i wonder why the format is not found; maybe an error in the cnf file (should recursively search the web2c path for formats) 

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

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


[NTG-context] PDF bookmarks problem

2006-07-17 Thread Richard Gabriel




Hello Hans,I've noticed a problem with PDF bookmarks when the particular chapter/section titles contain non-ascii characters and/or XML entities. I suppose some "expansion" mechanism should be added (like for the index entries)...Attached you'll find two test files demonstrating this problem.Thanks,Richard

test-001.tex
Description: TeX document


test-002.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Index sorting again

2006-07-03 Thread Richard Gabriel




I'd consider it more trasparent... But, anyway, Hans has already fixed this problem and he has made it the first way (i.e. symbols including numbers in one group and then the letters). I guess it's OK and consistent with the DocBook XSLT stylesheets which I use for the HTML output.-RichardFrom: Mojca Miklavec [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Sat, 01 Jul 2006 00:51:18 +0200Subject: Re: [NTG-context] Index sorting againOn 6/29/06, Richard Gabriel wrote:

  For example, the DocBook XSLT stylesheets (http://docbook.sourceforge.net/)
 solve it this way:

 Symbols (anything unsortable, including numbers)
 A
 B
 ...
 Z


 ---
 I'd suggest a bit better way:

 Symbols
 1
 2
 ...
 9
 A
 B
 ...
 Z

But why 10 bins for numbers?

Mojca
___
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] Index sorting again

2006-06-29 Thread Richard Gabriel




For example, the DocBook XSLT stylesheets (http://docbook.sourceforge.net/) solve it this way:Symbols (anything unsortable, including numbers)AB...Z---I'd suggest a bit better way:Symbols12...9AB...Z-Richard From: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Thu, 29 Jun 2006 14:33:41 +0200Subject: Re: [NTG-context] Index sorting againRichard Gabriel wrote:
 Hello Hans,

 I'd like to remind the 2 persisting problems with the index sorting.

 1. Numbers are sorted under A
 2. Symbols are sorted under the first letter which follows.

 See the attached test file.
 Both these issues are independent on language and on the expansion type.

 Proposed solution:

 1. Sort numbers into separate divisions
 2. Sort symbols to a special division called "Symbols"

 Could you please look into it?
 May I help you any further (except the attached test file)?
the question is ... where do they need to end up 

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

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


[NTG-context] Index sorting again

2006-06-27 Thread Richard Gabriel




Hello Hans,I'd like to remind the 2 persisting problems with the index sorting.1. Numbers are sorted under A2. Symbols are sorted under the first letter which follows.See the attached test file.Both these issues are independent on language and on the expansion type.Proposed solution:1. Sort numbers into separate divisions2. Sort symbols to a special division called "Symbols"Could you please look into it? May I help you any further (except the attached test file)?Many thanx,Richard

test-002.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Long listing of typescript files

2006-06-22 Thread Richard Gabriel




Yes, it it normal. I recommend you to use \preloadtypescriptsat start of every TeX file - this significantly speeds up the typescript loading.-RichardFrom: John R. Culleton [mailto:[EMAIL PROTECTED]To: ntg-context@ntg.nlSent: Thu, 22 Jun 2006 00:31:49 +0200Subject: [NTG-context] Long listing of typescript filesFor every run of texexec no matter how trivial I get a list of it
seems all the available typescript files and map files. Is this
normal? E.g.:

(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-dis.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-dis.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-dis.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-dis.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-dis.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-pre.tex)
bodyfont: unknown variant Charter
) (/usr/share/texmf/tex/plain/pdfcolor/pdfcolor.tex) (./jun06.tuo) 
(./jun06.tuo
) (./jun06.tuo) (./jun06.tuo) (./jun06.tuo) (./jun06.tuo) (./jun06.tuo)
(./jun06.tuo) (./jun06.tuo) (./jun06.tuo) (./jun06.tuo) (./jun06.tuo)
(./jun06.tuo)
fonts   : using map file: texnansi-public-lm.map
fonts   : using map file: original-public-vnr.map
fonts   : using map file: original-public-csr.map
fonts   : using map file: original-public-plr.map
fonts   : using map file: original-public-lm.map
fonts   : using map file: original-ams-euler.map
fonts   : using map file: original-ams-cmr.map
fonts   : using map file: texnansi-base.map
fonts   : using map file: t5-base.map
fonts   : using map file: qx-base.map
fonts   : using map file: 8r-base.map
fonts   : using map file: ec-base.map
fonts   : using map file: ec-public-lm.map
fonts   : using map file: original-base.map
systems : begin file jun06 at line 4
(../head.tex ./oriole.jpg
figures : dimensions of ./oriole.jpg loaded from figurefile itself
(./jun06.tuo)) (../deadline.tex) (../content.tex (./jun06.tuo)) [1.1
{/usr/share
/texmf/fonts/map/dvips/context/original-empty.map}
{/usr/share/texmf/fonts/map/d
vips/context/texnansi-public-lm.map}
{/usr/share/texmf/fonts/map/dvips/context/o
riginal-public-vnr.map}
{/usr/share/texmf/fonts/map/dvips/context/original-publi
c-csr.map}{/usr/share/texmf/fonts/map/dvips/context/original-public-plr.map}
{/u
sr/share/texmf/fonts/map/dvips/context/original-public-lm.map}
{/usr/share/texmf
/fonts/map/dvips/context/original-ams-euler.map}
{/usr/share/texmf/fonts/map/dvi
ps/context/original-ams-cmr.map}
{/usr/share/texmf/fonts/map/dvips/context/texna
nsi-base.map}{/usr/share/texmf/fonts/map/dvips/context/t5-base.map}
{/usr/share/
texmf/fonts/map/dvips/context/qx-base.map}
{/usr/share/texmf/fonts/map/dvips/con
text/8r-base.map}{/usr/share/texmf/fonts/map/dvips/context/ec-base.map}
{/usr/sh
are/texmf/fonts/map/dvips/context/ec-public-lm.map}
{/usr/share/texmf/fonts/map/
dvips/context/original-base.map}] [2.2] (./calendar.tex
--

A few of these notations are specific to this application but ost
are just repetitive references. 
-- 
John Culleton


___
ntg-context mailing list
ntg-context@ntg.nl

Re: [NTG-context] Typescripts tutorials?

2006-06-22 Thread Richard Gabriel




Hello Jason,I'd recommend you the Bill McClain's Context Beginner Help page:http://home.salamander.com/~wmcclain/context-help.htmlJust when I've found this, typescripts and other font-related things stopped to be a mystery for me... ;-)-RichardFrom: Jason Knight [mailto:[EMAIL PROTECTED]To: ntg-context@ntg.nlSent: Thu, 22 Jun 2006 18:27:24 +0200Subject: [NTG-context] Typescripts tutorials?Hello --

I'm getting ready to get some new fonts working and I'm trying to figure
out typescripts. Specifically, I'm confused about the syntax of the

\starttypescript [][][]

statements. Is there an explanation of these files in non-code (ie,
English)?

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


[NTG-context] Another 2 index bugs

2006-06-15 Thread Richard Gabriel




Hello Hans,I've just noticed another two bugs in index sorting.1. Numbers are sorted under A2. Symbols are sorted under the first letter which follows.See the attached test file.Both these issues are independent on language and on the expansion type.Proposed solution:1. Sort numbers into separate divisions2. Sort symbols to a special division called "Symbols"Thanks,Richard

test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ec encoding and tcaron

2006-06-09 Thread Richard Gabriel




Hello Michal, I'm sure the EC encoding contains the 'tcaron' character (see the lm-ec.enc file for example).I have ConTeXt on top of TeXLive 2005.I can find:texmf/fonts/enc/dvips/base/ec.enctexmf/fonts/enc/dvips/lm/ec-lm.enctexmf/fonts/enc/dvips/lm/lm-ec.encI use EC normally for typesetting Czech documents. So I would suggest to use EC ;-)-RichardFrom: Michal Kvasnicka [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 09 Jun 2006 12:11:11 +0200Subject: [NTG-context] ec encoding and tcaronDear friends,

I apologize that I ask the same question that had been asked a year ago 
but I can't find in the archive the definite solution.

I want to use new fonts in the ConTeXt to typeset the Czech documents. 
TeXFont seems to be the best way to prepare metrics. EC encoding seems 
to be the standard ConTeXt encoding. But it doesn't include tcaron 
(well, this is true at least for EC.enc on my teTeX 3.0 under the SuSE 
Linux 10.0 with the latest ConTeXt from May 28). (In the Czech the lower 
case of Tcaron looks like tqouteright but nowadays most AFM files call 
it tcaron).  Other glyphs may miss as well (I might not notice since I 
suspect that ConTeXt replaces missing letter with composites, e.g. 
Ecaron with \v{E}).

So, what is the standard way I should use? I can use ec-lm.enc but is it 
the right way? (Moreover, it seems there is no information for 
ligatures.) I could try to use il2, but is the right way? And I had some 
problems with xl2.enc used formerly for il2-encoded fonts.

So, what was decided to be the right encoding for the ConTeXt? (Is the 
answer the same for the Czech typesetters?)
And one more question: Does anybody have the enc file that would make 
the TeXFont to generate metrics for il2-encoded fonts for the use with 
csplain (the Czech version of plainTeX)?

Sincerely yours
Michal Kvasnicka

___
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] texmfstart texutil

2006-06-09 Thread Richard Gabriel




Of course I understand, I'd solve it the same way...But, I'd suggest to print some warning, if some functionality is moved or removed.E.g. if I try texmfstart texutil.rb --figuresit also doesn't work but I'm informed what has happened.. ;-)Thanks,RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 09 Jun 2006 12:50:45 +0200Subject: Re: [NTG-context] texmfstart texutilRichard Gabriel wrote:
 I'd like to confirm this, i tried
 texmfstart texutil.rb test.tui
 or
 texmfstart texutil.rb --references test.tui
 and nothing happened!
 Although, texutil is called correctly when processing a file with 
 texexec (maybe texexec calls methods from texutil.rb directly...)
indeed, texexec.rb therefore does not need to start another script (so 
we're faster now)

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

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


[NTG-context] Bug in index references (or featur e?)

2006-06-08 Thread Richard Gabriel




Hello Hans and others,I've found a strange behavior of the index references.If there are two (or more) references to the same term on one page, each one in another chapter, there will be two (or more) references to the same page number in the index.The attached sample demonstates it clearly:- If the same term is referred in different chapter ("Term" or "Another term"), then there are multiple references to the same page in the index.- It the term is referred more times within the same chapter ("Yet another term"), then there's only one reference in the Index.I consider this behavior a bit confusing. Maybe it has it's meaning when interaction is used (but it's inconsistent anyway), but it definitely look like an error in printed documents.What do you guess think this?Thanks,Richard

test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Index sorting for other languages than English (2)

2006-05-30 Thread Richard Gabriel




I'd suggest you to use the extended variant of the \index macro. There you can specify an ASCII equivalent of the word, which will be used for sorting:\index[soz kesmek]{s\"oz kesmek}\index[seref]{\c seref}-RichardFrom: "R. Ermers" [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Tue, 30 May 2006 08:43:01 +0200Subject: [NTG-context] Index sorting for other languages than English (2)Hi all,

I have a document in Dutch (\mainlanguage[nl]) in which I quote Turkish 
items, which I want to collect in a separate index, like this:

"Enkele voorbeelden zijn: \quote{oudere zus} \turkish{abla}, 
\quote{jongere broer of zus} \turkish{karde\c{s}}, de \quote{zus van 
vader} (\quote{tante}) \turkish{hala, \quote{de zus van moeder} 
\turkish{teyze}. Voor aangetrouwde familieleden gelden soms juist vagere 
termen dan in het Nederlands, bijv. \quote{aangetrouwde tante} en 
\quote{schoonzuster}, \turkish{yenge}."

The index, however, is based on Dutch (mainlanguage). This causes two 
problems:

1. words with accents, like s\"oz, are not sorted correctly to any standard:
S
söz kesmek 76
saygı 14
s¸eref 3, 14, 24, 27

2. letters with diacritics, like \c{s} (under which \c{s}eref is to be 
placed) are not included in the alphabetical listing in the index, which 
of course follows the Dutch alphabet.

Does anyone have a solution?

Regards,

Robert


___
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] Index sorting for other languages than English

2006-05-30 Thread Richard Gabriel




Hello Hans,I'm sorry but when you were adding my sorting rules for Czech, you've (probably by accident) deleted the definition of \czsortdivisionch which leads to errors when trying to sort a word on "ch".I've also made some minor corrections. Here is the updated version:% ---\def\czsortdivisionch{ch}\def\czsortdivisionCh{Ch}\startmode[sortorder-cz] \exportsortexpansion {aacute} {a+1} \exportsortexpansion {Aacute} {A+1} \exportsortexpansion {ccaron} {c+1} \exportsortexpansion {Ccaron} {C+1} \exportsortdivision {c+1} {ccaron} \exportsortexpansion {dcaron} {d+1} \exportsortexpansion {Dcaron} {D+1} \exportsortdivision {d+1} {dcaron} \exportsortexpansion {eacute} {e+1} \exportsortexpansion {Eacute} {E+1} \exportsortexpansion {ecaron} {e+2} \exportsortexpansion {Ecaron} {E+2} \exportsortreduction {ch} {h+1} \exportsortexpansion {ch} {h+1} \exportsortreduction {Ch} {H+1} \exportsortexpansion {Ch} {H+1} \exportsortdivision {h+1} {czsortdivisionch} \exportsortexpansion {iacute} {i+1} \exportsortexpansion {Iacute} {I+1} \exportsortexpansion {ncaron} {n+1} \exportsortexpansion {Ncaron} {N+1} \exportsortdivision {n+1} {ncaron} \exportsortexpansion {oacute} {o+1} \exportsortexpansion {Oacute} {O+1} \exportsortexpansion {rcaron} {r+1} \exportsortexpansion {Rcaron} {R+1} \exportsortdivision {r+1} {rcaron} \exportsortexpansion {scaron} {s+1} \exportsortexpansion {Scaron} {S+1} \exportsortdivision {s+1} {scaron} \exportsortexpansion {tcaron} {t+1} \exportsortexpansion {Tcaron} {T+1} \exportsortdivision {t+1} {tcaron} \exportsortexpansion {uacute} {u+1} \exportsortexpansion {Uacute} {U+1} \exportsortexpansion {uring} {u+2} \exportsortexpansion {Uring} {U+2} \exportsortexpansion {yacute} {y+1} \exportsortexpansion {Yacute} {Y+1} \exportsortexpansion {zcaron} {z+1} \exportsortexpansion {Zcaron} {Z+1} \exportsortdivision {z+1} {zcaron}\stopmode% ---___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Index sorting for other languages that English

2006-05-26 Thread Richard Gabriel




Here is the test file. If you remove the \setupregister command, or simply set expansion=no, the sorting will work perfectly.With expansion=yes or expansion=xml, the accented letters are sorted under "A".Below are my updated sorting rules again...-Richard---\def\czsortdivisionch{ch}\def\czsortdivisionCh{Ch}\startmode[sortorder-cz] \exportsortexpansion{aacute}{a+1} \exportsortexpansion{Aacute}{A+1} \exportsortexpansion{ccaron}{c+1} \exportsortexpansion{Ccaron}{C+1} \exportsortdivision{c+1}{ccaron} \exportsortexpansion{dcaron}{d+1} \exportsortexpansion{Dcaron}{C+1} \exportsortdivision{d+1}{dcaron} \exportsortexpansion{eacute}{e+1} \exportsortexpansion{Eacute}{E+1} \exportsortexpansion{ecaron}{e+2} \exportsortexpansion{Ecaron}{E+2} \exportsortreduction{ch}{h+1} \exportsortexpansion{ch}{h+1} \exportsortreduction{Ch}{h+1} \exportsortexpansion{Ch}{h+1} \exportsortdivision{h+1}{czsortdivisionch} \exportsortexpansion{iacute}{i+1} \exportsortexpansion{Iacute}{I+1} \exportsortexpansion{ncaron}{n+1} \exportsortexpansion{Ncaron}{n+1} \exportsortdivision{n+1}{ncaron} \exportsortexpansion{oacute}{o+1} \exportsortexpansion{Oacute}{O+1} \exportsortexpansion{rcaron}{r+1} \exportsortexpansion{Rcaron}{R+1} \exportsortdivision{r+1}{rcaron} \exportsortexpansion{scaron}{s+1} \exportsortexpansion{Scaron}{S+1} \exportsortdivision{s+1}{scaron} \exportsortexpansion{tcaron}{t+1} \exportsortexpansion{Tcaron}{T+1} \exportsortdivision{t+1}{tcaron} \exportsortexpansion{uacute}{u+1} \exportsortexpansion{Uacute}{U+1} \exportsortexpansion{uring}{u+2} \exportsortexpansion{Uring}{U+2} \exportsortexpansion{yacute}{y+1} \exportsortexpansion{Yacute}{Y+1} \exportsortexpansion{zcaron}{z+1} \exportsortexpansion{Zcaron}{Z+1} \exportsortdivision{z+1}{zcaron}\stopmodeFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Wed, 24 May 2006 17:55:02 +0200Subject: Re: [NTG-context] Index sorting for other languages that EnglishRichard Gabriel wrote:
 Thanks Hans, it works with my test file,
 unless I set up:

 \setupregister[index][expansion=xml]

 which i need for correct processing of the XML files.
 If I simply add this command into the testing TeX file (no XML), the 
 Czech sorting stops to work and all accented characters are placed 
 under "A".
test file ...

 Regarding the sorting itself (sort-lan.tex):
 I found the definiton of the sorting quite strange, let's say, 
 incomplete.
 It makes no sense to separate ccaron while all other accented letters 
 are placed under the unaccented ones.
 I'll update the definitions, test it and send it to you.
ok 

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



test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Czech sorting

2006-05-25 Thread Richard Gabriel




Hello Hans,I've prepared and tested the complete sorting rules for Czech. Could you please put them into sort-lan.tex?The rules are quite simple: - all accented letter shall follow the unaccented ones- "caron" letters (consonants) are placed into separate groups- "acute" and "ring" letters (wowels) are placed under the appropriate unaccented lettersBut I vitally need to fix the problem that the sorting doesn't work when using \setupregister[index][expansion=xml]otherwise it's still useless for me... :-(Many thanx,Richard--\def\czsortdivisionch{ch}\def\czsortdivisionCh{Ch}\startmode[sortorder-cz] \exportsortexpansion{aacute}{a+1} \exportsortexpansion{Aacute}{A+1} \exportsortexpansion{ccaron}{c+1} \exportsortexpansion{Ccaron}{C+1} \exportsortdivision{c+1}{ccaron} \exportsortexpansion{dcaron}{d+1} \exportsortexpansion{Dcaron}{C+1} \exportsortdivision{d+1}{dcaron} \exportsortexpansion{eacute}{e+1} \exportsortexpansion{Eacute}{E+1} \exportsortexpansion{ecaron}{e+2} \exportsortexpansion{Ecaron}{E+2} \exportsortreduction{ch}{h+1} \exportsortexpansion{ch}{h+1} \exportsortreduction{Ch}{h+1} \exportsortexpansion{Ch}{h+1} \exportsortdivision{h+1}{czsortdivisionch} \exportsortexpansion{iacute}{i+1} \exportsortexpansion{Iacute}{I+1} \exportsortexpansion{ncaron}{n+1} \exportsortexpansion{Ncaron}{n+1} \exportsortdivision{n+1}{ncaron} \exportsortexpansion{oacute}{o+1} \exportsortexpansion{Oacute}{O+1} \exportsortexpansion{rcaron}{r+1} \exportsortexpansion{Rcaron}{R+1} \exportsortdivision{r+1}{rcaron} \exportsortexpansion{scaron}{s+1} \exportsortexpansion{Scaron}{S+1} \exportsortdivision{s+1}{scaron} \exportsortexpansion{tcaron}{t+1} \exportsortexpansion{Tcaron}{T+1} \exportsortdivision{t+1}{tcaron} \exportsortexpansion{uacute}{u+1} \exportsortexpansion{Uacute}{U+1} \exportsortexpansion{uring}{u+2} \exportsortexpansion{Uring}{U+2} \exportsortexpansion{yacute}{y+1} \exportsortexpansion{Yacute}{Y+1} \exportsortexpansion{zcaron}{z+1} \exportsortexpansion{Zcaron}{Z+1} \exportsortdivision{z+1}{zcaron}\stopmode___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Index sorting for other languages that English

2006-05-24 Thread Richard Gabriel




Thanks Hans, it works with my test file, unless I set up:\setupregister[index][expansion=xml]which i need for correct processing of the XML files.If I simply add this command into the testing TeX file (no XML), the Czech sorting stops to work and all accented characters are placed under "A".Regarding the sorting itself (sort-lan.tex): I found the definiton of the sorting quite strange, let's say, incomplete. It makes no sense to separate ccaron while all other accented letters are placed under the unaccented ones.I'll update the definitions, test it and send it to you.-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Tue, 23 May 2006 17:02:53 +0200Subject: Re: [NTG-context] Index sorting for other languages that EnglishRichard Gabriel wrote:
 Hello Hans,

 after an upgrade I noticed thar the index sorting works even worse 
 than before (tested on Czech, Chinese and Japanese, but probably 
 related to non-ASCII characters in common).

 With TeXExec 5.4.3, all words beginning with national (accented) 
 characters were put into a separate ("symbols") group and placed 
 before "A". This was not good but more or less acceptable.
 With TeXExec 6.2.0, words beginning with accented characters are 
 placed under certain unaccented letter. My colleague found out that 
 these words are sorted according the first unaccented letter. This is 
 unacceptable and unusable.

 We do a "work-around" so we try to avoid indexing words beginning with 
 accented charaters. But it's impossible in many cases.
 I'd like to ask you to improve the index sorting. Could I help or 
 contribute in some way?

 Attached is a testing file, which creates 2 indexes from various Czech 
 words (covering the Czech alphabet). The index should be sorted 
 exactly that way as the terms are written in the file.

actually the nex texexec implementation does czech sorting but it's not enables yet in context itself (was experimental until now) 

- download the latest version (i uploaded a version that enables it) 
- don't forget \mainlanguage[cz] at the top of your document 
- in sort-lan.tex you can see how czech sorting is defined 

(context adds a lot of into to the tui file in order to get sorting done) 

-
  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

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


[NTG-context] Index sorting for other languages that English

2006-05-23 Thread Richard Gabriel




Hello Hans,after an upgrade I noticed thar the index sorting works even worse than before (tested on Czech, Chinese and Japanese, but probably related to non-ASCII characters in common).With TeXExec 5.4.3, all words beginning with national (accented) characters were put into a separate ("symbols") group and placed before "A". This was not good but more or less acceptable.With TeXExec 6.2.0, words beginning with accented characters are placed under certain unaccented letter. My colleague found out that these words are sorted according the first unaccented letter. This is unacceptable and unusable.We do a "work-around" so we try to avoid indexing words beginning with accented charaters. But it's impossible in many cases.I'd like to ask you to improve the index sorting. Could I help or contribute in some way?Attached is a testing file, which creates 2 indexes from various Czech words (covering the Czech alphabet). The index should be sorted exactly that way as the terms are written in the file.Thanks,Richard

test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart problem

2006-05-22 Thread Richard Gabriel




Yes,
texexec --format=cont-cz test.tex also works for me, buttexmfstart texexec --format=cont-cz test.texdoesn't! In such a case, the format cont-en gets always used.texmfstart texexec --interface=cz test.texworks well and the format cont-cz is used.Got TeXLive 2005 on Windows XP and ConTeXt 2006-05-17.-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 19 May 2006 15:26:00 +0200Subject: Re: [NTG-context] texmfstart problemRichard Gabriel wrote:
 Thanks Hans,

 this way it works!
here 

texexec --interface=cz   test.tex
texexec --format=cz  test.tex
texexec --format=cont-cz test.tex

all work ok 

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

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


[NTG-context] texmfstart problem

2006-05-19 Thread Richard Gabriel




Hello Hans and others,I've got the following problem...I used to use such a command to compile my documents:texexec --format=cont-cz --mode=print file.texAfter upgrade to latest ConTeXt (2006-05-17), I got a warning "Use 'texmfstart texexec' instead!".So I've changed my batch to call:texmfstart texexec --format=cont-cz --mode=print file.texBut it seems the --format switch is not processed correctly because the cont-en format is always used. On the other hand, the mode is passed correctly.Where's the problem? Thanks,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart problem

2006-05-19 Thread Richard Gabriel




Thanks Hans, this way it works!Anyway, I'd suggest to list this option in the command line help (texmfstart texexec --help). I find it one of the most important texexec options...Another issue: 'texexec --version' also lists versions of TeXUtil, pdfTeX and the particular ConTeXt formats.'texmfstart texexec --version' shows only the version of texexec itself... :-(I've attached a small Czech test file (utf-8 encoded).-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 19 May 2006 10:39:13 +0200Subject: Re: [NTG-context] texmfstart problemRichard Gabriel wrote: Hello Hans and others, I've got the following problem... I used to use such a command to compile my documents: texexec --format=cont-cz --mode=print file.tex After upgrade to latest ConTeXt (2006-05-17), I got a warning "Use  'texmfstart texexec' instead!". So I've changed my batch to call: texmfstart texexec --format=cont-cz --mode=print file.texmaybe --interface=cz works But it seems the --format switch is not processed correctly because  the cont-en format is always used. On the other hand, the mode is  passed correctly. Where's the problem?can you send me a small czech test file? 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 listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context


test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] FatalError: Your format does not match the base files!

2006-02-13 Thread Richard Gabriel




You have to re-generate the format!Runtexexec --make cont-en-RichardFrom: andrea valle [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Mon, 13 Feb 2006 12:34:08 +0100Subject: [NTG-context] FatalError: Your format does not match the base files!Thanks hans and Luigi for the hints on audiofiles. Sorry for late reply but I was out of home.In any case, I wasn't able to test because running context (as usual, from inside texshop) I obtain always this:TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005fixing engine variable : pdfetex executable : pdfetex format : cont-en  inputfile : test output : pdftex  interface : en   current mode : noneTeX run : 1This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)entering extended mode(./test.texConTeXt  ver: 2005.10.27  fmt: 2005.11.9  int: english  mes: englishlanguage: language en is activeprotectionstate 0system  : cont-new loaded(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.texFatalError  : Your format does not match the base files!FormatVersion   : 2005.10.27FilesVersion: 2006.01.28 10:09return code : 0   run time : 1 seconds   sorting and checking : running texutil  TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 action : processing commands, lists and registers option : sorting IJ under Y option : converting high ASCII values  error : empty input file test total run time : 2 secondsI create this minimal file, and that's the same.Macosx 10.3.9 here, I also update via Gerben's distro, but that's the same.It seems that it depends on format discrepancies.Uh?Thanks a lot-a-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] FatalError: Your format does not match the base files!

2006-02-13 Thread Richard Gabriel




Sorry, texexec --make en of course... ;-)R.From: andrea valle [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Mon, 13 Feb 2006 12:34:08 +0100Subject: [NTG-context] FatalError: Your format does not match the base files!Thanks hans and Luigi for the hints on audiofiles. Sorry for late reply but I was out of home.In any case, I wasn't able to test because running context (as usual, from inside texshop) I obtain always this:TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005fixing engine variable : pdfetex executable : pdfetex format : cont-en  inputfile : test output : pdftex  interface : en   current mode : noneTeX run : 1This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)entering extended mode(./test.texConTeXt  ver: 2005.10.27  fmt: 2005.11.9  int: english  mes: englishlanguage: language en is activeprotectionstate 0system  : cont-new loaded(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.texFatalError  : Your format does not match the base files!FormatVersion   : 2005.10.27FilesVersion: 2006.01.28 10:09return code : 0   run time : 1 seconds   sorting and checking : running texutil  TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 action : processing commands, lists and registers option : sorting IJ under Y option : converting high ASCII values  error : empty input file test total run time : 2 secondsI create this minimal file, and that's the same.Macosx 10.3.9 here, I also update via Gerben's distro, but that's the same.It seems that it depends on format discrepancies.Uh?Thanks a lot-a-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] chinese with utf in context

2006-02-07 Thread Richard Gabriel




I'm sorry I have the same problem as Lutz with the special punctuation - I only haven't noticed this problem before because there weren't these characters in any of my testing documents... :-(I'm going to investigate more...-RichardFrom: Richard Gabriel [mailto:[EMAIL PROTECTED]To: [EMAIL PROTECTED], mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Tue, 07 Feb 2006 08:16:18 +0100Subject: Re: [NTG-context] chinese with utf in context
Hello Lutz,I have no problems typesetting Chinese and Japanese in Unicode. I suppose there's a problem with fonts on your system...Were all of the TFM files created properly?Do all the files uni-htsong-ff.tfm, uni-htfs-ff.tfm, uni-hthei-ff.tfm and uni-htkai-ff.tfm exist on your system?Are there some interesting messages in the log?In any casy, feel free to send me any of your test file... ;-)-RichardFrom: Lutz Haseloff [mailto:[EMAIL PROTECTED]]To: "Mailingliste Context (E-Mail)" [mailto:ntg-context@ntg.nl]Sent: Tue, 07 Feb 2006 07:31:29 +0100Subject: [NTG-context] chinese with utf in contextHi all,with the context from 03.02.06 only the punctuation symbolsfrom the unicode range 30 will be printed.The symbols from the range FF (f.i. FF0C: FULLWITH COMMA,FF1A: FULLWITH COLON...) and from the range 20(203B: REFERENCE MARK...) are printedas small black squares.If i convert the file to gbk all symbols will be printed right.If needed i can prepare testfiles in gbk and utf encoding.GreetingsLutz___ntg-context mailing listntg-context@ntg.nlhttp://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] chinese with utf in context

2006-02-06 Thread Richard Gabriel




Hello Lutz,I have no problems typesetting Chinese and Japanese in Unicode. I suppose there's a problem with fonts on your system...Were all of the TFM files created properly?Do all the files uni-htsong-ff.tfm, uni-htfs-ff.tfm, uni-hthei-ff.tfm and uni-htkai-ff.tfm exist on your system?Are there some interesting messages in the log?In any casy, feel free to send me any of your test file... ;-)-RichardFrom: Lutz Haseloff [mailto:[EMAIL PROTECTED]To: "Mailingliste Context (E-Mail)" [mailto:[EMAIL PROTECTED]Sent: Tue, 07 Feb 2006 07:31:29 +0100Subject: [NTG-context] chinese with utf in contextHi all,with the context from 03.02.06 only the punctuation symbolsfrom the unicode range 30 will be printed.The symbols from the range FF (f.i. FF0C: FULLWITH COMMA,FF1A: FULLWITH COLON...) and from the range 20(203B: REFERENCE MARK...) are printedas small black squares.If i convert the file to gbk all symbols will be printed right.If needed i can prepare testfiles in gbk and utf encoding.GreetingsLutz___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Index bug

2006-01-12 Thread Richard Gabriel




Hello ConTeXters, I've noticed the following strange behavior of the index: If an indexterm occurs twice (or more times) on the same page in different section levels, it will be also linked twice from the index.Try the following minimal example:---\setupoutput[pdftex]\starttext\chapter{First Chapter}Some text...\index{word}\section {First Section}Some text...\index{word}Some text...\index{another word}Some text...\index{another word}\page[yes]\completeindex\stoptext---In the Index, you will get:aanother word 1wword 1,1Does anybody guess? Or is it really a bug?Thanks,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-22 Thread Richard Gabriel




Hi Tobias (and Hans),I've played with this a bit. It seems that the nested group breaks things inside the \installlanguage macro.The following works OK:\c!date={\v!year,\cnyear,\v!month,\v!day,\cnday}...but I can't use the \cnencoding switch... [Is it really necessary here? It works for me even without it...]Another minor issues: 1. \v!month gives chinese number with the month symbol [so appending \cnmonth once more is undesired].I guess the resulting date is a bit inconsistent - there should be all Arabic numbers or all Chinese, not mixed.2. \v!day give the day number with a leading space which is obviously undesired in Chinese...Hans, could you please take a look at this? (not a priority)...Thanks,RichardFrom: Tobias Burnus [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Wed, 21 Dec 2005 02:45:25 +0100Subject: Re: [NTG-context] Chinese in current ConTeXtHi,Xiao Jianfeng wrote:  It should be "year年month月day日".I somehow failed to to get the following working; I'm actually too tired (3 a.m) to follow the macro expansion in-   \c!date={\v!month,\ ,\v!day,{,\ },\v!year},+   \c!date={\v!year,{\cnencoding\cnyear},\v!month,{\cnencoding\cnmonth},\v!year,{\cnencoding\cnday}},In any case the year/month/day characters in unicode/gbk/big5 are:@@ -110,0 +111,3 @@+  \definecommand cnyear{\uchar{94}{116}}+  \definecommand cnmonth   {\uchar{103}{8}}+  \definecommand cnday {\uchar{101}{229}}@@ -158,0 +162,3 @@+  \definecommand cnyear{\uchar{196}{234}}+  \definecommand cnmonth   {\uchar{212}{194}}+  \definecommand cnday {\uchar{200}{213}}@@ -204,0 +211,3 @@+  \definecommand cnyear{\uchar{166}{126}}+  \definecommand cnmonth   {\uchar{164}{235}}+  \definecommand cnday {\uchar{164}{233}}Tobias___ntg-context mailing listntg-context@ntg.nlhttp://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] Chinese in current ConTeXt

2005-12-22 Thread Richard Gabriel




 1. \v!month gives chinese number with the month symbol [so appending  \cnmonth once more is undesired]. I guess the resulting date is a bit inconsistent - there should be all  Arabic numbers or all Chinese, not mixed.what is convention in china?From Xiao Jianfeng:In Arabic number, today is "2005年12月22日", and in Chinese number,today is "二○○五年十二月二十二日". Both are often used, and theformer is more popular now, because it is easier to write or typewith keyboard.So it's up to you... -Richard ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Small Chinese translation

2005-12-21 Thread Richard Gabriel




Hello Xiao,could you please translate these few words into Chinese so they could be added into the Chinese ConTeXt module?GraphicsIntermezzo (singular)Intermezzos (plural)IllustrationLine (singular)Lines (plural)Many thanks,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Chinese in current ConTeXt

2005-12-20 Thread Richard Gabriel




 b) Labels: lang-chi.tex contains: \setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}] \startencoding[uni-c] \definecommand cnencodedfigure {\uchar{86}{254}} but if I use (with UTF-8) \placefigure{}{} the figure character is not  shown; however if I setup this directly, i.e. \setuplabeltext[cn][figure={\uchar{86}{254}}], the character is shown just fine.Hello Tobias!There's a small mistake in lang-chi.tex.On line 98, the should actually be:\startencoding[c-uni](instead of "uni-c" - see enco-chi.tex)Change it and re-generate the format - it works fine! ;-)-RichardP.S. The rest is for Hans, I can't say... :-(From: Tobias Burnus [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Tue, 20 Dec 2005 16:09:36 +0100Subject: [NTG-context] Chinese in current ConTeXtHello,some remarks/errors of the current UTF-8 Chinese support in ConTeXt 2005.12.19:(For (a) to (c) see also attached file.)a) unic-chi.tex: This contains the unicode vectors for which a Chinese font will be used; currently it only covers\dostepwiserecurse{40}{159}{1}{\defineunicodecommand #1 {\uchar}}but this it misses the U+FFxx characters (fullwidth latin characters, e.g. '?' which is as wide as a Chinese character)= solution: Add\defineunicodecommand 255 {\uchar}b) Labels: lang-chi.tex contains:\setuplabeltext [\s!cn] [\v!figure={\cnencoding\cnencodedfigure}]\startencoding[uni-c]\definecommand cnencodedfigure {\uchar{86}{254}}but if I use (with UTF-8) \placefigure{}{} the figure character is not shown; however if I setup this directly, i.e.\setuplabeltext[cn][figure={\uchar{86}{254}}], the character is shown just fine.c) Doing font switching using \SimKaiTi seems to convert back to GBK, can we have Unicode by default (at least when UTF-8 encoding is used)?Examples for (a) to (c) see attachment (UTF-8 encoded).* * *Wish for the native speakers: Please translate- Graphics/Illustration and Intermezzo(s)Question to native speakers:- \c!date={\v!month,\ ,\v!day,{,\ },\v!year},Is this really the default? Or should this beyear年month月day日?* * *Another questions:a) How to typset from top-to-bottom right-to-left using column(sets)?b) How to change the numberformat used?Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] chinese etc

2005-12-15 Thread Richard Gabriel




Hello Hans,yes, I'm seriously interested in Japanese. I can provide you some sample Japanese documents in UTF-8. But I have them in XML only - I'll prepare some ConTeXt samples. I've also tried to prepare the enc and tfm files for fonts I've available - the Mona open-source font and the Microsoft's Mincho family but I was unsuccessfull.I have really not experience with this so I'll post another message regarding this - maybe somebody can help me!-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: c [mailto:[EMAIL PROTECTED]Sent: Wed, 14 Dec 2005 23:23:24 +0100Subject: [NTG-context] chinese etc Hi,if someone wants japanese and korean etc utf-8 support, he/she should deliver the fonts, test files and samples in utf-8Hans___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problems creating tfms for an Unicode font

2005-12-15 Thread Richard Gabriel




Hello ConTeXters,in consequence to the Hans' prompt, I've tried to create enc and tfm files for some Japanese fonts. Namely, I've tried the Mona (http://monafont.sourceforge.net/index-e.html) and MS Mincho (distributed with Windows XP).I've done these steps:1) Created a TTX representation of the font with the ttx utility (http://sourceforge.net/projects/fonttools/)ttx -t cmap -t name msmincho.ttf2) Created the enc files using the Adam Lindsay's XSL stylesheet (http://www.ntg.nl/maps/pdf/30_10.pdf)I've googled out that Japanse "Katakana" and "Hiragana" characters are located at Unicode offsets 0x30, 0x32, 0x33 and 0xff. So I've created four enc files the following wayjava -jar saxon8.jar msmincho.ttx ttx2enc.xsl "vector=30" msmincho30.encThe files are created without errors, but I cannot judge if they are correct...3) Tried to create the appropriate tfm files with the ttf2tfm utility. ttf2tfm msmincho.ttf -T msmincho30.enc msmincho30.tfmI got a lot of warnings of style:--- cut ---ttf2tfm: WARNING: Cannot find character `uni3064' specified in input encoding.ttf2tfm: WARNING: Cannot find character `uni3065' specified in input encoding.--- cut ---and finally this error:--- cut ---Using msmincho30.enc as input encoding.ttf2tfm: ERROR: No TTF characters.--- cut ---No tfm file was created.Could somebody advise/help me? I really haven't any experience with font conversion and cannot realize what's goings wrong...If somebody is willing to help, I'll send him the appropriate files (I can't post them here - it's over 5MB zipped...).Thanks,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Some localizations

2005-12-13 Thread Richard Gabriel

 Hmm, I'd rather use Anhang.
OK. I suppose you're a native German, I'm not...

 Besides: So far I used simply 1   Title of my first chapter and 
A   My first appendix rather than Chapter 1   Title of my first 
chapter.
Hmm, it's a question... I use exactly the variant with chapter title in 
two lines as you mention in the parenthesis.
Sorry if I did something wrong. It really wasn't my intention to make 
problems to other users... :-(


 Next question: Why are you changing the Å into a + ?
It's NOT my work. :-(
I didn't change any other things than headtexts/labeltexts!


-Richard



Tobias Burnus wrote:


Hi,

Richard Gabriel wrote:
 +\setuplabeltext [\s!de] [\v!appendix=Anschlu\ssharp\space] % RG
Hmm, I'd rather use Anhang.

Besides: So far I used simply 1   Title of my first chapter and A   
My first appendix rather than Chapter 1   Title of my first chapter.

(It looks cute as
   Chapter 1
   Title of my first chapter
with the first line differently styled as the second, but this is 
rarely used.)


One probably should add them -- as comment after the actual empty label.

Next question: Why are you changing the Å into a + ?

 -% \defineactivecharacter Å {\AA{}}
 +% \defineactivecharacter + {\AA{}}


Tobias

___
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] Some localizations

2005-12-13 Thread Richard Gabriel




Hi Vit,I've originally posted my updates here to the ntg-context list and asked Hans to review them and incorporate them into the distribution.Now it seems I've made something horribly bad... :-(I swear I won't be so active anymore!As one Czech proverb says: "For goodness to beggary." ;-)-RichardFrom: Vit Zyka [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Wed, 14 Dec 2005 00:56:40 +0100Subject: Re: [NTG-context] Some localizationsHans Hagen wrote: Richard Gabriel wrote:  Hello Hans, quite incidentally I've found out that some of the localization files  (lang-*.tex) are incomplete. I've filled in missing phrases in lang-ger.tex and lang-sla.tex for  the languages I speak, i.e. English, German, Czech and Slovak.Hmmm. What about to suggest the changes first here in the list? I did not catch the original email. It is not in the archive too. So me and other users of these languages can not discuss the changes...Vit Please look at the attached files and if you consider them OK (they  really should be! :-) ),  please add them to the distribution.   ok, patched (i made the section related labels comments since we default  no nothing)  btw, your lang-ger had no patch (apart from some AA change)  Hans___ntg-context mailing listntg-context@ntg.nlhttp://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] Chinese

2005-12-09 Thread Richard Gabriel




Hi guys,I can confirm that the UTF-8 input doesn't work for me too. If I convert the file info GBK (CP936), it works fine [I suggest to use the 'iconv' utility for the conversion :-)].I tested the UTF-8 output the followin ways:1) \enableregime[utf]\usemodule[chinese]Processing a file with this setup ends with an error:--- cut ---kpathsea: Running mktextfm gbsong80mktextfm: Could not map typeface abbreviation bs for gbsong80.mktextfm: Need to update c:/WinApp/TeXLive/texmf-dist/fonts/map/fontname/special.map?mktextfm: Running mf "\mode:=ljfour; mag:=1; nonstopmode; input gbsong80"This is METAFONT, Version 2.71828 (Web2c 7.5.5)kpathsea: Running mktexmf gbsong80mktexmf: empty or non-existent rootfile!! I can't find file `gbsong80'.* ...ljfour; mag:=1; nonstopmode; input gbsong80Please type another input file name! Emergency stop.* ...ljfour; mag:=1; nonstopmode; input gbsong80Transcript written on mfput.log.mktextfm: warning: can't open log file gbsong80.log.mktextfm: `mf "\mode:=ljfour; mag:=1; nonstopmode; input gbsong80"' failed.kpathsea: Appending font creation commands to missfont.log.! Font \unicodefont=gbsong80 at 24.88806pt not loadable: Metric (TFM) file notfound.--- cut ---
I cannot figure out why it wants "gbsong80" when the encoding vector set starts from the 0x81 offset. Maybe some error in the UTF mapping?2)\usemodule[chinese]
\enableregime[utf]
No error, but not output!The PDF contains only black squares instead of glyphs.The log shows that no fonts were used at all!-RichardFrom: Xiao Jianfeng [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 09 Dec 2005 15:24:22 +0100Subject: Re: [NTG-context] ChineseTobias Burnus wrote: Hi, Xiao Jianfeng wrote: What would be needed to get UTF-8 input running with Chinese? If you use vim to edit your tex file, maybe you can try "set  encoding=utf8", then save and compile. As far as I know, GBK is compatible with unicode. No, that does not work - that is the reason I started this mail thread. You get the wrong characters and you may get some TeX errors. (And that is the reason Lutz wrote a UTF-8 to GBK converted.) Tobias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-contextWhat is the value of your environment variables about LC_CTYPE and LANG ?___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] enco-pfr.tex - support for Adobe Acrobat [2]

2005-12-05 Thread Richard Gabriel




My last e-mail has probably get lost so I'm trying once more...Could anybody give me some clue, please?Many thanks,RichardFrom: Richard Gabriel [mailto:[EMAIL PROTECTED]To: ntg-context@ntg.nlSent: Fri, 02 Dec 2005 12:18:56 +0100Subject: enco-pfr.tex - support for Adobe Acrobat

Hello Hans, Taco and others!I would like to know how the "enco-pfr.tex" module works and how to properly use it.Besides of other languages, I also typeset documents in Czech. The search doesn't work (in recent Acrobat 7.0.5) for particular Czech letters (e.g. č,ž etc.). If I try to search for a simple letter (e.g. "č") it stops on every word containing "č", but also "c". If I try to search for a whole word (e.g. "počítač"), nothing is found. :-)I've followed the instructions posted on http://wiki.contextgarden.net/Encodings_and_Regimes and in the mailing list thread linked from that page. So I tried:\input enco-pfr\useencoding[pfr]\startencoding [ec]  \usepdffontresource ec\stopencoding\setupbodyfont[lbr]% I have typescripts for Lucida Bright fonts, the Czech is typeset OK\starttextA testing Czech sentence follows:Příliš žluťoučký kůň úpěl ďábelské ódy.\stoptextLater I've found out that:- \input enco-pfr   is already done in context.tex- \startencoding [ec] \usepdffontresource ec \stopencoding   is already done at the bottom of enco-pfr.tex- so it seems that the only command I should issue is:  \useencoding[pfr]BTW, in the Czech format (cont-cz.tex), I have defined:\setupencoding[default=ec] Doesn't it collide with the \useencoding[pfr] command later in the document?ANY GUESS?Note: The ligatures work OK even if I don't use the \useencoding[pfr] command at all.Thanks to all,Richard
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] LucidaBright fonts...I'm stumped

2005-12-02 Thread Richard Gabriel




Hello Henk,I reply to your request only beacause I'm also using the Lucida Bright fonts.At least, you must also have the appropriate .tfm files for your fonts. In addition, I also have some virtual fonts (.vf) that have been created for Lucida fonts for the particular encondings (namely ec). In ConTeXt, you need to write the font definitions, so-called typescripts.I must confess it took me quite much time and testing to understand how typescripts work and make myself a bit familiar with them!If you want, contact me off-list and we can discuss the particular issues.-RichardFrom: Henk Koster [mailto:[EMAIL PROTECTED]To: ntg-context@ntg.nlSent: Thu, 01 Dec 2005 11:20:33 +0100Subject: [NTG-context] LucidaBright fonts...I'm stumpedI've been using teTeX - LaTeX - LucidaBright fonts for many years, but amunable to make these fonts work in ConTeXt. My present setup after installingteTeX (a Debian or Ubuntu package):1. Make a directory /usr/local/share/texmf/fonts/type1/yandy2. Copy the LB .pfb files to subdirectories lubright, lucida, lucidfax,   lucsans and lumath3. Run texhashand everything works fine in LaTeX -- I only have to specify\usepackage{lucidbry} in the preamble of my documents. Couldn't be easier.I've read through some of the archived messages on this newsgroup forclues for making LB fonts work with ConTeXt, I have even tried followingthe suggested steps, but no dice. Could someone here please list theprecise steps required to get from my above teTeX setup to one that worksin ConTeXt?-- H.A.J. Koster"Behavioral axioms are right, but agents make mistakes..."(attributed to L.J. Savage)___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] enco-pfr.tex - support for Adobe Acrobat

2005-12-02 Thread Richard Gabriel





Hello Hans, Taco and others!I would like to know how the "enco-pfr.tex" module works and how to properly use it.Besides of other languages, I also typeset documents in Czech. The search doesn't work (in recent Acrobat 7.0.5) for particular Czech letters (e.g. č,ž etc.). If I try to search for a simple letter (e.g. "č") it stops on every word containing "č", but also "c". If I try to search for a whole word (e.g. "počítač"), nothing is found. :-)I've followed the instructions posted on http://wiki.contextgarden.net/Encodings_and_Regimes and in the mailing list thread linked from that page. So I tried:\input enco-pfr\useencoding[pfr]\startencoding [ec]  \usepdffontresource ec\stopencoding\setupbodyfont[lbr]% I have typescripts for Lucida Bright fonts, the Czech is typeset OK\starttextA testing Czech sentence follows:Příliš žluťoučký kůň úpěl ďábelské ódy.\stoptextLater I've found out that:- \input enco-pfr   is already done in context.tex- \startencoding [ec] \usepdffontresource ec \stopencoding   is already done at the bottom of enco-pfr.tex- so it seems that the only command I should issue is:  \useencoding[pfr]BTW, in the Czech format (cont-cz.tex), I have defined:\setupencoding[default=ec] Doesn't it collide with the \useencoding[pfr] command later in the document?ANY GUESS?Note: The ligatures work OK even if I don't use the \useencoding[pfr] command at all.Thanks to all,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, XML, multiple attributes evaluation

2005-11-28 Thread Richard Gabriel




Hello Johannes,

I consider your first \XMLifequalelse command a bit strange. This
command is intented to be used if you want to convert the attribute
values into something else (e.g. "yes" into "packed").
If you need the unmodified parameter value, simply use \XMLpar.
So e.g.:

\startitemize[ \XMLpar{list}{setup}{}, \XMLifequalelse{list}{packed}{yes}{packed}{unpacked} ]

Of course "setup" should be a required attribute of list (in
your DTD), otherwise it would lead to something like
\startitemize[,packed] which obviously wouldn't work at all. 
If it's not the case, I'd use \doifXMLparelse:

\doifXMLparelse{list}{setup}{%
 \startitemize[ \XMLpar{list}{setup}{}, \XMLifequalelse{list}{packed}{yes}{packed}{unpacked} ]%
}{%
 \startitemize[1, \XMLifequalelse{list}{packed}{yes}{packed}{unpacked} ]
}


-Richard

From: Johannes Graumann [mailto:[EMAIL PROTECTED]To: ntg-context@ntg.nlSent: Tue, 29 Nov 2005 05:30:25 +0100Subject: [NTG-context] ConTeXt, XML, multiple attributes evaluationHello again,Another one:I'm trying to expand \defineXMLenvironment [list]% {%  \expanded{%   \startitemize%[% \XMLifequalelse{list}{packed}{yes}{packed}{unpacked}%]%  }% }% {\stopitemize}which can deal with things likelist packed="yes" item /item/listTo something able to deal with multiple attributes (a "setup" statement fornow):list packed="yes" setup="n" item /item/listI have tryed multiple incarnations of\defineXMLenvironment [list]% {%  \expanded{%   \startitemize%[% \XMLifequalelse{list}{setup}{n}{n}{},% \XMLifequalelse{list}{packed}{yes}{packed}{unpacked}%]%  }% }% {\stopitemize}but this doesn't work ...Can anybody give me any pointers here?Thanks for time and help,Joh-- +--+| Johannes Graumann, Dipl. Biol.   ||  ||  Graduate StudentTel.: ++1 (626) 395 6602||  Deshaies LabFax.: ++1 (626) 395 5739||  Department of Biology   ||  CALTECH, M/C 156-29 ||  1200 E. California Blvd.||  Pasadena, CA 91125  ||  USA |+--+___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt Fonts

2005-09-12 Thread Richard Gabriel




Hello Hans and others,

excuse me such a stupid question, but:

It there any clear (step by step) description how to add a new font into context?
I've already done many googling and "tryfails" but the success was
minimal. The typescript definitions in type-enc.tex and type-pre.tex
are almost a mystery for me...
I hope that there at least a little bit of description on adding fonts...

Thanks in advance...

-Richard

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


Re: [NTG-context] Problems placing figures II

2005-05-18 Thread Richard Gabriel
Hello Hans,
I've already tried it, with a very nice result.
Thanks once more!
-Richard

Hans Hagen wrote:
Richard Gabriel wrote:
Hello Hans,
thanks, but my ConTeXt reports Unknown control sequence. I use 
TeXLive 2003 (Windows XP) and a ConTeXt distribution downloaded about 
two moths ago.
Browsing the ConTeXt sources, I've found a \doflushfloats macro which 
seems to do the desired job... Does it really do?

probably, just give it a try
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

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


[NTG-context] Problem with figure placing

2005-05-05 Thread Richard Gabriel
Hello ConTeXters,
I have the following problem with placing figures into the document:
Sometimes, when there are more larger images and fewer text, TeX lets 
some of the images run out of the page (see the attached screenshot).
This hapens in very, very seldom cases - e.g. whole the document 
contains more than 200 images and this issue occurs on one or two places...

For placing images, I'm using the following commands:
\page[bigpreference]
\placefigure[here][fig-xyz]{Figure 
caption}{\externalfigure[xyz.png][scale=3000,maxwidth=\textwidth]}

The \page[bigpreference] command handles this situation quite well 
except certain cases (like it's shown in the attachment). I really don't 
understand how TeX can typeset anything outside the given page area...
Here is my page setup:

\definepapersize[MAN][width=17.5cm,height=22cm]
\setuppapersize[MAN][A4]
\setuplayout[location=middle,
marking=on,
topspace=1cm,
backspace=1.5cm,
height=middle,
width=middle,
header=1cm,
footer=1cm]
Does anybody guess?
Many thanks,
Richard


inline: pdf-images.png___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-16 Thread Richard Gabriel
Great!
Thank you very, very much for your help, Hans!
Richard

Hans Hagen wrote:
Richard Gabriel wrote:
Hello Hans,
thank you very much for the advice. It works almost perfectly, except 
one small (but important) detail:
Let's have a HTML source code in the programlisting tag. It will be 
stored the following way in the XML file:
programlisting
lt;htmlgt;
lt;bodygt;
lt;pgt;Some textlt;/pgt;
lt;/bodygt;
lt;/htmlgt;
/programlisting

I have defined the entity conversion:
\defineXMLentity[gt]{\char`\{}}
\defineXMLentity[lt]{\char`\{}}
This works OK if the entities occur somewhere in the normal text but 
it doesn't matter in the verbatim text.
Is there any solution for this? Maybe changing catcodes of the  and 
; characters?

maybe it's enough to add
\catcode`\=\active
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] XML in ConTeXt verbatim text

2004-12-15 Thread Richard Gabriel




Hi Adam,

I did so right now (thanks for the hint!).
But in that file ther's only solved a case when each line of the
verbatim text is placed in a special tag:

verbatim
 lineDit \is nogal verbatim !/line
 lineDit is {nogal} verbatim !/line
 lineDit is nogal verbatim !/line
/verbatim

This is trivial because you can pass the contents of each line
element as an argument to the \type command (
\defineXMLargument[line]{\type} )

But this solution is unusable e.g. for longer program or configuration
file listings, and, mainly, the DocBook DTD doesn't define such tags.
I need to process multiline verbatims enclosed in a single tag:

programlisting
Line 1
  Line 2
Line 3
/programlisting

---
Of course I have some "dirty" workaround, but the result is really
ugly...

\defineXMLenvironment[programlisting]{
 \bgroup
 \startpacked
 \tttf
 \obeylines\obeyspaces\obeytabs
}{
 \stoppacked
 \egroup
}

The line breaks are processed correctly. But all the tabs and spaces
are treated as a single space. It seems the \obeyspaces and \obeytabs
command are ignored or they do not work the way I'd expect. This will
totally break the indentation and tabulation of the verbatim text...


-Richard





Adam Lindsay wrote:

  Richard Gabriel said this at Tue, 14 Dec 2004 16:48:05 +0100:

  
  
So I defined a macro to process the programlisting tag from the XML file:
\defineXMLenvironment[programlisting]{\starttyping}{\stoptyping}

  
  
Richard, 

Have you taken a look at x-contml to see how it solves this problem with
verbatim?

adam
  



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XML in ConTeXt verbatim text

2004-12-14 Thread Richard Gabriel
Hi all,
I'm back here with the following problem:
I'm processing XML files (DocBook DTD) which also may contain the 
programlisting tag with some preformatted text.

In a sample TeX file, I've tested the following:
\starttyping
somecontext
 variable name=Var
   Value of Var
 /variable
/somecontext
\stoptyping
This works and the result is great.
So I defined a macro to process the programlisting tag from the XML file:
\defineXMLenvironment[programlisting]{\starttyping}{\stoptyping}
This causes an error while processing. Most probably the \starttyping 
command breaks things inside the \defineXMLenvironment macro...

Any guess how to solve this issue?
Many thanks!
Richard


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: \setuptolerance

2004-12-03 Thread Richard Gabriel




Hello Patrick,

thank you very much!
Hopely I understand right, that the command 

\setuptolerance[verytolerant,stretch]
( or \setuptolerance[horizontal,verytolerant,stretch] )

will result to
\tolerance 4500\emergencystretch\bodyfontsize

:-)

Richard



Patrick Gundlach wrote:

  Hello Richard,

  
  
could somebody explain me the usage of the \setuptolerance command and
its particular parameters?

  
  
I have put an explanation on texshow-web:
http://texshow.contextgarden.net

  
  
The main ConTeXt manual (cont-eni.pdf, pages 87-88) only mentions that
it is used [horizontal,verystrict] and [vertical,strict] by
default... 

  
  
I wonder what the vertical form is for (columns?).

  
  
On contextgarden.net I've found one example using the following form:

\setuptolerance		[{horizontal, verytolerant},{vertical, verystrict}]

  
  
This looks incorrect to me. See my comment on texshow-web.

Patrick
  



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuptolerance

2004-11-23 Thread Richard Gabriel
Hello all,
could somebody explain me the usage of the \setuptolerance command and 
its particular parameters?
I've found several forms of this command, but no explanation of them at 
all...

The main ConTeXt manual (cont-eni.pdf, pages 87-88) only mentions that 
it is used [horizontal,verystrict] and [vertical,strict] by default... 
Should I issue two \setuptolerance commands to setup up horizontal and 
vertical tolerance?

On contextgarden.net I've found one example using the following form:
\setuptolerance [{horizontal, verytolerant},{vertical, verystrict}]
...tried this, but it produces Overfull \hbox at almost every third 
line... :-(

Currently I use the setup:
\setuptolerance[verytolerant,stretch]
which gives quite good results, but I don't know what it exactly does (I 
googled it somewhere)...

Thanks for help.
Richard

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Table of contents interaction

2004-10-21 Thread Richard Gabriel
Hello Hans,
good idea, it works!
By the way, the ConTeXt reference manual (cont-eni.pdf which I use as a 
main reference, doesn't mention the textcolor parameter (only color) 
in the setuplist command description.
Is any documentation update planned?

Thanks for your help.
Richard

Hans Hagen wrote:
Richard Gabriel wrote:
Hi all,
got the following problem:
I'd like to setup the interaction for the table of contents to 
section numbers AND page numbers.

\setupcombinedlist[content][interaction= ...]
The possible values for the parameter interaction are: 
sectionnumber, pagenumber, text, all

I don't want to use all because the interaction text has an another 
color:
\setupinteraction[state=start,color=blue,style=normal]

doen't
  \setupcombinedlist[content][textcolor=anothercolor]
overload the interactioncolor?
Is is possible to say something like:
\setupcombinedlist[content][interaction={sectionnumber, pagenumber}]
(exactly this command is not accepted)

indeed, not implemented (yet)
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
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Table of contents interaction

2004-10-20 Thread Richard Gabriel
Hi all,
got the following problem:
I'd like to setup the interaction for the table of contents to section 
numbers AND page numbers.

\setupcombinedlist[content][interaction= ...]
The possible values for the parameter interaction are: sectionnumber, 
pagenumber, text, all

I don't want to use all because the interaction text has an another color:
\setupinteraction[state=start,color=blue,style=normal]
Is is possible to say something like:
\setupcombinedlist[content][interaction={sectionnumber, pagenumber}]
(exactly this command is not accepted)
Thanks for any help!
Richard


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context