Re: [NTG-context] Draw chess board

2007-06-11 Thread Zhichu Chen

Hi Wolfgang,

Actually, the sgf file always contains strings like SZ[19] which indicates
the board size is 19x19, so I think if I wanna manually input a game, just
type SZ[??] will be more convenient.

The main problem is how to move dead stones from the board, this is not so
easy in tex or metapost. I looked at other sgf viewers, and still have no
idea.

Another problem is that the output file is very big (of course, because it
contains like hundreds of graphics), can I use some command like
\pdfcompresslevel to compress these graphics? The default value of
\pdfcompresslevel is 9 and the pdf output file is like 4M, when I use winrar
to compress it, it shrinked to less than 700k. So I think there should be
some way to compress it more.

On 6/11/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:


2007/6/11, Zhichu Chen <[EMAIL PROTECTED]>:
> Hi guys
>
> I've modified my module again, then you can click to demostrate a game.
The
> source file is attached and the resulting pdf file is pretty huge so I
just
> upload to my google page (I think there's a bandwidth limitation so I
use
> winrar to compress it):
> http://zhichu.chen.googlepages.com/sgfstack.rar

Hi Chen,

nice module. One suggestion for your Todo list:

size option for the board (goban):
- small (9 x 9)
- medium (13 x 13)
- big (19 x 19), default size

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

___





--
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
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] Write once layout everwhere (?)

2007-06-11 Thread Aditya Mahajan
Quoting nico <[EMAIL PROTECTED]>:

> On Mon, 11 Jun 2007 11:42:23 -0400, Aditya Mahajan 
> <[EMAIL PROTECTED]>  wrote:
>
>> Thanks. I had not looked at them and some of the things about handling
>> at the ConTeXt end are more clear now. But I think that I did not
>> explain my question correctly.
>>
>> What I do not understand how are abbreviations etc. handled by xslt for
>> conversion into html. For example, how do I write an xsl style sheet
>> that converts this xml input
>>
>> 
>>
>>  I study  which stands for > value="EECS", infull="yes"> 
>>
>> into html as
>>
>>  I study EECS which stands for Electrical Engineering and Computer
>> Science 
>>
>> I know that this is not the right list to ask this sort of questions,
>> but I am hoping that there are xml users here and they will be able to
>> point me to the right direction.
>
> I haven't followed the thread, but attached an idea of doing what you 
> want  with XSLT. Note that your example is not valid at all (commas 
> between  attributes, missing ending '/' for empty elements).

Thank you. This is exactly what I wanted. I will now go back to using 
xml for simple documents and see how things go.

> BTW, it's not a good  idea to use the same attribute ("value") as an 
> reference identifier, and  for referencing to another element.

Ok. I will keep this in mind.

Thanks,
Aditya
___
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] Write once layout everwhere (?)

2007-06-11 Thread nico
Hello,

On Sun, 10 Jun 2007 17:31:45 -0500, Pepe Barbe <[EMAIL PROTECTED]> wrote:

> I have used ConTeXt in the past and I have been very pleased with it
> and the results obtained, much more than LaTeX.
>
> Now I am looking into a solution that would allow me to layout the
> content ConTeXt and in other formats that ConTeXt does not (Forgive my
> ignorance, if I am wrong) output, like HTML, Plain Text, or RTF (Those
> are the formats that I can think of that are interesting to me
> currently).
>
> Reading the Wiki one of those solutions would be XML, but I know very
> little about the subject, so this email is to ask about experiences in
> similar endeavors, other solutions for the same problem and how
> practical this is.
>
> I suppose that I would use this for general writing and for academic
> as well (Maths and engineering).

XML is a good format if you need several output formats without losing  
information (XHTML, HTML, PDF, manpages, plain text). But I recommend some  
well established grammar (DITA, DocBook) to be able to use their official  
transformation tools, and to be able to use some XML WYSIWYG editor that  
supports them natively (like XXE).

Strangely enough the PDF output is weakest point since most of the tools  
use FO and the related compilers (well known FOP, maybe xmlroff, maybe  
fotex) which can give very ugly output. The only good compiler I know is  
XEP, but it is not free (there's a full featured personnal edition that  
sticks its logo on every page).

For docbook, you can try marginal tools to convert the XML to *tex formats  
(DocbookInContext, db2latex, dblatex). You can also directly use the  
native XML handling of context (method used by DocbookInContext) but IMHO  
it needs some context knowledge.

