[NTG-context] czech sorting

2010-05-17 Thread Tomáš Pustelník
Hi,

again czech sorting in MkIV is little wrong, I found it out coincidentally, 
when I was testing it. Order of character with accent is strange. Look at the 
file in attachment. Is there some way how to set order in which groups are 
supposed to be sorted, like in MkII? Also I really wonder why letter R is not 
included in sorting.

Tomas P.

cz-sort.pdf
Description: Adobe PDF document


cz-sort.tex
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] czech sorting in MiIV

2010-05-16 Thread Tomáš Pustelník

--
From: Aditya Mahajan adit...@umich.edu
Sent: Sunday, May 16, 2010 5:08 AM
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] czech sorting in MiIV


Also I have question. In my bachelor thesis I'm describe language support 
for

ConTeXt and when I tried add some experimental language into ConTeXt (I
define system constants and add \loadcorefile{lang-exp} to context.mkii 
and
context.mkiv) and when generating format for MkII everything was ok but 
for
MkIV ConTeXt complained he can't find file lang-exp.tex (I paste it in 
base
folder to other source codes). Any idea whats wrong? In MkIV must I 
change

something else as well?


Did you run luatools --generate.

Aditya


Thanks, I forgot about this. It's working now 


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


[NTG-context] czech sorting in MiIV

2010-05-15 Thread Tomáš Pustelník
Hi,
is czech sorting in MkIV working? When I tried it with this code:

\mainlanguage[cz]
\enableregime [utf-8]

\starttext
\setupregister[index][language=cz]

\index{chobot}chobot 
\index{áro}áro 
\index{akát}akát 
\index{Áčko}Áčko 
\index{astma}astma 
\index{ámerika}ámerika 
\index{arábie}arábie 
\index{Árun}Árun 
\index{žába}žába 
\index{cibule}cibule 
\index{čára}čára 
\index{bomba}bomba 
\index{Auto}Auto
\index{arek}arek

\placeindex
\stoptext

ConTeXt sorted only letters without accent and rest of the words just put 
before index without any kind of sorting, also accented characters inside words 
are sorted wrong way. Is it just me or the sorting is really broken? Is there 
some text how to do sorting in MkIV so I can fix it, or I just need to follow 
rest of the sort-lan.lua to write sorting rules?

Also in MkII what commands \exportsortreduction and \exportsortshortcut do? I 
couldn't figured it out from source codes.

Thanks 

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


Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Tomáš Pustelník



--
From: Hans Hagen pra...@wxs.nl
Sent: Saturday, May 15, 2010 7:26 PM
To: Tomáš Pustelník xpusteln...@seznam.cz
Subject: Re: [NTG-context] czech sorting in MiIV


On 15-5-2010 7:10, Tomáš Pustelník wrote:

I'm using version 2010.05.13 12:15 so if there isn't some special way
how to download beta I should be using lates version. Also in MkIV I set
sorting with this command?


normally the garden is a few hours behind the website

you can fetch the beta from the website and unzip it in texmf-context and 
then run luatools --generate



\enabletrackers[sorters.tests]


just tracking

Thanks, it's working now, but still it sort some words bit different 
compared to MkII. But it's ok for now, I will check czech norm and try to 
fix it if needed.


Also I have question. In my bachelor thesis I'm describe language support 
for ConTeXt and when I tried add some experimental language into ConTeXt (I 
define system constants and add \loadcorefile{lang-exp} to context.mkii and 
context.mkiv) and when generating format for MkII everything was ok but for 
MkIV ConTeXt complained he can't find file lang-exp.tex (I paste it in base 
folder to other source codes). Any idea whats wrong? In MkIV must I change 
something else as well?


Tomas P. 


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


Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Tomáš Pustelník

--
From: Hans Hagen pra...@wxs.nl
Sent: Saturday, May 15, 2010 9:42 PM
To: mailing list for ConTeXt users ntg-context@ntg.nl
Cc: Tomáš Pustelník xpusteln...@seznam.cz
Subject: Re: [NTG-context] czech sorting in MiIV


On 15-5-2010 8:14, Tomáš Pustelník wrote:

Also I have question. In my bachelor thesis I'm describe language
support for ConTeXt and when I tried add some experimental language into
ConTeXt (I define system constants and add \loadcorefile{lang-exp} to
context.mkii and context.mkiv) and when generating format for MkII
everything was ok but for MkIV ConTeXt complained he can't find file
lang-exp.tex (I paste it in base folder to other source codes). Any idea
whats wrong? In MkIV must I change something else as well?


Ah .. you look in the wrong spot. There's a file:

  mult-def.lua

and interfaces are defined there. I generate the mult-* files using

  mtxrun interface --context

Now, if you just want to experiment, you need to patch mult-def.lua.

