Changeset 176896
- Timestamp:
- 11/25/2009 10:09:39 AM (16 years ago)
- Location:
- post-typographer/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
typopost.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-typographer/trunk/readme.txt
r175609 r176896 3 3 Requires at least: 2.5 4 4 Tested up to: 2.8.6 5 Stable tag: 65 Stable tag: 7 6 6 7 7 Adds non-breaking spaces, <nobr> tags, common spaces, tags and dashes where needed. Works with English texts only. … … 34 34 * my 35 35 4. Double and more spaces are replaced with the single ones. 36 5. All misplaced spaces near dots, co mmas, semicolons, colons, exclamation36 5. All misplaced spaces near dots, colons, exclamation 37 37 marks and question marks are fixed, where possible. 38 38 6. Composed words with hyphens in them (e.g. "easy-to-use") will be wrapped in … … 60 60 == Changelog == 61 61 62 = 5 = 62 = 7 = 63 * Fixed: No longer removes spaces before colons and semicolons - not to mess 64 with the smiles. 65 66 = 6 = 63 67 * Fixed: Double (and more) warpping with the <nobr> tags. 64 68 * Fixed: <nobr> wrapping and some other formatting in the [code] and [video] -
post-typographer/trunk/typopost.php
r175609 r176896 5 5 Description: Formats the text according to typography rules. Works with English texts only. 6 6 Author: Andriy Moraru 7 Version: 67 Version: 7 8 8 Author URI: http://www.topforexnews.com 9 9 */ … … 53 53 { 54 54 //Remove space before the punctuation marks that are placed directly after the words 55 $without_square[$j] = preg_replace('@ (\.|,| ;|:|!|\?)@', "\$1", $without_square[$j]);55 $without_square[$j] = preg_replace('@ (\.|,|!|\?)@', "\$1", $without_square[$j]); 56 56 //Add space after the punctuation marks where needed 57 57 $without_square[$j] = preg_replace('@(,|!|\?)([a-z]+)@i', "\$1 \$2", $without_square[$j]);
Note: See TracChangeset
for help on using the changeset viewer.