[NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen
Hello, I am just programming a catalog which should be printed. I have a lot of data, text and pictures in a MySQL-database and want to generate a nice catalog with ConTeXt. To get the data from MySQL to ConTeXt I use PHP as an Interface: MySQL - PHP - ConTeXt And lot's of ConTeXt-macros

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Peter Münster
On Tue, Nov 01 2011, Jan Heinen wrote: $xstring = str_replace ( !, \\char33, $xstring ); // Why is ! special in ConTeXt? (same question applies for many other characters) With \asciimode there is probably only one character to convert: \ (and the sequence %%, that should be quite rare) --

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Aditya Mahajan
On Tue, 1 Nov 2011, Jan Heinen wrote: Hello, I am just programming a catalog which should be printed. I have a lot of data, text and pictures in a MySQL-database and want to generate a nice catalog with ConTeXt. To get the data from MySQL to ConTeXt I use PHP as an Interface: MySQL - PHP -

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Philipp Gesang
Good evening, Jannis! On 2011-11-01 17:16, Jan Heinen wrote: Today I wrote the function ConvertToConteXt which converts special ConTeXt-characters. You can see it below. The data necessary for converting HTML entities is already in Context, have a look at “char-ent.lua” if you are interested.