Re: [NTG-context] When I don't want quotes
On Wed, Aug 13, 2008 at 2:21 PM, Maurício wrote: I need to write ' in a text. However, (...) I really need it to be 5 times U0027, not ' (U201C and U2018). (...) (...) Both also didn't work. (...) Indeed, I am using mkiv... But you should be able to use \char etc. to get the same effect. pdftex is not working at the moment here -- see my message to the list -- so I can't test this at the moment, but in pdftex there is \unicodecharacter{number} (...) Another option is to use utf8 encoding and insert a zero-width space (200B) between the 0027's. (...) should break the dbl-quote (...) \unicodecharacter wasn't recognized. I do use uft8 encoding, and nothing else (ever). But the problem is not to break the bls-quote, but avoiding ' transformed to '. Thanks for your help. I'm probably going to try something else, like writing this documentation on a web page. Cleaninng up my mailbox (so I'm not sure if you still need the answer) ... Are you using pdfTeX or LuaTeX/XeTeX? In pdfTeX you need to switch the font (or at least change the encoding to texnansi) \usetypescript[modern][texnansi] \setupbodyfont[modern,10pt] \starttext \dorecurse{5}{\quotesingle} % or \char129 \stoptext In new engines you can switch off tlig. If you need that, please ask (but again - you need to be aware that you either need to create a new font instance or switch off conversion into apostrophe globally). Mojca ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Tue, Aug 12 2008, Hans Hagen wrote: two solutions: (1) use tt (since there trep is off) {\tt '} (2) reload the bodyfont \definefontfeature [default] [default] [trep=no] \setupbodyfont[reset] This works only for MKIV. The OP uses MKII, and his problem is, that MKII translates the ascii character ' (0x27) to ’ (0xE2 0x80 0x99). Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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 ___
Re: [NTG-context] When I don't want quotes
Peter Münster wrote: On Tue, Aug 12 2008, Hans Hagen wrote: two solutions: (1) use tt (since there trep is off) {\tt '} The OP uses MKII, and his problem is, that MKII translates the ascii character ' (0x27) to ’ (0xE2 0x80 0x99). That leaves just \tt as option, really. None of the 'normal' encodings in mkii have a straight quote. Best wishes, Taco ___ 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 ___
Re: [NTG-context] When I don't want quotes
Peter Münster wrote: On Tue, Aug 12 2008, Hans Hagen wrote: two solutions: (1) use tt (since there trep is off) {\tt '} (2) reload the bodyfont \definefontfeature [default] [default] [trep=no] \setupbodyfont[reset] This works only for MKIV. The OP uses MKII, and his problem is, that MKII translates the ascii character ' (0x27) to ’ (0xE2 0x80 0x99). just enable regime utf (since you enter ’ as a utf sequence) \enableregime[utf] \starttext \strut ' ’ \stoptext - 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 - ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Aug 13, 2008, at 9:29 AM, Taco Hoekwater wrote: That leaves just \tt as option, really. None of the 'normal' encodings in mkii have a straight quote. texnansi does: grep quotesingle /usr/local/texlive/texmf-local/tex/context/base/enco- ans.tex \definecharacter quotesingle 129 Thomas ___ 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 ___
Re: [NTG-context] When I don't want quotes
Thomas A. Schmitz wrote: On Aug 13, 2008, at 9:29 AM, Taco Hoekwater wrote: That leaves just \tt as option, really. None of the 'normal' encodings in mkii have a straight quote. texnansi does: grep quotesingle /usr/local/texlive/texmf-local/tex/context/base/enco- ans.tex \definecharacter quotesingle 129 Right you are! (and that reminds me to fix the encoding tables at the end of the new co-typography.pdf) \usetypescript [modern] [texnansi] \setupbodyfont[modern] \starttext \quotesingle \quotesingle \stoptext Best wishes, Taco ___ 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 ___
Re: [NTG-context] When I don't want quotes
I need to write ' in a text. However, (...) I really need it to be 5 times U0027, not ””’ (U201C and U2018). (...) (...) Both also didn't work. (...) Indeed, I am using mkiv... But you should be able to use \char etc. to get the same effect. pdftex is not working at the moment here -- see my message to the list -- so I can't test this at the moment, but in pdftex there is \unicodecharacter{number} (...) Another option is to use utf8 encoding and insert a zero-width space (200B) between the 0027's. (...) should break the dbl-quote (...) \unicodecharacter wasn't recognized. I do use uft8 encoding, and nothing else (ever). But the problem is not to break the bls-quote, but avoiding ' transformed to ’. Thanks for your help. I'm probably going to try something else, like writing this documentation on a web page. Best, Maurício ___ 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 ___
[NTG-context] When I don't want quotes
Hi, I need to write ' in a text. However, since it's a special tag in wiki language, I really need it to be 5 times U0027, not ””’ (U201C and U2018). How can I do that? Thanks, Maurício ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Tue, Aug 12 2008, Maurício wrote: I need to write ' in a text. However, since it's a special tag in wiki language, I really need it to be 5 times U0027, not ””’ (U201C and U2018). How can I do that? \starttext With 0-kern: '\kern0pt'\kern0pt'\kern0pt'\kern0pt' The easy way: \dorecurse5' \stoptext Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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 ___
Re: [NTG-context] When I don't want quotes
I need to write ' in a text. However, since it's a special tag in wiki language, I really need it to be 5 times U0027, not ””’ (U201C and U2018). How can I do that? \starttext With 0-kern: '\kern0pt'\kern0pt'\kern0pt'\kern0pt' The easy way: \dorecurse5' \stoptext Cheers, Peter Neither of them work. ' (Unicode 0027) is still converted to ’ (Unicode 2018). ___ 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 ___
Re: [NTG-context] When I don't want quotes
Hi Maurício, On Tue, 12 Aug 2008 12:50:07 -0600, Maurício [EMAIL PROTECTED] wrote: \starttext With 0-kern: '\kern0pt'\kern0pt'\kern0pt'\kern0pt' The easy way: \dorecurse5' \stoptext Cheers, Peter Neither of them work. ' (Unicode 0027) is still converted to ’ (Unicode 2018). \starttext \dorecurse5'{} % or \dorecurse{5}{'{}} \stoptext works here. I copied the text from the pdf into a unicode editor and it gives 0027. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Tue, 12 Aug 2008 12:50:07 -0600, Maurício [EMAIL PROTECTED] wrote: I need to write ' in a text. However, since it's a special tag in wiki language, I really need it to be 5 times U0027, not ””’ (U201C and U2018). How can I do that? \starttext With 0-kern: '\kern0pt'\kern0pt'\kern0pt'\kern0pt' The easy way: \dorecurse5' \stoptext Cheers, Peter Neither of them work. ' (Unicode 0027) is still converted to ’ (Unicode 2018). Even better: \starttext \defineactivecharacter ' {\otfchar{quoteright}} ' \stoptext Tested here. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] When I don't want quotes
I need to write ' in a text. However, (...) I really need it to be 5 times U0027, not ””’ (U201C and U2018). (...) \starttext \dorecurse5'{} % or \dorecurse{5}{'{}} \stoptext Even better: \starttext \defineactivecharacter ' {\otfchar{quoteright}} ' \stoptext Both also didn't work. Are you using Mark IV? I'm using regular Context (the one that comes with Ubuntu), maybe that's the difference. Maurício ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Aug 12, 2008, at 9:47 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: \starttext \dorecurse5'{} % or \dorecurse{5}{'{}} \stoptext works here. I copied the text from the pdf into a unicode editor and it gives 0027. It doesn't work here either. What does work is: \def\fiver{\dorecurse5{\quotesingle}} \fiver but, for reasons I can't understand, not in Latin Modern... Thomas ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Tue, 12 Aug 2008 14:12:04 -0600, Maurício [EMAIL PROTECTED] wrote: I need to write ' in a text. However, (...) I really need it to be 5 times U0027, not ””’ (U201C and U2018). (...) \starttext \dorecurse5'{} % or \dorecurse{5}{'{}} \stoptext Even better: \starttext \defineactivecharacter ' {\otfchar{quoteright}} ' \stoptext Both also didn't work. Are you using Mark IV? I'm using regular Context (the one that comes with Ubuntu), maybe that's the difference. Indeed, I am using mkiv... But you should be able to use \char etc. to get the same effect. pdftex is not working at the moment here -- see my message to the list -- so I can't test this at the moment, but in pdftex there is \unicodecharacter{number} so \unicodecharacter{27} should work. Another option is to use utf8 encoding and insert a zero-width space (200B) between the 0027's. Finally: Did you try \dorecurse{5}{{'}}? {'}{'} should break the dbl-quote just as {f}{i} breaks the fi ligature... Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___
Re: [NTG-context] When I don't want quotes
Maurício wrote: Hi, I need to write ' in a text. However, since it's a special tag in wiki language, I really need it to be 5 times U0027, not ””’ (U201C and U2018). How can I do that? this is the result from the trep feature; ok, i can provide a switch to turn it off (i might do that at some point for each feature, something \disablefeature[name]) but not now two solutions: (1) use tt (since there trep is off) {\tt '} (2) reload the bodyfont \definefontfeature [default] [default] [trep=no] \setupbodyfont[reset] - 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 - ___ 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 ___
Re: [NTG-context] When I don't want quotes
On Tue, Aug 12 2008, Maurício wrote: Both also didn't work. Are you using Mark IV? I'm using regular Context (the one that comes with Ubuntu), maybe that's the difference. Indeed! I just tried MKII, and this is the result: pdftotext test.pdf - | hexdump -C 31 0a 0a 57 69 74 68 20 30 2d 6b 65 72 6e 3a 20 |1..With 0-kern: | 0010 e2 80 99 e2 80 99 e2 80 99 e2 80 99 e2 80 99 20 |... | 0020 54 68 65 20 65 61 73 79 20 77 61 79 3a 20 e2 80 |The easy way: ..| 0030 99 e2 80 99 e2 80 99 e2 80 99 e2 80 99 0a 0a 0c || 0040 With MKIV you would get five 0x27. (But for the eye it's the same.) Cheers, Peter -- http://pmrb.free.fr/contact/ ___ 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 ___