I would like to know how I may use extended ascii characters in context, for example character number 167. Thanks in advance Gonçalo -------------------------------------------- IPLNet WebMail http://www.mail.ipl.pt -------------------------------------------- "Campus Virtual" do IPL - Já Aceite ! http://www.net.ipl.pt/index.html#WIRELESS --------------------------------------------
Hi all!
I would like to know how I may use extended ascii characters in context, for example character number 167.
I'm sure Hans has made a lot of extensions for ,,strange'' character support. But also plain TeX offers \char167 instruction, which returns character 167 according to given font encoding. Is that what You looking for? Regards, Pawe/l
Thanks for your help... I am aware of \char167 isntruction but in the next example nothing seems to happen!! Gonçalo Pawel Jackowski na Onet writes:
Hi all!
I would like to know how I may use extended ascii characters in context, for example character number 167.
I'm sure Hans has made a lot of extensions for ,,strange'' character support. But also plain TeX offers \char167 instruction, which returns character 167 according to given font encoding. Is that what You looking for?
Regards, Pawe/l
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-------------------------------------------- IPLNet WebMail http://www.mail.ipl.pt -------------------------------------------- "Campus Virtual" do IPL - Já Aceite ! http://www.net.ipl.pt/index.html#WIRELESS --------------------------------------------
"Gonçalo Morais"
Thanks for your help... I am aware of \char167 isntruction but in the next example nothing seems to happen!!
It surely depends on the fonts you use. Default is cmr, which has, as far as I know, only 7bit encoding. So \char167 will lead to nothing. Switch to another font. Patrick -- Es wird kein Wunder geschehen
e: extended ascii characters
"Gonçalo Morais"
writes: Thanks for your help... I am aware of \char167 isntruction but in the next example nothing seems to happen!!
It surely depends on the fonts you use. Default is cmr, which has, as far as I know, only 7bit encoding. So \char167 will lead to nothing. Switch to another font.
Patrick
Attached file contains all characters available in cmr10. Indeed, there is no character coded 167. Regards, Pawe/l
Gonçalo, "Extended ASCII" is relatively uninformative without some information on which encoding you're actually using (ASCII is normative from 0-127). I'll guess you mean '§' (Section mark), which, judging from regi-win and regi-il1, is my guess for the character you mean. (On the mac, it's 'ß' or the eszett, which is less likely judging from your email address.) ConTeXt makes this easy: just use the macro \sectionmark . If the original document uses an "extended ascii" encoding for characters like this, you might find it easier to use this at the beginning of your document: \enableregime[il1] % ...or... \enableregime[windows] % as appropriate. Patrick is very right, and alludes to a (potentially) confusing topic, with font encodings and input regimes. They're actually a very nice, powerful aspect of ConTeXt, where you enter text using your most familiar method, and don't have to worry where each glyph is located on a day-to- day basis. Hope that's some help... adam Gonçalo Morais said this at Sat, 3 Jan 2004 11:59:21 +0000:
Thanks for your help...
I am aware of \char167 isntruction but in the next example nothing seems to happen!!
Gonçalo
Pawel Jackowski na Onet writes:
Hi all!
I would like to know how I may use extended ascii characters in context, for example character number 167.
I'm sure Hans has made a lot of extensions for ,,strange'' character support. But also plain TeX offers \char167 instruction, which returns character 167 according to given font encoding. Is that what You looking for?
Regards, Pawe/l
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-------------------------------------------- IPLNet WebMail http://www.mail.ipl.pt -------------------------------------------- "Campus Virtual" do IPL - Já Aceite ! http://www.net.ipl.pt/index.html#WIRELESS --------------------------------------------
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
On Sat, 3 Jan 2004, Adam Lindsay wrote:
like this, you might find it easier to use this at the beginning of your document: \enableregime[il1] % ...or... \enableregime[windows] % as appropriate.
Hello, since I didn't find any documentation about this command, here 2 questions: * What should I do to use the latin9 encoding? I copied regi-il1.tex with the appropriate changes to regi-il9.tex but it does not work. Anyway: when I get a working il9-file in my private ConTeXt directory, how should I name it? * How do you get hyphenation with accented characters? In LaTeX I used to switch to the EC fonts by issuing \usepackage[T1]{fontenc} I tried the following, but it didn't work: \fr \useencoding[ec] \enableregime[il1] \starttext évolution évolution évolution évolution évolution évolution évolution évolution évolution evolution evolution evolution evolution evolution evolution evolution evolution evolution \stoptext Thanks in advance for any help! Happy new year, Peter -- http://pmrb.free.fr/contact/ ------------------------------------ Film Search site: http://f-s.sf.net/
Peter Münster said this at Sun, 4 Jan 2004 19:09:38 +0100:
* What should I do to use the latin9 encoding? I copied regi-il1.tex with the appropriate changes to regi-il9.tex but it does not work. Anyway: when I get a working il9-file in my private ConTeXt directory, how should I name it?
Peter, off the top of my head, I think you would do: \input regi-il9 % read the file in \useregime [il9] % make sure the regime is loaded \enableregime [il9] % activate it. I'm pretty clueless about hyphenation, though. adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
On Sun, 4 Jan 2004, Adam Lindsay wrote:
Peter Münster said this at Sun, 4 Jan 2004 19:09:38 +0100:
* What should I do to use the latin9 encoding? I copied regi-il1.tex with the appropriate changes to regi-il9.tex but it does not work. Anyway: when I get a working il9-file in my private ConTeXt directory, how should I name it?
Peter, off the top of my head, I think you would do: \input regi-il9 % read the file in \useregime [il9] % make sure the regime is loaded \enableregime [il9] % activate it.
Thanks, my mistake was not to use the \useregime command.
I'm pretty clueless about hyphenation, though.
Oh, too bad... :( I'll ask this question perhaps another day, if I don't get it. Cheers, Peter -- http://pmrb.free.fr/contact/ ------------------------------------ Film Search site: http://f-s.sf.net/
Am Dienstag, 06.01.04, um 08:26 Uhr (Europe/Zurich) schrieb Peter Münster:
I'm pretty clueless about hyphenation, though. Oh, too bad... :( I'll ask this question perhaps another day, if I don't get it.
For correct hyphenation and some other details you need to declare your language: \mainlanguage[fr] or \language[fr] HTH Grüßlis vom Hraban! -- http://www.fiee.net/texnique/
On Tue, 6 Jan 2004, Henning Hraban Ramm wrote:
For correct hyphenation and some other details you need to declare your language: \mainlanguage[fr] or \language[fr]
The original posted example began with \fr, which should be the same as \language[fr]. Here again the example, where you can see the problem. \fr \useencoding[ec] \enableregime[il1] \starttext évolution évolution évolution évolution évolution évolution évolution évolution évolution evolution evolution evolution evolution evolution evolution evolution evolution evolution \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/ ------------------------------------ Film Search site: http://f-s.sf.net/
Am Dienstag, 06.01.04, um 17:58 Uhr (Europe/Zurich) schrieb Peter Münster:
The original posted example began with \fr, which should be the same as \language[fr].
right.
Here again the example, where you can see the problem.
Here's no problem - I get hyphenation. Grüßlis vom Hraban! -- http://www.fiee.net/texnique/
On Tue, 6 Jan 2004, Henning Hraban Ramm wrote:
Here again the example, where you can see the problem.
Here's no problem - I get hyphenation.
Ok, then there must be a problem with my installation. I only get "evolution" hyphenated, but not "évolution"... :( Cheers, Peter -- http://pmrb.free.fr/contact/ ------------------------------------ Film Search site: http://f-s.sf.net/
Hello Peter, Peter Münster schrieb:
Here again the example, where you can see the problem. Here's no problem - I get hyphenation.
Ok, then there must be a problem with my installation. I only get "evolution" hyphenated, but not "évolution"... :( Cheers, Peter
take the latin modern fonts. This example works with winxp and miktex: ************************************************************* \language[fr] % \useencoding[ec] \enableregime[il1] % latin modern fonts \usetypescript [all] [latin-modern] [texnansi] \setupbodyfont[reset] \setupbodyfont[cmr] \starttext évolution évolution évolution évolution évolution évolution évolution évolution évolution evolution evolution evolution evolution evolution evolution evolution evolution evolution \stoptext ************************************************************************ -- ****************************** Helmut Schwertner Schülperbaum 4 24103 K i e l phone: 0431 58 78 502 eMail: schwertner@t-online.de
On Wed, 7 Jan 2004, Helmut Schwertner wrote:
Peter Münster schrieb:
Here again the example, where you can see the problem.
Here's no problem - I get hyphenation.
Ok, then there must be a problem with my installation. I only get "evolution" hyphenated, but not "évolution"... :(
take the latin modern fonts. This example works with winxp and miktex:
Thanks for this hint. But as I read in newsgroup d.c.t.t aren't there still bugs with the kerning etc? Strange: I don't have Latin Modern installed, but your example file compiled here with texexec without any error nor warning message... Under LaTeX I used the EC fonts. Will it be difficult to get them work with ConTeXt? So, there is no problem with my installation? Thanks for your help, Peter -- http://pmrb.free.fr/contact/ ------------------------------------ Film Search site: http://f-s.sf.net/
Peter Münster wrote:
On Wed, 7 Jan 2004, Helmut Schwertner wrote:
Peter Münster schrieb:
Here again the example, where you can see the problem.
Here's no problem - I get hyphenation.
Ok, then there must be a problem with my installation. I only get "evolution" hyphenated, but not "évolution"... :(
take the latin modern fonts. This example works with winxp and miktex:
Thanks for this hint. But as I read in newsgroup d.c.t.t aren't there still bugs with the kerning etc?
Strange: I don't have Latin Modern installed, but your example file compiled here with texexec without any error nor warning message...
Under LaTeX I used the EC fonts. Will it be difficult to get them work with ConTeXt?
So, there is no problem with my installation?
Thanks for your help, Peter
Hi Peter, Provided that you use a recent CONTEXT, everything should be there. Get the fonts from CTAN or from the TEXlive Collection (directory is outside the texmf-tree). Within CONTEXT: \usetypescript[modern][texnansi] %or whatever you like \setupbodyfont[modern,rms,11pt] I stand corrected, but because of the matching mechanism, you will get CMR if the Latin Modern fonts are not available - Check the pdf file's font properties Kind regards Willi
On Thu, 8 Jan 2004, Willi Egger wrote:
Provided that you use a recent CONTEXT, everything should be there. Get the fonts from CTAN or from the TEXlive Collection (directory is outside the texmf-tree). Within CONTEXT:
\usetypescript[modern][texnansi] %or whatever you like \setupbodyfont[modern,rms,11pt]
Ok, I installed the newest ConTeXt and the lm fonts. Hyphenation is good now. The only thing I had to do, was adding lm.map to the files config.ps, xdvi.cfg and pdftex.cfg. Thanks, Peter -- http://pmrb.free.fr/contact/ ------------------------------------ Film Search site: http://f-s.sf.net/
At 01:29 03/01/2004, you wrote:
I would like to know how I may use extended ascii characters in context, for example character number 167. Thanks in advance
normally this is handled by font encoding and input regimes if you want to directly access a char, how about: \definesymbol[whatever][\getglyph{...}{167}] see symb-*.tex for examples Hans
I will, thank you all for your support. Gonçalo Hans Hagen writes:
At 01:29 03/01/2004, you wrote:
I would like to know how I may use extended ascii characters in context, for example character number 167. Thanks in advance
normally this is handled by font encoding and input regimes
if you want to directly access a char, how about:
\definesymbol[whatever][\getglyph{...}{167}]
see symb-*.tex for examples
Hans
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-------------------------------------------- IPLNet WebMail http://www.mail.ipl.pt -------------------------------------------- "Campus Virtual" do IPL - Já Aceite ! http://www.net.ipl.pt/index.html#WIRELESS --------------------------------------------
participants (9)
-
Adam Lindsay
-
Gonçalo Morais
-
Hans Hagen
-
Helmut Schwertner
-
Henning Hraban Ramm
-
Patrick Gundlach
-
Pawel Jackowski na Onet
-
Peter Münster
-
Willi Egger