Question about paragraph and character with label text

I managed to import an ASCII document marked < pstyle > tag text trigger paragraph formatting in the code. However, I don't know the codes to use for the characters of the italic styles. bold, bold italic etc. I tried < cstyle: "BOLD" > < cstyle: > for on / off, but it did not work. Is it possible to adjust the level of the character outside the ID format in docs ASCII/ANSII text so that it appears as such when it is placed in the ID? In addition, moreover, I have fonts installed on my system (Windows 10) which operate in Word etc but ID indicates is not installed. Any suggestions here? Thanks in advance.

You might want to try to do a sample text in ID and export it to text marked to look at different things...

Tags: InDesign

Similar Questions

  • CS3: need script to replace spaces with underscores in the paragraph and character style names

    Help! I am very new to scripting.

    I managed to find and tweak existing javascripts to search through all my paragraph styles to disable hyphenation and off balance the jagged lines, but I need help with this one.

    I work on Mac OS 10.4.11 using Indesign CS3.

    I need a script that will search all my paragraph and character styles in my open Active document and replace spaces by underscores.

    Can someone help me with this? It would be greatly appreciated!

    1. I don't know, but I think you can use all the regular GREP inside this function codes. Do not use the quotation marks around of the expression, use slashes! (Why? Just a curiosity of Javascript... maybe a hack that goes back to the gray mist of JS development...)

    This work should - but rather the code above, this is not tested:

    .. Replace (/ [-\ / ()-. _] + / g. '_');

    The GOLD group inbetween the brackets contain all the characters you want to replace with an underscore: the hyphen (this has to be the first character in the group, else it will be interpreted as a range of characters from each side!), space, slash (this one is 'special' inside the function replace JavaScript, so I think he needs to escape with a backslash)! in parentheses, a period (not sure if it should escape - into ordinary GREP, it's the wildcard character for any character, but maybe he loses his magic within a group of GOLD) and finally... the underscore character. Why?

    Well, this replacement string comes with a free bonus. Note the sign after the installment of GOLD +. This means that a whole sequence of these characters is replaced by a simple underscore: "it's / a - / test" will become "This_is_a_test". Adding the underscore line itself to the string of research means that it will also find the whole chain 'space space (stroke underscore)' in 'This style (_)' and, oh magic!, replace it immediately with a single underscore.

    Just FYI, the tiny "g" after the closing slash is abbreviation of 'global', i.e. at the global level, replacing in this string. replace the default values for a replacement only (why? see above...), and adding the 'g' ensures he keeps replacing until it is not find matches more.

    2 see point 1.

    3. uh, yes it's true, but you will need to check very carefully if nothing inside one of these basic models is substituted. You can apply a base style and add substitutions to make look like a subtitle, but that isn't making it a. And to the next paragraph, you can apply a base style and add substitutions to make it look like a paragraph of plain text (etc.). It's a signature of witness to bad formatting...

  • [JS InDesign CS3] Style groups, Caprice in colors! (or: how to make the styles of paragraph and character off groups style?)

    Sorry for this question (and my terrible English, incidentally), I'm a javascript noob and I know when I reached my limits.

    Well, I'm taking a set of paragraph and character style groups styles, they are placed in hundreds of InDesign documents (which cannot be regarded as a book). As much as I've tried (thanks to the invaluable help of previous messages in this forum), I was able to move a style to a group and change its position within the group, inside root-level, or between the groups. But it is not matter how I try, I don't know which move reference should I try in case I want to take each style outside the style group and place them after their original level group, folder style [Root].

    I tried:

    var doc=app.activeDocument;
    var pGroups=doc.paragraphStyleGroups;
    
    for (i=pGroups.length-1; i>=0; i--){
         var pStylesInGroup=pGroups[i].paragraphStyles;
         for (j=pStylesInGroup.length-1; j>=0; j--){
    // Here I am, trying to move a style outside the folder that contains it, and failing miserably.
              pStylesInGroup[j].move (LocationOptions.after, pGroups[i]);
         }
    }
    

    He did not, the script has sent an invalid parameter value in the reference field, so I can't use the folder of the group itself as reference.

    Tried (obviously false) alternatives, such as the first available style using as reference. So my second script was

    var doc=app.activeDocument;
    var pStyles=doc.allParagraphStyles;
    var pGroups=doc.paragraphStyleGroups;
    
    for (i=pGroups.length-1; i>=0; i--){
         var pStylesInGroup=pGroups[i].paragraphStyles;
         for (j=pStylesInGroup.length-1; j>=0; j--){
    // Now I try placing the styles after the [Basic Paragraph], that is, the second paragraph style in the document style list 
              pStylesInGroup[j].move (LocationOptions.after, pStyles[1]);
         }
    }
    
    

    It did not work either, another invalid parameter in the reference field. Similar results with my other attempts (I even tried "[Root]" as literal with similar luck).

    So my question is: what command (or script, in case my approach is quite wrong) should I use to accomplish my goal?

    Thanks in advance to those who decide to spend more than a minute thinking about my humble worries and my apologies for some of your lines of code Ripper shamelessly for my purposes.

    Well, tried a few things and I really weird results!

    1. you can move a style within its group.

    2. you can move a style to one group "to" the other, but it will appear "inside" of this style. I got my style of test as a subdivision of [standard paragraph], using index #1. By the index 0 # InDesign ([no paragraph Style]) crashed.

    3. you can duplicate the style, but then you get a copy of the same group. Still no luck.

    4 finally! What is the parent of a paragraph style?

    Document | Request | ParagraphStyleGroup

    'Application' is easy - it's when you do a global style. So, what's the difference between 'Document' and 'paragraphStyleGroup '? Single - well, when you get finally he...

    pStylesInGroup[j].move (LocationOptions.AT_END, doc);
    

    move the style out of the Group and at the end of the list in the document. I don't think it's possible to move directly to a specific position in the main style list - you first need to move a group, then move it around in its own list.

    Fortunately, he returns his new position as a definition once again, if necessary, you can use

    newStyle = pStylesInGroup[j].move (LocationOptions.AT_END, doc);
    newStyle.move (LocationOptions.AFTER, pStyles[1]);
    

    -I haven't really tried this possibility, but it should work.

  • Best way to clean the paragraph and character catalogs?

    Over the years, I have created a bunch of tags of paragraph and character for different types of documents: novels, technical manuals, etc. For a given document type, I'll use some tags and some don't. For example, a novel will not use numbered steps or sideheads.

    The problem is after years of import for the last tags of a certain type, all files in all chapter books have swelled catalogs, full of tags that are not used and are not applicable for the type of document. I would like to clean these catalogues and let only relevant tags to this kind of document. I'm ready to take the hit if a chapter or book uses a tag that it should not, as long as I know what it is.

    What is the "best practices" way to achieve this? What method do you recommend?

    1. Create a template with the own catalogue file, open each book individually, remove all of the tags file and re - import the template tags?
    2. Create a template with the own catalogue file, and then create new books of the model, copy and paste the text of the original of the files bloated?
    3. Others?

    I understand that the process will be painful, as to clean out her garage. But I'm sick of tripping over all the echoes I have accumulated.

    Thanks for the thoughts and suggestions.

    Ken

    Ken,

    Your #1 approach is probably the best way to go. However, instead of trying to clean up the tags manually, take a look at paragraph of Steve Kubis and character tools. See: http://www.siliconprairiesoftware.com/Products.html

    This will help clean up a lot of things and they are reasonably priced. It also has corresponding tools for the management of cross-references, variables, arrays, and colors that all work you same way. You can try before you buy.

  • Add a suffix to all of paragraph and character styles.

    As the title suggests, first of all I would like to add a suffix to all of paragraph and character styles:

    Title 1 = position 1_p

    Bold_p = "BOLD"

    Also, if possible, replace the space with an underscore:

    Title 1 = Heading_1_p

    Chapter No. 1 = Chapter_Heading 1_p

    You're not sure if this need of a script or two?

    Any help would be fantastic.

    See you soon

    Or use code below to replace all spaces with "_".

    For the paragraph Styles:

    myStyles = myDoc.paragraphStyles;

    for (oneStyle = 2; oneStyle)<>

    {

    myStyles [oneStyle] .name = myStyles [oneStyle].name.replace (/ / g, '_') + "_p";

    }

    For character Styles:

    var mycStyleslen = myDoc.characterStyles.length;

    for (a = 1;

    {

    myDoc.characterStyles [a] .name = myDoc.characterStyles [a].name.replace (/ / g, '_') + "_p";

    }

    Shonky

  • About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    Hi Michael,

    If you want to stop receiving notifications by electronic mail, in the thread, that you have created, then I suggest that you follow the steps below:

    One time connected to the Apple Support communities, visit your mini profile and select manage subscriptions.

    Content

    To manage this content, you are currently subscribed and changing your preferences, select the content.

    Select next to see what content you are currently following.  Note that any thread you are responding you subscribe you automatically to this thread.

    You can select to terminate a subscription to a thread.

    Learn how to manage your subscriptions

    Take care.

  • Acrobat Reader DC will not install. It goes about 85% and stops with a message that the file I am trying to achieve is on a network and not available.  Totally frustrated that many files need this program to open.

    Acrobat Reader DC will not install. It goes about 85% and stops with a message that the file I am trying to achieve is on a network and not available.  Totally frustrated that many files need this program to open.

    I got this program for years.  Update Windows 10 and after nothing more than headaches with he returned to Windows 7 and it is then Acrobat has stopped working.

    Hi lindat7439924,

    There is no uninstall for Mac Reader program. You can directly delete the application from the Applications folder, which is just trash/Applications/Adobe Reader.app.

    Then you can download Adobe reader from here: http://get.adobe.com/reader/enterprise/

    Kind regards

    Meenakshi

  • Synchronization of the paragraph and character creative cloud styles

    Is it possible to add several styles of paragraph and character of a library of clouds to a doc ID? I can't find a way to add multiple styles at once, one at a time

    . Also, when you apply a style to the cloud, it gives me a name conflict, even if the 2 different styles have different names.

    These conflicts can come if you have styles based on another on and this is based on another, these styles are also imported and can cause conflicts.

  • Apply OverprintFill option for all paragraph and character Styles

    Hello

    How can I request an OverprintFill option in all of paragraph and character styles in javascript. See my code below

    jsx. Coding: -.

    var mypstyle = app.documents.item (0).paragraphStyles.everyItem () .getElements ();

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

    {

    mypstyle [i] .overprintFill = true;

    }

    Alert ("Done")

    Just change the loop as below:

    var mypstyle = app.documents.item (0).paragraphStyles.everyItem () .getElements ();

    for (i = 1; i

    {

    mypstyle [i] .overprintFill = true;

    }

    Alert ("Done")

    Vandy

  • Question about business and Service of Proxy

    Hi friends,
    I have a question about services and proxy services business IE I need to find the time it takes to call an operation on multipoint business of proxy service, how can I do in oracle service bus (OSB)? You can help quickly

    If your question is only about the performance analysis,
    try to activate the 'monitoring' on the 'operational' of the Service Proxy Service/Company tab.
    For the Proxy Services, if you activate at the level of the 'Action' you get a lot of information about each individual action in a power of attorney.

    See http://www.javamonamour.org/2011/06/osb-profiling-your-proxy-service.html

  • InCopy paragraph and character styles

    Have been upgraded from CS3 to CS5 and our editors have a ton of paragraph and character style pré-séries. I was wondering if there was a way to import these to InCopy CS3 to InCopy CS5. I searched for them in the program files and the folder of application but data had no chance of finding.

    Open paragraph styles menu and choose load all styles. Find the file that has these defined styles.

    Bob

  • How to use paragraph and character styles properly?

    I have a document in which the text has two colors (which has no style)

    Black (normal) and Red (to highlight the keywords).

    I needed to put these 2 in a style

    (black) paragraph style

    (red) character style

    Here's my question.

    How can I make sure that when I use the paragraph style, she also uses the style of character but only on the Red words?

    While I need not find/replace every word manually

    I want to do at once.

    If you want to add styles to a document already created:

    (1) create your character style that contains only the color of the characters

    (2) search and replace a text with red color search and replace with the new character style formatting. (Do not type anything in the text portion of the find and Replace dialog box)

    (3) create and apply your paragraph style to all. The text with the applied character Style will stay red.

  • How to insert a jump of paragraph and character at the beginning of a paragraph using Grep

    Dear community!

    I'm stuck...

    I have several books in indesign, I need to export to epub. I have a standardized procedure to be able to assign the task to the students.

    My problem I have I have a paragraph in style "Title2" and I would break the paragraph before that is of a 'new page '.

    This is the theory that I thought about:

    -find and change, find the style "Title2".

    -Insert a special character + paragraph break before the first character in the paragraph

    -with a second discovery and change search the special character

    -Replace with nothing and the model with the 'new page '.

    My question is how to insert with grep (?) before the first character no matter what.

    Please help me!

    Thanks in advance

    ND

    This GREP should add a page preak befor any paragraph:

    Find: ^. and set the format to find your title paragraph style

    Change of: ~ P $0

    That this research is looking for the first character in any paragraph and its replacement by a page break, and himself.

  • [JS] Copy or move the paragraph and character style style

    Hello
    I try to transfer paragraphs a the document to a block a second document but I have hugs the style of paragraph et style character applied.
    I use this command line:


    o.leBlocLegendes.contents = o.leBlocLegendes.contents + leDocument.stories.firstItem().paragraphs[leConteurPara].contents;
    
    


    How do I do not lose anything?

    Thank you


    Original message

    Hello

    I am trying to transfer of the paragraphs in a document to a block of a second document but I loses all the style of paragraph and style of applied character.

    Plug-in this command line:

    o.leBlocLegendes.contents = o.leBlocLegendes.contents + leDocument.stories.firstItem().paragraphs[leConteurPara].contents;
    

    Comment do pay nothing lose?

    Thank you

    Hi Liphou,

    .silence is indeed a property of type string only disregardingly of styles, anchor frames and other animals.

    You prefer the use of object methods and duplicate stories. However styles can be substituted with the target document. If you can load styles before the duplication of the text.

    var main = function() {
        var doc, st, tempDoc, f, tf;
        if (!app.documents.length
            || app.selection.length!=1
            || !app.selection[0].properties.parentStory) {
            alert("You need to select text or text frame");
            return;
        }
    
        doc = app.activeDocument;
    
        if ( !doc.properties.fullName ) {
            alert("Please save file first !");
            return;
        }
    
        st = app.selection[0].parentStory;
        f = File ( doc.fullName );
        tempDoc = app.documents.add();
        tempDoc. importStyles ( ImportFormat.TEXT_STYLES_FORMAT, f, GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE );
    
        tf = tempDoc.textFrames.add();
        st.duplicate(LocationOptions.AT_BEGINNING, tf.insertionPoints[0]);
        tf.fit(FitOptions.FRAME_TO_CONTENT);
    
    }
    
    main();
    

    HTH,

    Loïc

    www.ozalto.com

  • Windows 7 starts questions about mac and office 2010 following an installation

    It's a long cut as short as vent. I've been miss sold a record of upgrade of windows 8 full disk-shaped, with norton and office 2010. My goal of creating windows on my mac for a course I'm taking. After that know I need windows 7, I bought it online. I created a partition of 80g on my mac charge windows 7, then norton. Until I loaded the office that I was invited to perform the update from apple in the windows software 7. Note before I installed norton, I load boot camp mac utilities according to the instructions. So, followed by all as should be. The prompt update from apple was quick time, iTunes and airport, I checked all and then updated. Then I loaded office 2010 and obtained throughout the process from the Microsoft site. On the last part of the installation, the installation failed due to a mistake of hanging iTunes. I tried again and again, I fixed the update to iTunes to add and remove the section of windows. Then, I got different errors. I decided to remove the whole score without uninstalling all programs again. When I get to the windows live, that this falls priming. I get various error messages whenever I try to start the process. As a header of Bank pool, fatal error and so on. Can anyone help? What is the damage?

    Hello

    Thanks for posting your query in Microsoft Community.

    Because the question is limited to Windows 7 on your Mac with Boot Camp, I suggest you contact Apple Boot Camp support for assistance.

    http://www.Apple.com/support/Bootcamp/

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

Maybe you are looking for

  • iPhone does not load.

    Hello Then... I recently got my iPhone 5 (64G) - replaced white. The following items have been replaced: -front screen, -back camera -"home" button and -There is a slight bump on the upper right corner where is the lock button. The people that replac

  • Pavilion g6: button Wireless stopped working on laptop HP pavilion g6

    The wireless button has stopped working on my g6 pavilion. I read that some people have had this problem.Anyone would be kind enough to help out me.Thank you

  • Double timer

    Hello world! I have a problem to solve on my VI (Please find the attached photo). I need to control the flow of a pump (timered) if it receives the signal of a DI.the signal to the second timer (that of the pump flow rate) is led by a first timer tha

  • X 1 carbon 2014 windows 7 hangs after the main power connection

    Nice day After the Polish Lenovo call center refuses to help me ask you to help. For about a week now, my X 1 carbon 2014 hangs after connection to the power supply. It's so irritating. I think, I only installed the updates regular windows 7 and the

  • Problems with low light action on 70 d calls

    I have just spent a T3i to a 70 d. I seem to have trouble with the plans of action in low light situations, suggestions on implementing...