Re: [NTG-context] czech sorting in MiIV
--------------------------------------------------
From: "Hans Hagen"
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.
On 15-5-2010 8:14, Tomáš Pustelník wrote:
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.
we can support several norms 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?
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 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
--------------------------------------------------
From: "Hans Hagen"
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.
On Sat, 15 May 2010, Tomáš Pustelník wrote:
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?
Did you run luatools --generate. Aditya
--------------------------------------------------
From: "Aditya Mahajan"
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
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Tomáš Pustelník