home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 October / PCWorld_2005-10_cd.bin / komunikace / amaya / amaya-WinXP-9.2.1.exe / doc / WX / Publishing.html < prev    next >
Encoding:
Extensible Markup Language  |  2005-02-24  |  10.4 KB  |  218 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7.   <meta name="GENERATOR" content="amaya 9.1, see http://www.w3.org/Amaya/" />
  8.   <title>Saving and Publishing in Amaya</title>
  9.   <style type="text/css">
  10.   </style>
  11.   <link href="style.css" rel="stylesheet" type="text/css" />
  12. </head>
  13.  
  14. <body xml:lang="en" lang="en">
  15.  
  16. <div>
  17. <img alt="Amaya" src="../../resources/icons/22x22/logo.png" class="logo" />
  18.  
  19. <p class="nav"><a href="SpellChecking.html" accesskey="p"><img alt="previous"
  20. src="../../resources/icons/misc/left.png" /></a> <a href="Manual.html"
  21. accesskey="t"><img alt="top" src="../../resources/icons/misc/up.png" /></a>
  22. <a href="WebDAV.html" accesskey="n"><img alt="next"
  23. src="../../resources/icons/misc/right.png" /></a></p>
  24. </div>
  25.  
  26. <div id="page_body">
  27. <h2>Saving and Publishing Amaya</h2>
  28.  
  29. <p>Amaya enables you to save (X)HTML documents either in <span
  30. class="Link0">(X)HTML</span> or <span class="Link0">text</span> format. Other
  31. documents (SVG, MathML or CSS) are saved according to their original format.
  32. You can save both remote and local documents in two ways, using the <span
  33. class="Link0"><strong>Save</strong></span> and <span
  34. class="Link0"><strong>Save As</strong></span> commands.</p>
  35.  
  36. <p>In addition, you can change a number of Amaya publishing options using the
  37. <strong>Publishing Preferences</strong> dialog. You open this dialog by
  38. choosing <span class="Link0"><strong>Preferences >
  39. Publishing</strong></span> from the <strong>Edit</strong> menu.</p>
  40.  
  41. <p>Amaya does not provide any global view of a set of pages installed on a
  42. server. However, you can save files to a remote server in the same way you
  43. save local files, using the <span class="Link"><strong>Save</strong></span>
  44. and <span class="link"><strong>Save As</strong></span> commands. During these
  45. operations, Amaya also saves any newly added images.</p>
  46.  
  47. <h3>The Save Command</h3>
  48.  
  49. <p>The <strong>Save</strong> command saves the current document to the
  50. original location. You can access the <strong>Save</strong> command by
  51. choosing <strong>Save</strong> from the <strong>File</strong> menu, clicking
  52. the <strong>Save</strong> button on the button bar, or by using keyboard
  53. shortcuts (<code>Ctrl-s</code> in Windows; <code>Ctrl-x,Ctrl-s</code> in
  54. Unix). Newly added images are saved in the same directory automatically;
  55. confirmation is only requested when the document name is unknown.</p>
  56.  
  57. <p>You can also fetch a document from servers by specifying the server
  58. directory name. This is very useful when browsing, but is not supported by
  59. the put method. In this case, Amaya detects that the document name is missing
  60. and asks you either to use a default name or to complete the request.</p>
  61.  
  62. <p class="Note"><strong>Note</strong>: áá <br />
  63. Use the <strong>Save As</strong> command to save your document to a different
  64. location.</p>
  65.  
  66. <h3>The Save As Command</h3>
  67.  
  68. <p>Choosing <strong>Save As</strong> from the <strong>File</strong> menu
  69. opens the <strong>Save As</strong> dialog, where you can: save the document
  70. as XML, HTML, or as a text file to a local disk or a remote URI; save
  71. embedded images into the same document directory or a different location; and
  72. transform embedded URIs.</p>
  73.  
  74. <h4>The Save As Dialog</h4>
  75.  
  76. <p>The items in the dialog box, from top to bottom, left to right are used as
  77. follows:</p>
  78. <ul>
  79.   <li>The <strong>Document location</strong> field indicates where the file
  80.     has to be written. This can be a file in the local file system (for
  81.     example, <code>/pub/html/welcome.html</code>) or the name of a remote URI
  82.     (for example, <code>http://www.w3.org/pub/WWW/Welcome.html</code>).
  83.     <p class="Note"><strong>Note:ááá</strong><span xml:lang="EN" lang="EN"
  84.     style="font-weight:normal">Use</span><strong><span></span></strong>a
  85.     complete path for the URL. You should also make sure that you have the
  86.     rights to do a <code>PUT</code>method if it is a remote location. Refer
  87.     to the page on <a
  88.     href="http://www.w3.org/Amaya/User/Put.html">configuring your server to
  89.     accept the PUT method</a> or ask your Web administrator.</p>
  90.   </li>
  91. </ul>
  92. <ul>
  93.   <li>The <strong>Images directory</strong> field allows you to save images
  94.     (if the <strong>Copy Images</strong> button has been selected) to a
  95.     different place than the HTML file. This field should contain the name of
  96.     a directory on the local file system or a location on the remote server.
  97.     <ul>
  98.       <li>Using a relative path, the images are stored at a location relative
  99.         to the document directory. For example, if the document location is
  100.         <code><a
  101.         href="http://www.w3.org/pub/WWW/Welcome.html">http://www.w3.org/pub/WWW/Welcome.html</a><a
  102.         href="http://www.w3.org/pub/WWW/Welcome.html"></a></code> and the
  103.         images location is "Images", an image "W3C.png" contained in the
  104.         document is stored at the URI <code><a
  105.         href="http://www.w3.org/pub/WWW/Images/W3C.png">http://www.w3.org/pub/WWW/Images/W3C.png</a></code>
  106.         and the HTML file is modified to reference it as:
  107.         <p><code><img src="Images/W3C.png"></code></p>
  108.         <p>This is similar in the case of a document location on the local
  109.         file system.</p>
  110.       </li>
  111.       <li>Using an absolute path, the images are stored at this exact
  112.         location, independently of the document location. In the previous
  113.         example, if the specified images location is
  114.         <code>http://pub/WWW/Images</code>, the image is stored at
  115.         <code>http://www.w3.org/pub/WWW/Images/W3C.png</code> and the
  116.         corresponding HTML file is modified in the following way:
  117.         <p><code><img src="Images/W3C.png"></code></p>
  118.       </li>
  119.     </ul>
  120.   </li>
  121. </ul>
  122. <ul>
  123.   <li>The <strong>Document format</strong> offers a choice between
  124.     <strong>HTML</strong>, <strong>XML</strong> (XHTML) and
  125.     <strong>Text</strong> for HTML documents. This submenu is not shown when
  126.     saving a SVG, a MathML, a CSS, or any other document type. By default,
  127.     Amaya keeps the current document format. The entry <strong>Text</strong>
  128.     removes the HTML mark-up and replaces it by spaces, newlines, and so
  129.     on.<br />
  130.   </li>
  131.   <li>The <strong>Copy Images</strong> toggle indicates whether the images
  132.     embedded in the current document must be copied along with the document
  133.     to the new location. It's generally better to keep this switch on as
  134.     otherwise you will not be sure that the corresponding images will be
  135.     found when opening the document later. However, switching it off is
  136.     useful when you have only changed the text of the document and the
  137.     document is stored on the same server. When images are copied, Amaya will
  138.     automatically update all <strong>SRC</strong> attributes to point new
  139.     image locations. New locations will be relative URIs.<br />
  140.   </li>
  141.   <li>The <strong>Transform URIs</strong> toggle transforms all current URIs
  142.     into relative URIs when possible. Of course, if the document is saved in
  143.     a local file and URIs point to remote files, URIs will be absolute. This
  144.     ensures that all the links in the document remain correct after the copy.
  145.     However, if you have several document linked together with relative URIs
  146.     and you plan to move them to a remote location, you must disable URI
  147.     conversion to avoid referencing the initial locations.<br />
  148.   </li>
  149.   <li>The <strong>Charset</strong> field opens a dialog that enables you to
  150.     change the charset of the document. This option only works with documents
  151.     that support the notion of charset, such as HTML and XML ones. This
  152.     option is available when saving both remote and local documents.
  153.     <p></p>
  154.   </li>
  155.   <li>The <strong>Mime Type</strong> field opens a dialog where you can
  156.     select the MIME type of the document. If the MIME type you're looking for
  157.     is not listed, you can type it in yourself. This button is only active
  158.     when saving a document to a server (local file systems don't store the
  159.     MIME metadata information.).</li>
  160. </ul>
  161.  
  162. <p>Four buttons complete this dialog:</p>
  163. <ul>
  164.   <li>The <strong>Save</strong> button starts the process of transforming the
  165.     document. A dialog asks for confirmation in both of the following cases:
  166.     <ul>
  167.       <li>The document has to be saved on a remote server. Amaya displays the
  168.         complete URI to be written to for verification.</li>
  169.       <li>The document has to be saved locally and the file already
  170.       exists.</li>
  171.     </ul>
  172.     <p>When saving to a remote location, check that the http_proxy is not
  173.     set, or that the proxy server and the target server are configured to
  174.     work with the PUT method.</p>
  175.     <p>Amaya does not currently contact the remote server (in case of an
  176.     http://... destination) to check whether such a document already
  177.     exists<br />
  178.     .<br />
  179.     </p>
  180.   </li>
  181.   <li>The <strong>Browse</strong> button lets you select a local directory
  182.     and file name:
  183.     <ul>
  184.       <li>The <strong>Document directories</strong> field shows the
  185.         directories contained in the current directory. It should be used to
  186.         save a file on the local file system.</li>
  187.       <li>The <strong>Files</strong> field shows the files contained in the
  188.         current local directory.</li>
  189.     </ul>
  190.   </li>
  191.   <li>The <strong>Clear</strong> button removes the current contents of both
  192.     the <strong>Document location</strong> field and the <strong>Images
  193.     directory</strong> field.<br />
  194.   </li>
  195.   <li>The <strong>Cancel</strong> button terminates the command.</li>
  196. </ul>
  197.  
  198. <h3>Saving Documents as Text</h3>
  199.  
  200. <p>You san save your document as text using the <strong>Save As</strong>
  201. command from the <strong>File</strong> menu. HTML mark-up is replaced by
  202. spaces, new lines, and so on. A list of all URIs used in the document is
  203. appended to the file.</p>
  204.  
  205. <p class="ProcedureCaption">To save your document as text:</p>
  206. <ol>
  207.   <li>Choose <strong>Save As</strong> from the <strong>File</strong> menu to
  208.     open the <strong>Save As</strong> dialog.
  209.     <p></p>
  210.   </li>
  211.   <li>Click the <strong>Text</strong> button in the <strong>Document
  212.     format</strong> section to save the document in text format to a local
  213.     file.</li>
  214. </ol>
  215. </div>
  216. </body>
  217. </html>
  218.