Difference between revisions of "Documentation/Writer for Students/Extra Long"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
(Adjusted to revision May 2014)
 
Line 6: Line 6:
 
|NextPage=Documentation/Writer for Students/Fonts
 
|NextPage=Documentation/Writer for Students/Fonts
 
}}__NOTOC__
 
}}__NOTOC__
Web addresses tend to get longer by the day. So you could end up with a line like the following:
+
Web addresses tend to get longer by the day. So you could end up with a line like this:<br>
<pre style="background: white; border: none;text: bold">Please                     refer                         to:</pre>
+
<pre>     Please                                 refer                   to:
http://uk.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/long_chain/long_chain/
+
      http://uk.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/
 +
      long_chain/long_chain/
 +
</pre>
 +
It would be nicer to have:<br>
 +
<pre>Please refer to: http://de.search.yahoo.com/long_chain/long_chain/long_chain/
 +
long_chain/long_chain/long_chain/</pre>
  
The way the three words “Please refer to:” have been spread out over the whole line is not really very pleasing. Also you would rather prefer the URL to start on the same line and not one line below.  
+
In other words you want to achieve two things: i) the url should start on the same line as the preceding phrase and ii) you want to be able to insert a line break at the right place.
  
So it would be nicer to instead have:
+
For this you need to do the following:
Please refer to: http://de.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/​long_chain/long_chain/
+
# Under '''Tools › Options › Language Settings › Languages''' tick the box next to '''Show UI Elements for Bi-directional writing'''.
 
+
# Place the cursor after any / or _ where you might want a line break.
To achieve this do the following:
+
# Activate the menu '''Insert › Formatting Mark › No-width optional break'''.
* under '''Tools › Options › Language Settings › Languages''' tick the box next to '''Enabled for complex text layout (CTL)'''
+
# If you have lots of URLs you can speed up the process by '''Finding & Replacing''' (in the menu '''Edit''') all occurrences of / with your new combination of '''/No-width optional break'''; conversely, in order to prevent '''http://''' from breaking at the end of a line, you can replace all double occurrences of '''/No-width optional break with //'''; you could apply the same logic to the underscore _ and other such typical URL characters.
* place the cursor after any /where you would like to have an optional line break inserted and activate the menu '''Insert › Formatting Mark › No-width optional break'''
+
* if you have loads of URLs you can automate the process by '''Finding & Replacing''' (in the menu '''Edit''') all occurrences of /with your new combination of “/'''No-width optional break'''; conversely, in order to prevent “http://from breaking at the end of the line, you can '''Find & Replace''' all double occurrences of “/'''No-width optional break'''” with a “//; you could apply the same logic to the underscore “_” and other such typical URL characters
+
 
<br />
 
<br />
 
<br />
 
<br />

Latest revision as of 15:13, 9 June 2014



Web addresses tend to get longer by the day. So you could end up with a line like this:

      Please                                 refer                    to:
      http://uk.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/
      long_chain/long_chain/

It would be nicer to have:

Please refer to: http://de.search.yahoo.com/long_chain/long_chain/long_chain/
long_chain/long_chain/long_chain/

In other words you want to achieve two things: i) the url should start on the same line as the preceding phrase and ii) you want to be able to insert a line break at the right place.

For this you need to do the following:

  1. Under Tools › Options › Language Settings › Languages tick the box next to Show UI Elements for Bi-directional writing.
  2. Place the cursor after any / or _ where you might want a line break.
  3. Activate the menu Insert › Formatting Mark › No-width optional break.
  4. If you have lots of URLs you can speed up the process by Finding & Replacing (in the menu Edit) all occurrences of / with your new combination of /No-width optional break; conversely, in order to prevent http:// from breaking at the end of a line, you can replace all double occurrences of /No-width optional break with //; you could apply the same logic to the underscore _ and other such typical URL characters.




< Previous Page

Next Page >

Personal tools