Inserting white space after comma, full stop, etc...

Hello,
I have a text file. I want to add a blank space after all commas, full stops, exclamation marks and etc in that file.
How can I do that?
Edited by: user13223181 on Oct 5, 2010 2:55 AM

suri_java wrote:
you read the text file and append to buffer read and [program Example|http://www.roseindia.net/java/beginners/java-read-file-line-by-line.shtml] and change the file as per your requirement .
I hope its helpful . Code examples on that site are largely flawed in the extreme. What's worse, they don't even respond to feedback or implement suggested improvements.
db

Similar Messages

  • Is it possible to insert white space that will track like other characters?

    I'm working with Indesign CS3, and have a problem with white space, inserted as a special character - in this case, a sixth space, used for the space between initials of a cited author: A. B. White, or whatever. Between the point after A and the B, I've inserted sixth-spaces in each instance. But when the automatic tracking sets the text, those white spaces don't seem to be adjusted in the same way as the rest. So when a line is unusually tight, the space in question looks too large, and vice versa.
    Is it possible - either in CS3 or, as a matter of interest, in CS4 or 5 - to insert white space that will track automatically as lines are adjusted?
    Many thanks in advance...
    MH

    Well, here's a classic:
    1) Set some type in French. Use a thin space or a 1/6 space before punctuation. (That's what you are supposed to do in French - there's always a space before many kinds of punctuation.)
    2) Hand off the file to someone else.
    3) "Someone else" tracks the paragraph to -40 (without understanding that the paragraph is now barely legible).
    If it's a fixed thin space, there is still a space in front of the punctuation. Due to the tracking abuse, it's now roughly the same size as a "normal" space-bar space. If it's not a fixed-width space, it has now disappeared. Tracking of -40 is ugly, but no space in front of punctuation in French is out-and-out wrong.

  • A form field to insert white space

    Hi all,
    I need to insert some white space (the number of these white space is depending to some condition) in a form field.
    I show in my report a value and then I must complete this value with some white space to have finally a string with a fixed number of characters.
    I have a form field with a value (<?VALUE?>) and then I would insert a new form field to show only some white space. I can not add these white space directly on the field form containing the value.
    Thanks

    Balaji wrote:
    I need insert white space into table which a VARCHAR2 column. Just insert it, Whats the issue?
    I would like to validate the below expression against the data in the column \S.* What is this expression and where did you get it from?
    I guess this pattern validates for non-whitespace characters. Anyone help me on this and explain what this pattern does?No in regular expression space is represented as [:space:]
    Please read {message:id=9360002}

  • Removing white space after Spry Menu Bar...

    I having a bit of a problem trying to remove a little white space after my Spry Menu bar, when I set it to 8.6em theres a little white space, when I set the width to 9.7 it goes too far, I changed it to 137 pixels, however in Firefox and IE, it messes up the layout.
    Also what do you do if there a different browsers, where some layouts are out of place, do you need to detect the browser with JS?

    The website is not live yet, everything is stored locally so heres the code: -
    HTML: -
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" type="text/css" href="website_style.css" />
    <title>My Website</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="wrapper">
      <div id="banner"></div>
      <div id="menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Home</a>      </li>
          <li><a href="#">Personal Profile</a></li>
          <li><a href="#">Education</a>      </li>
          <li><a href="#">Work Experience</a></li>
          <li><a href="#">Skills</a></li>
          <li><a href="#">Additional Info.</a></li>
          <li><a href="#">Referees</a></li>
        </ul>
      </div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    CSS: -
    @charset "utf-8";
    /* CSS Document */
    body{
        background-size:auto;
        background-repeat:no-repeat;
        background-color:#967255;
        padding: 5px;
    #wrapper {
        width:968px;
        background: #FFF;
        padding-left:0px;
        padding-right:0px;
        overflow:hidden;
        height: auto;
        border-top-left-radius:20px;
        border-top-right-radius:20px;
        margin:0 auto;
    #wrapper #banner {
        background-image:url(banner.gif);
        height: 100px;
        width: 968px;
        margin-left: auto;
    Spry Menu CSS: -
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        cursor: default;
        width: auto;
        font-family: abeatbyKai;
        height: auto;
        background-image: url(../paper.gif);
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 8.68em;
        float: left;
        height: 3em;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0em;
        margin-left: 0;
        padding-top: 0;
        padding-right: 0em;
        padding-bottom: 0;
        padding-left: 0px;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        width: 8.2em;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 8.2em;
    /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
    ul.MenuBarHorizontal ul ul
        position: absolute;
        margin: -5% 0 0 95%;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
        left: auto;
        top: 0;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Submenu containers have borders on all sides */
    ul.MenuBarHorizontal ul
        border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        background-color: #EEE;
        color: #333;
        text-decoration: none;
        background-image: url(../paper.gif);
        padding-top: 0.5em;
        padding-right: 0.75em;
        padding-bottom: 1.5em;
        padding-left: 0.75em;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        background-color: #33C;
        color: #FFF;
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
        background-color: #33C;
        color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarDown.gif);
        background-repeat: no-repeat;
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
        background-image: url(SpryMenuBarRight.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarDownHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(SpryMenuBarRightHover.gif);
        background-repeat: no-repeat;
        background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;

  • PS to PDF files getting white space after 127char

    We've had an issue come up at our shop recently that's stumped us. We are spooling .PS and using Distiller to provide PDF with high quality EPS. We noticed the issue as we have a data element that is read by PDFTRON API and the service is seeing line breaks after 127char.   We open the same PDFs from Distiller in Illustrator and can view some random white space after the 127 char and at times beyond. The white space/line break are not present when copying the data element from the PDF into a text editor (Ultra Edit) and are also not showing in the .PS file???

    Distiller Server product:
    Adobe Distiller 9
    Professional Version 9.4.2220
    Maybe I'm getting ahead of myself here-
    Advanced Setting Screen:

  • Extra white-space after page proccess

    I am trying to suppress white-spaces after the page is
    processed.
    Usually it doesn't bother me, but it does bother javascript.
    Explanation:
    1. I am sending an xmlhttp request to coldfusion to process.
    2. Coldfusion runs a stored procedure on an oracle database
    that returns the results as XML.
    3. Coldfusion returns the XML back to the client:
    <cfoutput>#XmlParse(ajaxXML)#</cfoutput>.
    4. The client (Javascript) runs the function that handle the
    data and returns an error because: "
    xml declaration not at start of external entity".
    I have tried using cfsetting with the attribute:
    enablecfoutputonly="yes", but still the result is the same.
    Any idea or lead in the right direction would be greatly
    appreciated.

    The XML that the DB returns, looks like this:
    <?xml version="1.0"?>
    <rowset>
    <row>
    <column_name>value</column_name>
    <column_name>value</column_name>
    </row>
    </rowset>
    After playing with code for a while now, I believe that the
    problem is not with the returned XML.
    The page that runs the SP is the page that call the SP. What
    means that the white-spaces are the code that the Coldfusion engine
    has already processed (although, the condition that checks whether
    the form variable that Ajax request, exist. Is the first thing on
    the page). to my understanding, the returned XML should be at the
    top of the page.
    I hope that I was clear enough.
    Thank you.

  • When typing an email I need each new sentence to automaticaaly start with a capital letter. At present after a full stop the new sentence automatically starts with a lower case letternot an upper case one

    When typing an email new sentences do not automatically start with a capital letter after a full stop.
    Surely this should happen automatically without the need for me to touch the capital letter icon.
    peter

    peterlesliebabani wrote:
    i called apple and the guy i spoke to said it is probably a VIRUS and it will be corrected on the next update!
    Either you didn't actually call Apple, and got some tech support scammer instead (calling the first number that pops up on a Google search for "Apple support" can give you some bad numbers), or the Apple tech you spoke to didn't know what he's talking about. It's not a virus.
    As for the problem, if you have enabled auto-capitalization and the problem continues, first try resetting your device. Press and hold both the home button and the sleep/wake button for about 10 seconds, until the screen turns off. Ignore the slider that will appear. Release the buttons, then press and hold the sleep/wake button until the Apple logo appears. This is the equivalent of a reboot, and should not affect your data or apps.
    If that doesn't help, try restoring your device from backups, and if that doesn't help, restore it to factory settings (ie, do not restore a backup). See:
    http://support.apple.com/kb/ht1414
    If none of that helps, the issue is caused by some kind of hardware problem, and the device will need to be repaired or (more likely) replaced.

  • How do you set a default on the Mac that automatically starts a sentence with a capital letter after a full stop? Thanks guys....

    How do you set a default on the Mac that automatically starts a sentence with a capital letter after a full stop? Thanks guys....

    I use SpellCatcher.  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • White space after flowed layout/expandable fields?

    Hi,
    I have a few pages on a form with a flowed layout where the text fields expand.The problem I am having is when the text field expans and continues on the following page,its leazing an entire white space right after it.Is there a way to do this so eventhough the text field expands onto the next page,the content on the next page continues right after the expanded field without a page of white space?
    Thanks.

    Hi,
    You need to check Allow page breaks within content option for the subform. Object > Subform >  Allow page breaks within content.
    By default even for the field this option would be checked if it is not You need to do samething even for the field.
    This would work.
    -Vjay

  • Why is there extra white space after exporting to JPEG?

    After exporting an *.ai file to jpeg using  150 ppi and 5 for compression, I have extra white space below the artwork. This has happened in two files after exporting.

    Urthie,
    What about the Artboard, is that aligned to the Pixel Grid (it is if the size is a whole number of points/pixels and one corner is at X=Y=0 or another set of integer values, otherwise not)?
    Edit: Cross posting.
    Congratulations, some things are difficult to spot (and guess for others); your finding the solution is the best happy ending.

  • Usemap error - extra white space after image -solved: area shape must be inline

    When using image hotspots, if the &lt;area shape= "rect" is not IMMEDIATELY after the &lt;map name="Map"&gt;, then FF adds a white space (white horizontal line) after the image.
    White space shows between shop_top.jpg and shop_mid.jpg:
    <pre><nowiki><img src="images/shop_top.jpg" width="1022" height="259" border="0" usemap="#Map">
    <map name="Map"><area shape="rect" coords="251,147,435,252" href="http://www.example.html">
    <img src="images/shop_mid.jpg" width="1022" height="3250"></nowiki></pre>
    Images are touching vertically (no space in between):
    <pre><nowiki><img src="images/shop_top.jpg" width="1022" height="259" border="0" usemap="#Map"><map name="Map"><area shape="rect" coords="251,147,435,252" href="http://www.example.html">
    <img src="images/shop_mid.jpg" width="1022" height="3250"></nowiki></pre>

    Maybe Mozillazine's Web Devel / Standards Evangelism forums may help better.
    * http://forums.mozillazine.org/viewforum.php?f=25

  • Get-Recipient or Get-Mailbox and "white spaces" after import user to TXT files.

    Hi Guys,
    In this week I had small task to move mailboxes from old SBS to new Exchange user. I have done this task with small problems. I decided of course to use Powershell to make my life simple.
    Step 1.
    Get-Recipient | Select-Object name, Database | where database -Match "Mailbox Database" |  FT - Property name | Out-File -FilePath c:\ex_users.txt
    or
    Get-Mailbox  | select name, servername | where ServerName -match Server1 | select Name | Out-File -FilePath c:\ex_users.txt -Encoding UTF8
    Unfortunately I had to spent some time to clean output files. After export files I noticed that something is wrong with text format.
    How can I avoid "white spaces" ?                                                                                                      

    We always want to do our filtering as close to the left of a command as possible. Keeping this in mind, the first thing I looked for was to see if Get-Recipient had a filter parameter and it does.
    Get-Recipient -Filter {Database -eq 'CN=Mailbox Database,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=mydomin,DC=com'} | Select-Object -ExpandProperty Name | Out-File -FilePath 'C:\outfile-filter.txt'
    This seemed somewhat cumbersome because it required a lengthy DistinguishedName (DN). By the way, to get the DN of a database, use a modified version of this code.
    Get-MailboxDatabase -Identity databasename | Select-Object DistinguishedName
    I decided we would try filtering with the Where-Object cmdlet much like you did in your example. Noticed that I bumped it to the left so our filter ran prior to our select - something you should always do.
    Get-Recipient | Where-Object {$_.Database -match 'Mailbox Database'} | Select-Object -ExpandProperty Name | Out-File -FilePath 'C:\outfile-where.txt'
    Whichever way you do this, either the first or third code sample should help you write your data to a text file without the white space issue. I haven't looked at your second example but I suspect you could use some of this post to figure that one out yourself.
    Let us know and good luck.

  • Can I insert a space after numbered items in a list without losing auto-renumbering?

    I'm a new Pages user trying to adapt Harvard template for my needs. Can I somehow make a space after each item in a numbered list without losing auto-re-numbering? If paragraph space is used, program does not seem to recognize next number as part of the same list. Again, tried to check for previous question/answer on this but I'm not clear on how to search forum before submiting a question. Thanks Danie

    Hi Danie,
    Use a line feed (shift-return) instead of a paragraph break (return).
    Regards,
    Barry

  • White Space After Form

    I have a Salesforce form embeded into two pages on my website.  Both pages have extra white space at the bottom and I can't decrease the height of the embedded HTML form in order to bring the footer up.  Both forms can be found here: http://www.beck-technology.com/form.html and http://www.beck-technology.com/student_form.html.
    Any ideas on how to decrease the white space?

    Hello,
    If you have removed the fields from the form, then you need to go to another state of the form and re-place the status message as well, to be able to shrink the form's frame. More details can be found here: http://forums.adobe.com/message/5240984#5240984
    Cheers
    Parikshit

  • White spaces after printing brochure

    I just printed a brochure that has a picture and a blue background.  When printed there are white spaces on top, botton and sides of the brochure.  Also, have a line across the top, front and back.  Same thing happened.  How can I fix this problem.  Please help.  Thanks.

    Hi vetar,
    Sounds like your printer is not an edge-to-edge printer (most office/home printers are not). They all have a margin on all sides, unless you have a photo printer which allows for "borderless" printing. Hope this helps...
    Cheers!
    -Mikey

Maybe you are looking for

  • Spinning cursor. iCal + Mail problems

    Hello! I have a problem that shows itself in two ways. Nr 1 and the first problem was: Aprox 20 seconds after i start iCal i get the "spinning wheel" and the whole computer start acting slow. I can't even go to other programs or check activity. I hav

  • Multiple iCloud accounts but can't change descriptions

    I have two iCloud accounts, and when I look at my Address Book and iCal it has both iClouds listed under their headers as only iCloud.   I can not call one Jenny's icloud and one Lou's icloud.   This becomes very confusing.  The wierd thing is my ipa

  • Unable to see the deployed application in BPM Workspace

    Hi Every body, We have developed the Project using Jdeveloper and it has deployed successfully. After that I login in Workspace with assigned user, I could't find the deployed application. In Enterprise Manager I checked it shows it has deployed and

  • IPod Touch 5th Gen stuffing up!

    Is anyone elses 5th Gen iPod Touch stuffing up or is it just mine? ):

  • How to sincronize Outlook 11 for mac calendar with iPhone calendar ?

    I am trying to sincronize my calendar in Outlook 11 for Mac with my iPhone 4. I used to sincronize without problem before I upgraded OS X to 10.9.1 Any suggestion ?