- <title>Typesetting a short story using docbook for PDF, HTML and EPUB</title>
- <link>http://people.skolelinux.org/pere/blog/Typesetting_a_short_story_using_docbook_for_PDF__HTML_and_EPUB.html</link>
- <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Typesetting_a_short_story_using_docbook_for_PDF__HTML_and_EPUB.html</guid>
- <pubDate>Sun, 24 Mar 2013 17:30:00 +0100</pubDate>
- <description><p>A few days ago, during a discussion in
-<a href="http://www.efn.no/">EFN</a> about interesting books to read
-about copyright and the data retention directive, a suggestion to read
-the 1968 short story Kodémus by
-<a href="http://web2.gyldendal.no/toraage/">Tore Åge Bringsværd</a>
-came up. The text was only available in old paper books, and thus not
-easily available for current and future generations. Some of the
-people participating in the discussion contacted the author, and
-reported back 2013-03-19 that the author was OK with releasing the
-short story using a <a href="http://www.creativecommons.org/">Creative
-Commons</a> license. The text was quickly scanned and OCR-ed, and we
-were ready to start on the editing and typesetting.</p>
-
-<p>As I already had some experience formatting text in my project to
-provide a Norwegian version of the Free Culture book by Lawrence
-Lessig, I chipped in and set up a
-<a href="http://www.docbook.org/">DocBook</a> processing framework to
-generate PDF, HTML and EPUB version of the short story. The tools to
-transform DocBook to different formats are already in my Linux
-distribution of choice, <a href="http://www.debian.org/">Debian</a>, so
-all I had to do was to use the
-<a href="http://dblatex.sourceforge.net/">dblatex</a>,
-<a href="http://docbook.sourceforge.net/release/xsl/current/epub/README">dbtoepub</a>
-and <a href="https://fedorahosted.org/xmlto/">xmlto</a> tools to do the
-conversion. After a few days, we decided to replace dblatex with
-xsltproc/fop (aka
-<a href="http://wiki.docbook.org/DocBookXslStylesheets">docbook-xsl</a>),
-to get the copyright information to show up in the PDF and to get a
-nicer &lt;variablelist&gt; typesetting, but that is just a minor
-technical detail.</p>
-
-<p>There were a few challenges, of course. We want to typeset the
-short story to look like the original, and that require fairly good
-control over the layout. The original short story have three
-parts/scenes separated by a single horizontally centred star (*), and
-the paragraphs do not contain only flowing text, but dialogs and text
-that started on a new line in the middle of the paragraph.</p>
-
-<p>I initially solved the first challenge by using a paragraph with a
-single star in it, ie &lt;para&gt;*&lt;/para&gt;, but it made sure a
-placeholder indicated where the scene shifted. This did not look too
-good without the centring. The next approach was to create a new
-preprocessor directive &lt;?newscene?&gt;, mapping to "&lt;hr/&gt;"
-for HTML and "&lt;fo:block text-align="center"&gt;&lt;fo:leader
-leader-pattern="rule" rule-thickness="0.5pt"/&gt;&lt;/fo:block&gt;"
-for FO/PDF output (did not try to implement this in dblatex, as we had
-switched at this time). The HTML XSL file looked like this:</p>
-
-<p><blockquote><pre>
-&lt;?xml version='1.0'?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt;
- &lt;xsl:template match="processing-instruction('newscene')"&gt;
- &lt;hr/&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-</pre></blockquote></p>
-
-<p>And the FO/PDF XSL file looked like this:</p>
-
-<p><blockquote><pre>
-&lt;?xml version='1.0'?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt;
- &lt;xsl:template match="processing-instruction('newscene')"&gt;
- &lt;fo:block text-align="center"&gt;
- &lt;fo:leader leader-pattern="rule" rule-thickness="0.5pt"/&gt;
- &lt;/fo:block&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-</pre></blockquote></p>
-
-<p>Finally, I came across the &lt;bridgehead&gt; tag, which seem to be
-a good fit for the task at hand, and I replaced &lt;?newscene?&gt;
-with &lt;bridgehead&gt;*&lt;/bridgehead&gt;. It isn't centred, but we
-can fix it with some XSL rule if the current visual layout isn't
-enough.</p>
-
-<p>I did not find a good DocBook compliant way to solve the
-linebreak/paragraph challenge, so I ended up creating a new processor
-directive &lt;?linebreak?&gt;, mapping to &lt;br/&gt; in HTML, and
-&lt;fo:block/&gt; in FO/PDF. I suspect there are better ways to do
-this, and welcome ideas and patches on github. The HTML XSL file now
-look like this:</p>
-
-<p><blockquote><pre>
-&lt;?xml version='1.0'?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt;
- &lt;xsl:template match="processing-instruction('linebreak)"&gt;
- &lt;br/&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-</pre></blockquote></p>
-
-<p>And the FO/PDF XSL file looked like this:</p>
-
-<p><blockquote><pre>
-&lt;?xml version='1.0'?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
- xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt;
- &lt;xsl:template match="processing-instruction('linebreak)"&gt;
- &lt;fo:block/&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-</pre></blockquote></p>
-
-<p>One unsolved challenge is our wish to expose different ISBN numbers
-per publication format, while keeping all of them in some conditional
-structure in the DocBook source. No idea how to do this, so we ended
-up listing all the ISBN numbers next to their format in the colophon
-page.</p>
-
-<p>If you want to check out the finished result, check out the
-<a href="https://github.com/sickel/kodemus">source repository at
-github</a>
-(<a href="https://github.com/EFN/kodemus">future/new/official
-repository</a>). We expect it to be ready and announced in a few
-days.</p>
-</description>
- </item>
-
- <item>
- <title>Regjeringen, FAD og DIFI går inn for å fjerne ODF som obligatorisk standard i det offentlige</title>
- <link>http://people.skolelinux.org/pere/blog/Regjeringen__FAD_og_DIFI_g_r_inn_for___fjerne_ODF_som_obligatorisk_standard_i_det_offentlige.html</link>
- <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Regjeringen__FAD_og_DIFI_g_r_inn_for___fjerne_ODF_som_obligatorisk_standard_i_det_offentlige.html</guid>
- <pubDate>Mon, 18 Mar 2013 21:10:00 +0100</pubDate>
- <description><p>I
-<a href="http://standard.difi.no/hoyring/forslag-om-endring-av-forskrift-om-it-standarder-i-offentlig-forvaltning">siste
-høring</a> om
-<a href="http://standard.difi.no/forvaltningsstandarder">referansekatalogen
-for IT-standarder i offentlig sektor</a>, med høringsfrist 2012-09-30
-(DIFI-sak 2012/498), ble det foreslått å fjerne ODF som obligatorisk
-standard når en publiserte dokumenter som skulle kunne redigeres
-videre av mottaker. NUUG og andre protesterte på forslaget, som er et
-langt steg tilbake når det gjelder å sikre like rettigheter for alle
-når en kommuniserer med det offentlige. For noen dager siden ble jeg
-oppmerksom på at Direktoratet for forvaltning og IKT (DIFI) og
-Fornyings-,administrasjons- og kirkedepartementet (FAD) har
-konkludert, og oversendt forslag til regjeringen i saken. FADs
-dokument
-<a href="http://www.oep.no/search/result.html?period=none&descType=both&caseNumber=2012%2F2168&senderType=both&documentType=all&list2=94&searchType=advanced&Search=S%C3%B8k+i+journaler">2012/2168</a>-8,
-«Utkast til endring av standardiseringsforskriften» datert 2013-02-06
-har følgende triste oppsummering fra høringen i saken:</p>
-
-<p><blockquote>
-Det kom noen innvendinger på forslaget om å fjerne ODF som
-obligatorisk standard for redigerbare dokumenter. Innvendingene har
-ikke blitt ilagt avgjørende vekt.
-</blockquote></p>
-
-<p>Ved å fjerne ODF som obligatorisk format ved publisering av
-redigerbare dokumenter setter en Norge tiår tilbake. Det som vil skje
-er at offentlige etater går tilbake til kun å publisere dokumenter på
-et av de mange formatene til Microsoft Office, og alle som ikke
-aksepterer bruksvilkårene til Microsoft eller ikke har råd til å bruke
-penger på å få tilgang til Microsoft Office må igjen basere seg på
-verktøy fra utviklerne som er avhengig av å reversutvikle disse
-formatene. I og med at ISO-spesifikasjonen for OOXML ikke komplett og
-korrekt spesifiserer formatene til MS Office (men er nyttige å titte i
-når en reversutvikler), er en tilbake til en situasjon der en ikke har
-<a href="http://people.skolelinux.org/pere/blog/Fri_og__pen_standard__slik_Digistan_ser_det.html">en
-fri og åpen standard</a> å forholde seg til, men i stedet må springe
-etter Microsoft. Alle andre leverandører enn Microsoft vil dermed ha
-en seriøs ulempe. Det er som å fjerne krav om bruk av meter som
-måleenhet, og heretter aksepterer alle måleenheter som like gyldige,
-når en vet at den mest brukte enheten vil være armlengden til Steve
-Ballmer slik Microsoft måler den.</p>
-
-<p>Jeg er ikke sikker på om forslaget er vedtatt av regjeringen ennå.
-Kristian Bergem hos DIFI nevnte på et møte forrige tirsdag at han
-trodde det var vedtatt i statsråd 8. mars, men jeg har ikke klart å
-finne en skriftlig kilde på regjeringen.no som bekrefter dette.
-Kanskje det ennå ikke er for sent...</p>
-
-<p>Jeg ba i forrige uke om innsyn i dokument 6, 7 og 8 i FAD-saken, og
-har i dag fått innsyn i dokument 7 og 8. Ble nektet innsyn i
-dokumentet med tittelen «Oppsummering av høring om endringer i
-forskrift om IT-standarder i offentlig forvaltning» med hjemmel i
-off. lovens §15.1, så det er vanskelig å vite hvordan argumentene fra
-høringen ble mottatt og forstått av saksbehandleren hos DIFI. Lurer
-på hvordan jeg kan klage på at jeg ikke fikk se oppsummeringen. Fikk
-tre PDFer tilsendt fra FAD,
-<a href="http://www.nuug.no/pub/offentliginnsyn/from-FAD/20130115%20Notat%20FAD%20-%20EHF.pdf%20(L)(889185).pdf">Endring av underversjon i EHF</a>,
-<a href="http://www.nuug.no/pub/offentliginnsyn/from-FAD/Bakgrunnsnotat%20knyttet%20til%20versjon%20av%20EHF%20standarden%20i%20Forskrift%20om%20IT-standarder%20i%20offentlig%20sektor.pdf">Bakgrunnsnotat knyttet til versjon av EHF standarden i Forskrift om IT-standarder i offentlig sektor</a> og
-<a href="http://www.nuug.no/pub/offentliginnsyn/from-FAD/Utkast%20Kongelig%20resolusjon.docx%20(L)(898064).pdf">Utkast til endring av standardiseringsforskriften</a>, hvis du vil ta en titt.</p>
+ <title>Fourth alpha release of Debian Edu/Skolelinux based on Debian Wheezy</title>
+ <link>http://people.skolelinux.org/pere/blog/Fourth_alpha_release_of_Debian_Edu_Skolelinux_based_on_Debian_Wheezy.html</link>
+ <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Fourth_alpha_release_of_Debian_Edu_Skolelinux_based_on_Debian_Wheezy.html</guid>
+ <pubDate>Wed, 3 Jul 2013 14:00:00 +0200</pubDate>
+ <description><p>The fourth wheezy based alpha release of Debian Edu was wrapped up
+today. This is the release announcement:</p>
+
+<p><strong>New features for Debian Edu 7.1+edu0~alpha3 released
+2013-07-03</strong></p>
+
+<p>These are the release notes for for Debian Edu / Skolelinux
+7.1+edu0~alpha3, based on Debian with codename "Wheezy".</p>
+
+<p><strong>About Debian Edu and Skolelinux</strong></p>
+
+<p><a href="http://www.skolelinux.org/">Debian Edu, also known as
+Skolelinux</a>, is a Linux distribution based on Debian providing an
+out-of-the box environment of a completely configured school
+network. Immediately after installation a school server running all
+services needed for a school network is set up just waiting for users
+and machines being added via GOsa², a comfortable Web-UI. A netbooting
+environment is prepared using PXE, so after initial installation of
+the main server from CD, DVD or USB stick all other machines can be
+installed via the network. The provided school server provides LDAP
+database and Kerberos authentication service, centralized home
+directories, DHCP server, web proxy and many other services. The
+desktop contains
+<a href="http://people.skolelinux.org/pere/blog/Educational_applications_included_in_Debian_Edu___Skolelinux__the_screenshot_collection____.html">more
+than 60 educational software packages</a> and more are available from
+the Debian archive, and schools can choose between KDE, Gnome, LXDE
+and Xfce desktop environment.</p>
+
+<p>This is the fourth test release based on Debian Wheezy. Basically
+this is an updated and slightly improved version compared to the
+Squeeze release.</p>
+
+<p><strong>Software updates</strong></p>
+<ul>
+ <li>Dropped ispell dictionaries from our default installation.</li>
+ <li>Dropped menu-xdg from the KDE desktop option, to drop the Debian
+ submenu. It was not included with Gnome, LXDE or Xfce, so this
+ brings KDE in line with the others.</li>
+ <li>Dropped xdrawchem, xjig and xsok from our default installation as
+ they don't have a desktop menu entry and thus won't show up in the
+ menu now that menu-xdg was removed.</li>
+ <li>Removed the killer system to kill left behind processes on
+ multi-user machines, as it was no longer able to understand when a
+ X display was in use and killed the processes of the active users
+ too.</li>
+ <li>Dropped the golearn (from goplay) package as the debtags in wheezy
+ are too few to make the package useful.</li>
+</ul>
+<p><strong>Other changes</strong></p>
+<ul>
+ <li>Updated artwork matching http://wiki.debian.org/DebianArt/Themes/Joy
+ <li>Multi-arch i386/amd64 USB stick ISO available.</li>
+ <li>Got rid of ispell/wordlist related debconf questions that showed
+ up for some language options.</li>
+ <li>Switched to using http.debian.net as APT source by default.</li>
+ <li>Fixed proxy configuration on Main Server installations.</li>
+ <li>Changed LTSP setup to ask dpkg to use force-unsafe-io the same way
+ d-i is doing it.</li>
+ <li>Made sure root and user passwords were not left behind in the
+ debconf database after installation on Main Server installations.</li>
+ <li>Made Roaming Workstation dynamic setup more robust and added draft
+ script setup-ad-client to hook a Roaming Workstation up to a
+ Active Directory server instead of a Debian Edu Main Server.</li>
+ <li>Update system to install needed firmware packages during
+ installation, to work properly in Wheezy.</li>
+ <li>Update system to handle hardware quirks (debian-edu-hwsetup).</li>
+ <li>Corrected PXE installation setup to properly pass selected desktop
+ and keymap settings to PXE installation clients.</li>
+ <li>LTSP diskless workstations use sshfs by default, allowing them to
+ work without adding them to DNS and NIS netgroups for NFS access.</li>
+</ul>
+<p><strong>Known issues</strong></p>
+<ul>
+ <li>No mass import of user account data in GOsa (ldif or csv)
+ available yet (698840).</li>
+ <li>Artwork not enabled for all desktops.</li>
+</ul>
+<p><strong>Where to get it</strong></p>
+
+<p>To download the multiarch netinstall CD release you can use</p>
+<ul>
+ <li><a href="ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-CD.iso">ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-CD.iso</a></li>
+ <li><a href="http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-CD.iso">http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-CD.iso</a></li>
+ <li>rsync -avzP ftp.skolelinux.org::skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-CD.iso .</li>
+</ul>
+
+<p>The MD5SUM of this image is: 2b161a99d2a848c376d8d04e3854e30c
+<br>The SHA1SUM of this image is: 498922e9c508c0a7ee9dbe1dfe5bf830d779c3c8</p>
+
+<p>To download the multiarch USB stick ISO release you can use</p>
+<ul>
+ <li><a href="ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-USB.iso">ftp://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-USB.iso</a></li>
+ <li><a href="http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-USB.iso">http://ftp.skolelinux.org/skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-USB.iso</a></li>
+ <li>rsync -avzP ftp.skolelinux.org::skolelinux-cd/wheezy/debian-edu-7.1+edu0~a3-USB.iso .</li>
+</ul>
+
+<p>The MD5SUM of this image is: 25e808e403a4c15dbef1d13c37d572ac
+<br>The SHA1SUM of this image is: 15ecfc93eb6b4f453b7eb0bc04b6a279262d9721</p>
+
+<p><strong>How to report bugs</strong></p>
+
+<p><a href="http://wiki.debian.org/DebianEdu/HowTo/ReportBugs">http://wiki.debian.org/DebianEdu/HowTo/ReportBugs</a></p>