How can I simply create a text frame with perfect rounded ends?

I'm recreating a new edition of a book that was originally created in Quark. It uses round-ended text frames. When using the simplest method of corner options, the ends aren't proper semicircles, even though the radius is set to half the height of the frame.
The other problem is that I can't reduce the width sufficiently to make it look balanced. I use the direct selection tool to close in the right-hand end, so that I don't distort the shape. There's no right indent for the paragraph, but as I reduce the width the text breaks into two lines, even though I've greater space after the text than the left indent. My best solution was to create the shape in Illustrator and copy and paste into InDesign, assign text content, centre thte text vertically, use 3mm left indent. I still couldn't pull the right-hand end in tight enough. So I had to resort to making a group of the lozenge shape with a normal rectangular text frame on top.
Does anyone know why these problems occur, and can Adobe improve the corner option?

One last refinement: It's convenient if the script allows you to Undo/Redo its actions -- let me add that for completeness' sake. The following is the complete script again, no further editing required.
//DESCRIPTION:Overlay round corners on a single textframe
// A Jongware Script 2-Apr-2012
app.doScript(function(textframe){
if (textframe instanceof Group && textframe.pageItems.length == 2)
roundedRect = app.selection[0].polygons[0];
textframe = app.selection[0].textFrames[0];
textframe.properties = {strokeWeight:roundedRect.strokeWeight,strokeTint:roundedRect.strokeTint,strokeColor:roundedRect.strokeColor};
roundedRect.remove();
app.selection[0].ungroup();
left = textframe.geometricBounds[1];
right = textframe.geometricBounds[3];
height = textframe.geometricBounds[2] - textframe.geometricBounds[0];
center = (textframe.geometricBounds[2] + textframe.geometricBounds[0])/2;
radius = height/2;
leftRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,left-radius,center+radius,left+radius]});
riteRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,right-radius,center+radius,right+radius]});
rectBetween = textframe.parent.rectangles.add({geometricBounds:[center-radius,left,center+radius,right]});
roundedRect = rectBetween.addPath([leftRounded,riteRounded]);
roundedRect.properties = {strokeWeight:textframe.strokeWeight,strokeTint:textframe.strokeTint,strokeColor:textframe.strokeColor};
textframe.properties = {strokeWeight:0};
app.select(textframe.parent.groups.add([roundedRect,textframe]));
}, ScriptLanguage.JAVASCRIPT, app.selection[0], UndoModes.ENTIRE_SCRIPT, "Overlay Round Corners");

