Re: [NTG-context] Re: alpha version; sorting

2005-08-17 Thread Vit Zyka

Hans Hagen wrote:

Vit Zyka wrote:


Hi,

I am going back
to sorting thread...

(http://archive.contextgarden.net/message/20050812.082425.f0643027.html)

Do you think, Hans, that sorting will work even if
\enableregime[some-regime]?

It seems that until now if some input char expands to e.g. ccaron, 
sorting rules crashes.


Zipped minimal example is also attached.



the rules go into sort-lan.tex !

\startmode[sortorder-cz]
   \exportsortrule {ccaron}  {c+1}
   \exportsortreduction{ch}{c}
\stopmode

you also need more defs in sort-def; files attached


Thank you for actualized sort-*.tex files. Unfortunatelly it is not 
clear from your example how to write the rules for direct accent letters 
like č. Never mind I have tried


  \exportsortshortcut{č} {\ccaron}

and it works; well that is step ahead. But, this description is encoding 
dependent. Is it intended or there is another secret trick to go around 
or the rule should be written for each encoding?


vit

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Mojca Miklavec
Hans Hagen wrote:
 Mojca Miklavec wrote:
 
 And about the ConTeXt-specific: dcroat and Eth are both already
 present in ec encoding, so I'm not asking for any additional glyphs.
 It's not OK to use Eth when someone asks for Dcroat (Dstroke), but
 it's better than using the improvized (althoug corrected) version,
 pseudoencodedDJ.
 My question was: can anything be done, so that dcroat will be chosen
 instead of \pseudoencodeddj and that Eth will be chosen instead of
 \pseudoencodedDJ when someone types \dstroke or \Dstroke (when in ec
 encoding)?

 just send me the patch because otherwise i will mess things up

I would if I knew/understood at which place ConTeXt decides whether to
select a glyph from a font or to make a composed character (or use a
macro such as \pseudoencodeddj).

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Hans Hagen

Mojca Miklavec wrote:


Hans Hagen wrote:
 


Mojca Miklavec wrote:

   


And about the ConTeXt-specific: dcroat and Eth are both already
present in ec encoding, so I'm not asking for any additional glyphs.
It's not OK to use Eth when someone asks for Dcroat (Dstroke), but
it's better than using the improvized (althoug corrected) version,
pseudoencodedDJ.
My question was: can anything be done, so that dcroat will be chosen
instead of \pseudoencodeddj and that Eth will be chosen instead of
\pseudoencodedDJ when someone types \dstroke or \Dstroke (when in ec
encoding)?
 


just send me the patch because otherwise i will mess things up
   



I would if I knew/understood at which place ConTeXt decides whether to
select a glyph from a font or to make a composed character (or use a
macro such as \pseudoencodeddj).
 

if you use regimes: 

input encoding  font encoding 

active char = \namedglyph = 8bit char | fallback 

so, it depends on it the 8 bit char being defined in the font encoding, else there is a fallback onto the default encoding 

Hans 


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Mojca Miklavec
Hans Hagen wrote:
 if you use regimes:
 
 input encoding  font encoding
 
 active char = \namedglyph = 8bit char | fallback

OK, thanks. I didn't check if this works, but I hope the problem will
finally be solved now:

In enco-ec.tex change
\definecharacter dmacron 158
into
\definecharacter dstroke  158

and add
\definecharacter Dstroke 208

% perhaps also something like
\definecharacter dcroat 158
% but I think that you deal with synonyms at some place

Please also take a look at lang-hr.pat (or, better, please grep for
all occurencies of dbar and dmacron and see if you can get rid of as
many of them as possible).

Did I miss any other files?

Another remark. I'm not sure which name is better, dstroke
(unicode-based) or dcroat (adobe-based). ConTeXt seems to have a
strange mixture of unicode- and adobe- based names. hungarumlaut is
adobe-based, while diaeresis is unicode-based for example. I don't
want to introduce just another name, incompatible with any standards.


This additional patch below is the wrong way of doing things. It gives
wrong result in the sense that the copy-paste will result in wrong
character codes (and that a Croat won't notice that he's using the
wrong encoding, just as I didn't notice anything weird in ccaron for a
long time), but the resulting glyphs in PDF will be better and in the
printed material this won't be seen, which is the most important part.
If you use fallback, the results are worse in both senses anyway (the
document is not any more searchable).

So, can you please also add
\definecharacter Dstroke 208
to enco-qx.tex and enco-ans.tex? And add also a comment that the
glyphs are identical, but the charecters differ, just in case anyone
wonders a couple of years later what these dstrokes are doing there.

Thank you,
Mojca

PS:
So, let me count: dstroke, dmacron, dbar, dcroat, [wrong] eth, ... any
other suggestions for standardisation ;) ?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Uppercase in headers

2005-08-17 Thread Olivier
Hi,

I would like to set the headers all caps, but not the title of the
section in the body text.

This setting

%\setupheader[text][style={\WORD}] % - does not work
\setupheadertexts[text][\setups{run:left}][][][\setups{run:right}]
\startsetups run:left
   \CapHeadFont\pagenumber\qquad\WORD{\getmarking[section]}
