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

2007-10-05 Thread Richard Gabriel
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

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

2007-10-05 Thread Richard Gabriel
] 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

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

2007-10-05 Thread Richard Gabriel
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

[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

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

2007-10-04 Thread Richard Gabriel
: 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

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

2007-10-04 Thread Richard Gabriel
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

[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

[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

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

[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

[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

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

2006-07-21 Thread Richard Gabriel
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

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,

[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

Re: [NTG-context] Index sorting again

2006-07-03 Thread Richard Gabriel
: 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

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

[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

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

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

Re: [NTG-context] texmfstart texutil

2006-06-09 Thread Richard Gabriel
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...)Note: To check the installed

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

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

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

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

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

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

[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

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

[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

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

[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

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

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

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

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

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

[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

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

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

[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

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.

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

[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

Re: [NTG-context] Some localizations

2005-12-13 Thread Richard Gabriel
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

Re: [NTG-context] Some localizations

2005-12-13 Thread Richard Gabriel
ggary." ;-)-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

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

[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

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

[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

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[

[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

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

[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

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

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

2004-12-15 Thread Richard Gabriel
-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-con

[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

[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

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

Re: [NTG-context] Table of contents interaction

2004-10-21 Thread Richard Gabriel
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

[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