Similar Messages

  • How can I sequence non-threaded text frames for localization?

    Is there any way to sequence non-threaded text frames? I want the text to appear in order in SDL (translation software).
    Thanks all. RR

    Last time I checked, the Articles tool only affected reading order in PDF. I know of no translation tools that consistently do a good job harvesting text from PDFs, and SDL's tools only accept IDML. TextStitch is useful because you can just let it auto-stitch the whole document if all frames should be read in a top-down, left-right order.
    However, StoryCollector and other SDL tools also collect frames in that order. So, using the QuickStitch function of TextStitch, you can rapidly thread all the frames in a document. Note that you will want to ungroup any group that contains a text frame before you begin - TextStitch gives you visual feedback, "blackening" frames that are going to be included in the threaded story, but it doesn't black out threaded frames in groups, so if you want to be able to see what you are doing, then you'll have to ungroup.

  • How can I make a transparent text marking with the courser in InDesign CC?

    How can I mark a Text with the Courser and see things, that are behind it (next layer…)
    Of course, it works at Version CS5.5.
    I havn't found any preference for this problem.
    Thx 4 help

    I'll think there was a missunderstanding. So i've made screenshots of the problem.
    Here in CS5.5:
    https://www.dropbox.com/s/bxwuqjh9n8a2nr7/Screenshot%202013-11-20%2009.09.54.png
    Here the same in CC:
    https://www.dropbox.com/s/8x9kfsmf1vlf7k3/Screenshot%202013-11-20%2009.09.38.png
    Sometimes I have to reconstruct old documents and have to make small modifications.

  • How to set italic to a text frame with a JS script

    Hello guys,
    I'm a java developper, and for my customer I have to generate some JS scripts for Illustrator CS3/Windows XP.
    In my use case, I need to layout several textframes. Some need to be "bolded", some others have to be underlined, and some need to be italic.
    I found how to set the bold and underline attributes, but for the italic, I can't see any option related to it. I saw the "CharacterAttributes#italics" property, but the description is a bit odd: "If true, the Japanese OpenType
    font supports italics."... it doesn't fit my needs...
    Is it possible to make a text italic with a JS script in Illustrator?

    You will have to use the proper italic form of the font. AI does not support Faux italic or bold.

  • HT3529 How can i send and receive text messages with pictures?

    The camera button on the text screen won't let me send pictures. And I also can't recieve pictures.

    http://support.apple.com/kb/ts2755

  • Each time I create a Text Frame it appears colored with black?

    Every time I create a Text Frame with the Type tool in InDesing CS5.5 in a document named "02_End.indd", (this happen only for this file) the it appears filled with black color. On the other documents this does not happen (the text frames are with no fill).
    Can anyone tell me how can I change the default color of the Text frames?
    Please help me?

    Make sure you don't have anything selected. Then look in the swatches palette. If you see the default fill is black, set it to [None].
    If not, it may be your default object style, or possibly a document corruption -- if you suspect the latter, you could try to Remove Document Corruption as per the instructions at the top of this forum.

  • How to Create a text frame?

    Hai
    i'm senthil....
    i'm just now started working with Adobe Indesign plugin's..
    Can anyone tell me how to create a text frame...
    wat r the steps for creating a text frame?
    what are the Interface pointers used for creating a text frame...
    plzz reply me who knows...
    bye.

    See SDKLayoutHelper::CreateTextFrame.
    You can also look at SnpCreateFrame::CreateTextFrame in SnippetRunner.
    Regards,
    Narayan

  • What is the best way to import a graphic? & How do I create a text frame for a figure caption?

    Hello all! I've been working from the FM book for almost 2 hrs trying to figure this out, so now I need your help. I am almost to this point:
    Problem I: Importing a graphic
    First of all, which is the best way?
    -Insert an anchor frame and then import the graphic into the frame OR
    -Just insert the graphic and get the anchor frame by default
    Here’s my importing and sizing problem:
    I hit ENTER to make a new paragraph line (side note: the book says make a new paragraph by hitting ENTER, import the graphic, and then ESC m+p to shrink wrap so that you can avoid the graphic overlapping the above text. I do exactly this (I believe), but my graphic still overlaps the above text when I shrink wrap. What the...?)
    I insert an anchored frame with position Below Current Line and alignment CENTER (I chose to the insert anchor frame, since this way I have control over its alignment, correct?)
    Anchor frame is selected when I import my image file
    In the Imported Graphic Scaling box, what do I select if my file is HUGE (3072x2304)?
    -Fit in selected rectangle (when I choose this the image imports small and fits in the anchored frame with lots of white space around it)
    -72 dpi
    -75 dpi
    -150 dpi
    -300 dpi
    -Custom dpi: 96 (I’ve tried changing this to a smaller number (20) and I get a message that says “cannot handle a bitmap of that size.”)
    I’ve had the best luck with selecting FIT IN SELECTED RECTANGLE, and then I just scale the image with my shift+click. If I choose 72 dpi or Custom, my image imports HUGE, and I just can’t manage it. I don’t have a method for resizing these images outside of FM.
    Problem II: Creating a text frame for a caption
    Once I have chosen FIT IN SELECTED RECTANGLE, I try to insert a text box underneath the image (and inside the anchor frame) to type a caption in it.
    In Create New Text Frame box, the default is Number 1 and Gap 0.25. I click SET.
    Next, I double-click inside the text frame to begin typing, but the cursor is OUTSIDE and UNDERNEATH the text frame! What the heck??? I’ve done this before and it has worked just fine. Then I had another problem where when I did get the text inside the text frame, I would select the text frame to move it, and it left the text behind! (I moved the frame but the text was separated from it and left behind.)
    THANK YOU in advance for your help. I hope I wrote this out clearly enough. I appreciate those who respond. P.S. I'm in FM 10.

    My favorite method is to use a one-cell table for graphics and captions.
    Import the graphic by reference into the table cell. Create a "Caption"
    paragraph tag and assign it to the table title. (The title can be set
    for above or below the table cell. I prefer below.) Now, whenever you
    insert this table, it will be ready for graphic and caption. Another
    advantage of this method is that graphic and caption always stay
    together at page/column breaks.
    When you create the table format above, assign it to have a -2.0 space
    above. Then, create a paragraph tag, such as "TableAnchor" and assign it
    -2.0 pt font size and -2.0 space below. (You can substitute a different
    point size, but it must be the same in all three places. The TableAnchor
    paragraph will hold the table and these settings let tables fit against
    the top margin where necessary. Otherwise, they dip down a bit.
    I wrote this from memory, so I hope I remembered all the steps!

  • Can't create a text frame

    I started a new two page, two column document and added all the text id multiple text frames in both columns on p.1. When I try to create a text frame on p.2, I only can get the cursor in the upper left corner of p.w in the margin, not in the defined area of the document.
    Can anyone please give me a suggestion as to what I'm doing wrong?
    Thanks!
    Larry

    Every document uses a master page, even if you don't choose to add new objects to it. The default master page will have a text frame or frames fitting the defined columns structure if you check off the "Master Text Frame" box in the document setup dialog.
    It doesn't really sound like this is what is happening, though, in your particular case. A master frame would need to be overridden to interfere with creating a new frame on a document page. What it does sound like, though, is that you drew a frame to hold a background image or something similar that is filling the entire page area, but didn't actually put anything into that frame before trying to add your new text frame.
    By default, clicking with the text tool in any empty frame or shape converts it to a text frame. If you understand this behavior you learn to work with it pretty quickly, or you can change the setting in your preferences if you find it annoying.

  • How can I list the head texts or texts of position of the invoices created

    hello experts
    I have a consultation.
    how can I list the head texts or texts of position of the invoices created in module sap SD?
    Up to now I can see them visualizing the document SD for transaction VF03, but I need to see a listing of invoices and don't unite in one.
    he/she would thank their collaboration.
    greetings,
    Jorge Silva

    Dear Jorge,
    You can use T-Code VF05 or VF05N to generate list of Invoices with range of selection criterias...
    The concerned tables for the same are VBRK & VBRP.
    Let us know should you require any further help..
    Hope this helps...
    Give points if useful..
    Thanks,
    Jignesh Mehta

  • How to find associated text frame with XML element?

    Hello experts, I am new to InDesign CS SDK and have a question.
    I am building an Extension to import an XML document into an InDesign template. As the content in XML can be unpredictable, in the Extension, I want to loop through all the XML elements and make sure it has associated text frames, and if it doesn't, I want to create a text frame and set the content to the text frame.
    I think I figured out how to create a new text frame in page and set the content in the frame, but I am having difficulty finding an associated text frame for an XML element.
    If anyone has a sample code finding a text frame for an XML element, I appriciate it. Or if anyone can tell me what document I need to look, it will be great too.
    Thanks,

    Here's a code snipet with null checks removed:
    UID MyClassName::GetFrameForXMLElement(IIDXMLElement* inXMLElement)
        InterfacePtr< ITextModel > textModel( Utils< IXMLUtils >()->QueryTextModel( inXMLElement ) );
        InterfacePtr< IFrameList > frameList( textModel->QueryFrameList() );
        UID aFrameUID = frameList->GetNthFrameUID( 0 );
        return aFrameUID;

  • Creating Scrollable text frames in InDesign

    I've been trying to create scrollable text frames in InDesign CS6 and, for the life of me, cannot figure out how to do so for an interactive PDF. 
    I've done so for touchscreen devices before through DPS and the scrollable frame option, but I've never tried to do it for something non-touchscreen/mobile.  I don't even know if it's possible, but I am sending this to someone who may not have touchscreen access with touchscreen scroll functionality and I wouldn't want to risk a good portion of text to go unread because of a lack-of functionality.
    So, I guess my question is:  Is there a way to create a scrollable text field for an interactive PDF that could be scrolled through using a mouse or keyboard? 
    Thanks in advance!

    No. It's DPS only.

  • How can I check my daugters text messages?

    How can I check my Daughters text messages?  Her boyfriend is not the kind of boy I want her seeing but she is young and doesn't know what she wants.

    It is very simple.
    depending on how old she is.  If she is a minor, then the phone is technically your property and under contract with you. If she is older then 18 then you could have some legal issues in trying to do this.
    Either way, you can install SMS Backup on her phone or one of the other SMS apps.  SMS Backup will save a copy of every text message to a gmail account and you can simply read them from gmail.
    I am not going to lecture on the ethical or legal part of this as I do track my son (for various reasons) with this (with 100% knowledge on his side)

  • How can I get Multi-color text it a swing componet?

    How can I get Multi-color text it a swing componet?
    I've tryed JTextPane and JEditorPane.
    If they support having text in more then one color then I don't see how.
    I want to make a color-coded Java editor in Java, but I can't color-code if I can only have one color.
    JComponent.setForeground(Color fg)
    is not what I need.
    maybe Java doesn't support it yet.
    but I hope it does.
    Please help, thanks.

    Hi,
    I've made you a little example with a coloured JEditorPane and JTextPane:
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ColorDemo extends JFrame {
         public ColorDemo() {
              super("ColorDemo");
              // coloured JEditorPane
              JEditorPane editorPane = new JEditorPane("text/html",
                   "<FONT color=red> This </FONT>"+
                   "<FONT color=blue> is </FONT>"+
                   "<FONT color=green> a </FONT>"+
                   "<B> JEditorPane </B>");
              editorPane.setPreferredSize(new Dimension(250, 150));
              // coloured JTextPane
              JTextPane textPane = new JTextPane();
              textPane.setPreferredSize(new Dimension(250, 150));
              Document doc = textPane.getDocument();
              Style def = StyleContext.getDefaultStyleContext().
                   getStyle(StyleContext.DEFAULT_STYLE);
              try {
                   StyleConstants.setForeground(def, Color.blue);
                   doc.insertString (0, "This ", def);
                   StyleConstants.setForeground(def, Color.red);
                   doc.insertString (5, "is ", def);
                   StyleConstants.setForeground(def, Color.green);
                   doc.insertString (8, "a ", def);
                   StyleConstants.setBold(def, true);
                   StyleConstants.setForeground(def, Color.black);
                   doc.insertString (10, "JTextPane", def);
              } catch (Exception e) {}
              JPanel contentPane = new JPanel();
              contentPane.add(textPane);
              contentPane.add(editorPane);
              setContentPane(contentPane);
         public static void main(String[] args) {
              JFrame frame = new ColorDemo();
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.pack();
              frame.setVisible(true);
    }Hope this helps,
    Kurt.

  • Auto create threaded text frames

    Pardon me if this solution has already been covered.
    I am seeking a solution for auto creating several text frames on a single page. I have an excel/text file which contains the item numbers and prices, there are approximately 50-100 items per page. I would like to use data merge or some resource to import the file while placing each field in its own text frame for repositioning according to images. I played around with the data merge but it created 150 pages each with one text frame.
    Thanks for any ideas.

    If it can be done with InDesign, then almost without exception, it can be scripted. The exceptions are few and far between: off the top of my head, a script can't control the preference to allow attached scripts -- the preference would be pointless if it could.
    There are also things that can be done in a script that can't be done (as opposed to "would be very onerous to do") in the UI. For example, see this:
    http://indesignsecrets.com/easily-add-captions-to-graphics-frames.php
    For more info, check out the InDesign Scripting page on Adobe.com. You might also look at my blog here:
    http://jsid.blogspot.com
    Also, Pete Kahrel has an O'Reilly eBook that is a very good introduction.
    Dave

Maybe you are looking for

  • Time to upgrade to Snow Leopard?

    I am considering upgrading to Snow Leopard. Is this a good idea or should I wait another month or so? Anything I should know before I make the switch? Thanks

  • Interface to Client Tier

    Thank u Scott Orshan We use the "dispatcher" service because we wanted to supply a general interface to the Client Tier. Do you have some better suggestion? Is it nessary? or, We use a control class to tp_call the service? Scott Orshan <[email protec

  • Limitations at user level

    Hi experts, I want to know if is possible to limit the use of memory, buffers,...at user level (no at instance level) Does someone tell me how can I do it, please? Thanks in advance. Message was edited by:         Eshmarc

  • White balance temp and tint readings on hub

    Maybe I'm missing something. Aperture does not seem to show actual color temp or tint of specific photos on the adjustnment hub. Reads 0 tint and 5,000 k. Is there an option to activate the hub to display tint or temp similar to ACR? Thanks, Robert w

  • How do I edit shapes created by Adobe Shape?

    Shapes created in Adobe Shape can be modified in Illustrator or Photoshop and saved as a separate file. However, your new file will not be updated in Adobe Shape.