Line ends

How do I switch the start and end point of a line?

> Paths created with the closed shape tools run clockwise,
Unless other operations have changed their direction.
> as does a hand made path made clockwise;
Do you remember the direction in which you draw every path?
> an inner path in a Compound Path is reversed
Not necessarily. And what is the direction of the path it is reversed from?
> a reflected path is also reversed.
Again, reversed from what direction?
> Javascriptophobia and SimplePenToolClickophobia
> if you just want a more elaborate workaround
Yeah. That's what everyone needs in a bread & butter drawing program: ever more elaborate workarounds. What is more elaborate a workaround than having to code such a basic function yourself?
This is one of a dozen or so gross omissions of fundamental vector path drawing functions (joining multiple paths, cutting multiple paths, turning off the infernal autojoin behavior, bending straight segments, extending/retracting handles,...) in this absurdly archaich program.
JET

Similar Messages

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • File Problem (getting line ends with \r\n)

    I used readLine method     to read the line. It returns string.
    I want to get the lined that ends with 0D0A ( \r \n ).
    In the file in between there are many 0D. So my while loop
    returns all the lines ends with 0D. But I need only the lines ending with 0D0A.
    How can I differntiate these two types of lines
    .....0D
    ...........0D0A
    Is there any method in Java to differentiate these two lines.
    reading char by char is time consuming process and it produce some overhead.
    I think reading line by line gives the better solution
    here is the code
    import java.io.*;
    class checkAcc {
    public static void main(String as[]) {
    try {
    BufferedReader bf = new BufferedReader(new InputStreamReader(new FileInputStream("exa.dat")));
    String s = null;
    byte[] b;
    while((s = bf.readLine()) != null) {
    System.out.println("From Dat File ===> " + s);
    } catch(IOException ie) {
    System.out.println(ie);
    Can any one pls give me the idea ...

    That's the nature of readLine() my friend. The definition is as such:
    Read a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), or a carriage return followed immediately by a linefeed.
    There isn't anything wrong (performance wise) with using read() and processing it character-by-character.
    tajenkins

  • Since changing over to Mountain Lion I discover that I am no longer able to adjust spaces between lines. If I choose spacing of 1.3 after two lines single-spaced, the entire previous lines end up with 1.3 spacing. What am I missing?

    Since changing over to Mountain Lion I discover that I am no longer able to adjust spaces between lines. If I choose spacing of 1.3 after two lines single-spaced, the entire previous lines end up with 1.3 spacing. What am I missing?

    Do those previous lines have a Return/Linefeed after them, or are they just wrapped to a new line?
    What App is it you're using?

  • Using sed to translate dos line ends to unix line ends.

    Here is my first attempt at translation. I read in the sed man page how \ acts differently, but I see references to \r etc.
    I have a text file. I do not know if it has \r\n or \r as line ends.
    so I want to
    change \r\n to \n
    then change \r to \n
    Thus I end up with unix line ends.
    mac $ echo -ne  "1\r\n2\r\n" | sed "/\r\n/\n/g"
    sed: 1: "/\r\n/\n/g": invalid command code \
    mac $ 
    I left out the Mac conversion of \r to \n.
    I did a google search looking for the conversion. Lots of attempts at conversion. Lots of people eliminated the \r, that wasn't my idea. I moved to Perl after giving up on sed. Thanks everyone who read & responded to my previous Perl post.
    Robert

    Cole Tierney wrote:
    Sed on linux will honor carriage returns entered as
    . BSD sed does not appear to. I've confirmed this on Mac OS 10.3.9 and 10.4.11. On those systems you need to enter a carriage return as a literal using control-v control-m. The carriage return is then displayed as ^M. This can be confusing in forums since people will try to enter it as it is displayed (shift-^ shift-m).
    I was unfamiliar with this method of escaping. I saw references to this in my Google search. I am using the commands in an
    Applescript, so I didn't know how to enter.
    http://discussions.apple.com/edit!default.jspa?messageID=12681001
    My work around is to let bash deal with the carriage return using $'
    '. The trade off is you then have to look at a lot of single quotes. I find it easier to think of it in a couple steps. To expose the $'
    ' to bash you first split the sed with a couple single quotes at the point where you want the carriage return to appear.
    sed 's///' <- initial
    sed 's/''//' <- split
    sed 's/'$'
    ''//' <- insert
    </div>
    I didn't know about this use of $.
    If were dropping down to bash, then what is the deal with this:
    mac $ echo -ne  "1
    2
    " | sed  's/'"
    "'//' | hexdump
    0000000 310d 0a32 0d0a                         
    0000006
    I thought double quotes escaped things.
    The input for your second example has a line with more than one carriage return. My sed only deletes one carriage return per line. Another option is to anchore the match at the end:
    sed 's/'$'
    ''$//'
    I saw the linux version of this, but didn't see the trick of the $ forcing line end and the linux version didn't work for me on Tiger.
    This ends my quest for a tiger version of sed.
    (( At least for DOS, I think I'll forget the classic version of Mac OS. ))
    Thanks.
    Robert

  • Changing Default Line End Styles in FM8

    Does anyone know how to change the default line end, line width, and color styles in FM8? Every time I open a document and draw a line or an arrow I have to adjust these three things to get what I need. I end up doing this several times a day and I'm wondering if there is a way to fix this. I've been told to look in the maker.ini file, but I can't find or don't know what I'm looking for to change. Any suggestions?

    Unfortunately, that's one of the properties that can't be changed in FM. If you do this a lot, you may want to investigate using FrameScript to configure the "defaults" that you prefer.
    See http://www.framescript.com

  • $.write() and $.writeln() both write line-end character to console?

    This may seem like a small thing, but I'm finding it really annoying.
    Using the ExtendScript Toolkit in CS4 InDesign on Mac OS X 10.4 (Tiger) to write messages to the JavaScript console, I find that both $.write() and $.writeln() will write a line-end after the string passed in. This seems to be broken re. the docs (page 213 of "JavaScript Tools Guide CS4", available from the Help menu, which describes both calls and only mentions linefeeds for the latter).
    Are other people seeing this behavior? Is there a way to fix it, perhaps some property or preference on the JavaScript editor/debugger?
    Thanks for any help you can offer.
    Steve Caine

    I can certainly reproduce it easily enough. This:
    $.write("This");
    $.write(" is");
    $.write(" a");
    $.write(" test.");
    produced:
    This
    is
    a
    test.
    The only workaround (it seems to me) is to build the string in the script and then post it all at once. I confess that I hadn't even realized there was a $.write() function although it ought not to take a rocket scientist to realize that there is.
    msg= "";
    array = ["This", " is", " a", " test."]
    for (var j = 0; array.length > j; j++) {
    msg += array[j];
    $.writeln(msg);
    Dave

  • DDL export line ending convention mixed

    SQL Developer V4.0.0.12, Windows XP-32, jdk1.7.0_45 Oracle 11gR2
    I'm trying to do an export of a complete application schema DDL for initial check-in to source control (SVN)
    When checking the files we discovered a mix in line ending conventions which will wreak havoc on versioning in a multi platform environment.
    It looks like the "normal" DDL is exported with CR/LF windows convention, but the COMMENTS section in table and views are LF only. When setting SVN eol style to native it will not correctly transform line endings upon commit.
    Can this be fixed? Is there a workaround?

    SQL Developer V4.0.0.12, Windows XP-32, jdk1.7.0_45 Oracle 11gR2
    I'm trying to do an export of a complete application schema DDL for initial check-in to source control (SVN)
    When checking the files we discovered a mix in line ending conventions which will wreak havoc on versioning in a multi platform environment.
    It looks like the "normal" DDL is exported with CR/LF windows convention, but the COMMENTS section in table and views are LF only. When setting SVN eol style to native it will not correctly transform line endings upon commit.
    Can this be fixed? Is there a workaround?

  • [svn:fx-4.x] 14731: change the line ending to LF so this script will run properly on Mac and Unix .

    Revision: 14731
    Revision: 14731
    Author:   [email protected]
    Date:     2010-03-12 11:06:04 -0800 (Fri, 12 Mar 2010)
    Log Message:
    change the line ending to LF so this script will run properly on Mac and Unix.  Some testsuites were breaking because this script was not executing properly on mac
    QE notes: fix for testsuites
    Doc notes: no
    Bugs: no
    Reviewer: no
    Tests run: no
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/branches/4.x/bin/fontswf

    On reflection, it seems much easier/safer to do something like this instead...
    When running in Arch, but viewing a partition with another installation's data on it, do directory listings like this:
    ls -l | FILTER
    where FILTER is a script that pulls out the Arch-announced users and groups, converts them to numeric if necessary (according to Arch's understanding), and then stuffs back in what the other installation thinks are the symbols corresponding to those numbers. This was easy enough to do, and doesn't risk breaking anything.
    Marking as SOLVED, but I'd still welcome feedback about the different ways different distributions understand the groups I cited. It's very hard to track this info down.

  • GREP question, hard return&tab after lines ending in (, space)

    I have a problem that I have been banging my head against the wall for hours trying to figure. I have pages and pages of remote codes I need to format in a specific way. This specific way causes a problem that creates the right side of my columns to look haggard with spots of comma spaces, example:
    Abex                 5011, 5286
    Accurian            5140, 5452
    Accuscan          5005, 5014
    Admiral              5003, 5004,
           5005, 5014, 5015, 5018,
           5025, 5035, 5040, 5041,
           5055, 5165, 5308, 5455
    I hope that comes out looking like I mean it
    There is a picture if it helps. Anyhow. I need it to look like this:
    I hope this helps. The thing is I have figured this out before and I forgot to save the style. I thought I did. I didn't. Sucks. But I did make it so that on lines ending with a comma and space it would hard return and tab.
    Please please help. This has my mind numb trying to figure it out and I have pages and pages of these codes to work through.

    @ GrantH
    That is an easy fix, which I would easily do, but it doesn't resolve the issue that the lines should not end in commas.
    @Jongware
    None taken. I have done something like this before. I know I have because the second picture I included is from a manual I have done before that shows it as such. Granted... that was a while ago and I may be mistaken on the text given for input. However, I'm "pretty" sure I remember having the same issue with the commas at the end and resolving it.
    @Hakkenlid
    This pretty much works for me with the exception of a few trouble spots where the Find just seems to skip over perfectly good matches. So far, this gives me a lot more help than where I was at though.
    @Hakkenlid
    This is what we are going with. It keeps the most readability and completely resolves my comma issue. Saved the expression for later. I really appreciate your help. My Friday started off to a much better start that I was looking forward to.

  • How to make a circle and a line ending (at the centre of the circle) lock and move together?

    I'm new to Illustrator and perhaps it's not the best software of CS6 Master for doing this, but:
    I have a few (13) circles, they are connected with lines (one line from the centre of a circle to the centre of the next one, so 13 connecting lines). I need to move the circles around in order to create the appearance that suits me best, but I want the connecting ending to move together (see picture below). I need to do this often and get an immediate visual feedback. How do I do it? Am I using the wrong software altogether?
    Thanks in advance to all who will try and help out!

    Here's a way of doing it with the Appearance panel and multiple fills converted to an ellipse.
    1 You create your path with all the segmentts you require can be an open or closed path.
    2. Convert the fill only to an Ellipse. Effect>Convert to Shape>Ellipse (use the Absolute option and give it the dimension you want the circle to be) (cn cahnge this at anytime in the future as well as the color of the circles)
    3. Using the Effect>Distort and Transform>Transform move the circle fill to a position corresponding to an anchor of the path as to position the circle with the nchor as the center.
    4. In the Appearance panel Option (Alt) drag the fill with the convert to ellipse and the transform down or up to duplicate it, or se the flyout of the Appearance panel to duplicte the fill.
    (do this for each circle you need) You will only have to adjust the transformation vertical and horizontal positions, Bith effects will be duplicated when you copy the fill so you only adjust the transformeffecct that is already associated with the fill.
    Like this:

  • Exporting line end point coordinates?

    Hi,
    I'm in desperate need of a script to export the coordinates of lines, or paths, it doesn't really matter, into a text document.
    I've set my ruler up so the 0,0 is in the center of the image, because I need both 0,0 and -0,-0 to work for what I have in mind, basically using a document as a large Cartesian grid, which you can then extract coordinates of 'edges' or end points of lines from.
    A little background on why I need it, for anyone curious. I figured out a way to build new worlds/maps for a game that generates terrain based on 'boundaries', which are drawn on, in a 2d plane, but I need coordinates to map these boundaries correctly. I could do it manually, where I'd hover my mouse over every edge or end of the line point, but this would save a LOT of time.
    I'd be insanely grateful if anyone can help me out. I've tried looking for scripts or other software, but haven't been successful at all for what I really need.
    The way I have my document setup is, 1 pixel per cm, 16384x16384cm. It's quite large, so most 'graph' software won't work for it. The grid itself works fairly well, I just need a decent way to export the coordinates from it.
    Thanks in advance!
    Edit:
    Here, I made an example of a rectangle to give you guys the idea of which coordinates I'd need:
    http://i.imgur.com/VILOwrL.png

    Don't appologize, I was stuck on cm because I thought there wasn't another way, I only figured out after JJMack mentioned it, that it's possible purely by pixels.
    First time working with coordinates, I'm in total new territory.
    The above works great, except now I've stumbled across 2 new problems, sorry to make it so complicated!
    What I have now, slightly tweaked what you gave me:
    var dataFile = new File('~/desktop/exportData.txt');
    var doc = app.activeDocument;
        for(var c =0; c<doc.layers.length;c++){
           doc.activeLayer= doc.layers[c];
    var pathItem = doc.pathItems[doc.pathItems.length-1];
    var dataStream = "";
    for(var subPathIndex = 0;subPathIndex<pathItem.subPathItems.length;subPathIndex++){
        for(var pointIndex = 0;pointIndex<pathItem.subPathItems[subPathIndex].pathPoints.length;pointIndex++){
                    dataStream = dataStream+doc.activeLayer.name+'\t';
            dataStream = dataStream+pathItem.subPathItems[subPathIndex].pathPoints[pointIndex].anchor+'\t'+'\r';
            dataStream = dataStream+'\r';
    dataFile.open('w');
    dataFile.write(dataStream);
    dataFile.close();
    But this outputs this:
    Background     4222,0
    Background     2963,-3550
    Background     4330,-4210
    Background     6450.3937,-2459
    Background     6141,2387
    Background     4834,2891
    Background     3970,924
    Which made me realize, that the paths aren't bound to a layer (It's been a while since I've used paths), so it'll just use the Background layer. There is no way around that, right? Since this script only targets layers, it'll ignore path names, which brings me to another question, is it possible to use the same thing, only for saved paths? So if you had 2 paths, one named P1 and the other P2, that it would display it like:
    P1     4222,0
    P1     2963,-3550
    P1     4330,-4210
    P1     6450.3937,-2459
    P2     6141,2387
    P2     4834,2891
    P2     3970,924
    And the other thing, because I'm using a loop now, which basically repeats the \r after ever coordinate, there isn't a way to collect all coordinates and display them in a chain, basically, and then using the \r after all the coordinates for one path is exported, before it moves on to the next path, or? Basically like the post previous to this, except with paths, instead of layers.
    Thank you guys so much for helping me though, would been completely lost without it.

  • Writing in Files at the Line (END-1)

    I need to make my program write something not at the end of the program, but just before the last line. The basic idea is to have the word END at the end of the file, but when writing new things, I can either delete the things written before (which is not an option) or write at the end of the file, but then the new things I write will be below the end.
    Or, alternately, if there is a command which can tell the program to read the whole file, from top to bottom, that would be nice too.

    The best way to do that would be to retrieve all the text from the file into a String or StringBuffer object, and then append text at the places you want to append to.
    You can then take your modified String and rewrite over the existing text in the file.

  • Any way to trim line ends?

    I used the shape builder tool in CS5 to "trim" the blue lines as they overlapped the rectangle boundary.  Is there a better way to trim the lines so that the ends of the lines but up to the border rectangle?  Any other ideas how to accomplish the same thing?
    Thanks for any advice on this problem.
    Kent
    http://start2closing.com/illustrator2.png

    One way would be to use the crop button in the pathfinder palette. Select all and click on the crop button. (note: I added another dark blue rectangle in the back after cropping).

  • How to fix Parallel line ends?

    Hi,
    I did a parallel line using White Arror Select> Copy> Object> Path > offset. I got the parallel lines but the ends are not opened.  It was Mitre selected in the popup box. Here is the image and hope some one can help me. Thanks.

    Yes, I use Sketchup and LOVE the Path Offset feature. Adobe could learn a lot by looking at Sketcup.
    In your case, I think the simpliest option is creating a custom pattern brush.
    There is a lot to building a custom brush, but this will get you started.

Maybe you are looking for