[NTG-context] \enableregime (was: Re: Problem with context.startsection)

2010-12-01 Thread Peter Münster
On Wed, Dec 01 2010, Hans Hagen wrote:

 support for 8 bit is rather trivial so what is the problem?

Test file:

\enableregime[cp1250]
\starttext
bla
\stoptext


Error:

! LuaTeX error ...text/tex/texmf-context/tex/context/base/regi-ini.lua:100:
  attempt to call global 'translate' (a nil value).

Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___
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] \enableregime (was: Re: Problem with context.startsection)

2010-12-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

I had the same problem several days ago; Wolfgang answered but I cannot 
remember the mail thread.

It requires a small patch in 
c:\ConTeXt\tex\texmf-context\tex\context\base\regi-ini.lua - see the attachment.

Or maybe it's been patched in the newest ctx minimals.

Note that if you replace reg-ini.lua manually, you'll probably need to delete 
the lua-cache 
(c:\ConTeXt\tex\texmf-cache\luatex-cache\context\f53042fa2e1c106bc7e3383ec8c3a00c
 in my case) directory as well.

Cheers,

Lukas


On Wed, 01 Dec 2010 12:59:45 +0100, Peter Münster pmli...@free.fr wrote:


On Wed, Dec 01 2010, Hans Hagen wrote:


support for 8 bit is rather trivial so what is the problem?


Test file:

\enableregime[cp1250]
\starttext
bla
\stoptext


Error:

! LuaTeX error ...text/tex/texmf-context/tex/context/base/regi-ini.lua:100:
  attempt to call global 'translate' (a nil value).

Peter




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

regi-ini.lua
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] \enableregime

2010-12-01 Thread Hans Hagen

On 1-12-2010 12:59, Peter Münster wrote:

\enableregime[cp1250]
\starttext
bla
\stoptext


ok, will be fixed

--

-
  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
-
___
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] enableregime in mkiv

2008-05-12 Thread Hans van der Meer
I am using MacOSX and up till now my files have a Western(Mac OS  
Roman) encoding, not UTF8. That works fime in ConTeXt-mkii by using  
\enableregime[mac].
But in ConTeXt-mkiv through luatex I get an error despite that same  
\enableregime[mac]: For an accented character like é the error is !  
Text line contains an invalid utf-8 sequence. How can I solve that  
other than changing all my files to UTF8 encoding?

Hans van der Meer




___
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] enableregime in mkiv

2008-05-12 Thread Taco Hoekwater


Hans van der Meer wrote:
 I am using MacOSX and up till now my files have a Western(Mac OS  
 Roman) encoding, not UTF8. That works fime in ConTeXt-mkii by using  
 \enableregime[mac].
 But in ConTeXt-mkiv through luatex I get an error despite that same  
 \enableregime[mac]: For an accented character like é the error is !  
 Text line contains an invalid utf-8 sequence. 

 How can I solve that  
 other than changing all my files to UTF8 encoding?

Perhaps with a preprocessing (ctx) file that runs iconv, but luatex
itself wants UTF-8, full stop.

Best wishes,
Taco
___
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] enableregime in mkiv

2008-05-12 Thread luigi scarso
 Text line contains an invalid utf-8 sequence.
Ah yes, I rember: there are 2~3 tex files in base/
with this problem.
I have a list, but it's not update to last context distro (I will do soon) .
I believe that with file command (under linux) one can discover them.

 Perhaps with a preprocessing (ctx) file that runs iconv, but luatex
 itself wants UTF-8, full stop.
Just for sure : no BOM problem ? I remember something about this in mkii
http://unicode.org/faq/utf_bom.html#BOM

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] enableregime in mkiv

2008-05-12 Thread Hans van der Meer


On 12 mei 2008, at 10:16, Hans Hagen wrote:

 Taco Hoekwater wrote:

 Hans van der Meer wrote:
 I am using MacOSX and up till now my files have a Western(Mac OS
 Roman) encoding, not UTF8. That works fime in ConTeXt-mkii by using
 \enableregime[mac].
 But in ConTeXt-mkiv through luatex I get an error despite that same
 \enableregime[mac]: For an accented character like é the error is !
 Text line contains an invalid utf-8 sequence.

 How can I solve that
 other than changing all my files to UTF8 encoding?

 Perhaps with a preprocessing (ctx) file that runs iconv, but luatex
 itself wants UTF-8, full stop.

 regimes should work but maybe there is no mac regime; anyway ...  
 moving
 to utf is the best option