Personnaly I use docbook, mostly because I have to produce PDF, HTML, and  
troff (manpages) outputs. It is even possible to convert some already  
existing manpages to docbook with doclifter.

Regards,
BG
___
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] Write once layout everwhere (?)

2007-06-11 Thread nico
On Mon, 11 Jun 2007 11:42:23 -0400, Aditya Mahajan <[EMAIL PROTECTED]>  
wrote:



Thanks. I had not looked at them and some of the things about handling
at the ConTeXt end are more clear now. But I think that I did not
explain my question correctly.

What I do not understand how are abbreviations etc. handled by xslt for
conversion into html. For example, how do I write an xsl style sheet
that converts this xml input



 I study  which stands for  

into html as

 I study EECS which stands for Electrical Engineering and Computer
Science 

I know that this is not the right list to ask this sort of questions,
but I am hoping that there are xml users here and they will be able to
point me to the right direction.


I haven't followed the thread, but attached an idea of doing what you want  
with XSLT. Note that your example is not valid at all (commas between  
attributes, missing ending '/' for empty elements). BTW, it's not a good  
idea to use the same attribute ("value") as an reference identifier, and  
for referencing to another element.


Regards,

myxsl.xsl
Description: Binary data


 
 I study  which stands for  


___
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] Write once layout everwhere (?)

2007-06-11 Thread Aditya Mahajan
Quoting Wolfgang Schuster <[EMAIL PROTECTED]>:

> 2007/6/11, Aditya Mahajan <[EMAIL PROTECTED]>:
>
>> Hmm... somehome I had missed xtag-ent.tex. I was looking at xml
>> introductions, and did not look into ConTeXt sources. I will have a
>> look and see how it goes.
>>
>> Thanks,
>> Aditya
>
> Hi Aditya,
>
> the XML-Document example.pdf is a little bit outdated (Hans changed a few
> commands). The important files for xml are xtag-ini and xtag-ext, you should
> take a look into the contml module.

Thanks. I had not looked at them and some of the things about handling 
at the ConTeXt end are more clear now. But I think that I did not 
explain my question correctly.

What I do not understand how are abbreviations etc. handled by xslt for 
conversion into html. For example, how do I write an xsl style sheet 
that converts this xml input



 I study  which stands for  

into html as

 I study EECS which stands for Electrical Engineering and Computer 
Science 

I know that this is not the right list to ask this sort of questions, 
but I am hoping that there are xml users here and they will be able to 
point me to the right direction.

Thanks,
Aditya
___
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] Draw chess board

2007-06-11 Thread Wolfgang Schuster
2007/6/11, Zhichu Chen <[EMAIL PROTECTED]>:
> Hi guys
>
> I've modified my module again, then you can click to demostrate a game. The
> source file is attached and the resulting pdf file is pretty huge so I just
> upload to my google page (I think there's a bandwidth limitation so I use
> winrar to compress it):
> http://zhichu.chen.googlepages.com/sgfstack.rar

Hi Chen,

nice module. One suggestion for your Todo list:

size option for the board (goban):
- small (9 x 9)
- medium (13 x 13)
- big (19 x 19), default size

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
___


Re: [NTG-context] Draw chess board

2007-06-11 Thread Zhichu Chen

Hi guys

I've modified my module again, then you can click to demostrate a game. The
source file is attached and the resulting pdf file is pretty huge so I just
upload to my google page (I think there's a bandwidth limitation so I use
winrar to compress it):
http://zhichu.chen.googlepages.com/sgfstack.rar

On 6/11/07, Zhichu Chen <[EMAIL PROTECTED]> wrote:


Hi Mojca,

The stones are very very nice now, thank you for your hints.

Since I haven't used TikZ before, I have no idea how to handle these
events. I'll learn it later and rewrite my module to be more professional :)


All I'm thinking now is how to make each step a single symbol so that I
could use \fieldstack to demonstrate the game.

By the way, I modified my module to do some fieldstack thing, but it gets
a weird error. I have no idea what's the error about, it's fine when I'm
using MPdrawing environment but it can't output anything when I switch to
buffer and use \processMPbuffer.

On 6/10/07, Mojca Miklavec <[EMAIL PROTECTED]> wrote:

