On 17-2-2012 09:09, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello Hans,

thank you for the extension; I've tested and it works perfectly.

On Thu, 16 Feb 2012 23:56:44 +0100, Hans Hagen <pra...@wxs.nl> wrote:

regimes.toregime('8859-1',"abcde Ä","?")

but you'll have to test and wikify it.

I'll going to wikify it -

- I supppose:

regimes.toregime(<target-regime>, <text-to-convert>, <third-arg>)

so question - what is the <third-argment> used for?

Maybe as default character when the UTF code cannot be mapped to
<target-regime>?

yes

(It didn't happen in my case, so I can just estimate what <third-arg> is
for.)

then you should make a test for it (just take some chinese character and see if it becomes a ?)

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

Reply via email to