<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:8.0pt;
        margin-left:0in;
        line-height:105%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:85.05pt 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>  Hello Dr. Godfrey,<o:p></o:p></p><p class=MsoNormal>  I have installed MikTex and tried again, but unfortunately, the issue was not resolved.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'>On the other hand, I was able to successfully produce pdf with braille font embedded, using the following personal script which is from my colleague.<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'>  Please advise me how I can produce pdf like this using BRLThis functionality as well.<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>  Our script is as follows:<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'>##I assume you have already Braille Normal font and GhostScript installed in your Window machine.<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>#Sys.setenv(R_GSCMD="C:/Program\ Files/gs/gs9.16/bin/gswin64c.exe")<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'>library("extrafont")<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'># since you already have the font installed on the system, you don't need the following<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>#font_import(pattern="BRAILLE1.ttf", paths="C:/Users/Admin/Downloads/fonts", prompt=FALSE)<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'># the following enable PDF files to use the installed fonts<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>loadfonts()<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'># produce the PDF<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>pdf("output.pdf")<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'>par(cex=1.2, cex.main=1.2, cex.lab=1.2, cex.axis=1.2, mar=c(5,5,3,2), family="Braille Normal")<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'>#Sample Graph<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>attach(trees)<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>hist(Volume, probability=TRUE pch=20)<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>lines(density(Volume), col="black", pch=20)<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'>dev.off()<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>detach(trees)<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'># embed the font<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>Sys.setenv(R_GSCMD="C:/Program\ Files/gs/gs9.16/bin/gswin64c.exe")<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>embed_fonts("output.pdf")<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'># code ends here<o:p></o:p></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'>Appreciatively,<o:p></o:p></span></p><p class=MsoNormal style='text-indent:4.5pt'><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>       JY<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'><b>From:</b> BlindRUG [mailto:blindrug-bounces@nfbnet.org] <b>On Behalf Of </b>Godfrey, Jonathan via BlindRUG<br><b>Sent:</b> Thursday, August 27, 2015 10:27 PM<br><b>To:</b> Blind R Users Group <blindrug@nfbnet.org><br><b>Cc:</b> Godfrey, Jonathan <A.J.Godfrey@massey.ac.nz><br><b>Subject:</b> Re: [BlindRUG] BRLThis() Question<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>The BRLThis() functionality is quite experimental at this stage and we need to work out what problems will limit its usefulness.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>With respect to your error message, ghost script is software outside of R that must be installed. It may be installed as part of LaTeX installation such as miktex. You may need to install separately though. This will add the external tool that adds any font to a pdf document. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>I’m away from my embossers for the next three weeks but will be monitoring email and can try a few things or make suggestions.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Good luck,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'>Jonathan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'><b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif'> BlindRUG [<a href="mailto:blindrug-bounces@nfbnet.org">mailto:blindrug-bounces@nfbnet.org</a>] <b>On Behalf Of </b>JooYoung Seo via BlindRUG<br><b>Sent:</b> Friday, 28 August 2015 12:48 p.m.<br><b>To:</b> <a href="mailto:blindrug@nfbnet.org">blindrug@nfbnet.org</a><br><b>Cc:</b> JooYoung Seo<br><b>Subject:</b> [BlindRUG] BRLThis() Question<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-NZ><o:p> </o:p></span></p><p class=MsoNormal>  Hello List,<o:p></o:p></p><p class=MsoNormal>  I am very happy that we now have BrailleR version 0.22.0 <o:p></o:p></p><p class=MsoNormal>with incredible functions updated. I would like to express heartfelt gratitude to Dr. Godfrey and other contributors for continuous updates.<o:p></o:p></p><p class=MsoNormal>  BRLThis(), one of the new functions, was what I really wanted to have in R.<o:p></o:p></p><p class=MsoNormal>  I, however, am not able to use this feature for some reason. I am seeking a solution.<o:p></o:p></p><p class=MsoNormal>  The below are my commands and the results:<o:p></o:p></p><p class=MsoNormal>----------<o:p></o:p></p><p class=MsoNormal>##My Commands:<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>with(airquality, BRLThis(hist(Ozone), "Ozone-hist.pdf"))<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>##Result:<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>Error in embedFonts(file = file, format = format, outfile = outfile, options = paste(paste("-I", :<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>GhostScript was not found><o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>----------<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>  Any help would be greatly appreciated.<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'>  Best Wishes,<o:p></o:p></p><p class=MsoNormal style='text-indent:.5in'><o:p> </o:p></p><p class=MsoNormal style='text-indent:.5in'>       JY<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt;line-height:normal'><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div class=MsoNormal align=center style='margin-bottom:0in;margin-bottom:.0001pt;text-align:center;line-height:normal'><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><hr size=1 width="99%" noshade style='color:#909090' align=center></span></div><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'><tr><td style='padding:0in 11.25pt 0in 6.0pt'><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><a href="https://www.avast.com/antivirus"><span style='border:solid windowtext 1.0pt;padding:0in;text-decoration:none'><img border=0 width=100 height=100 id="_x0000_i1026" src="cid:image001.jpg@01D0E11F.A1286800" alt="Image removed by sender. Avast logo"></span></a><o:p></o:p></span></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p><span style='font-family:"Calibri",sans-serif;color:#3D4D5A'>This email has been checked for viruses by Avast antivirus software. <br><a href="https://www.avast.com/antivirus">www.avast.com</a> <o:p></o:p></span></p></td></tr></table><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:normal'><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="https://www.avast.com/antivirus">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                This email has been checked for viruses by Avast antivirus software.
                                <br><a href="https://www.avast.com/antivirus">www.avast.com</a>
                        </p>
                </td>
        </tr>
</table>
<br />
</body></html>