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:
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.
On Fri, 17 Feb 2012 09:19:16 +0100, Hans Hagen pra...@wxs.nl wrote:
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.
Wikified -
Hello,
one more question -
- does regimes.translate allow to translate between arbitrary encodings or
only from the specified to the current one?
str = regimes.translate(str, cp1250) -- = Translate from cp1250 to the
current encoding (UTF) (or always to UTF?)
I'm looking for
On 16-2-2012 12:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
one more question -
- does regimes.translate allow to translate between arbitrary
encodings or only from the specified to the current one?
no, although it's no big deal to provide that (of course there is then
the
On Thu, 16 Feb 2012 13:08:09 +0100, Hans Hagen pra...@wxs.nl wrote:
no, although it's no big deal to provide that (of course there is then
the matter of utf being more complete than the target)
src_enc = utf8
tgt_enc = cp1250
str = regimes.translate(str, src_enc, tgt_enc)
is
On 16-2-2012 14:14, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Would it be possible to provide this?
I'll provide:
regimes.toregime('8859-1',abcde Ä,?)
but you'll have to test and wikify it.
Hans
-
Am Fri, 10 Feb 2012 12:14:15 +0100 schrieb luigi scarso:
if you mean ASCII with coderange 0-255 *and* ISO-8859-1 (Latin 1)
encoding there is no need to conversion;
This is not true. You are mixing up unicode positions and utf8
encoding.
E.g. ä has the same position in unicode and latin1 (dez
On Mon, Feb 13, 2012 at 12:42 PM, Ulrike Fischer ne...@nililand.de wrote:
Am Fri, 10 Feb 2012 12:14:15 +0100 schrieb luigi scarso:
if you mean ASCII with coderange 0-255 *and* ISO-8859-1 (Latin 1)
encoding there is no need to conversion;
This is not true. You are mixing up unicode positions
Hello,
I have many files with ASCII encoding; this encoding must be kept as these
files are processed also by another program.
When I work with them in ConTeXt, I need to convert them to UTF.
Does Lua (in ConTeXt scope) offer a transformation function or a table of chars
[ASCII-code] -
On 02/10/12 11:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
I have many files with ASCII encoding; this encoding must be kept as
these files are processed also by another program.
When I work with them in ConTeXt, I need to convert them to UTF.
Does Lua (in ConTeXt scope) offer a
On 2012-02-10 11:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
I have many files with ASCII encoding; this encoding must be kept as these
files are processed also by another program.
When I work with them in ConTeXt, I need to convert them to UTF.
Not needed, as every ASCII
... Well, my information was not correct.
There are characters 127 in the file, like ř, š...
Each char = 1 byte, and as I'm using Windows with CP 1250, the characters are
displayed correctly.
But I have problem loading them into ConTeXt.
I need to convert the bytes 127 to UTF sequence,
... Well, my information was not correct.
There are characters 127 in the file, like ř, š...
Each char = 1 byte, and as I'm using Windows with CP 1250, the characters are
displayed correctly.
But I have problem loading them into ConTeXt.
I need to convert the bytes 127 to UTF sequence,
2012/2/10 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz:
... Well, my information was not correct.
There are characters 127 in the file, like ř, š...
Each char = 1 byte, and as I'm using Windows with CP 1250, the characters
are displayed correctly.
But I have problem loading them
Am 10.02.2012 um 12:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
... Well, my information was not correct.
There are characters 127 in the file, like ř, š...
Each char = 1 byte, and as I'm using Windows with CP 1250, the characters are
displayed correctly.
But I have problem
On 2012-02-10 12:11, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
... Well, my information was not correct.
There are characters 127 in the file, like ř, š...
Each char = 1 byte, and as I'm using Windows with CP 1250, the characters are
displayed correctly.
So it wasn’t ASCII after all
... \enableregime - nice idea!
Despite this, I'm still not able to make work the example:
Test.mkiv
\enableregime[cp1250]
\starttext
\startluacode
function loadFile(fn)
local fh = assert(io.open(fn, r))
local str = fh:read(*all)
fh:close()
return str
One more note -
On Fri, 10 Feb 2012 12:15:29 +0100, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
Why don’t you let do context the conversion:
\starttext
this is something in utf8
\startregime[cp1250]
\input filewithcp1250encoding
\stopregime
more text encoded in utf8
Am 10.02.2012 um 12:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
... \enableregime - nice idea!
Despite this, I'm still not able to make work the example:
Test.mkiv
\enableregime[cp1250]
\starttext
\startluacode
function loadFile(fn)
local fh =
Dunno but it works when you use “regimes.translate” in your code but it’s better
to ask Hans for a function in the commands namespace which you can use.
\starttext
\startluacode
function loadFile(fn)
local fh = assert(io.open(fn, r))
local str = fh:read(*all)
fh:close()
str =
On 10-2-2012 14:15, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Dunno but it works when you use “regimes.translate” in your code but
it’s better
to ask Hans for a function in the commands namespace which you can use.
\starttext
\startluacode
function loadFile(fn)
local fh =
22 matches
Mail list logo