[gimp-help-2] Fix PDF problem w/ filenames containing backslashes



commit e8b5cce1d7f5e61f71826b97c959c1f2342c1876
Author: Ulf-D. Ehlert <ulfehlert svn gnome org>
Date:   Sat Feb 6 20:37:58 2010 +0100

    Fix PDF problem w/ filenames containing backslashes
    
    dblatex complains about "undefined control sequence" within '\nolinkurl'
    macros. It seems that texlive-2007 accepted single backslashes within
    <filename> elements (like "C:\foo\...\foo.exe"), while texlive-2008 and
    textlive-2009 expect these backslashes to be escaped (with "\", e.g.
    "C:\\foo\\...\\foo.exe").
    Cf. Debian bug #563659:
    	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563659

 src/concepts/images-loading.xml      |    9 +++++++--
 src/menus/file/open-location.xml     |    9 +++++----
 src/using/customize-splashscreen.xml |    7 +++++--
 src/using/fonts-and-text.xml         |   10 +++++++---
 src/using/shortcuts.xml              |   18 ++++++++++++++----
 stylesheets/plainprint.xsl           |    9 ++++++++-
 6 files changed, 46 insertions(+), 16 deletions(-)
---
diff --git a/src/concepts/images-loading.xml b/src/concepts/images-loading.xml
index 3ff77e2..7ab8e05 100644
--- a/src/concepts/images-loading.xml
+++ b/src/concepts/images-loading.xml
@@ -210,11 +210,16 @@
           </para>
         </listitem>
         <listitem>
-          <para>
+          <para role="html">
             Set the <envar>GS_PROG</envar> environment variable to the full
