Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-23 Thread Mojca Miklavec
On Fri, Apr 23, 2010 at 00:30, Jaroslav Hajtmar wrote: Thank you very much. Due to your suggestion it was my problem resolved. Problem has been truly in unexpanded macros. Can the solution be applied to the m-database.tex module as well? Last time when I tried the UTF-8 didn't work with mkii

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-23 Thread Hans Hagen
On 23-4-2010 2:31, Mojca Miklavec wrote: On Fri, Apr 23, 2010 at 00:30, Jaroslav Hajtmar wrote: Thank you very much. Due to your suggestion it was my problem resolved. Problem has been truly in unexpanded macros. Can the solution be applied to the m-database.tex module as well? Last time

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-23 Thread Mojca Miklavec
Wow, great, thanks a lot! It works much better now. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-23 Thread Hans Hagen
On 23-4-2010 2:31, Mojca Miklavec wrote: Last time when I tried the UTF-8 didn't work with mkii (if the first character in cell wasn't an ascii character). another trick: \bgroup \keeputfcharacters \doifelse{slovenian mkii utf} {whatever} {\egroup ..} {\egroup ..}

[NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar
Hello, I have problem with testing of strings through \doifelse. I am loading data from external CSV file. CSV file is UTF-8 encoding. Data from external file I am reading to ConTeXt macro and I want compare content of macro (it is one utf-8 character) and other character as per example:

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Taco Hoekwater
Jaroslav Hajtmar wrote: Hello, I have problem with testing of strings through \doifelse. I am loading data from external CSV file. CSV file is UTF-8 encoding. Data from external file I am reading to ConTeXt macro and I want compare content of macro (it is one utf-8 character) and other

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar
Hello. Thank for your advise. I was tried your example, but it is not working unfortunately too. I previwed CSV file - it is UTF-8 encoding and hexa code of m character is 6D00. This mean that m char is byte coding isnt it? Exist any way untwist my problem now? Thanx Jaroslav In hexa

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Taco Hoekwater
Jaroslav Hajtmar wrote: Hello. Thank for your advise. I was tried your example, but it is not working unfortunately too. I previwed CSV file - it is UTF-8 encoding and hexa code of m character is 6D00. This mean that m char is byte coding isnt it? The hex codes of all your 'm'-s in the email

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar
Will help you, when I send you my CSV file? I dont now what you think when you writing, that you want actual input. Code 6D00 is twobyte code of UTF-8 character m... When I switch to CP1250 encoding, then onebyte code of m character is 6D. If need arises then I make any minimal example from

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Hans Hagen
On 22-4-2010 8:57, Jaroslav Hajtmar wrote: Hello, I have problem with testing of strings through \doifelse. I am loading data from external CSV file. CSV file is UTF-8 encoding. Data from external file I am reading to ConTeXt macro and I want compare content of macro (it is one utf-8 character)

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Taco Hoekwater
Jaroslav Hajtmar wrote: Will help you, when I send you my CSV file? I dont now what you think when you writing, that you want actual input. Code 6D00 is twobyte code of UTF-8 character It absolutely is not. Maybe you are confused with UTF-16 ? Best wishes, Taco

Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar
Thank you very much. Due to your suggestion it was my problem resolved. Problem has been truly in unexpanded macros. Though I am redefining my macros in last versions of my project (joining any empty delimiters), macros was predend (on the outside as expanded) entirely inocently as if has been