> On 6/6/07, Zhichu Chen wrote:
> > Hi
> >
> > I've tried to write a test file which can only handle ;B[??], ;W[??],
> > AB[??], AW[??] now, and I haven't added the interaction part. But it
> is a
> > good start.
> >
> > Any suggestions?
>
> Wow - that's really, really impressive! You indeed started parsing the
> strings in plain TeX!
>
> I've changed your source slightly, to give you an idea of yet another
> approach: using TikZ. It's main advantage over metapost might be:
> - you can draw more fancy stones (see the example - that could be made
> configurable of course), although teoretically the same could be
> achived with slightly improved smooth shading mechanism in mptopdf
> macros
> - might be easier to backport to (La)TeX
> - I can imagine your module to be a new, really nice TikZ
> package/module (that could be used in other flavours of TeX) + some
> fancy ConTeXt additions (user interface, javascript, ...).
>
> The main difference is that you need to store all the variables in
> TeX, not in metapost, so that part should be rewritten as well (which
> I didn't do).
>
> But simply forget about my stupid comments about (La)TeX for and do it
> your way now.
>
> Mojca
>
> (I have some other comments, but it's too early to speak about them,
> since the module is not ready/complete yet.)
>
>
> On 5/24/07, Zhichu Chen wrote:
> > Hi
> >
> > I love chess games, especially one kind of them which is generally
> called
> > Go.
> >
> > I know there is some file can store each details in one game:
> > http://www.red-bean.com/sgf/
> >
> > AFAIK, there is no module available to draw chess in ConTeXt now. I
> wanna do
> > this by using MetaPost and fieldstack. But I don't know how to tell
> metapost
> > the details of the sgf file. Can anyone give me a suggestion?
> >
> > BTW, I don't like the name. It's invented by acient Chinese and it's
> called
> > Weiqi. I think we can call it Siege Chess in English.
> >
> >
> > --
> > Best Regards
> > Chen
>
>
> 
___
> 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
>
> 
___
>
>
>


--
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn






--
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn



sgfstack.tex
Description: TeX document
___
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] Write once layout everwhere (?)

2007-06-11 Thread Wolfgang Schuster
2007/6/11, Aditya Mahajan <[EMAIL PROTECTED]>:

> Hmm... somehome I had missed xtag-ent.tex. I was looking at xml
> introductions, and did not look into ConTeXt sources. I will have a
> look and see how it goes.
>
> Thanks,
> Aditya

Hi Aditya,

the XML-Document example.pdf is a little bit outdated (Hans changed a few
commands). The important files for xml are xtag-ini and xtag-ext, you should
take a look into the contml module.

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
___


Re: [NTG-context] Write once layout everwhere (?)

2007-06-11 Thread Aditya Mahajan
On Mon, 11 Jun 2007, John R. Culleton wrote:

> On Sunday 10 June 2007 23:49, Aditya Mahajan wrote:
>> On Sun, 10 Jun 2007, Pepe Barbe wrote:
>>> Hello,
>>>
>>> I have used ConTeXt in the past and I have been very pleased with
>>> it and the results obtained, much more than LaTeX.
>>>
>>> Now I am looking into a solution that would allow me to layout
>>> the content ConTeXt and in other formats that ConTeXt does not
>>> (Forgive my ignorance, if I am wrong) output, like HTML, Plain
>>> Text, or RTF (Those are the formats that I can think of that are
>>> interesting to me currently).
>>>
> I don't think it is possible to come up with an "universal elixir"
> that does any format from source and is efficient to use. Plain text
> is the exchange medium I use.  XML is too cumbersome to code by hand.
> Therefore I have solutions for specific situations. For example when
> a customer presents me with a non-fiction document already laid out
> in MSWord, I first save it as rtf. Then I run it through the program
> rtf2latex2e. This gives me an executable LaTeX file, with all the
> font changes etc. preserved. The I edit it in Gvim, using mass
> changes to convert LaTeX tags to an equivalent Context format. Some,
> like all the begin/end tags I just delete en masse.

This approach is fine if you have to convert only once. However, if 
you want to occassionally update the sources and get an updated html 
and pdf output, it can be too much work. For situations like this, I 
think that, at least for just text + graphics, xml is the most robust 
way.