-            file name of the gswin32c binary  (e.g.
+            file name of the gswin32c binary (e.g.
             <filename>C:\gs\gsX.YY\bin\gswin32c.exe</filename>).
           </para>
+          <para role="tex">
+            Set the <envar>GS_PROG</envar> environment variable to the full
+            file name of the gswin32c binary (e.g.
+            <filename>C:\\gs\\gsX.YY\\bin\\gswin32c.exe</filename>).
+          </para>
         </listitem>
       </itemizedlist>
       <para>
diff --git a/src/menus/file/open-location.xml b/src/menus/file/open-location.xml
index ee79a44..d50a5c3 100644
--- a/src/menus/file/open-location.xml
+++ b/src/menus/file/open-location.xml
@@ -68,10 +68,11 @@
             The default base directory for relative paths depends on your
             operating system. It is typically
             <filename>/home/&lt;username&gt;/</filename> on Linux,
-            <filename>
-              C:\Documents and Settings\&lt;username&gt;\My Documents\My
-              Images\
-            </filename> on Windows and
+            <filename role="html">C:\Documents and
+            Settings\&lt;username&gt;\My Documents\My Images\</filename>
+            <filename role="tex">C:\\Documents and
+            Settings\\&lt;username&gt;\\My Documents\\My Images\\</filename>
+            on Windows and
             <filename>/Users/&lt;username&gt;/</filename> on Mac OS X.
           </para>
         </listitem>
diff --git a/src/using/customize-splashscreen.xml b/src/using/customize-splashscreen.xml
index 3af7198..af98ec6 100644
--- a/src/using/customize-splashscreen.xml
+++ b/src/using/customize-splashscreen.xml
@@ -30,8 +30,11 @@
     <filename class="directory">splashes</filename> directory in your in your
     personal <acronym>GIMP</acronym> folder
     (<filename class="directory">/home/user_name/.gimp-2.6</filename> on
-    Linux, <filename
-    class="directory">C:\Documents&nbsp;and&nbsp;Settings\user_name\.gimp-2.6\</filename>
+    Linux,
+    <filename class="directory"
+    role="html">C:\Documents&nbsp;and&nbsp;Settings\user_name\.gimp-2.6\</filename>
+    <filename class="directory"
+    role="tex">C:\\Documents&nbsp;and&nbsp;Settings\\user_name\\.gimp-2.6\\</filename>
     on Windows).
   </para>
   <para>
diff --git a/src/using/fonts-and-text.xml b/src/using/fonts-and-text.xml
index 45bd1c7..f041dbf 100644
--- a/src/using/fonts-and-text.xml
+++ b/src/using/fonts-and-text.xml
@@ -160,11 +160,15 @@
         The easiest way to install a font is to drag the file onto the
         Fonts directory and let the shell do its magic.  Unless you've done
         something creative, it's probably in its default location of
-        <filename>C:\windows\fonts</filename> or
-        <filename>C:\winnt\fonts</filename>.  Sometimes double-clicking on
+        <filename role="html">C:\windows\fonts</filename>
+        <filename role="tex">C:\\windows\\fonts</filename>
+        or
+        <filename role="html">C:\winnt\fonts</filename><filename
+        role="tex">C:\\winnt\\fonts</filename>.
+        Sometimes double-clicking on
         a font will install it as well as display it; sometimes it only
         displays it.  This method will make the font available not only to
-        GIMP, but also to other Windows applications.
+        <acronym>GIMP</acronym>, but also to other Windows applications.
       </para>
     </formalpara>
     <formalpara>
diff --git a/src/using/shortcuts.xml b/src/using/shortcuts.xml
index 0d5a501..be19874 100644
--- a/src/using/shortcuts.xml
+++ b/src/using/shortcuts.xml
@@ -11,6 +11,7 @@
 -->
 <sect1 id="gimp-concepts-shortcuts">
   <title>Creating Shortcuts to Menu Functions</title>
+
   <indexterm>
     <primary>Shortcuts</primary>
   </indexterm>
@@ -18,19 +19,22 @@
     <primary>Customize</primary>
     <secondary>Shortcuts</secondary>
   </indexterm>
+
   <para>
     Many functions which are accessible via the image menu have a default
     keyboard shortcut. You may want to create a new shortcut for a command
     that you use a lot and doesn't have one or, more rarely, edit an existing
     shortcut. There are two methods for doing this.
   </para>
+
   <procedure>
     <title>Using dynamic keyboard shortcuts</title>
     <step>
       <para>
         First, you have to activate this capability by checking the
         <guilabel>Use dynamic keyboard shortcuts</guilabel> option in
-        the <guilabel>Interface</guilabel> item of the <link linkend="gimp-prefs-interface">Preferences</link> menu.  This
+        the <guilabel>Interface</guilabel> item of the
+        <link linkend="gimp-prefs-interface">Preferences</link> menu.  This
         option is usually not checked, to prevent accidental key presses
         from creating an unwanted shortcut.
       </para>
@@ -63,6 +67,7 @@
       </para>
     </step>
   </procedure>
+
   <figure>
     <title>Configure Keyboard Shortcuts</title>
     <mediaobject>
@@ -72,6 +77,7 @@
       </imageobject>
     </mediaobject>
   </figure>
+
   <procedure>
     <title>Using the Keyboard Shortcut Editor</title>
     <step>
@@ -99,13 +105,17 @@
       </para>
     </step>
   </procedure>
+
   <note>
     <para>
       Custom Keyboard shortcuts are stored in one of Gimp's hidden
       directory (<filename
-class="directory">/home/[username]/.gimp-2.6/menurc</filename>)
-      under Linux, and <filename class="directory">
-      C:\Documents and Settings\[Username]\.gimp-2.6\menurc</filename>
+      class="directory">/home/[username]/.gimp-2.6/menurc</filename>)
+      under Linux, and
+      <filename class="directory"
+      role="html">C:\Documents and Settings\[Username]\.gimp-2.6\menurc</filename>
+      <filename class="directory"
+      role="tex">C:\\Documents and Settings\\[Username]\\.gimp-2.6\\menurc</filename>
       under Windows XP.  It is a simple text file that you can transport from
       one computer to another.
     </para>
diff --git a/stylesheets/plainprint.xsl b/stylesheets/plainprint.xsl
index c4961a2..a7a8804 100644
--- a/stylesheets/plainprint.xsl
+++ b/stylesheets/plainprint.xsl
@@ -36,4 +36,11 @@
   <xsl:param name="figure.note">images/note.png</xsl:param>
   <xsl:param name="figure.caution">images/caution.png</xsl:param>
 
-</xsl:stylesheet>
\ No newline at end of file
+  <!--
+    The following templates (may) override the defaults:
+  -->
+
+  <!-- suppress all elements which are obviously for HTML generation -->
+  <xsl:template match="*[ role='html']" />
+
+</xsl:stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]