You can make a mult-def-mine.lua:

  local t = require mult-def.lua

  t.commands.framed.xx = frmd

  -- print(table.serialize(t.commands.framed))

  return t

I patched mtx-interface.lua so that you can say;

  mtxrun interface --context mult-def-mine.lua

There is also --messages for the message files.

Of course you have to make a cont-xx.tex file as well.

Hans


Thank you, this will be handy (actually I was planing to ask about user 
interface as well). But what I had in mind was new language definition (like 
lang-sla, lang-ger and so on), perhaps I could be more precise.


But anyway, thanks. As I said, I will use this as well.

Tomas P. 


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


[NTG-context] sorting

2010-05-11 Thread Tomáš Pustelník
Hi,
thanks for your previous answers, they helped me. But now I'm little lost in 
sorting (in registers -- index etc.). I know there is file sort-lan.mkii with 
sorting rules for czech language, but Context is not sorting by these rules 
(letter ch is not recognized). So, is there some way how to use it? (I can add 
it to context.mkii and generate format again, but I'm not sure, it was supposed 
to be this way). Also mkiv version of this file doesn't exist, but sort-lan.lua 
does. So how is it handled in MkIV? 

Thank for your answers

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


Re: [NTG-context] mistake in lang-cjk.mkiv

2010-05-09 Thread Tomáš Pustelník
Also I would like to ask if file lang-spe.mkii have some equivalent in 
MkIV and  where the language specifics are defined (in which file)? Or is 
it treated in enco files?


in mkiv we don't have (want) language specifics ... why do yoi need them?

Hans


Well I actually don't need them, I browse source codes and I found it there. 
It looks quite useful so I was wondering, if in MkIV is this implemented as 
well. Could you please tell me, why specifics weren't implemented in MkIV 
(why don't we want them)? And is there any other mechanics which replace 
language specifics in MkIV? And just to be sure. In MkII language specifics 
are still working, right?


Also are there any documents or information sources where I could find info 
about encoding in ConTeXt? I could use them for my bachelor thesis.


Thank you for answer.

Tomas Pustelnik



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


[NTG-context] \installlanguage questions

2010-05-05 Thread Tomáš Pustelník
Hello,

I have few questions about command \installlanguage. First, in file lang-ini is 
command \setuplanguage for default language. It has parameters lefthyphen, 
righthyphen and hyphen. I would like to ask if these parameters can be used in 
command \installlanguage or not and what is their funcionality becouse I have 
tried use command:

\setuplanguage[cz][lefthyphen=@,righthyphen=@,hyphen=€] 

and I didn't see any changes. I thought it's used to setup hyphen mark when the 
word is spilt at the end of line but I still get symbol -

Also I would like to know whats the difference in \date and parameter date in 
\installlanguage? In parameter date in \installlanguage are curly backets, it's 
just some mask for command \date? Or those two are entirely different?

Thank you answers.

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


[NTG-context] mistake in lang-cjk.mkiv

2010-05-03 Thread Tomáš Pustelník
Hi,

I have found a glitch in lang-cjk.mkiv in definition of Japanese language name 
of days are shifted. It begins at line 136, sunday is actualy monday etc. 
In source code it looks like that:

\setuplabeltext [\s!ja][\v!sunday=月曜日]
\setuplabeltext [\s!ja][\v!monday=火曜日]
\setuplabeltext [\s!ja][\v!tuesday=水曜日]
\setuplabeltext [\s!ja][\v!wednesday=木曜日]
\setuplabeltext [\s!ja][\v!thursday=金曜日]
\setuplabeltext [\s!ja][\v!friday=土曜日]
\setuplabeltext [\s!ja][\v!saturday=日曜日]

but it should be:

\setuplabeltext [\s!ja][\v!monday=月曜日]
\setuplabeltext [\s!ja][\v!tuesday=火曜日]
\setuplabeltext [\s!ja][\v!wednesday=水曜日]
\setuplabeltext [\s!ja][\v!thursday=木曜日]
\setuplabeltext [\s!ja][\v!friday=金曜日]
\setuplabeltext [\s!ja][\v!saturday=土曜日]
\setuplabeltext [\s!ja][\v!sunday=日曜日]

Also I would like to ask if file lang-spe.mkii have some equivalent in MkIV and 
 where the language specifics are defined (in which file)? Or is it treated in 
enco files?

Thank you for answers.

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


Re: [NTG-context] definition in mkiv

2010-04-27 Thread Tomáš Pustelník



From: Wolfgang Schuster 
Sent: Thursday, April 22, 2010 2:33 PM
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] definition in mkiv


Am 22.04.10 13:54, schrieb Tomáš Pustelník: 
  Hi,

  During my work on bachelor thesis I was running throught source codes and I 