Of course, there are also plain text markup formats, like wiki markup, 
restructured text, textile, etc. If the document is really simple, 
they may be easier to use. There are many plain text markup to LaTeX 
convertor, but no plain text to ConTeXt convertor that I know of. I 
remember there was someone on the list who had written scripts to 
convert wiki markup into context and then to pdf. I do not know if 
these scripts are publically available.

Aditya
___
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] Write once layout everwhere (?)

2007-06-11 Thread Aditya Mahajan
Hi Thomas,

On Mon, 11 Jun 2007, Thomas A. Schmitz wrote:

>
> On Jun 11, 2007, at 5:49 AM, Aditya Mahajan wrote:
>
>> Some of the difficulties that I faced with simple documents was:
>>
>> 1. What is the xml equivalent of ||
>> 2. What is the xml equivalent of ~ (  ??)
>> 3. What is the xml equivalent of
>>
>> \abbreviation {EECS} {Electrical Engineering and Computer Science}
>> and then \EECS\ and \infull{EECS}.
>
> Hi Aditya,
>
> I've just begun experimenting with xlm (because, as Duncan has
> pointed out, I'm sure that every line I write is for eternity...).
> Anyway, what I say here may be totally wrong, but here's how I treat
> this stuff:
>
> 1. For || or |-|, I have defined an entity in my DTD:
>
> 
>
> In my environment for processing the xml files, I have
>
> \defineXMLentity[conthyph]{|-|}
>
> so I can write context&conthyph;specific and get the output I expect.
>
> 2. Yes, I use   with these definitions:
> 
> \defineXMLentity[nbsp]{~}

Ah. Thanks. This was easy :)

> 3. Abbreviations: does xtag-ent.tex do what you want?
>
> Not sure if this is what you're looking for, but it does appear to
> work for me.

Hmm... somehome I had missed xtag-ent.tex. I was looking at xml 
introductions, and did not look into ConTeXt sources. I will have a 
look and see how it goes.

Thanks,
Aditya
___
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] Write once layout everwhere (?)

2007-06-11 Thread John R. Culleton
On Sunday 10 June 2007 23:49, Aditya Mahajan wrote:
> On Sun, 10 Jun 2007, Pepe Barbe wrote:
> > Hello,
> >
> > I have used ConTeXt in the past and I have been very pleased with
> > it and the results obtained, much more than LaTeX.
> >
> > Now I am looking into a solution that would allow me to layout
> > the content ConTeXt and in other formats that ConTeXt does not
> > (Forgive my ignorance, if I am wrong) output, like HTML, Plain
> > Text, or RTF (Those are the formats that I can think of that are
> > interesting to me currently).
> >
I don't think it is possible to come up with an "universal elixir" 
that does any format from source and is efficient to use. Plain text 
is the exchange medium I use.  XML is too cumbersome to code by hand. 
Therefore I have solutions for specific situations. For example when 
a customer presents me with a non-fiction document already laid out 
in MSWord, I first save it as rtf. Then I run it through the program 
rtf2latex2e. This gives me an executable LaTeX file, with all the 
font changes etc. preserved. The I edit it in Gvim, using mass 
changes to convert LaTeX tags to an equivalent Context format. Some, 
like all the begin/end tags I just delete en masse. 

It is easy to go from the output of Context to plain text.  There are 
plenty of pdf to ascii converters in GhostScript and PSUtils etc.   
The only big problem comes when there are columns involved. 
In that situation cut and paste from a pdf viewer window to an editor 
window can be helpful.


-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
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] Write once layout everwhere (?)

2007-06-11 Thread Thomas A. Schmitz

On Jun 11, 2007, at 5:49 AM, Aditya Mahajan wrote:

> Some of the difficulties that I faced with simple documents was:
>
> 1. What is the xml equivalent of ||
> 2. What is the xml equivalent of ~ (  ??)
> 3. What is the xml equivalent of
>
> \abbreviation {EECS} {Electrical Engineering and Computer Science}
> and then \EECS\ and \infull{EECS}.

Hi Aditya,

I've just begun experimenting with xlm (because, as Duncan has  
pointed out, I'm sure that every line I write is for eternity...).  
Anyway, what I say here may be totally wrong, but here's how I treat  
this stuff:

1. For || or |-|, I have defined an entity in my DTD:



In my environment for processing the xml files, I have

\defineXMLentity[conthyph]{|-|}

so I can write context&conthyph;specific and get the output I expect.