What is to be preferred: with or without BOM?

Hans van der Meer

___
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] enableregime in mkiv

2008-05-12 Thread Hans Hagen
Hans van der Meer wrote:
 
 On 12 mei 2008, at 10:16, Hans Hagen wrote:
 
 Taco Hoekwater wrote:
 Hans van der Meer wrote:
 I am using MacOSX and up till now my files have a Western(Mac OS
 Roman) encoding, not UTF8. That works fime in ConTeXt-mkii by using
 \enableregime[mac].
 But in ConTeXt-mkiv through luatex I get an error despite that same
 \enableregime[mac]: For an accented character like é the error is !
 Text line contains an invalid utf-8 sequence.
 How can I solve that
 other than changing all my files to UTF8 encoding?
 Perhaps with a preprocessing (ctx) file that runs iconv, but luatex
 itself wants UTF-8, full stop.
 regimes should work but maybe there is no mac regime; anyway ...  
 moving
 to utf is the best option
 
 What is to be preferred: with or without BOM?

in mkiv both should work ok, but some programs don't like it so i try to 
avoid boms

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


[NTG-context] \enableregime [utf] or [utf-8]?

2007-10-30 Thread Matija Šuklje
I've been reading a bit the docs and it seems they're a bit ambigious when it 
(at least wiki) comes to regimes — is it \enableregime[utf] or 
\enableregime[utf-8] ...both? All three??

cheers,
Matija

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje


signature.asc
Description: This is a digitally signed message part.
___
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] \enableregime [utf] or [utf-8]?

2007-10-30 Thread Hans Hagen
Matija Šuklje wrote:
 I've been reading a bit the docs and it seems they're a bit ambigious when it 
 (at least wiki) comes to regimes — is it \enableregime[utf] or 
 \enableregime[utf-8] ...both? All three??

see regi-syn.tex for synonyms


-
   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
-
___
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] \enableregime[cp1250] and missing upper Greek letters in math mode.

2007-10-04 Thread context
Hello,

 or, perhaps one needs
 \usetypescript[modern][qx]
 \setupbodyfont[modern,12pt]

 After these setting everything works fine. Thank you very much 
 for answers (for Hans also). As I wrote - I have installed
 environment about 2003 and only my wife has used it
 from time to time. If everything works I didn't upgrade it... 
 I am still beginner in TeX ;)

-- 
best regards
ml.

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


[NTG-context] \enableregime[cp1250] and missing upper Greek letters in math mode.

2007-10-03 Thread context
Hello,

 Years ago I installed TeXLive with ConTeXt - it works fine until
 I reinstalled my Windows and changed drive structures. So, I
 wanted to refresh my installation with newest MikTeX. 

 After that I have a problem with polish fonts - in older version
 I have used:
 % --translate-file=cp1250pl
 \setupbodyfont[plr,12pt]
 \mainlanguage[pl]
 \language[pl]

 and it worked fine. But with current installation I have missing
 polish characters (all) within these settings. After hours of 
 searching the web I have found setting:
 \enableregime[cp1250]

 and it works. Almost. I have found that using with 
 \setupbodyfont[plr,12pt]
 makes replacing of polish character ± - ¼ (at least).

 If I remove \setupbodyfont[plr,12pt] I have problem with
 upper Greek letters in math mode - all are missing. With setting
 above is fine (except this ±-¼ problem).

 If any thread with the same problem? I could see similar posts
 but I am not sure if root of the problem is the same - sometimes
 proposed solution is quite complicated for not advanced user ;)
 Maybe some polish user more familiar with ConTeXt had the same 
 problems and can help? ;)   

 PS. Of course I have made:
 texexec --make en
 texexec --make --language=pl --bodyfont=plr en
 after installation

-- 
best regards
ml.

___
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] \enableregime[cp1250] and missing upper Greek letters in math mode.

2007-10-03 Thread Mojca Miklavec
On 10/3/07, [EMAIL PROTECTED] wrote:
 Hello,

  Years ago I installed TeXLive with ConTeXt - it works fine until
  I reinstalled my Windows and changed drive structures. So, I
  wanted to refresh my installation with newest MikTeX.

  After that I have a problem with polish fonts - in older version
  I have used:
  % --translate-file=cp1250pl
  \setupbodyfont[plr,12pt]
  \mainlanguage[pl]
  \language[pl]

  and it worked fine. But with current installation I have missing
  polish characters (all) within these settings. After hours of
  searching the web I have found setting:
  \enableregime[cp1250]

