Preprocessing ConTeXt file to convert from UTF-8 to ASCII & ABNT
Hi.
I've used LaTeX for a while and found articles about ConTeXt yesterday
and decided give it a try since its different approach.
Reading the docs I've found it only works with ASCII.
So I've tried to do the convertion UTF-8 => ASCII using iconv, without
success: it failed to convert the first 'accented character' it
encounters.
I'm searching to solve this problem, but would like to know if there's
any doc on 'non-ascii' editing of ConTeXt files.
If there are other people writing in portuguese, like me, and
specially brazilians, is there a way to implement ABNT standard ?
Any docs on theses subjects: 'non-ascii' input, 'portuguese/brazilian'
and 'ABNT', would be appreciated :)
I use 'vim' and 'textmate' as my primary editors for *TeX*, and my
platform is MacOSX (Leopard).
Thanks in advance.
Regards.
--
João Macaíba
Am 25.01.2009 um 19:05 schrieb João Macaíba:
I've used LaTeX for a while and found articles about ConTeXt yesterday and decided give it a try since its different approach.
Reading the docs I've found it only works with ASCII.
The authors of the manual meant ConTeXt use plain text files as input, the encoding of the files is not limited to ASCII chars, you could use UTF-8 without problems.
If there are other people writing in portuguese, like me, and specially brazilians, is there a way to implement ABNT standard ?
What is ABNT?
I use 'vim' and 'textmate' as my primary editors for *TeX*, and my platform is MacOSX (Leopard).
For file encoding take a look at this page: http://wiki.contextgarden.net/Encodings_and_Regimes To tell ConTeXt your document is encoded in UTF-8, write \enableregime[utf] % more settings \starttext your text \stoptext in your document. The ConTeXt wiki has also page for VIM and TextMate: - http://wiki.contextgarden.net/Vim - http://wiki.contextgarden.net/TextMate Wolfgang
Hi, Wolfgang. On Jan 25, 2009, at 04:08, Wolfgang Schuster wrote:
Am 25.01.2009 um 19:05 schrieb João Macaíba:
I've used LaTeX for a while and found articles about ConTeXt yesterday and decided give it a try since its different approach.
Reading the docs I've found it only works with ASCII.
The authors of the manual meant ConTeXt use plain text files as input, the encoding of the files is not limited to ASCII chars, you could use UTF-8 without problems.
You're right. I misunderstood that.
If there are other people writing in portuguese, like me, and specially brazilians, is there a way to implement ABNT standard ?
What is ABNT?
ABNT == Associação Brasileira de Normas Técnicas == Brazilian Association for Technical Standards ABNT has a standard layout for technical writings.
I use 'vim' and 'textmate' as my primary editors for *TeX*, and my platform is MacOSX (Leopard).
For file encoding take a look at this page:
http://wiki.contextgarden.net/Encodings_and_Regimes
To tell ConTeXt your document is encoded in UTF-8, write
\enableregime[utf] % more settings \starttext your text \stoptext
in your document.
The ConTeXt wiki has also page for VIM and TextMate:
- http://wiki.contextgarden.net/Vim - http://wiki.contextgarden.net/TextMate
Great ! :)
Wolfgang
Thanks for the help and time, Wolfgang !
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Regards.
--
João Macaíba
Am 25.01.2009 um 22:25 schrieb João Macaíba:
If there are other people writing in portuguese, like me, and specially brazilians, is there a way to implement ABNT standard ?
What is ABNT?
ABNT == Associação Brasileira de Normas Técnicas == Brazilian Association for Technical Standards
ABNT has a standard layout for technical writings.
Can you show us a example? There was also a thread about a style for IEEE no so long ago, it could help you. http://archive.contextgarden.net/message/20081228.013623.979b778a.en.html Wolfgang
João Macaíba wrote:
Hi.
I've used LaTeX for a while and found articles about ConTeXt yesterday and decided give it a try since its different approach.
Reading the docs I've found it only works with ASCII.
huh? there are many input encodings supported, utf being one of them \enableregime[utf] should work for mkii and mkiv is utf aware by default 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
João Macaíba
-
Wolfgang Schuster