\stopsetups

eats the section title in the headers.

What should I do to get it right?

Thanks,
Olivier

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


[NTG-context] modules.pdf

2005-08-17 Thread luigi.scarso

I'm now synchronized with latest distro (2005.08.05) and pdfetex 1.3

Under
http://www.logosrl.it/context/
there are

*)modules.pdf  (~21MByte)

*) modules.zip, used to make modules.pdf

*)patches.zip, a zip file with following patches:
core-rul.patch
font-chi.patch
spec-fdf.patch
supp-lan.patch
supp-pdf.patch

*) modules.log


I found some problem with mill.png:  I put it under base/ and it was 
correctly included.

Also, partial indeces are not ok.

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Hans Hagen

Mojca Miklavec wrote:


Another remark. I'm not sure which name is better, dstroke
(unicode-based) or dcroat (adobe-based). ConTeXt seems to have a
strange mixture of unicode- and adobe- based names. hungarumlaut is
adobe-based, while diaeresis is unicode-based for example. I don't
want to introduce just another name, incompatible with any standards.
 


take the one used in latin modern

Hans

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [NTG-context] modules.pdf

2005-08-17 Thread Mojca Miklavec
 I'm now synchronized with latest distro (2005.08.05) and pdfetex 1.3
 
 Under
 http://www.logosrl.it/context/
 there are
 
 *)modules.pdf  (~21MByte)

Great!

I would suggest to keep the old files and name them like
2005-08-16-modules.pdf (and perhaps to keep all the files (except
ConTeXt itself of course) since they have to be updated from time to
time as new files are added to the distribution). That way the old
content will not misteriously disappear.

It would be a nice idea to put that files on the garden anyway
(together with museum or on its own).

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


[NTG-context] modules.pdf

2005-08-17 Thread luigi.scarso

Mojca Miklavec wrote:



I would suggest to keep the old files and name them like
2005-08-16-modules.pdf 


done


(and perhaps to keep all the files (except
ConTeXt itself of course) since they have to be updated from time to
time as new files are added to the distribution). That way the old
content will not misteriously disappear.

 

patches.zip contains patches for files with  some typo-errors (eg. $x4 
instead of $x$)
they  are (almost) irrelevant at format-generation time, because they 
are not

processed at all .

Also, some macros are in dutch (eg, \blank[2*groot]);
I excluded some others macros (\startpostponing ), correct some others
( \getvalue{period graybox} with \dotgray)
added \loadmap[gbk] and so on.

Partial contents  are ugly (or broken ?) ;
there are many important modules to document (see Core Commands in 
modules.pdf;

inside modules.tex, 3=ok, 1=to be documented, 0= to be exctract)

There are some overfull lines;
maybe there is a better sectioning (or multiple pdfs ?).


So, I think that this is a good starting point

I think that all patches should be approvated before to go into an 
official distro;

after that we can discuss all other stuffs.



It would be a nice idea to put that files on the garden anyway
 



no problem to me

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Mojca Miklavec
Hans Hagen wrote:
 Mojca Miklavec wrote:
 
 Another remark. I'm not sure which name is better, dstroke
 (unicode-based) or dcroat (adobe-based). ConTeXt seems to have a
 strange mixture of unicode- and adobe- based names. hungarumlaut is
 adobe-based, while diaeresis is unicode-based for example. I don't
 want to introduce just another name, incompatible with any standards.

 take the one used in latin modern

Hmmm ... which one? dbar or dcroat? ;)
(/fonts/lm/doc/fonts/lm/0inf0983.txt tells that both of them are present)

Well, I didn't mean that seriously, I know that dbar is there just
because of compatibility with the old ec.enc files, but ... both in
adobe glyph list and unicode the situation is just horrible. stroke
in unicode is represented by 3 different names (croat, bar, slash):
- dcroat
- hbar
- lslash
- oslash
- tbar
Guess why dstroke/dcroat is named dbar in the ec encoding ... 

And I forgot yet another possibility in my list of names for that
single stupid letter that seems to be used nowhere except in Croatian
and Vietnamese ... \dj. Plus the one which should be used as a
fallback in Slovenian:
\definecharacter dstroke {d\zcaron}

Out of the seven possibilities I vote for \dstroke and leave the
strange name (dcroat) to be handled by *.enc files only.

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


Re: [NTG-context] modules.pdf

2005-08-17 Thread Hans Hagen

luigi.scarso wrote:


*)patches.zip, a zip file with following patches:
core-rul.patch
font-chi.patch
spec-fdf.patch
supp-lan.patch
supp-pdf.patch


patched

Hans  


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [NTG-context] modules.pdf

2005-08-17 Thread Hans Hagen

luigi.scarso wrote:


There are some overfull lines;
maybe there is a better sectioning (or multiple pdfs ?).


i'll look into that later; also, it makes sense to used condensed monospaced latin modern fonts (will be available in a couple of weeks) 

Hans 


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Hans Hagen

Mojca Miklavec wrote:


Another remark. I'm not sure which name is better, dstroke
(unicode-based) or dcroat (adobe-based). ConTeXt seems to have a
strange mixture of unicode- and adobe- based names. hungarumlaut is
adobe-based, while diaeresis is unicode-based for example. I don't
want to introduce just another name, incompatible with any standards.
 

on a rainy day we can sort it out and go unicode and use the adobe ones 
as synoyms


Hans


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Hans Hagen

Mojca Miklavec wrote:


Out of the seven possibilities I vote for \dstroke and leave the
strange name (dcroat) to be handled by *.enc files only.
 

i think that your ultimate satisfaction can come from this private regime: 


\starttext

\startregime[mojka]
 \dostepwiserecurse{127}{255}{1}
   {\expanded{\defineactivetoken\recurselevel\space}{\dstroke}}
\stopregime

\enableregime[mojka]

¡¢£ ¤¥¦§¨© ª«¬­®¯°± ²³´µ¶·¸ ¹º»¼½¾ ¿ÀÁÂà ÄÅ ÆÇÈÉ ÊË ÌÍÎÏÐ
ÑÒÓÔ ÕÖ×ØÙÚ Û ÜÝÞßàáâ ãäåæçè éêëì íîï ðñòóôõ ö÷øùúûüýþÿ
¡¢£ ¤¥¦§¨© ª«¬­®¯°± ²³´µ¶·¸ ¹º»¼½¾ ¿ÀÁÂà ÄÅ ÆÇÈ ÉÊË ÌÍÎÏÐ
ÑÒÓÔ ÕÖ×ØÙÚ Û ÜÝÞ ßàáâ ãäåæçè éêë ìíîï ðñòóôõ ö÷øùúûüýþÿ
¡¢£ ¤¥¦§¨© ª«¬­®¯°± ²³´µ¶·¸ ¹º»¼½¾ ¿ÀÁÂà ÄÅ ÆÇÈÉ ÊË ÌÍÎÏÐ
ÑÒÓÔ ÕÖ×ØÙÚ Û ÜÝÞßàáâ ãäåæçè éêëìí îï ðñòóôõ ö÷øùúûüýþÿ
¡¢£ ¤¥¦§¨© ª«¬­®¯°± ²³´µ¶·¸ ¹º»¼½¾ ¿ÀÁÂà ÄÅ ÆÇÈ ÉÊË ÌÍÎÏÐ
ÑÒÓÔ ÕÖ×ØÙÚ Û ÜÝÞßàáâ ãäåæçè éêëì íîï ðñòóôõ ö÷øùúûüýþÿ

\stoptext

Hans 


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [NTG-context] Uppercase in headers

2005-08-17 Thread Hans Hagen

Olivier wrote:


Hi,

I would like to set the headers all caps, but not the title of the
section in the body text.

This setting

%\setupheader[text][style={\WORD}] % - does not work
\setupheadertexts[text][\setups{run:left}][][][\setups{run:right}]
\startsetups run:left
  \CapHeadFont\pagenumber\qquad\WORD{\getmarking[section]}
\stopsetups

eats the section title in the headers.

What should I do to get it right?
 

the best would be an all-caps font; anyhow, here is ahack: 


\setupheadertexts
 [\setups{run:middle}]

\startsetups run:middle
  -- \expanded{\WORD{\fetchmark[chapter][first]}} --
\stopsetups

\starttext

\chapter{test}

\stoptext

don't ask why -) 

Hans 



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

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


Re: [Fwd: [NTG-context] Re: ec encoding and tcaron]

2005-08-17 Thread Hans Hagen

Mojca Miklavec wrote:

Guess why dstroke/dcroat is named dbar in the ec encoding ... 

 


guess: because no one was involved who knew better than that


And I forgot yet another possibility in my list of names for that
single stupid letter that seems to be used nowhere except in Croatian
and Vietnamese ... \dj. Plus the one which should be used as a
fallback in Slovenian:
   \definecharacter dstroke {d\zcaron}
 

that's an easy one ... and could be within a boring background run ...  
see attachment:


\useencoding[fsl]

\starttext
 \dstroke \language[sl] \dstroke
\stoptext

of course only visible when the fall bakc is in use (so for testing, 
replace default by ec)



Out of the seven possibilities I vote for \dstroke and leave the
strange name (dcroat) to be handled by *.enc files only.
 

dcroat is only in enco-def as fallback (does not hurt) 

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
-



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


[NTG-context] Re: Uppercase in headers

2005-08-17 Thread Patrick Gundlach
Hi,


 the best would be an all-caps font; anyhow, here is ahack: 

 \setupheadertexts
   [\setups{run:middle}]

 \startsetups run:middle
-- \expanded{\WORD{\fetchmark[chapter][first]}} --
 \stopsetups

 \starttext

 \chapter{test}

 \stoptext


Once Olivier tries this out, perhaps he could add a wiki page?

:-)

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


Re: [NTG-context] Re: Uppercase in headers

2005-08-17 Thread Olivier
Quoting  Patrick Gundlach :
 -- was [EMAIL PROTECTED] on Aug 18, 2005 at 12:26:06AM --

 Once Olivier tries this out, perhaps he could add a wiki page?
Done there: http://contextgarden.net/Headers_and_Footers

Olivier

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