r22442 by gpittman - further tweaking of appearance of docs

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 22 13:49:13 UTC 2018


Author: gpittman
Date: Thu Mar 22 13:49:13 2018
New Revision: 22442

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22442
Log:
further tweaking of appearance of docs

Modified:
    trunk/Scribus/doc/en/scripterapi-page.html
    trunk/Scribus/doc/en/scripterapi-textframes.html

Modified: trunk/Scribus/doc/en/scripterapi-page.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22442&path=/trunk/Scribus/doc/en/scripterapi-page.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-page.html	(original)
+++ trunk/Scribus/doc/en/scripterapi-page.html	Thu Mar 22 13:49:13 2018
@@ -27,10 +27,10 @@
 <dt><a name="-currentPage"><strong>currentPage</strong></a>(...)</dt>
 <dd><code>currentPage() -> integer</code>
 <p>Returns the number of the current working page. Page numbers are counted from 1 upwards, no matter what the displayed first page number of your document is.</p>
-<p>If you want to enter into a text frame the special character for the current page number, it is decimal 30 or hex 0x1e. For example, either of the following would be equivalent:</p>
-<strong><p>scribus.setText('Page ' + chr(30), textframe)</p>
-<p>scribus.setText('Page \x1e', textframe)</p></strong>
-<p>See also <strong>pageCount()</strong></dd>
+<p>If you want to enter into a text frame the special character for the current page number, it is decimal 30 or hex 0x1e. For example, either of the following would be equivalent:</p></dd>
+<dd><p><b>scribus.setText('Page ' + chr(30), textframe)</b></p></dd>
+<dd><p><b>scribus.setText('Page \x1e', textframe)</b></p></dd>
+<dd><p>See also <strong>pageCount()</strong></dd>
 
 <dt><a name="-deleteMasterPage"><strong>deleteMasterPage</strong>(...)</a></dt>
 <dd><code>deleteMasterPage(pageName)</code>
@@ -100,9 +100,9 @@
 <dt><a name="-pageCount"><strong>pageCount</strong></a>(...)</dt>
 <dd><code>pageCount() -> integer</code>
 <p>Returns the number of pages in the document.</p>
-<p>There is also a special character for page count, in decimal 23, and in hex 0x17. You might combine this with the special character for current page in a text frame (on a Master Page for example) as follows. Either of these is equivalent:</p>
-<strong><p>scribus.setText('Page ' + chr(30) + ' of ' + chr(23), textframe)</p>
-<p>scribus.setText('Page \x1e of \x17', textframe)</p></strong></dd>
+<p>There is also a special character for page count, in decimal 23, and in hex 0x17. You might combine this with the special character for current page in a text frame (on a Master Page for example) as follows. Either of these is equivalent:</p></dd>
+<dd><p><b>scribus.setText('Page ' + chr(30) + ' of ' + chr(23), textframe)</b></p>
+<p><b>scribus.setText('Page \x1e of \x17', textframe)</p></b></dd>
 
 <dt><a name="-redrawAll"><strong>redrawAll</strong></a>(...)</dt>
 <dd><code>redrawAll()</code>

Modified: trunk/Scribus/doc/en/scripterapi-textframes.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22442&path=/trunk/Scribus/doc/en/scripterapi-textframes.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-textframes.html	(original)
+++ trunk/Scribus/doc/en/scripterapi-textframes.html	Thu Mar 22 13:49:13 2018
@@ -95,10 +95,10 @@
 <p>Selects "count" characters of text in the text frame "name" starting from the character "start". Character counting starts at 0. If "count" is zero, any text selection will be cleared.  If "name" is not given the currently selected item is used.</p>
 <p>May throw IndexError if the selection is outside the bounds of the text.</p>
 <p>There is no specific command to select all of the text in a frame. To accomplish this, you might create a function in your script which you would call with the name of the frame as follows:</p>
-<p><b>def SelectAllText(textframe):</p>
-    <p>    texlen = scribus.getTextLength(textframe)</p>
-    <p>    scribus.selectText(0,texlen,textframe)</p>
-    <p>    return</b></p></dd>
+<p><b>def SelectAllText(textframe):</b></p>
+    <p><b>    texlen = scribus.getTextLength(textframe)</b></p>
+    <p><b>    scribus.selectText(0,texlen,textframe)</b></p>
+    <p><b>    return</b></p></dd>
 <dd><p>One of the reasons this is important is that, should you want to select a frame and then apply a Paragraph Style to the frame, you will find that a frame with multiple paragraphs will not have the style set for all of the text, only the last paragraph. Therefore, the solution is to select all the text of the frame, and then apply the style.</p></dd>
 
 




More information about the scribus-commit mailing list