would like to ask about equivalent of file syst-gen.mkii in MkIV. And if there 
isn't one. Where I can found definitions of macros define in this file (like 
\dosingleargument and so on).
syst-aux.mkiv (merge of syst-gen.mkii and syst-ext.mkii)

  Also I have another question. In file page-lay.mkii there is definition: 

  \def\addpagecutmarks % #1
{\executeifdefined{\??ly:n:\c!marking:\@@lymarking}\gobbleoneargument}

  I don't understand this part: {\??ly:n:\c!marking:\@@lymarking}, especially I 
don't know what :n: does or means. Can someone briefly explain it to me?
The 'n' is to distinguish between the values for ...cutmarks and ...colormarks

\def\addpagecutmarks % #1
  {\executeifdefined{\??ly:n:\c!marking:\@@lymarking}\gobbleoneargument}

\def\addpagecolormarks % #1
  {\executeifdefined{\??ly:c:\c!marking:\@@lymarking}\gobbleoneargument}


Thank you for answer,

I have just another question. On wiki in System macros/ Handling arguments 
(http://wiki.contextgarden.net/System_Macros/Handling_Arguments) are mentioned 
these macros:
\dosingleargumentwithset \command[#1]
\dodoubleargumentwithset \command[#1][#2]
\dotripleargumentwithset \command[#1][#2][#3]
\dodoubleemptywithset\command[#1][#2]
\dotripleemptywithset\command[#1][#2][#3]I'm not sure but I think, that I 
read somewhere that these are old and obsolete. Is true or these macros are 
still in use and I just mistook it?ThanksTomas Pustelnik



__ Informace od ESET NOD32 Antivirus, verze databaze 5034 (20100416) 
__

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz






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



__ Informace od ESET NOD32 Antivirus, verze databaze 5034 (20100416) 
__

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz

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


[NTG-context] definition in mkiv

2010-04-22 Thread Tomáš Pustelník
Hi,

During my work on bachelor thesis I was running throught source codes and I 
would like to ask about equivalent of file syst-gen.mkii in MkIV. And if there 
isn't one. Where I can found definitions of macros define in this file (like 
\dosingleargument and so on).

Also I have another question. In file page-lay.mkii there is definition:

\def\addpagecutmarks % #1
  {\executeifdefined{\??ly:n:\c!marking:\@@lymarking}\gobbleoneargument}

I don't understand this part: {\??ly:n:\c!marking:\@@lymarking}, especially I 
don't know what :n: does or means. Can someone briefly explain it to me?

Thanks for your help.

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


Re: [NTG-context] \installlanguage syntax

2009-11-03 Thread Tomáš Pustelník

Hi,
I'm using mkII because I wasn't able to make mkIV work on my Windows.
Anyway thank you for answer It helped me. I have just one another question. 
How should I write  parametr lefthyphenmin. I mean precise dimension. I 
tryed several possibilities but none of them worked.


Thank you

Tomas Pustelnik


Hi,
I'm student at Faculty of Informatics at Masaryk university and I'm 
writing bachelor's thesis this year. One part of the thesis is to 
document language support and implementation in ConTeXt so someone can 
use it to implement new language. Right now I'm stuck with command 
\installlannguage. I can't figure out what these parametres are doing:

 \c!leftsentence=---,
   \c!rightsentence=---,
   \c!leftsubsentence=---,
   \c!rightsubsentence=---,
 So I'would really appreciated some more info about them.
 Thank you for your answers.


are you using context mkiv? it makes sense to focus on that as the main 
development happens there and it's also more fun


anyway, these parameters are related to:

test ||bla|| test

and nested usage; the meaning of --- depends on the font settings as well 
(tex ligature)


Hans



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


Re: [NTG-context] \installlanguage syntax

2009-11-03 Thread Tomáš Pustelník

Am 03.11.2009 um 14:49 schrieb Tomáš Pustelník:


Hi,
I'm using mkII because I wasn't able to make mkIV work on my Windows.
Anyway thank you for answer It helped me. I have just one another 
question. How should I write  parametr lefthyphenmin. I mean  precise 
dimension. I tryed several possibilities but none of them  worked.


\installlanguage
  [...]
  [lefthyphenmin=number, % e.g. lefthyphenmin=3
   righthyphenmin=number]

Wolfgang


Thank you, it works now.

Tomas Pustelnik 


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


[NTG-context] \installlanguage syntax

2009-11-01 Thread Tomáš Pustelník
Hi,
I'm student at Faculty of Informatics at Masaryk university and I'm writing 
bachelor's thesis this year. One part of the thesis is to document language 
support and implementation in ConTeXt so someone can use it to implement new 
language. Right now I'm stuck with command \installlannguage. I can't figure 
out what these parametres are doing:

   \c!leftsentence=---,
   \c!rightsentence=---,
   \c!leftsubsentence=---,
   \c!rightsubsentence=---,

So I'would really appreciated some more info about them.

Thank you for your answers.

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