From pub@loomchild.net Thu Jan 30 14:15:58 2014 From: Jarek To: fosdem@lists.fosdem.org Subject: [FOSDEM] Little ampersand (&) encoding problem in schedule Date: Thu, 30 Jan 2014 14:15:47 +0100 Message-ID: <52EA5083.20609@loomchild.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2798360455222819387==" --===============2798360455222819387== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi, I have noticed that in XML schedule at https://fosdem.org/2014/schedule/xml a string "&amp;" appears in about 20 talk descriptions. I think it should be just "&", otherwise it will display ugly in mobile apps. Example (in second paragraph of the abstract): 13:20 00:15 H.2215 (Ferrer) entangle Entangle: Tethered Camera Control & Capture Lightning talks lightningtalk <p>Entangle is an open source project that provides a Linux desktop application for “tethered shooting”. It uses the ligphoto2 library to trigger the camera shutter, preview shots via the camera's "live view" capability, download captured images and access all the live camera settings. It is useful for a variety of use cases including studio model shoots, macro still life, stop motion animation shoots, astro-photography and more.</p> <p>The talk will be targeted at Linux users &amp; developers who are photographers interested in any of the aforementioned use cases.</p> <p>The talk will provide an overview of the important capabilities of the program and, if all goes to plan, a live demonstration of the application in use.</p> <p>The aim is to demonstrate the potential of the application to users who are not already aware of its existence, and attract open source developers to contribute to the project.</p> Daniel Berrange Thanks, Jarek --===============2798360455222819387==-- From chris@orr.me.uk Thu Jan 30 14:28:51 2014 From: Christopher Orr To: fosdem@lists.fosdem.org Subject: Re: [FOSDEM] Little ampersand (&) encoding problem in schedule Date: Thu, 30 Jan 2014 14:28:42 +0100 Message-ID: <52EA538A.9030607@orr.me.uk> In-Reply-To: <52EA5083.20609@loomchild.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5982970029420304376==" --===============5982970029420304376== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On 30/01/14 14:15, Jarek wrote: > Hi, > > I have noticed that in XML schedule at > https://fosdem.org/2014/schedule/xml a string "&amp;" appears in > about 20 talk descriptions. I think it should be just "&", otherwise > it will display ugly in mobile apps. > > Example (in second paragraph of the abstract): > <p>Entangle is an open source project that > provides a Linux desktop application for “tethered shooting”. It uses > the ligphoto2 library to trigger the camera shutter, preview shots via > the camera's "live view" capability, download captured images and access > all the live camera settings. It is useful for a variety of use cases > including studio model shoots, macro still life, stop motion animation > shoots, astro-photography and more.</p> > > <p>The talk will be targeted at Linux users &amp; developers > who are photographers interested in any of the aforementioned use > cases.</p> That looks like HTML embedded in XML, so ampersands probably should be escaped like that, like the

tag is escaped at the start of the abstract. Are you actually seeing formatting issues in one of the mobile apps? If so, I guess it's up to the app authors to handle HTML-formatted text in the abstracts, since that seems to be the intention. Regards, Chris --===============5982970029420304376==-- From pub@loomchild.net Thu Jan 30 14:40:07 2014 From: Jarek To: fosdem@lists.fosdem.org Subject: Re: [FOSDEM] Little ampersand (&) encoding problem in schedule Date: Thu, 30 Jan 2014 14:40:01 +0100 Message-ID: <52EA5631.4020302@loomchild.net> In-Reply-To: <52EA538A.9030607@orr.me.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5909142933804210308==" --===============5909142933804210308== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi, On 30/01/14 14:28, Christopher Orr wrote: > On 30/01/14 14:15, Jarek wrote: >> Hi, >> >> I have noticed that in XML schedule at >> https://fosdem.org/2014/schedule/xml a string "&amp;" appears in >> about 20 talk descriptions. I think it should be just "&", otherwise >> it will display ugly in mobile apps. >> >> Example (in second paragraph of the abstract): >> <p>Entangle is an open source project that >> provides a Linux desktop application for “tethered shooting”. It uses >> the ligphoto2 library to trigger the camera shutter, preview shots via >> the camera's "live view" capability, download captured images and access >> all the live camera settings. It is useful for a variety of use cases >> including studio model shoots, macro still life, stop motion animation >> shoots, astro-photography and more.</p> >> >> <p>The talk will be targeted at Linux users &amp; developers >> who are photographers interested in any of the aforementioned use >> cases.</p> > > That looks like HTML embedded in XML, so ampersands probably should be > escaped like that, like the

tag is escaped at the start of the > abstract. Ah, I see. I was surprised that in titles they are just escaped as '&', but in descriptions as '&amp;', but that explains it - titles are plaintext and descriptions are HTML. > Are you actually seeing formatting issues in one of the mobile apps? If > so, I guess it's up to the app authors to handle HTML-formatted text in > the abstracts, since that seems to be the intention. I see formatting errors in N900 sojourner app which does not handle HTML descriptions and treats it as text ('<' becomes '<', '&' becomes '&', but '&amp'; becomes '&'). I have fixed the error by stripping out unnecessary tags, so not a problem anymore. Thanks for explanation, Jarek --===============5909142933804210308==--