[NTG-context] \setuppagenumbering

2005-01-15 Thread Willi Egger
Hi
After downloading the latest release, after updating the pdfetex 
binaries, making the engines running again ...

This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
ConTeXt  ver: 2005.01.13  fmt: 2005.1.15  int: english  mes:
english
I need to use \setuppagenumbering[way=bychapter] According to the new 
syntax given in TeXshow it is now \setuppagenumbering[way=bycd:chapter]

Unortunately this results in the following message:
! Missing \endcsname inserted.
to be read again
   \@@bybycd:chapter
argument ...stringelse .\csname \currentsection
  \c!number \endcsname 
\@@@i...

\expanded ...\long \xdef \@@expanded {\noexpand #1
  }\@@expanded
\p!doifinstringelse ...{\pp!doifinstringelse #2#1}
  @@\war
\dodoifinstringelse ...tringelse \@@@instring {#1}
  [EMAIL PROTECTED] 
\firstoftwoarguments ...

\dodochecknummer ...up \doifinstringelse {.0}{.#2}
   {\doifnot {#3}\v!by 
{\set...
...
l.13 ^^I\chapter[Ch-Test]{Test}

See also the attached minimal testfile bycd.tex
Am I missing something?
Kind regards Willi
% Bug?
% CONTEXT file
% filename: bycd.tex
% Willi Egger
% 15-01-2005


\setuppagenumbering[way=bycd:chapter]


\starttext
\dorecurse{3}[%
\chapter[Ch-Test]{Test}

\input tufte
}
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] m-letter backslash codes in xml database

2005-01-15 Thread Adam Lindsay
Rob Ermers said this at Sat, 15 Jan 2005 02:31:32 +0100:

h h extern wrote:
 if you want to move things around in an encoding neutral way:

 \defineXMLsingular
   [c]
   [n=unknowncharacter]
   {\executeifdefined {\XMLop{id}} \unknowncharacter}

 c n='eacute'/

Um, I'm not sure, but I think Hans mixed two different attribute names:
the code won't work as is. It should probably be:

\defineXMLsingular
   [c]
   [n=unknowncharacter]
   {\executeifdefined {\XMLop{n}} \unknowncharacter}


Thanks, Hans, for the example. I do agree, but I'm sorry I don't quite
understand how to apply this code. Could you be more specific?

It should be in a .tex file that is loaded during processing. You can do
this manually in your style file, or in (for example) a cont-loc.tex file
that's in your path (e.g., the project directory or your tex/context/user ).

Do I still have to use the unicode number, or is this a method to use
\e again in the database?

This is so that you can substitute elements for entities in your
database. This is an XML database, so it's a lot more useful if you don't
restrict it to TeX-specific character entry. Entities (or elements) are a
much better option, long-term.

Should I code each diacritic in this way, such as ouml (รถ) in my
example: pJ. Sch#246;ttelndreher/p)?

pJ. Sch#246;ttelndreher/p or, if you \useXMLfilter[ent] :
pJ. Sch#ouml;ttelndreher/por, with Hans's definition:
pJ. Schc n='odiaeresis'/ttelndreher/p

My solution by the way does not work with, e.g., a Turkish scedil
(U0015F) in my database, while Tex excells in all kinds of diacritics.

This is a slightly different issue. It's fairly easily fixed with a
couple additions to the style file/cont-loc file:

% You can use scedil; with:
\defineXMLentity [Scedil]   {\Scedilla}
\defineXMLentity [scedil]   {\scedilla}

% You can use #351; or other unicode (decimal) numbers with:
\def\executeXMLdeccharacter#1\relax %
  {\utfunifontglyph{#1}}

(I was unable to come up with a satisfactory way of handling the hex
version thereof. I also haven't really tested the above function
overload--I'm sure someone can improve on this.)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


[NTG-context] html to context

2005-01-15 Thread ishamid
Hi gang,

Have any of you guys a script or something to convert simple html to ConTeXt? 
There are apparently a couple of html2latex converters out there but is there 
anything for ConTeXt?

Best
Idris

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

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


Re: [NTG-context] html to context

2005-01-15 Thread Adam Lindsay
ishamid said this at Sat, 15 Jan 2005 08:12:34 -0700:

Have any of you guys a script or something to convert simple html to
ConTeXt? 
There are apparently a couple of html2latex converters out there but is
there 
anything for ConTeXt?

Huh, that's funny. I was just thinking about that in the context of this
post, as pointed out by Bruce d'Arcus:
http://kronavita.de/chris/blog/archive/2005/01/converting-bluecloth-to-
pdf.html

So it sounds like that XSLT would be one place to start.
I have to think, at least with XHTML-basic http://www.w3.org/TR/xhtml-
basic/, that going in and renaming a few of the elements in x-contml
would get you a lot of the way there, as well.

I have to think that http://tidy.sourceforge.net/ is a worthwhile pre-
processor to have in one's arsenal, and I pointed out http://www.re.be/
css2xslfo/ to the foXet list just the other day. Technically speaking,
if that converts to XSL-FO as well as it appears, ConTeXt could well be
the back end to it.

But to answer your question, no I don't have anything per se. I'm just
thinking about it. (And, because of PhD obligations, that's all I'm going
to do about it, for the time being!)
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


[NTG-context] Re: html to context

2005-01-15 Thread Patrick Gundlach
Hi Idris,

 Have any of you guys a script or something to convert simple html to ConTeXt? 
 There are apparently a couple of html2latex converters out there but is there 
 anything for ConTeXt?

I came across this a couple of days ago:

http://kronavita.de/chris/data/md2context.xsl 

didn't try it, looks rather simple (and special). Perhaps better than
nothing(?).

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppagenumbering

2005-01-15 Thread Taco Hoekwater
Willi Egger wrote:
Hi
After downloading the latest release, after updating the pdfetex 
binaries, making the engines running again ...

This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
ConTeXt  ver: 2005.01.13  fmt: 2005.1.15  int: english  mes:
english

I need to use \setuppagenumbering[way=bychapter] According to the new 
syntax given in TeXshow it is now \setuppagenumbering[way=bycd:chapter]

Am I missing something?
It is a bug in the new TeXshow, but of course you figured that out 
already ;-)

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


[NTG-context] \bTABLE .. \eTABLE

2005-01-15 Thread Willi Egger
Hi,
Hm, I am puzzled.
When running the attached minimal file with
This is pdfeTeX, Version 3.141592-1.11a-2.1 (Web2c 7.5.2)
ConTeXt  ver: 2004.6.21  fmt: 2004.6.22  int: english  mes: english
There is a pdf with the expected one-cell table.
Otherwise running the file with
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
ConTeXt  ver: 2005.01.05  fmt: 2005.1.5  int: english  mes: english
or running the file with
This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2c 7.5.3)
ConTeXt  ver: 2005.01.13  fmt: 2005.1.15  int: english  mes: english
The following message is displayed:
! Undefined control sequence.
argument \@@tblprefix \c!each
\v!each
\getvalue #1-\csname #1
\endcsname
\setupTBLcell ...e {\@@tblprefix \c!each \v!each }
  \getvalue 
{\@@tblprefix \c...

\handleTBLcell ...ox \hbox {\setupTBLcell {#1}{#2}
  \localframed [\@@tbl 
\@@tb...
inserted text ...bl \begintblrow \makeTBL {1}{1}
  \nexttblcol 
\endtblrow \en...

\endTBL ...x {\trialtypesettingtrue \the \tbltoks
  }\ifautoTBLspread 
\checktb...
...
l.14 \eTABLE

Kind regards Willi
% Bug?
% CONTEXT file
% filename table.tex
% Willi Egger
% 15-01-2005

\setupoutput[pdftex]

\starttext
 \bTABLE
\bTR
\bTD Document: \eTD
\eTR
\eTABLE
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] dictionary for TeX,/ConTeXt

2005-01-15 Thread Ciro A. Soto
Hello,
I would like to know what is the best way to 
check spelling in a TeX-prepared document.
I could use ispell (linux/unix), but I wonder
if there is a better way with OpenOffice, or
other package. Besides, ispell wouldn't check
my spanish words like Am\'erica because of the
accent.

In the same lines, is there any grammar checker?

thank you
Ciro

=
==
Ciro A. Soto
All problems are at the interface. Each one of them has a solution.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] dictionary for TeX,/ConTeXt

2005-01-15 Thread Mojca Miklavec
Ciro A. Soto wrote:
Hello,
I would like to know what is the best way to 
check spelling in a TeX-prepared document.
I could use ispell (linux/unix), but I wonder
if there is a better way with OpenOffice, or
other package. Besides, ispell wouldn't check
my spanish words like Am\'erica because of the
accent.
You can use \enableregime[utf] and write your documents in unicode with 
all the accents instead. I sometimes used the spellchecker inside 
WinEDT, but I'm no expert in that field. Open office is somehow 
inappropriate for writing plain text documents, although I use it 
sometimes as spellchecker too.

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


RE: [NTG-context] dictionary for TeX,/ConTeXt

2005-01-15 Thread ishamid
Hi Mojca,

You can use \enableregime[utf] and write your documents in unicode with
all the accents instead. I sometimes used the spellchecker inside
WinEDT, but I'm no expert in that field. Open office is somehow
inappropriate for writing plain text documents, although I use it
sometimes as spellchecker too.

I use WinEdt too, but how do you directly type unicode? Or is it a keyboard 
thing?

Best
Idris

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

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


Re: [NTG-context] dictionary for TeX,/ConTeXt

2005-01-15 Thread Nikolai Weibull
* Ciro A. Soto (Jan 15, 2005 18:10):
 Hello, I would like to know what is the best way to check spelling in
 a TeX-prepared document.  I could use ispell (linux/unix), but I
 wonder if there is a better way with OpenOffice, or other package.
 Besides, ispell wouldn't check my spanish words like Am\'erica
 because of the accent.

I'm not 100% sure, but I'm guessing aspell [1] may be your solution,
nikolai

[1] http://aspell.sourceforge.net/

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context