I needed hours of searching to figure out that ugly trick with
--translate-file=cp1250pl, but please, please: do not use it. Around
2005 support for
\enableregime[cp1250]
has been added and that one is much more reliable.

(I would say: try to convince your editor to support utf-8 instead,
and write your source in utf-8 with \enableregime[utf-8], if that is
an option. UTF-8 is much more future-oriented.)

  and it works. Almost. I have found that using with
  \setupbodyfont[plr,12pt]
  makes replacing of polish character ± - ¼ (at least).

Why do you need plr?

Doesn't it work fine if you simply use
\setupbodyfont[12pt]

or, perhaps one needs

\usetypescript[modern][qx]
\setupbodyfont[modern,12pt]

for Polish. There should be no need to have plr. They will be removed
sooner or later anyway (or will map to existing encodings).

  If I remove \setupbodyfont[plr,12pt] I have problem with
  upper Greek letters in math mode - all are missing. With setting
  above is fine (except this ±-¼ problem).

Which version of ConTeXt are you using? (Well, if you have MikTeX,
that should not be a problem.)

Here it seems to work fine, although I have problems seing your characters.

  If any thread with the same problem? I could see similar posts
  but I am not sure if root of the problem is the same - sometimes
  proposed solution is quite complicated for not advanced user ;)
  Maybe some polish user more familiar with ConTeXt had the same
  problems and can help? ;)

  PS. Of course I have made:
  texexec --make en
  texexec --make --language=pl --bodyfont=plr en
  after installation

Simply use
   texexec --make --all
You don't need plr.

Can you send a minimal example if the problem persists?

Mojca
___
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] \enableregime[cp1250] and missing upper Greek letters in math mode.

2007-10-03 Thread Hans Hagen
Mojca Miklavec wrote:

 I needed hours of searching to figure out that ugly trick with
 --translate-file=cp1250pl, but please, please: do not use it. Around
 2005 support for
 \enableregime[cp1250]
 has been added and that one is much more reliable.

indeed, translate file is real messy because there isno clus in the 
document then about what happens and all tools in the chaine then need 
that kind of magic; for me that input translation qualifies as one of 
the worst ideas implemented ever

  and it works. Almost. I have found that using with
  \setupbodyfont[plr,12pt]
  makes replacing of polish character ± - ¼ (at least).
 
 Why do you need plr?
 
 Doesn't it work fine if you simply use
 \setupbodyfont[12pt]
 
 or, perhaps one needs
 
 \usetypescript[modern][qx]
 \setupbodyfont[modern,12pt]

indeed, plr is obsolete, qx is the replacement (actually, plr, csr, vnr, 
aer fonts are already obsolete since lm showed up)

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
-
___
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] \enableregime, \setupbodyfont and the amsl module

2004-01-13 Thread Hans Hagen
At 17:15 13/01/2004, you wrote:
Hi Hans and all,

a user on it.comp.software.tex just noticed a funny interaction
between the amsl module and an appropriate choice of fonts and
encodings. The following minimal test file shows the problem:
\setupbodyfont[ber,pos]
\usemodule[nath]
\enableregime[il1]
\starttext
\`e è un'attività
\stoptext
maybe i use t he wrong nath module, but here i get propper accented 
characters ...

Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] \enableregime, \setupbodyfont and the amsl module

2004-01-13 Thread Giuseppe Bilotta
Tuesday, January 13, 2004 Hans Hagen wrote:

 At 17:15 13/01/2004, you wrote:
Hi Hans and all,

a user on it.comp.software.tex just noticed a funny interaction
between the amsl module and an appropriate choice of fonts and
encodings. The following minimal test file shows the problem:


\setupbodyfont[ber,pos]
\usemodule[nath]
\enableregime[il1]
\starttext
\`e è un'attività
\stoptext

 maybe i use t he wrong nath module, but here i get propper accented
 characters ...

You probably have the old version that doesn't load amsl. Try

\usemodule[amsl]

instead of \usemodule[nath]

(and update your nath and amsl modules from CTAN, too ;))

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context