[JS] CS6-> how to insert character at the first location of text style range

Hello

I have a string of text that has a block of text, anchored in the first character position of a range of text Style.

The I normally updated text is to insert text around the ankles and that works, but I can't seem to make it work if the anchor is located at the first character.

Example, where [a] represents the location of the anchored object (the special character):

[a] my text

new text:

Under the pretext of [a] my updated text

If this is not possible, then it is possible to move the anchor point?

Any ideas? Thank you

Hello

Because you selected the frame, you can try to feed the fist PointInsertion content:

App.Selection [0] .insertionPoints [0] = .silence 'before the anchor. "

HTH,

Loïc

Tags: InDesign

Similar Questions

  • How to insert data into the table of plain text stored as a CLOB in another table

    Hi people,

    Maybe it's an easy question for someone who is more frequently used files and CLOB.

    I have a table that stores text files in the CLOB column. Files text includes some basic data that I want to load in the other - a text line = a new insert for me. Is there a "trick" how to do it effectively?

    Here is my model:

    Table OS_IMPORT_DOCS, stores the complete files as CLOB
    SQL> desc OS_IMPORT_DOCS
    Name          Type           Nullable Default Comments 
    ------------- -------------- -------- ------- -------- 
    OBJECT_ID     NUMBER                                   
    DATUM_ZMENY   DATE                    sysdate          
    FILE_PATH     VARCHAR2(4000) Y                         
    FILE_NAME     VARCHAR2(4000) Y                         
    FILE_SIZE     NUMBER         Y                         
    LAST_MODIFIED DATE           Y                         
    DOCUMENT      CLOB           Y                         
    STATUS        VARCHAR2(15)   Y        'NEW'  
    Sample data from OS_IMPORT_DOCS
    SQL> select *
      2    from os_import_docs d
      3  order by d.last_modified desc
      4  ;
     
     OBJECT_ID DATUM_ZMENY FILE_PATH                      FILE_NAME       FILE_SIZE  LAST_MODIFIED DOCUMENT    STATUS
    ---------- ----------- ------------------------------ --------------- ---------- ------------- ----------- ---------------
       1815043 13.8.2012 1 d:\data\C120813.DAT            C120813.DAT          16800 13.8.2012 16: <<CLOB>>    NEW
       1815042 13.8.2012 1 d:\data\C120812.DAT            C120812.DAT           3600 12.8.2012 22: <<CLOB>>    NEW
       1815041 13.8.2012 1 d:\data\C120811.DAT            C120811.DAT           1800 11.8.2012 13: <<CLOB>>    NEW
    Example of file CLOB - stored text data (select d.document from os_import_docs d where d.object_id = 1815042 ;)
    061053120820120000AGT000002Osoby                   0000000042301000000017210632
    062322120820120000AGT000002Osoby                   0000000012301000000017197566
    063526120820120001AGT000002Osoby                   0000000012301000000017197566
    064234120820120001AGT000002Osoby                   0000000103301000000162218777
    Above the example text includes "columns" in plain text:
    timestamp - 1-14, SSMIHH24DDMMYYYY position format
    flag - post 15-18
    company code - position 19-27
    etc...

    How can I query data stored within the OS_IMPORT_DOCS. The DOCUMENT column, divide it into columns and insert into another table?
    I have to read this method of 'online' file?


    Thank you very much
    Tomas

    For the first three columns:

    SQL> create type TRecord is object (
      2    ts           timestamp
      3  , flag         varchar2(4)
      4  , company_code varchar2(9)
      5  );
      6  /
    
    Type created
    
    SQL>
    SQL> create type TRecordTable is table of TRecord;
      2  /
    
    Type created
    
    SQL>
    SQL> create or replace function parse_clob (p_doc in clob)
      2  return TRecordTable pipelined
      3  is
      4    lf      number;
      5    eol     varchar2(2) := chr(10);
      6    eollen  number := length(eol);
      7    line    varchar2(32767);
      8    offs    number := 1;
      9  begin
     10    loop
     11      lf := dbms_lob.instr(p_doc, eol, offs);
     12      if lf != 0 then
     13        line := dbms_lob.substr(p_doc, lf - offs + 1 - eollen, offs);
     14        offs := lf + eollen;
     15      else
     16        line := dbms_lob.substr(p_doc, dbms_lob.getlength(p_doc) - offs + 1, offs);
     17      end if;
     18      pipe row (
     19        TRecord(
     20          to_timestamp(substr(line, 1, 14), 'HH24MISSDDMMYYYY')
     21        , substr(line, 15, 4)
     22        , substr(line, 19, 9)
     23        )
     24      );
     25      exit when lf = 0;
     26    end loop;
     27  end;
     28  /
    
    Function created
    
    SQL>
    SQL> select t.*
      2  from os_import_docs d
      3     , table(parse_clob(d.document)) t
      4  where d.object_id = 1815042;
    
    TS                                     FLAG COMPANY_CODE
    -------------------------------------- ---- ------------
    12/08/12 06:10:53,000000               0000 AGT000002
    12/08/12 06:23:22,000000               0000 AGT000002
    12/08/12 06:35:26,000000               0001 AGT000002
    12/08/12 06:42:34,000000               0001 AGT000002
     
    
  • How to insert bullets in the middle of a paragraph style?

    For my business, I create auto-generated CVs. Due to the limitations of the program used to automatically generate the CV, I can only use a paragraph style nested throughout the entire document. That's what I would like to a paragraph style to look like:

    COMMERCIAL:

    Clinic OVO, Montreal (Quebec)

    • Renovation of the clinic, 2008

    Role: Project Manager

    Merck, Kirkland (Quebec)

    • Building 5, 7 & 8 - existing office renovation & expansion, 20 04

    • Building 18 - new building project, 2001

    Role: Project Manager

    I know how to insert a hyphen at the beginning of a paragraph style, but how indicate I want chips to start on the 3rd line of the paragraph and stop 2-the last line of the paragraph?

    You will need to enter manually. Styles cannot add text, only format.

    Automated bullets are only accessible to the general public for the start of a paragraph and cannot apply to the middle. You can use find/replace to add, possibly, but it doesn't look like me you have a model that is sufficiently well defined to do any sort of work of automation.

  • How do to "BOLD" in the first line of text on a number of sections of text at a time

    CS5 using (but we have CS5

    .5 available) we will create a business directory. Each page has columns of type

    business listings with the company name on top, under this address under this phone, etc.  Each ad is separated

    by a single line. There are thousands of ads, and we need to "BOLD" in the top line of each. How can do us

    without making them individually?

    Each line a paragraph, or each list a paragraph with soft returns (forced line breaks)?

    It's very simple and basic in both cases an operation. It is especially easy if each ad has the same number of lines, so we will focus first with this case.

    Each line should be a separate paragraph. If you have 4 lines, as your example, you might want to mention their name, street, city, and phone. You can and should, all the styles that will be similar in appearance on the same basic model and change only the atrributes that are different, so, for example, if all lines use the same font, many use the same size and weight and only the top line is different and only by being "BOLD" and or larger size start by defining the street, then city and phone based Street and you don't need to define something more than the next Style, I'll get to in a second.

    For topics, set name based as well on the street, but change the font characters. Now all the features of the basic fonts can be changed in one place, the definition of the style Stree.

    Since you have the same number of lines in each list, you can set up a loop "next style". For name, style next street is, the street is the city, for the city it is the phone and is name for the phone. You will also need to toe after the add space in the name, or space on the phone to book spaces registration and you probably also consider to assign everything except phone keep with the next line to prevent a list from breaking across a page or column break. If currently you have blank lines as separators (empty paragraphs), get rid of them. There are change queries find already registered in ID that will do that.

    Once the text is in place and the styles are defined, you can select all, then right click on the style name in the paragraph Styles Panel and choose apply following Style and name. Reformatted your entire list. IT IS CRITICAL in this method that the structure of each list is identical, and if there are no empty lines between the lists.

    If each line is a paragraph, but there is line different counts, you will probably reach with just two styles, one for the headings oand one for everything else, but the beat of following style will not work. If there is something unique that appears in all the headings you can use find/replace to make search and reformat in shape, but I suspect that this will not be the case on in the real world, there will be a manual work involved.

    Where a lisitn is a single paragraph, line break forced (which is better suited to the case of an uneven lines by registration number) you can define a character style nested to be applied by means of a line break forced to make the first line "BOLD", red or any other thing you want.

    At this point, you are probbly, noting that a bit before planningn is a good idea when you do a directory so that your ads have some sort of coherent structure that allows for automation. I have no idea whre that your text is coming from or how it is done in the code. If it can be established as a .csv or a tab-delimited text file, you can use data merge to fill a file based on a model of merge (i.e., how to build directories for my clients who need). You can set styles in the model to each field or paragraph that contains several fields, and merge data will remove empty lines if all row fields are null and there is no punctuation or whitespace on the line.

    A multiple records per page fusion will give you individual blocks of text for each record, and you can, if you wish, thread them using the script text point of Rorohiko.com.

  • Dreamweaver CS6 how can I automatically indent the code? I've already put the presets and the codeview options, but it does not work.

    Dreamweaver CS6 how can I automatically indent the code? I've already put the presets and the codeview options, but it does not work. Thanks for advice

    Commands > apply Source format.

    I use it so often, I created a shortcut to it.

    Nancy O.

  • How to insert images in the content pane HTMLEditor?

    How to insert images in the content pane HTMLEditor? or a hyperlink?

    > know the position of the caret

    Well, there is no public API on the HtmlEditor to know that.

    You could create an tweak asks to add such an api.

    In the meantime, I believe that the HtmlEditor is implemented as a contentEditable has WebView below, so I think it's possible to hack together a solution if you want to.

    To do this:

    1. create a program that uses the HtmlEditor.

    2. run the program and use ScenicView to work on the css to display embedded Web search path.

    3. Once your HtmlEditor appears on a scene, use a node search to dig up a reference to the Web view.

    4. Once you have a reference to the Web mode, use executeScript to get the position of the caret by using JavaScript.

    5. Once you know where the caret, use a mechanism similar to my example program above to allow you to insert an image to the location of the caret (get the html text, put the position appropriate, up-to-date then set it again).

    Of course, you don't need to use a HtmlEditor control to do this, you can also just use a plain WebView with contentEditable flag put on it or any number of 3rd party JavaScript html editors have image insert functions.

  • How a variable may display the first character that is on the page?

    I'm creating a phone book and each page to see the alphabet the first listing on the page on the top - only a single character.

    Can you tell me how to proceed?

    The thing, of course, is how to apply the character style.

    You'll want to have she asked the first character of EACH list so that headers update when you change and if you do not need to go through page after page by applying the style. You can do this with a nested Style applied through 1 character as the first litter of style in your paragraph style definition (and this character style has no need of any other than a name defiintion of work for this), or, if you already have some nested styles, you can use GREP as well as nested styles style. You would use ^. as the string to match. This means that the first character of a paragraph.

    The same work of techniques for a whole word wil. For nested style, change to 1 character through 1 word for GREP change to ^ [\u\l]+ which is any combination of upper and lowercase letters the latter at the beginning of a paragraph, but stop matching when it hits a number, punctuation or spaces.] If you have numbers in the lists to be used, you can add \d to the class in the above GREP.

  • How to insert image in the region

    Hello!

    How to Insert Image in the region, as I upload image with the name "bar_color.jpg" in my workspace. And in the attributes of the region, I found
    1-static id
    2-region attributes
    View 3-region selector
    image 4-region
    The 5-image tag attributes
    Attributes of cells 6-region HTML table

    What to enter in these attributes.
    I entered bar_color.jpg in the column region's image, but the image does not appear

    Any help!

    Hello

    You can not simply use an img tag in the Source of the region ? :

    
    

    Otherwise, you can view the type of the Image to displayitem, if you want to display the image directly from the BLOB.

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • Add the tab character before the content of particular paragraph style

    I have to add the tab character before the content of particular paragraph style

    app.findTextPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyles.item ("IDX2");

    list = app.activeDocument.findText ();

    // 2. For each found the point...

    for (i = 0; i < list.length; i ++)

    {

    App.Select (list [i])

    App.Selection[0].insertionPoints[0].contents="\t".

    }

    But the code above only works in the first instance. But I must add the tab character all the content of the paragraph applied

    How to do this

    Hello

    Another way without GREP...

    var doc = app.activeDocument;
    var myStories=doc.stories;
    var J= myStories.length;
    
    while( J-- ){
        var mStorie = myStories[J];
        var K= mStorie.paragraphs.length
        while( K-- ){
            if  (mStorie.paragraphs[K].appliedParagraphStyle.name == "toto") {
                mStorie.paragraphs[K].contents= "\t" + mStorie.paragraphs[K].contents;
            }
         }
    }
    
  • I just bought an iphone 6 more, how long should I charge the first time?

    IPHONE 6 MORE

    64 GB

    I just bought an iphone 6 more. How long can I collect the first time thank you!

    You can load for however long you want or have time for. Lithium-ion batteries must be completely loaded or empty completely before using it.

    See this article for more information support:

    http://www.Apple.com/batteries/maximizing-performance/

  • Grep to add the tab character after the first character?

    Hello

    GREP assistants are able to help with a question?

    I am trying to add a tab character after the first character in line in a paragraph style. So, for example, I would like to a tab after the I, D, O and N in the following poem...

    Can Wincy spider climbed up the spout
    Down came the rain and swept away the spider
    Is out the Sun and dried up all the rain
    Now can Wincy spider went up the spout again


    Thank you!

    To find

    ^ \w

    Implement

    $0\t

  • How to go back to the first image of a directory

    Hello!

    I tried the HOME button, but nothing happened.

    How can I go to the first or the last image without pressing on for many minutes right or left arrow?

    Best regards

    'Ctrl-Home to go to the first image' or Ctrl-End works, if you are in the library Mode AND have enabled grid display. But it also to change only the display of grid, not the big picture on the background.

  • InDesign automatically formatting the first line of text in a textbox?

    Hello

    My question looks very easy, but I can't find an answer anywhere.

    I like automatically formats the first line of text in a text box with the style of good character.

    I tried already different ways like GREP or styles nested.

    But I never had the right solution.

    I hope you can help me!

    See you soon,.

    Raphael Tebarts

    Well, it's not entirely "automagical", maybe someone knows better as well.

    1. you create nested Style special Para with the line Style.

    2. with grep \A[^\r]+ find all paragraphs in your text boxes and apply your new paragraph Style.

    For more information, take a look here:

    http://GraphicDesign.StackExchange.com/questions/37272/grep-apply-character-style-until-ca distribution-back

  • How to insert data in the XML file?

    Hi guys,.

    How to insert information into an XML file. I tell you, I have a CFM file with some questions to the user

    When users submit this form within the form information is send in an XML file.

    How can insert this information in the XML file?

    When I don't have a DB?

    Thank you

    Kind regards

    Fabiano Magno Pechibella

    You must

    1. Read in the XML file
    2. Analyze the document in an XML (just one big struct) object
    3. Insert your XML code of the object where you need
    4. rewrite the XML file with your data now included

    You can Google 'ColdFusion working with XML' and find hundreds of items to help you. Here's a beginning tutorial to help you get started:

    Intermediate ColdFusion Tutorials - working with XML

Maybe you are looking for

  • Load the new XP Pro SP2 OS on Portege R200

    I have a R200, bought in Russia (where I work). I want to install an English version of XP Pro SP2. I intend to reformat and install from scratch. Then load all the utilities of Tosh from a CD, I created. Loading the XP CD and restart then the instal

  • 23 b244 how to remove the rear to increase RAM

    I want to change the RAM, but I can't remove the back cover of my all in a single PC23-b244. What's the trick? Thank you Pokey13m

  • Calendar for the acquisition of data on the USB-6212

    I am putting together a sound teaching laboratory.  The basic idea is to send a pulse signal that powers a speaker, and then the acoustic signal travels down a waveguide where it is measured with a microphone and sent to a data acquisition.  One of t

  • Explorer Windows works nicht mehr

    «Beim Zugriff auf nach short time die message green listings: Windows Explorer works nicht mehr» ER wird devising neu gestartet, aber nach few Klicks kommt die same message again. Exported wird er wieder neu gestartet.

  • How to Flash the text Message text in CVI

    Hi, anyone know how to Flash the text in a text control in CVI. Thanks for any help