Help with automated line breaks

I import a file large tagged text created using XML and .xsl style sheets in CS4. The file is data directory of company that are transmitted as a paragraph in columns. We usually use Ventura to create this document and Ventura could process phone, fax, e-mail, and URL in one word and it breaks not between the lines. InDesign is to break these fields on new lines automatically as it strikes characters '-', ' @ 'and'. '.

Is it possible in InDesign or my stylesheet .xsl to allow only line breaks on spaces and not others?

For example, I get:

ABC Company

1234 main St, downtown, É.-u.

01234, 555-555-5555, fax: 111.

111-1111, info@abccompany.

com, www.abccompany.com

I want to:

ABC Company

1234 main St, downtown, USA

01234, 555-555-5555, fax:

111- 111-1111,

info@abccompany. com,

www.ABCCOMPANY.com

I don't want to automatically add a line break before each element as the length would differ for each list and take too much space with forced line break.

Thank you very much for your help!

Ah. Try this GREP style, once again with No Break:

[^ ]+

This allows to keep whatever it is separated by spaces only together.

Tags: InDesign

Similar Questions

  • Help with one-liner & Get - VM vmnic

    Hello

    I need help with this single line. I want to get everything as vnmic for vmnic0 & line type. Everything underneath works but how to retrieve vmnic0 type also?

    Get - vm | Select Name, Powerstate, NumCpu MemoryMB, @{N = "OSFullname"; E={$_. Guest.OsFullName}}

    Thank you

    If you do

    Get - VM TEST01 | Get-NIC

    has an entry called "NIC 1?

  • Help with a simple break-code function

    For a week I tried to understand a simple break-code function fror AS 3.0. I need something that makes a break as a code of a set amount of time. People have tried to help me on this forum, but I have not always been able to make the code work.

    Here's what I have in this moment of pause-code (does not work):

    var intID;
    intID = setInterval (delay, 3000); This tells flash to wait 3 seconds
    delay() {} function
    clearInterval (intID);
    _root.gotoAndPlay (1); or do something else...
    }

    The person who provided me with this code did not include the first line 'var intID', but as a new user of flash, I wasn't sure how else to declare intID. Could someone with some flash experience to guide me through the steps of creating a pause-code function or add to what I have already provided. When I use the code above in my flash document, the pause feature does not work. Essentially, he jumps on the setInterval and clearInterval functions only and cheek element root in delay(). I need code for AS 3.0 and I'm getting more and more desperate for an answer.

    I hope it's understandable and I thank you for taking a peek
    Sam

    This isn't code as3.

    Use the timer class to delay the execution of code in a function.

  • Help with the line chart

    I created a line chart in Illustrator CS3.  Everything is great, except that I need to change the colors of the lines.  There are two lines total.  I can't select just one line to change the color.  When I use the white arrow selection tool he will choose only a point-by-point and not the whole line.

    If I use the black arrow selection tool then selects all of the chart.

    Thanks a lot for any help on this!

    It's fine even if you have a selected point you can change the color of the line, make sure you change the color of the outline, not the color of the file.

    If you want to be treated and have all selected Bézier points (or select all lines in a group), hold the option key and click with the hollow tool to select all Bézier points. Option click again to select multiple levels within the group. The result will be the same whether in the postscript file produced Illustrator.

  • Help with packaging line cmd...

    So I'm working on the use of the command line for the packaging of my application (for when my FlashBuilder trial runs out!) and I fell at the first hurdle. When I run blackberry-airpackager I get this error message.

    I feel that it's probably something incredibly obvious and I had a quick glance around forums but I do not see a solution, any help would be greatly appreciated. Thank you!

    Have the version of Java Runtime Environment 1.6 (AKA "JRE") is called in the system requirements:

    http://docs.BlackBerry.com/en/developers/deliverables/25068/System_requirements_1347126_11.jsp

    Try to type "java-version" at the command prompt to see if you have it installed.

    You should get a message will cost about java version and java execution environment has a number of 1.6 in it.

    Also type "echo JAVA_HOME %" on your command line to see if your environment variable for the system to find your java installation is set.

  • Help with white lines around motif tiles in distorted envelope

    I am trying to create a label for a conical shape using a JPG image to a pattern repeated seamless: I create a pattern from a JPG file and apply it to a rectangle the size you want.  Everything looks great at this point, no white lines bordering each tile model.  Can I use envelope tool ' to a string.  Subsequently, white lines show around each tile on screen, as well as any print or export.  How can I stop the white lines appear in my work?Label Colorful w Hearts.jpg

    have you tried to rasterize after that you used to fill the shape of your property?

    If it is as you say, NOT to show the lines until you warp, you should be able to rasterize the entire block you filled with several "mosaics" of the model > then make the chain. I would have thought it was impossible cause there still wrong?

    If the final result is just to make this single 'work' then you always can tile it upward into photoshop and use the new image of 'model' in .ai and then make the chain?

    (essentially identical to rasterize in .ai, but you can at least work around any strangeness that is perhaps causing your current problem.)

  • Please help with mesh lines!

    Hello

    I'm fighting with lines of mesh, I'm trying to make the cartoon bat wing, and a few lines of mesh is not all handles, but still do not follow a line, that I expect. I only learned the tool net for a day, but havn't find an answer to this at the moment :/

    This is where the question is;

    help.png

    and here's the global bat to give you an idea where I'm trying to get the shading;

    help2.png

    The bat was designed by my daughter 9 years as a line drawing, so I just try to bring it to life with shading! My first attempt at something like this if you laugh too much!

    Thank you

    Sally

    Try and use the anchor point to delete, and then move along the line until a point is indicated. Then click on. You can also try the mesh plugin hellion. It has a function to convert these points into editable points.

  • Help with the line on the image final after using the magnetic lasso + layers

    I worked on an image that has some distortion of the lens in the.  I need to change the background and the subject separately because the colors are similar and there is simply too much work to do to try and spot heal the whole thing.  I cut out the subject with the lasso, magnetic, and created 2 separate the layers, a topic, a single background.  I then used the layers: adjustment layer: hue / saturation to correct the distortion.  When I did, I flattened the image.  Now I have a gray line on my final image where the lasso tool had cut the image apart.  I have no idea why it's there or how to get rid of.  It is very thin and probably not noticeable on smaller images, but I am determined to blow this up BIG picture where every mistake will be visible.  Any suggestions on how to avoid this line in the first place?  I don't think that I can remove it without going by one pixel.  Thank you!

    A better way to make your adjustments is to simply use the same mask and avoid creating separate layers:

    Here's the original:

    1. Select the "subject."
    2. Add a Hue/Saturation layer, which will be automatically hidden from the subject.
    3. Adjust the H/S in function.
    4. Duplicate this layer H/S.
    5. Select the mask of the H/S duplicate layer and press Ctrl + I, which will reverse the colors of mask (which means that the area of "background" will be affected).
    6. Adjust this new H/W layer in function.
    7. Your layers will look like this:

    The final image:

    No no cutting, no copy, etc. - the mask and its reversal will give a perfect edge.

    Ken

  • Help with random lines and its

    What I'm trying to make, is that the lines appear in various random places but they keep appearing in the same place without worrying.  Someone at - it a way to solve this problem?  As is - this does anyone have an idea on how to put a timer so after two minutes, all the lines disappear?  Thank you very much for the help.

    import flash.events.ActivityEvent;
    import flash.events.StatusEvent;
    import flash.media.Microphone;
    the line below code
    var container1:Sprite = new Sprite();
    var container2:Sprite = new Sprite();
    var container3:Sprite = new Sprite();
    var container4:Sprite = new Sprite();
    var container5:Sprite = new Sprite();
    random coordinates for container1
    var corcon1x:Number = Math.round (Math.random () * 600);
    var corcon1y:Number = Math.round (Math.random () * 600);
    var corcon2x:Number = Math.round (Math.random () * 600);
    var corcon2y:Number = Math.round (Math.random () * 600);
    random coordinates for container2
    var corcon3x:Number = Math.round (Math.random () * 600);
    var corcon3y:Number = Math.round (Math.random () * 600);
    var corcon4x:Number = Math.round (Math.random () * 600);
    var corcon4y:Number = Math.round (Math.random () * 600);
    random coordinates for 3
    var corcon5x:Number = Math.round (Math.random () * 600);
    var corcon5y:Number = Math.round (Math.random () * 600);
    var corcon6x:Number = Math.round (Math.random () * 600);
    var corcon6y:Number = Math.round (Math.random () * 600);
    random coordinates for container4
    var corcon7x:Number = Math.round (Math.random () * 600);
    var corcon7y:Number = Math.round (Math.random () * 600);
    var corcon8x:Number = Math.round (Math.random () * 600);
    var corcon8y:Number = Math.round (Math.random () * 600);
    random coordinates for container5
    var corcon9x:Number = Math.round (Math.random () * 600);
    var corcon9y:Number = Math.round (Math.random () * 600);
    var corcon10x:Number = Math.round (Math.random () * 600);
    var corcon10y:Number = Math.round (Math.random () * 600);
    micro code follows below
    var deviceArray:Array = Microphone.names;
    trace ("input devices, sound available :");
    for (var i: int = 0; i < deviceArray.length; i ++)
    {
    trace ("" + deviceArray [i]);
    }
    var mic:Microphone = Microphone.getMicrophone ();
    Security.showSettings (SecurityPanel.MICROPHONE); We added this line because he did not accept his otherwise
    MIC.gain = 60;
    MIC.rate = 11;
    mic.setUseEchoSuppression (true);
    mic.setLoopBack (true);
    mic.setSilenceLevel (5, 1000);

    mic.soundTransform = new SoundTransform (0, 0);
    mic.addEventListener (ActivityEvent.ACTIVITY, this.onMicActivity);
    mic.addEventListener (StatusEvent.STATUS, this.onMicStatus);

    var micDetails:String = "audio input device name:"+ mic.name + "\n"; '.
    micDetails += "Gain:"+ mic.gain + "\n"; '.
    micDetails += "rate:"+ mic.rate + "kHz" + "\n"; '.
    micDetails += ' Muted: "+ mic.muted +"\n"; '.
    micDetails += "Silence level:"+ mic.silenceLevel + "\n"; '.
    micDetails += "Silence timeout:"+ mic.silenceTimeout + "\n"; '.
    micDetails += "echo delete:"+ mic.useEchoSuppression + "\n"; '.
    trace (micDetails);

    function onMicActivity(event:ActivityEvent):void
    {
    }
    function onMicStatus(event:StatusEvent):void
    {
    }

    stage.addEventListener (Event.ENTER_FRAME, stage_EnterFrame);
    function stage_EnterFrame(e:Event)
    {

    If (mic.activityLevel < 20) {}
    test_text. Text = "20";
    addChild (container5);
    container5. Graphics.LineStyle(5,0x0000FF);
    container5. Graphics.MoveTo (corcon9x, corcon9y);
    container5. Graphics.LineTo (corcon10x, corcon10y);
    }
    ElseIf (mic.activityLevel > 20 & & mic.activityLevel < 40) {}
    test_text. Text = "40";
    addChild (container4);
    container4. Graphics.LineStyle(10,0x6600CC);
    container4. Graphics.MoveTo (corcon7x, corcon7y);
    container4. Graphics.LineTo (corcon8x, corcon8y);
    }
    ElseIf (mic.activityLevel > 40 & & mic.activityLevel < 60) {}
    test_text. Text = "60";
    addChild (container3);
    container3. Graphics.LineStyle (15, 0 x 009900);
    container3. Graphics.MoveTo (corcon5x, corcon5y);
    container3. Graphics.LineTo (corcon6x, corcon6y);
    }
    ElseIf (mic.activityLevel > 60 & & mic.activityLevel < 80) {}
    test_text. Text = "80";
    addChild (container2);
    container2. Graphics.LineStyle(20,0xffff00);
    container2. Graphics.MoveTo (corcon3x, corcon3y);
    container2. Graphics.LineTo (corcon4x, corcon4y);
    }
    ElseIf (mic.activityLevel > 80 & & mic.activityLevel < 100) {}
    test_text. Text = "100";
    addChild (container1);
    container1. Graphics.LineStyle(30,0xFF0000);
    container1. Graphics.MoveTo (corcon1x, corcon1y);
    container1. Graphics.LineTo (corcon2x, corcon2y);
    }
    trace (MIC.activityLevel);
    }

    import flash.events.ActivityEvent;
    import flash.events.StatusEvent;
    import flash.media.Microphone;
    the line below code

    var t:Timer = new Timer (60000,1);

    t.addEventListener (TimerEvent.TIMER, f);

    function f(e:Event):void {}

    stage.removeEventListener(Event.ENTER_FRAME, stage_EnterFrame);
    

    }

    var container1:Sprite = new Sprite();
    addChild (container1);
    micro code follows below
    var deviceArray:Array = Microphone.names;
    trace ("input devices, sound available :");
    for (var i: int = 0; i< devicearray.length;="">
    {
    trace ("" + deviceArray [i]);
    }
    var mic:Microphone = Microphone.getMicrophone ();
    Security.showSettings (SecurityPanel.MICROPHONE); We added this line because he did not accept his otherwise
    MIC.gain = 60;
    MIC.rate = 11;
    mic.setUseEchoSuppression (true);
    mic.setLoopBack (true);
    mic.setSilenceLevel (5, 1000);

    mic.soundTransform = new SoundTransform (0, 0);
    mic.addEventListener (ActivityEvent.ACTIVITY, this.onMicActivity);
    mic.addEventListener (StatusEvent.STATUS, this.onMicStatus);
        
    var micDetails:String = "audio input device name:"+ mic.name + "\n"; '.
    micDetails += "Gain:"+ mic.gain + "\n"; '.
    micDetails += "rate:"+ mic.rate + "kHz" + "\n"; '.
    micDetails += ' Muted: "+ mic.muted +"\n"; '.
    micDetails += "Silence level:"+ mic.silenceLevel + "\n"; '.
    micDetails += "Silence timeout:"+ mic.silenceTimeout + "\n"; '.
    micDetails += "echo delete:"+ mic.useEchoSuppression + "\n"; '.
    trace (micDetails);

    function onMicActivity(event:ActivityEvent):void
    {
    }
    function onMicStatus(event:StatusEvent):void
    {
    }

    stage.addEventListener (Event.ENTER_FRAME, stage_EnterFrame);
    function stage_EnterFrame(e:Event)
    {

    If (mic.activityLevel<>
    test_text. Text = "20";

    container1. Graphics.LineStyle(5,0x0000FF);

    }
    ElseIf (mic.activityLevel > 20 & mic.activityLevel)<>
    test_text. Text = "40";

    container1. Graphics.LineStyle(10,0x6600CC);

    }
    ElseIf (mic.activityLevel > 40 & mic.activityLevel)<>
    test_text. Text = "60";

    container1. Graphics.LineStyle (15, 0 x 009900);
    }
    ElseIf (mic.activityLevel > 60 & mic.activityLevel)<>
    test_text. Text = "80";

    container1. Graphics.LineStyle(20,0xffff00);
    }
    ElseIf (mic.activityLevel > 80 & mic.activityLevel)<>
    test_text. Text = "100";

    container1. Graphics.LineStyle(30,0xFF0000);
    }

         container1.graphics.moveTo(Math.round(Math.random()*600),Math.round(Math.random()*600));     container1.graphics.lineTo(Math.round(Math.random()*600),Math.round(Math.random()*600));
    

    trace (MIC.activityLevel);
    }

  • GREP: How to replace a paragraph with a manual line break break?

    Hello.

    I want to replace a few paragraph breaks (Enter) with manual line breaks (SHIFT + ENTER).

    How do I do that?

    Any help would be appreciated.

    GREP codes for all functions and special characters can be found in the help: help InDesign | Find/replace

    In this case, you do not want to change

    \r

    TO

    \n

    Be aware that this will stick together, paragraphs with all the consequences for its paragraph styles. I rarely do this (and then only unformatted text!) that I don't know yet if it will apply the above the following paragraph paragraph style, or vice versa.

  • regexp_replace and line break characters

    I'm using regexp_replace to an insert in a string with the following format: "A", "B", "C", "D"... I'm inserting a DLJP prefix for each element so the end result would be "DLJPA", "DLJPB", "DLJPC" etc. The regular expression, I've provided works fine however it's strip between the chain line break characters.

    Select regexp_replace ('"A", "B", "|") Chr (13) | Chr (10) | ""C","D", '(^|,) \s*\"', '\1"DLJP') of the double".

    Result should be (with intact line break):
    "DLJPA", "DLJPB".
    "DLJPC", "DLJPD".

    but instead the result is:
    'DLJPA', 'DLJPB', 'DLJPC', 'DLJPD '.

    I want to KEEP the original line breaks. I don't know why he is stripping on the CRLF because I'm not including the CRLF in the regular expression pattern. By documentation the ^ does not, unless I specify'm ' as the match parameter. In any case, it deletes line independently, breaks even if I omit corresponding ^.
    select regexp_replace('"A", "B",' || chr(13) || chr(10) || '"C", "D"','"([^"]+)"','"DLJP\1"') from dual
    /
    
    REGEXP_REPLACE('"A","B",'||CHR(13)|
    -----------------------------------
    "DLJPA", "DLJPB",
    "DLJPC", "DLJPD"
    
    SQL>
    {code}
    
    SY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    
  • Help with string.split() for line breaks and spaces

    What I'm trying to do is to take a series of numbers and convert it to a table, while cutting the numbers, aren't. Here's the format:

    1.0000000E + 000 + 000 1.3668423e

    1.0000000E + 000 + 000 1.3668423e

    1.0000000E + 000 + 000 1.3668423e

    ...

    So it is basically: space, space, digits, space, space, numbers, line break

    Right now I am using the following code (myString is a string, and dataSet1 is an array):

    var reg: RegExp = new RegExp ("\n");

    myString = textLoader.data;
    myString.split (reg) = dataSet1;

    I tried ("\n\s") and ("(\n)(\s*)") and many other combinations, but I can't seem to figure out how to make multiple conditions in a regular expression. All I need to do is to remove all the spaces and line breaks and I should be good.

    I appreciate any help, thanks.

    You can use the Array.map method to convert your strings. Something like this:

    function str2Num(element:*,_index:int,_arr:Array):Number
    {
    Return Number (item);
    }

    var arr:Array;

    ARR = myString.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s + /);

    ARR = map (str2Num, null);

    or combine them all in a single statement

    ARR = myString.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s + /) .map (str2Num, null);

  • Replace the hyphen with line break

    Hello
    In my application, I want to replace the hyphen with line break
    . I use APEX4.0
    I use the following javascript code:

    < html >
    < script type = "text/javascript" >
    function test().
    {
    var visitorName = "< br / > ';
    var myOldString = "& P2_SI.";
    var myNewString = myOldString.replace (/-/ g, visitorName);
    }
    < /script >
    < / html >

    I have no idea how the get executed and make javascript work... can anyone help?

    Suzi,

    I changed the code for page 1:
    I don't know that is what you want, but it works :)
    That's what I did

    1. deleted tags
    2 P1_RESULTS element created to keep results
    3. $x_Value ("P1_RESULTS", myNewString) occasion; to fill a new element

    You cannot set the value P1_S2I in dynamic Action (onchange) - it looks like the code calls herself and kills the browser

    Lev

    Published by: the on August 27, 2010 11:49

    Published by: the on August 27, 2010 11:53

  • HTMLEditFormat/HTMLCodeFormat with line breaks and newline

    I seeks to some user entered the information on the screen and hit my a problem of output formatting. If I use HTMLEditFormat(), I lose all the line breaks, but that Word wraps nicely. If I use HTMLCodeFormat(), I get line breaks, but the text isn't as word wrap, making some really large screens, even if I put the information in a table with specific to a specific width defined. Is there a way to get the best of both worlds? I need to be able to keep line breaks (sometimes they seized lists or have several paragraphs) but want to word wrap too so that it is easy to read without scrolling sideways. Any ideas?

    Thanks for your suggestions. Given that the information is entered by external users and displayed to the public, I use HTMLEditFormat and HTMLCodeFormat to help prevent script attacks, so don't really want to drop them altogether. However, I discover after playing with the suggestion listed here, it will work: #Replace (HTMLEditFormat (mytext), chr (10),')
    (', 'all') #.

    HTMLEditFormat gets rid of the carriage return character, but not the line supply, so it is possible to replace line breaks with
    to create the desired effect.

    Thanks for your suggestions.

  • In v31.0, I can view is more 'raw' XML files with line breaks and ' &lt; ' and ' / &gt; ' characters. Is there a setting that will give me this option?

    Until a few days ago when I opened a file XML with Firefox, I see the content of the file appears with line breaks and ' < ' and ' / > ' and elements. Like this:

    fixed image in < typeOfResource > < / typeOfResource >

     <genre authority="marcgt">picture</genre>
     <genre authority="nmc">Print, Photographic</genre>
     <originInfo>
       <dateIssued encoding="marc">1884</dateIssued>
       <dateIssued encoding="marc">1884</dateIssued>
       <issuance>monographic</issuance>
     </originInfo>
     <language>
    

    Now, it will display like this:

     still image picture Print, Photographic 1884 1884 monographic eng electronic
    

    No tags or line breaks. I need to see the entire XML file. How can I configure FireFox to display this for me? One of my colleagues uses v31.0 and XML views with tags and the line breaks for him.

    For example, I was looking at files sitemap.xml (search Google for inurl:sitemap.xml). For those who have not declared a style sheet, you should always see the classic "source highlight: presentation

    Example: http://www.website.com/sitemap.xml

    Are the files that don't appear as similar planned by not declaring a style sheet?

    As a temporary workaround, you can view the source to see the original. Either:

    • CTRL + u
    • Right click > view Page Source

Maybe you are looking for