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
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/
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).
Hi Maurício,
On Tue, 12 Aug 2008 12:50:07 -0600, Maurício
\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
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
On Tue, 12 Aug 2008 12:50:07 -0600, Maurício
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
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
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 00000000 31 0a 0a 57 69 74 68 20 30 2d 6b 65 72 6e 3a 20 |1..With 0-kern: | 00000010 e2 80 99 e2 80 99 e2 80 99 e2 80 99 e2 80 99 20 |............... | 00000020 54 68 65 20 65 61 73 79 20 77 61 79 3a 20 e2 80 |The easy way: ..| 00000030 99 e2 80 99 e2 80 99 e2 80 99 e2 80 99 0a 0a 0c |................| 00000040 With MKIV you would get five 0x27. (But for the eye it's the same.) Cheers, Peter -- http://pmrb.free.fr/contact/
On Tue, 12 Aug 2008 14:12:04 -0600, Maurício
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
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
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
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 -----------------------------------------------------------------
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/
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
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
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
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 -----------------------------------------------------------------
participants (7)
-
Hans Hagen
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Maurício
-
Mojca Miklavec
-
Peter Münster
-
Taco Hoekwater
-
Thomas A. Schmitz