<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div><i>>What are the practical problems with using the current </i></div>
<p></p>
<p></p>
<div><i>format for the Pd preferences file under Linux?</i></div>
<p></p>
</blockquote>
<p></p>
<div><br>
</div>
<div>I don't know, I'm a windows user, and think that the linux .pdsettings will be a better substitute for the actual windows method of writing in the registry. And think that it should live on the pd/bin dir & not in a user dir. to disallow sharing prefs.
 on multiple installations. (Pd, Purr-Data, PsVST)</div>
<div><br>
</div>
<div>If is needed to hold different fonts-metrics there could be a separete file just for that, or it can be stored in the actual file format. </div>
<div> </div>
<div>fm1: 5 11</div>
<div>fm2: 6 13</div>
<div>fm3: 7 16</div>
<div>fm4: 10 19</div>
<div>fm5: 14 29</div>
<div>fm6: 22 44</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature"><font face="Courier New, Courier, Monospace" size="2">Mensaje telepatico asistido por maquinas.</font>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jonathan Wilkes <jancsika@yahoo.com><br>
<b>Sent:</b> Monday, February 20, 2017 1:35 AM<br>
<b>To:</b> Lucas Cordiviola; pd-list@lists.iem.at<br>
<b>Subject:</b> Re: [PD] (wip) Preferences file.</font>
<div> </div>
</div>
<div>
<div style="color:#000; background-color:#fff; font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div id="yui_3_16_0_ym19_1_1487542267535_27749">Benefit: there would be a single <br>
</div>
<div dir="ltr">preferences file format shared among all platforms.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27748">Cost:</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27937">* currently the only platform that uses xml for
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_28024">preferences is OSX, and Pd relies on its proprietary,
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_28025">non-portable tool in order to read and save this file.
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27747">So it would be necessary to write an XML parser for
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27746">reading and writing in Pd, or bring in an XML library
<br>
</div>
<div dir="ltr">as a dependency.<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27657">* can't leverage any of Pd's current parsers or
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27910">use them as a guide.  For example, the Pd
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27909">message parser splits tokens on spaces-- the
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_28191">XML preferences file below doesn't fit that
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_28192">pattern-- the pd parser would interpret that first
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_28193">line as a single symbol atom.</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_28194">* the linux preferences file has long-standing code
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_29383">in Pd for reading/writing preference files.  That would 
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_29384">be thrown out to create a newer one that
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_29444">is more difficult to implement.<br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27652" dir="ltr">* without nested tags we lose most of
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_30869">the power that XML would have provided.  (For example,
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_30870">nested tags to make the values in "fontmetrics" self
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_30871">documenting.)<br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_30872"><br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_31146">What are the practical problems with using the current
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_31180">format for the Pd preferences file under Linux?<br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_31270"><br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_31271">-Jonathan<br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_31272"><br>
</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27613"><rate>44100</rate></div>
<div class="qtdSeparateBR"><br>
<br>
</div>
<div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1487542267535_27355" style="display:block">
<div id="yui_3_16_0_ym19_1_1487542267535_27354" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div id="yui_3_16_0_ym19_1_1487542267535_27353" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div class="y_msg_container" id="yui_3_16_0_ym19_1_1487542267535_27357">
<div id="yiv5347505510">
<div dir="ltr" id="yui_3_16_0_ym19_1_1487542267535_27418">
<div dir="ltr" id="yiv5347505510divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div id="yui_3_16_0_ym19_1_1487542267535_27575"><flags>-font-weight normal</flags></div>
<div id="yui_3_16_0_ym19_1_1487542267535_27557"><fontmetrics></div>
<div id="yui_3_16_0_ym19_1_1487542267535_30696">    5 11</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27513">    6 13</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27493">    7 16</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27492">    10 19</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27474">    14 29</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27417">    22 44</div>
<div id="yui_3_16_0_ym19_1_1487542267535_27419"></fontmetrics></div>
<div></div>
<div></div>
<div id="yui_3_16_0_ym19_1_1487542267535_27448"><br clear="none">
</div>
<div id="yiv5347505510Signature"><font id="yui_3_16_0_ym19_1_1487542267535_27449" size="2" face="Courier New, Courier, Monospace">> Mensaje telepatico asistido por maquinas.</font>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>