CS3/JS: Code to import x-tagged text into Indesign

Hi All,
Normally we import text as X-Tag using Em Software plugin manually. We developed a script for auto-pagination in Indesign. But we couldn't find any JS code to import X-tagged text anywhere. So we used word file to import but facing lot of issues while importing word file into Indesign.
Is there any javascript code to import text with X-tag plugin? If so, kindly provide. It will be be helpful for us very much.
Thanks in advance.
regards
Masthan

An external plugin can only (*) be used in Javascript if the original programmers added support for it. Best is to check its documentation, and if it's not mentioned in there, contact the authors.
(*) Perhaps you can locate its menu entries and use those instead. I wouldn't know at all if that works with external plugins.

Similar Messages

  • How to I import Apple 'Pages' text into InDesign while keeping the formatting?

    How to I import Apple 'Pages' text into InDesign while keeping the formatting?

    I have imported the rtf file, but it shows up as only one line with a grey line after it, even though there are multiple lines

  • Importing Adobe Tagged Text

    Hello,
    So here's what's happening…
    I've installed a Wordpress plugin that exports posts as Adobe Tagged Text.
    When I import, the text still shows up marked up with tags, just as it looks in the .txt file:
    <ANSI-MAC>
    <DefineParaStyle:NormalParagraphStyle=<Nextstyle:NormalParagraphStyle><cColor:Registration ><cSize:10><cLeading:11><pFirstLineIndent:12><cFont:Times New Roman>>
    <ParaStyle:NormalParagraphStyle>This <cTypeface:Italic>is<cTypeface:> a <cTypeface:Bold>test<cTypeface:>
    <ParaStyle:NormalParagraphStyle>Test paragraph
    <ParaStyle:NormalParagraphStyle>Testing this out
    Does it have something to do with the first line of code, <ANSI-MAC>?
    Regards,
    Eric

    You're using a very old InDesign workflow which I've never used. But it's referenced in Olav Kvern's and David Blatner's excellent "Real World InDesign" (I'm looking at the CS4 edition).
    On page 235, it reads, "The first characters in a tagged text file must state the character encoding (ASCII, ANSI, UNICODE, BIG5, or SJIS), followed by the platform (MAC or WIN). So the typical Windows tagged text begins with <ASCII-WIN> , and the Macintosh version begins with <ASCII-MAC> ."
    It looks to me like it should work. Have you tried exporting some tagged text from InDesign to see how it looks? File > Export > Adobe InDesign Tagged Text.

  • Importing Chinese Text into InDesign

    I am working on a newsletter project and will need to input translated text in Mandrine Chinese in an InDesign file? My questions are:
    1) How do I input the text into InDesign? Is it as simple as cut and paste or do I need to change some settings on my Mac first to recognize the Chinese characters?
    2) Is there a specific kind of document file the text needs to be in first? i.e. .doc file or something else

    1) How do I input the text into InDesign? Is it as simple as cut and paste or do I need to change some settings on my Mac first to recognize the Chinese characters?
    2) Is there a specific kind of document file the text needs to be in first? i.e. .doc file or something else
    Adobe InDesign what version?
    Version 3 introduced improved CJK, including inline input. It should work if you do as you would do in any transfer of plain text: copy from your originating application e.g. Apple Pages, clean (scrub, strip) the formatting by copying into a plain text editor and choosing Plain Text e.g. in Apple TextEdit, copy into the formatting application e.g. Adobe InDesign.
    I reviewed Adobe InDesign 1.5 and was beta tester for Adobe InDesign 2 and 3.
    /hh

  • Batch import of eps equations into indesign

    Hi, I am Thangaraj Mohan, working as an layout artist. Now I am working on a Math book which has tones of equations in it. The whole text keyed in MS word, and the equations are typed inside using mathtype. I exported all equations using mathtype, mathtype exports all equations and replaces with its file name (ie. <<equ001>>) in MS word.
    Now my problem is to how place these equations inside the InDesign document. Please help me with your ideas to import all eps files into InDesign as Batch import.
    Thanks a lot.

    hi
    you don't need to export Equations as EPS file s- you can jest Copy and Paste or Place your document - all Equations will be imported as embeded graphics - with bad preview - but with Vector contents so they will print fine
    if you really need to reimport EPS files - then you need macro to surround Equations with tags which then can be used by script to place EPS files
    from:
    9.1 a) ###  b) ###  c) ###  d) ###
    to:
    9.1 a) <EQ1<###>EQ1>  b) <EQ2<###>EQ2>  c) <EQ3<###>EQ3>  d)  <EQ4<###>EQ4>
    but this will require that you will have only equations - no other images - or you will need to renumber-rename files
    robin
    www.adobescripts.co.uk

  • How do I copy and paste Chinese text into InDesign CC?

    I am having difficulty copying and pasting pre-translated Chinese text into InDesign.
    Many of the characters are coming up as boxes in the majority of Chinese fonts offered in CC.
    马修斯旅游大巴租赁公司
    爱尔兰和英国之旅
    translates as
    Font used above is Apple LiSung
    I have tried to import via Apple Text Edit and format stripped the text.

    That's happening because you have Simplified Chinese text, and are attempting to use a Traditional Chinese font.
    Ellis suggests a well-made Adobe font with Trad support. If you pull down your font dropdown and scroll towards the end, you'll find fonts split into categories according to language support. The one with Apple LiSung is the Simplified category, and the one with Adobe Fangsong is the Trad category. Pick any font from that category - but know that the style of font you pick in Chinese means as much as the style of font you pick in English, and if you don't know what the conventions are, you may well choose one not entirely suited to your audience. (One of my translators likened the Chinese font choices of monolingual Anglo designers to "seeing the body text of my How To Use Your Health Care Benefits brochure laid out in Rosewood.")

  • Importing Microsoft Word comments into InDesign CS5.5 [Mac]

    Has anyone had success importing Microsoft Word comments into InDesign 5.5? I've read that this is possible, however, all my attempts have failed. I've checked that Track Changes is on in both InDesign and MS Word.
    The one pattern with all the files I've attempted is that, by the time I receive the file, the author has already accepted all tracked changes. The comments remain, but they do not import into InDesign.
    I have 'track changes' ticked on the import dialog.
    Is there anything I'm missing? Tips from people who've done this successfully would be greatfully apprecated.

    Hi BhSimonP,
    Did you got any solution to this problem. I am having same requirement now.
    Please help me with your answer.
    Thanks,
    Gopal

  • How to import a PSD file into Indesign WITH layers so it can be edited/saved as an InDesign file?

    How to import a Photoshop file into Indesign CS6 so that it's layers show in InDesign and it can then be edited/saved as an InDesign file?

    MyTienN wrote:
    Someone had mentioned the possibility of saving each individual layer in Photoshop as a png file and importing into Indesign and adjusting it in there
    What do you mean by "adjust"? Editing of Photoshop images should be done in Photoshop.
    Sure, it's possible to save individual layers from an image in Photoshop as inidvidual files in a variety of formats, but what's the point? You could just as easily import the layered file, then copy/paste it into a new layer for each layer in the image and use layer visibility to control which ones show. I don't think that will do you a lot of good, though, if you use adjustment layers or opacity controls on the layer in Photoshop.

  • I am creating a catalog and need a way to mass import tables from excel into indesign.  Any ideas?

    I am creating a catalog and need a way to mass import tables from excel into indesign.  Any ideas?

    Third-party plugins for InDesign can automate the process. Here's a thread from InDesignSecrets.com forums:
    http://indesignsecrets.com/topic/plugins-for-automating-catalog-production

  • When a paste copied text into InDesign Illustrator but without the trace?

    When a paste copied text into InDesign Illustrator but without the trace?
    It seems incredible to do a composition in Illustrator and copy-paste to make InDesign and draw all the text.
    I'm using CS4 but I see in the help that CS5 is the same.
    Thanks in advance.

    Yes, I know that I can copy the text with the text tool. Although I would like to copy / paste from Illustrator to InDesign for editing if you need without having to play through two programs.
    Thanks for everything!

  • Confused by the behavior on importing simple tagged text

    I have a tagged text file with the following content beween the dashed lines. (the lines are not part of the file). Both IText and BText are predefined paragraph sytles.
    <ASCII-WIN>
    Price <ParaStyle:IText>AA<cPosition:Superscript>aa<cPosition:> - <ParaStyle:BText>BB<cPosition:Superscript>bb<cPosition:>
    Once imported,  the result is not what I expected. Specifically,
    1. All text are imported with the BText paragraph style.
    2. It shows the "bb" as superscripted, but not the "aa".
    Why is that? And how can I have different styles for the AAaa part versus the BBbb part?
    This can be reproduced on CS5 and CS5.5. Didn't try any older versions.
    Thanks.

    When I think of it, the first behavior makes sense, because the text were specified as a continuous line without line break, they are treated as a single paragraph. And for a paragraph, only one paragraph can be used, and the one that is specified later, BText in this example, wiins.
    But still, why does the import routine ignores the superscript character style on "aa"  before the second  paragraph style tag?

  • Import ID tagged text file results in paragraph style overrides

    I have been working on a project that requires the import of a large amount of information from a database. I have defined all the paragraph styles in InDesign and have a program to apply the paragraph style to the database information creating the InDesign Tagged Text file. When I place it into my document the paragraph styles are recognized but there is an override. If I clear the override, the text looks fine. I have an example document that I have exported and imported some text to rule out the program, but even in this case, an override occurs. Text is there, the paragraph format is there, but font size (for example) is wrong. Where should I be looking to correct this issue?
    Harold

    I don't recognize any of those being wrong, per se. I have the file on another computer, so I mocked up yet another one. Sorry
    Again in this one I did ASCII export, no fancy characters. And this one demonstrates the problem, too. I have two kinds of paragraphs. A big one and a small one. I create those paragraph styles. I select the only two lines in the file. Export and then bring them in underneath themselves to compare.
    The paragraph styles for the newly Placed paragraphs are gone. The font color is the same. But the font size and font have not changed.
    I manually edited the IDTT and removed the <Japanese feature> tag. Placed it again. Font color is the same, but the size and font are wrong.
    In other words, my problem is that ID does not seem to apply the paragraph style to the text when it is imported. Aren't the font size and font defined in the Paragraph Style?
    My end goal is to define some paragraph styles and create the IDTT automatically from a database. My hope was that the paragraphs would be formated properly based on the predefined styles when the IDTT comes in. I cannot get it to do this even for a pared down example. Aren't other users doing this?
    Here is the IDTT on pastebin (with the <Japanese...> tag removed)
    http://pastebin.com/Vdc6NVDV
    And what it looks like after the intial Place with <Japanese...> tag in, edited line from Small to "Deleted Japanese feature...", removed tag from IDTT and then did another Place.

  • Tagged Text in InDesign 5.5

    I posted this in the general discussion and was pointed to scripting.
    I use tagged text in the files I place
    in InDesign. For example,
    <cn>This is the chapter number
    <ct>This is the chapter title
    <cst>This is the chapter subtitle
    <bt>This is the beginning of the body text
    <ah>This is an A-level head
                    and so on. In PageMaker, there was a checkbox in the "place"
    dialogue box named "Read tags." I checked that, and when I placed the file in the template (in which I had the styles defined), the whole chapter appeared with the formatting I wanted for each style. I could use anything I wanted for a text tag, as long as it was in <>. If it wasn't defined in the PM document, it came in in the basic style but could be formatted on the fly in PageMaker.
                    I can't find the equivalent checkbox in InDesign. I can't believe it is no longer there, but I can't find it. There is a lot online about exporting tagged text, but where, oh where, is my checkbox for placing tagged text? If someone knows where it is, I'd be very grateful. It seems that such a great (and incredibly easy) function shouldn't be gone.
    Thanks (and apologies to those who already saw this in the general discussion),

    Well, not quite four hours, but yes, I couldn’t get it to work. For one thing, I wasn’t sure about the header to use, since I’m on Windows. I used <ASCII-WIN>
    <Version:7><FeatureSet:InDesign-Roman>
    <pstyle:ah>
    <pstyle:ah_bib>
    <pstyle:bib>
    <pstyle:bh>
    <pstyle:bl>
    <pstyle:bl_ext>
    <pstyle:bt>
    <pstyle:bt_fl>
    <pstyle:cn>
    <pstyle:ct>
    <pstyle:cst>
    <pstyle:epi>
    <pstyle:epi_source>
    <pstyle:ext>
    <pstyle:ext_1stpara>
    <pstyle:ext_2dpara>
    <pstyle:fn>
    <pstyle:fn_2dpara>
    <pstyle:poem>
    <pstyle:poem_1st>
    <pstyle:poem_last>
    I added the above to one of my tagged text files and saved it from Word as .xml. When I brought it into InDesign, I got a sidebar with a couple of entries, one of which expanded to several “parts.” There was nothing in the template until I double clicked (I think that’s what I did; maybe right clicked) one of those sidebar items and placed the text. It came it as one long file with no returns and no formatting. The tags remained as text.
    I came back to the Internet and found an article by Peter Kahrel entitled “A GREP queries manager.” OK, I admit I didn’t understand much of it, but the notion of chaining queries sounds good.
    I did the Lynda.com tutorials when I was first ordered to make the change to InDesign (last month). I found them very helpful, but if they have anything on this, I missed it. Maybe I was too busy figuring out how to turn pages, find things on the pasteboard, and determine what character styles are and why I have to use them J
    “Not hard”? Um, what is the etiquette for asking you to do this task for me? I’m assuming that once I had a script in hand, I could add new paragraph styles by mimicking the entries. Is that right? Would it really be as easy as opening all the files and running the script to make the changes throughout? That sounds wonderful. Even running it on one at a time would be a great improvement. Do I need to contact you off list, and, if so, how?
    Thanks . . . yet again.

  • How can I place Tagged Text in InDesign

    I use tagged text in the files I place
    in InDesign. For example,
    <cn>This is the chapter number
    <ct>This is the chapter title
    <cst>This is the chapter subtitle
    <bt>This is the beginning of the body text
    <ah>This is an A-level head
                    and so on. In PageMaker, there was a checkbox in the "place"
    dialogue box named "Read tags." I checked that, and when I placed the file in the template (in which I had the styles defined), the whole chapter appeared with the formatting I wanted for each style.
                    I can't find the equivalent checkbox in InDesign. I can't believe it is no longer there, but search as I do, I can't find it. There is a lot online about exporting tagged text, but where, oh where, is my checkbox for placing tagged text? If someone knows where it is, I'd be very grateful.

    John Hawkinson wrote:
    For reference SuzeiQ's thread in the scripting forum is here: http://forums.adobe.com/thread/908213.
    Though I think it really wasn't a scripting question :-).
    Also, Peter, post your script!
    I presume that last was directed to Mr. Kahrel...

  • Importing a large amount of text into InDesign (Newbie question!)

    Hello all,
    I am new to InDesign and would really appreciate some tips/advice on how best to transfer a large amount of text from Microsoft Word into an InDesign document. I have been tasked with creating a very simple pocket sized book, the content of which will be a series of business Acronyms (700+) and their defintions (just imagine a very simple dictionary). As you can imagine there is a lot of text in the Microsoft Word document so any advice on how to transfer it all as quickly as possible would be really helpful. Or, as the case may be, would it be simpler to just use another programme?
    Can you paste/import all - or large chunks of - a word document in one go? If I format a master page will Adobe InDesign automatically paste the text into the required number of pages? Or do i have to do it page by page from a clipboard?
    Obviously I am not expecting InDesign to format the text perfectly on each page, I just want to dump it all in one go and then go back and tidy it all up.
    Any help or advice would be greatly appreciated.
    Regards
    Matthew

    File > Place.... and navigate to the Word file. Show Import Options to allow you to preserve the Word Formatting, or dump it, or map styles to ne styles in your ID document.
    If you have a text  frame on your master page, put the loaded cursor over the frame area on your document page and watch for the cursor to change so it is surrounded by parentheses, then hold the Shift key and click. If you don't have a master frame (and most experienced users will tell you that more than 90% of the time a master text frame is more hindrence than help if you set your margins correctly), hold the Shift key and click where you want the top of the first column to start.
    In both cases, ID will add pages as required to place the entire document and thread the text through all the frames. If using master frames, they will be linked and overrridden onto the document page automatically, if not, your first frame will start where you click and extend down to the bottom margin and succeeding frames will fill the column guides (hence mention of setting your margins correctly).
    ID is a professional program and you really need to spend some time learning how it works. One good place to start is the Help files. Another is Sandee Cohen's Visual QuickStart Guide to InDesign. If you prefer video training, Lynda.com has good content.

Maybe you are looking for