Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Do the symbols listed in -[G-4] text- have consistent Unicodes?
From
"Roger B. Newson" <[email protected]>
To
[email protected]
Subject
Re: st: Do the symbols listed in -[G-4] text- have consistent Unicodes?
Date
Wed, 31 Oct 2012 12:08:47 +0000
Thanks to John Luke Gallup for this very helpful reply.
I, too, have figured (using the "Insert->Symbol->More Symbols" dialog
box of Microsoft Word) that standard Microsoft-friendly Greek letters
live in the subset "Greek and Coptic", documented at
http://www.unicode.org/charts/PDF/U0370.pdf
Most mathematical symbols listed in -[G-4] text- appear (as far as I can
see) to live in the subset "Mathematical Operators", documented at
http://www.unicode.org/charts/PDF/U2200.pdf
So far, my approach has been not dissimilar to John's. However, I
usually prefix my decimal Unicodes with "\u1\u" and suffix them with
"*", as recommended in Burke (2003), instead of prefixing them with "\u"
and suffixing them with "?", as John does.
What I would REALLY like to know is whether there is a Stata standard
mapping of SMCL tags to Unicodes, or whether I should just try to mimic
the Microsoft Word conventions (as I understand them).
Best wishes
Roger
Burke S. M. 2003. RTF Pocket Guide. Sebastopol, CA: O'Reilly &
Associates Inc. Download more information from Sean Burke's RTF web page at
http://search.cpan.org/~sburke/RTF-Writer/lib/RTF/Cookbook.pod
Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/
Opinions expressed are those of the author, not of the institution.
On 30/10/2012 21:50, John Luke Gallup wrote:
Roger,
I have written -outreg- to be able to use all the Greek letters and any other Unicode symbol in RTF documents. You can see the documentation if you download -outreg- (-ssc install outreg, replace) and type -help frmt_opts##greek- on the Stata command line. SMCL tags are different from the RTF codes, so if you want to allow users to include all the SMCL tags, you will need to translate them into RTF codes in your program. Instead, in -outreg- I have the users insert the Unicode codes directly, which is more flexible.
-outreg- also allows insertion of most symbols into TeX documents.
You can find an example of how to insert Greek letters and other symbols into -outreg- tables by typing -help outreg_complete##xmpl12- at the Stata command line.
If you have any questions about how I implemented these symbols in the -outreg- code, get in touch.
John
[email protected]
On Oct 30, 2012, at 1:04 PM, "Roger B. Newson" <[email protected]> wrote:
I have a query about the Greek letters and math symbols available in Stata graphics, and listed in -[G-4] text- under "Full list of SMCL tags useful in graph text". Do these have Unicode numbers consistent between operating environments? Or do they correspond to different Unicodes in different operating environments, and/or even look a bit different between Windows, Unix and MacOS?
I ask because I would like, ideally, to be able to use them in automatically-generated tables (or maybe even in automatically generated text) in automatically-generated RTF documents, such as the ones produced using my own SSC package -rtfutil-. I can look up individual Greek letters on the Unicode site at
http://www.unicode.org/charts/
but I would prefer to be able to insert, at will, all the symbols available in Stata graphs, especially when presenting the same information as a plot and as a table in the same document. I haven't managed (so far) to find any information on this kind of thing on -help undocumented-.
Best wishes
Roger
--
Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/
Opinions expressed are those of the author, not of the institution.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/