2. Yes, I use   with these definitions:

\defineXMLentity[nbsp]{~}

3. Abbreviations: does xtag-ent.tex do what you want?

Not sure if this is what you're looking for, but it does appear to  
work for me.

All best

Thomas
___
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] Weird Fieldstack problem

2007-06-11 Thread Zhichu Chen

Hi Aditya,

In my situation, I can't use buffer conveniently. So is there an easy way to
\includeMPgraphic recurrently? I've tried

\newcount\steps

 repeat the following block several times
\advance\steps\plusone
\startuseMPgraphics{step\the\steps}
. . . % Some random graphics
\stopuseMPgraphic
%

\startuseMPgraphic{aa}
\dorecurse{\the\steps}
 {\includeMPgraphic{step\recurselevel}}
\stopuseMPgraphic


but, it's not working.

On 6/9/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:


Quoting Zhichu Chen <[EMAIL PROTECTED]>:

> Hi Aditya,
>
> Actually, they should have the same boundingbox, the first MPdrawing
> environment draws a line from (0,0) to (2cm,2cm) and the sequence
MPdrawing
> environments just add two lines that are in the previous boundingbox.
>
> I know what's happening now. \definesymbol doesn't define a symbol
> from \getMPdrawing at once.

Yes, \definesymbol[a][b] is roughly equal to \def\a{b}, for example

\starttext

\def\something{aa}

\definesymbol[aa][\something]
\symbol[aa]

\def\something{bb}
\symbol[aa]

\stoptext

This is what is also happening in your case. You need to go back to the
definebuffer and processbuffer as suggested in metafun manual.

I do not know if it makes sense to have a \edef version of
definesymbol. In any case, getting expansion to work with \getMPdrawing
is going to be difficult.

Aditya


___
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

___





--
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
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] Write once layout everwhere (?)

2007-06-11 Thread Duncan Hothersall
Hi Pepe,

If you want your content to remain maintainable and manageable for a 
long period (e.g. decades), if you can afford it, and if you have a 
sufficiently large amount of content, then I strongly recommend 
investing the time and effort in an XML-based solution.

My experience is in large scale educational/commercial applications, in 
which managing content in XML and using tools like ConTeXt to create 
beautiful print output, and alternate tools to create web output from 
the same source, is a very good solution. I can certainly let you know 
the technology we use, but some of it is commercial and expensive, and 
other bits are just complicated! I did a talk at the user group meeting 
which was kinda about this: http://context.aanhet.net/epen2007/share/duncan/

The first question to ask yourself is how much effort is your content 
worth. The rest of the answers flow from that, in my experience. :-)

Duncan
> Hello,
>
> I have used ConTeXt in the past and I have been very pleased with it
> and the results obtained, much more than LaTeX.
>
> Now I am looking into a solution that would allow me to layout the
> content ConTeXt and in other formats that ConTeXt does not (Forgive my
> ignorance, if I am wrong) output, like HTML, Plain Text, or RTF (Those
> are the formats that I can think of that are interesting to me
> currently).
>
> Reading the Wiki one of those solutions would be XML, but I know very
> little about the subject, so this email is to ask about experiences in
> similar endeavors, other solutions for the same problem and how
> practical this is.
>
> I suppose that I would use this for general writing and for academic
> as well (Maths and engineering).
>
> Thanks,
> Pepe
>   
>   
___
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] partial hz ?

2007-06-11 Thread Steffen Wolfrum
On Sun, 10 Jun 2007 19:31:43 -0400 (EDT), Aditya Mahajan wrote:
> On Mon, 11 Jun 2007, Steffen Wolfrum wrote:
> 
>> Hi,
>> 
>> hz justification brings better results, sometimes (most paragraphs 
>> don't change), but the entire typesetting is generally slow down 
>> with hz almost by factor 2. Thus I'd like to have a a kind of 
>> "partial hz" that I can use on selected paragraphs only.
> 
> A factor of 2 is good :) For my document, hanging punctuation slows 
> down things a LOT (from 10 sec for three runs, to 60 secs for three 
> runs). What I usually do is to use no protrusion for test runs, and 
> add protrusion when I really have to make the final document. This can 
> be done easily using something like



hm ... hanging doesn't make much change for me: with 263 sec, without 238 sec.
no, here it is hz. it doubles speed (resp. slowness): 416 sec

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