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

From Apache OpenOffice Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:Extra Long Web Addresses}} {{Documentation/WriterforStudentsTOC |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/Writer for Students/Cross Tables...")
 
m
Line 10: Line 10:
 
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/
  
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. So it would be nicer to instead have:
+
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.  
 +
 
 +
So it would be nicer to instead have:
 
Please refer to: http://de.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/​long_chain/long_chain/
 
Please refer to: http://de.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/​long_chain/long_chain/
 +
 
To achieve this do the following:
 
To achieve this do the following:
 
* under '''Tools › Options › Language Settings › Languages''' tick the box next to '''Enabled for complex text layout (CTL)'''
 
* under '''Tools › Options › Language Settings › Languages''' tick the box next to '''Enabled for complex text layout (CTL)'''
 
* 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'''
 
* 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
 
* 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

Revision as of 16:11, 12 January 2014



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

Please                      refer                         to:

http://uk.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/long_chain/long_chain/

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.

So it would be nicer to instead have: Please refer to: http://de.search.yahoo.com/long_chain/long_chain/long_chain/long_chain/​long_chain/long_chain/

To achieve this do the following:

  • under Tools › Options › Language Settings › Languages tick the box next to Enabled for complex text layout (CTL)
  • 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
Personal tools