Indesign text tagging

Hi
Is it possible to tag a portion of text, so a Text or Word object without it sitting in a Story?
Something like this.
var app:Application = InDesign.app;
var doc:Document = app.activeDocument;
var root:XMLElement = doc.xmlElements.firstItem()
var selection:Object = doc.selection[0];
var node:XMLElement = root.xmlElements.add("MyTagName");
XMLElement(node).markup(selection);
This throws the following error
Error: Cannot change the element to be associated with this object. Try creating a new element.
or
var node:XMLElement = root.xmlElements.add("MyTagName", selection);
puts the new element inside a Story element.
Thanks for any help.

The correct format is:
<ASCII-MAC>
<vsn:9>
(ie, the text encoding in one line and the ID tagged file version in the next)
You ended up with an empty text frame because the your source file has "Classic Mac" linebreaks. InDesign CC requires that tagged files have Unix linebreaks.
As far as I know, MS Word doesn't offer the option to choose the line endings of text files (at least my old Mac Word 2004 doesn't). If your version allows that, you're set. If not, you can open your file in a text editor that enables linebreak options, like the free Text Wrangler or its paid big brother BBEdit. Alternatively, you can use a utility like LineBreak ( https://www.macupdate.com/app/mac/12045/linebreak ) to do the conversion in a convenient drag-and-drop operation.
Another advice: don't put the paragraph style tag in one line and its correspondent paragraph in the next line. Your original sample:
<pstyle:Title>
The Economics of European Integration
<pstyle:Subtitle>
Limits and Prospects
when imported as is, will ended up with unnecessary blank lines. This happens because you're telling InDesign to:
apply the paragraph style Title,
insert a paragraph return
insert the string "The Economics of European Integration"
insert a paragraph return
apply the paragraph style Subtitle,
insert a paragraph return
insert the string "Limits and Prospects"
insert a paragraph return
The blank lines you'll see in the final result in ID are caused by the paragraph returns that exist in your tagged file, right afther the paragraph style tag (highlighted in bold above).
The proper usage follows:
<pstyle:Title>The Economics of European Integration
<pstyle:Subtitle>Limits and Prospects
By formatting the tagged file this way, you'll avoid those extra blank lines.
Hope it helps.

Similar Messages

  • Adding alt text tags in InDesign (and Acrobat Pro)

    I am having real difficulty adding alternative text tags. I created an INDD doc with rollover buttons linked to URLs firstly in InDesign CS4. I couldn't add alt text tags in CS4 so I then tried to add them in Acrobat X Pro but failed. Acrobat keeps wanting to class the PDF as a form. I then installed InDesign CS6 from the cloud and added alt text to the rollover buttons via object export options. However, these do not show when I export to PDF.
    Can someone help me add alt text to my rollover buttons in my interactive PDF either in InDesign CS6 or in Acrobat Pro after I export it?

    In InDesign CS6, you just need to add descriptions to buttons. This is done in the buttons and forms panel:
    This is the alt text in Acrobat when you roll over the button:
    Hope that helps!

  • Exporting Table from Indesign to tagged text.

    Hi, all!<br />I need to export table from InDesign to tagged text by the script.<br />I found ExportAllStories.jsx in samples.<br />It's good example but I have some questions<br />1. In my document more then one table and I need to export only some of them. So, how can I export only one of them? May be Tables have some "labels" or something other differential sign?<br />2. How can I ser encoding type of distanation file (by the default InDesing set <ASCII-WIN>, but I'm need to set <Unicode>).

    Edit>InCopy>Export All Strories.
    Open the INDD in InCopy.
    This assumes everyone involved has access to the files.

  • Removing conditional text tags in a batch

    Hi everyone, using TCS2 on Win-7 64-bit.
    We have been using some conditional text tags in our writing, and now we are looking at adding a few new ones and taking a few away. Is there a way to remove a batch of conditional text tags from a whole bunch of FM documents, all at once? It is a tedious process to do it manually, doc per doc, tag per tag... wondering if there is a script, or anything like that?
    Thanks,
    Adriana

    I believe there are a couple of utilities to manage conditional tags; you might try searching Leximation's tool list:
    http://www.leximation.com
    And, there could definitely be Framescript-based scripts, either generic or written customized for your requirements. Here's the FrameScript group:
    http://groups.yahoo.com/subscribe/framescript-users

  • Multiple Conditional Text Tags on One section

    I'm composing a document with 3 conditional text tags. There
    are instances where I need to conditionalize something as Tag 1 and
    Tag 2 but doesn't apply for Tag 3. Robohelp seems to allow me to
    apply 2 tags to one section of text, but when I generate my .chm it
    doesn't include anything that has been given two tags. Is there a
    way for robohelp to support this?
    Is there something I should be doing differently?
    I'm using Robohelp 5X.
    Thanks,

    Harvey,
    I think you may have misunderstood me. If you apply tags A
    and B to some text, and you build an exclusionary expression like
    "NOT A," the text will
    not appear in the output. (See rule #1 in my exclusionary
    list: any text tagged with an excluded tag will be excluded, even
    if other tags are applied.) If you build an inclusionary expression
    like "B," the text
    will appear. (See rule #1 in my inclusionary list: any text
    tagged with an included tag will be included, even if other tags
    are applied.)
    So I don't think "include trumps exclude" in this sense. But
    consider the following expressions in a 3-tag environment:
    * A OR B
    * NOT C
    Logically, these might seem equivalent. But they aren't, and
    RoboHelp doesn't treat them as equivalent. Let's assume that you've
    created every possible set of tag combinations for this project: A,
    B, C, A and B, A and C, B and C, all 3 tags (A, B, and C), and
    untagged. Here's a look at what would be included in the output for
    each build expression:
    A OR B:
    A
    B
    A and B
    A and C
    B and C
    A, B, and C
    Untagged text
    NOT C:
    A
    B
    A and B
    Untagged text
    When people say that RoboHelp's boolean operators "don't work
    right," I think they mean that expressions that seem logically
    equivalent (such as these two) produce different output. Without an
    understanding of how the rules are applied, a user can easily build
    expressions that seem right but produce the "wrong" output. In
    fact, the output is correct according to the rules.
    Again, I wouldn't say that "include trumps exclude," although
    I think I understand what you're getting at. The difference lies in
    the application of rule #1.
    I tested a simple 3-tag environment yesterday with printed
    documentation and CHM files, and the expressions worked as
    indicated. I didn't try WebHelp, but I've used similar expressions
    before, and I feel comfortable saying that WebHelp will also work
    as I've described it. Also, note that we're dealing with very
    simple expressions here; complicated expressions require more care.
    But most RH users can generate the desired output with a few simple
    expressions. Especially inclusionary expressions.

  • Struts html:text tag background colour

    How to change the background colour of Struts <html:text> tag?

    styleClass and styleId, you can put css value on it

  • Value not resolved in html:text tag at weblogic

    I've a jsp working fine at tomcat, but after i migrate it to weblogic, some of the html:text tags are not working properly.
              eg. <html:text property="dispParamValue" styleClass="formFill1line" value="${sysvarList[rowCount].dispParamValue}" />
              Instead of displaying the value of ${sysvarList[rowCount].dispParamValue} like "abc", it displays the tag itself "${sysvarList[rowCount].dispParamValue}" at the text field at weblogic.
              My Weblogic version details are as follows:-
              Server info = WebLogic Server 9.0 Sun Jul 3 21:15:00 PDT 2005 598247
              Servlet engine version = 2.4
              Java version = 1.5.0_03-b07
              Anyone has encountered the same problem before? any difference in the server settings that i need to take note of?

    Just to clarify, the EL is supported by a J2EE 1.4 server which corresponds to Servlet2.4 / JSP2.0
    What version of Weblogic are you using?
    You can find out the version of the spec your server supports with the following JSP snippet.
    <h2> Server Info </h2>
    Server info = <%= application.getServerInfo() %> <br>
    Servlet engine version = <%=  application.getMajorVersion() %>.<%= application.getMinorVersion() %><br>
    Java version = <%= System.getProperty("java.vm.version") %><br>Also note to activate the EL in your webpages in a JSP2.0 container, your web.xml file must declare itself as being version 2.4 (if you leave it at 2.3 it disables EL for backwards compatibility)
    Cheers,
    evnafets

  • When opening the Coloursync utility and pressing the verify button, I received an error message stating that the Tag 'cprt':Text tag has an incorrect length which could not be fixed as the file is locked. Does anyone know how to rectify this?

    When opening the Coloursync utility and pressing the verify button, I received an error message (copy below) stating that the Tag 'cprt':Text tag has an incorrect length which could not be fixed as the file is locked. Does anyone know how to rectify this?
    Checking 25 profiles...
    /Library/ColorSync/Profiles/Displays/iMac-00000610-0000-9C6C-0000-000004271B00.i cc
       Tag 'cprt': Text tag has an incorrect length.
       The file is locked. Could not be fixed.

    Hi guys,
    I followed the steps to unlock the .icc file in the "getinfo" screen then went on clicking repair in colorsync utility.
    This is the message i got:
    Searching for profiles...
    Checking 17 profiles...
    /Library/ColorSync/Profiles/Displays/Color LCD-00000610-0000-9CF3-0000-000004273CC0.icc
       Tag 'cprt': Text tag has an incorrect length. Fixed.
    Repair done - 1 profiles fixed.
    However, when i hit verify again it shows up like this:
    Searching for profiles...
    Checking 17 profiles...
    /Library/ColorSync/Profiles/Displays/Color LCD-00000610-0000-9CF3-0000-000004273CC0.icc
       Tag 'cprt': Text tag has an incorrect length.
    Verify done - found 1 bad profile.
    ... and it keeps like this sine die.
    when i open the .icc file it shows up like this:
    3     'cprt'     'text'     35     Copyright ASCII Text String
    New to mac so I really don't know what to do.
    I didn't get this message so far. What i did before getting this message was to open a jpeg file. I wanted to edit it so when i did right click on the file i went to open with, and colorsync came as an option; so i chose it.
    Then this message started comming up.
    Is there anything i can do?
    Thabks for the support.

  • html:text tag

    Hi everybody,
    I am new to Struts concept. I am trying to develop astruts application. I am writing one textbox on that I want call one javascript function for onchange event my html:text tag looks like the following:
    <% int i=0; %>
         <logic:iterate id="ts" name="loginForm" property="timesheet">
         <td>
    <% i+= ; %>
         <html:text property="worked_Hours" name="ts" onchange="findTotal(<%= i %>)"></html:text>
         </script>
         </td>
         </logic:iterate>
         </tr>
    My intention in this code is I am creating the textbox control array. So I want to send that i variable value to that findTotal() javascript function. But the compiler instead of putting i value in the findTotal() function it is putting the code like this
    <input type=text name="worked_hours" value="8" onchange="findTotal(%= i %>).
    How can I get the value of i in the resultant jsp page.
    Please reply me soon.
    Thank you all,
    Varma

    When using custom tags, and specifying a dynamic attribute, always put <%= %> for the entire attribute
    Try this:
    <html:text property="worked_Hours" name="ts"
      onchange="<%= "findTotal(" + i + ")" %>" ></html:text>

  • InDesign text tool is crashing InDesign CC

    Hi Jeff,
    Last night, I uninstalled Adobe Creative and all of the CC applications I installed. Reinstalled Adobe Creative and the apps I wanted, and InDesign Text Tool is STILL crashing the app. I'm opening InDesign CC 64 bit, which matches other programs I use (64 bit). Any other ideas what might be happening?
    InDesign CS6 had no issues over the past 6 mos on my computer. It's a PC running Windows 7.
    Heidi

    @bookreviewer, please try to perform the solution given in the following article.
    http://helpx.adobe.com/indesign/kb/indesign-cc-crashing-launch.html
    For more information on this subject please refer
    http://forums.adobe.com/thread/1234968

  • FM 10 Crashing when applying conditional text tag

    Hello everyone.
    For some reason, FM keeps crashing when I try to apply a conditional text tag to a table (entire table). The funny thing is I have been doing this same thing for three months now with no problems before today, even have two tables in the same document with different tags applied to them and they are working fine.  But when I try to add this one, I crash. I have rebooted my computer and made sure all my drivers are up to date, but now I'm at a loss.  Any help?
    Thanks.

    Yes, I can apply the tag to the pictures in the document, its only when applying to the table. I am selecting all rows in the table with the mouse and then selecting the tag, clicking the radio button "in" and then clicking the "Apply" button.  It then asks "apply condition tag settings to all rows in table?" I hit "ok" and then it freezes, screen shots provided.
    Pic 1: My project at table causing problems.
    Pic 2: Me selecting the table and choosing to apply tag.
    Pic 3: Me affirming I want to apply the condition to all rows.
    Pic 4: Program stops responding.

  • Book and File Conditional Text Tags Don't Match

    In Framemaker 10 (TCS 3, Windows 7 64-bit), when I click on a document in a the book (& View>Show/Hide Conditional Text), an extra conditional text tag shows up that doesn't exist in the document Show/Hide Conditional Text.
    For example:
    In the book, My Book.book, I select Chapter1.fm (but don't open it).
    Then I open the Show/Hide Conditional Text panel (View>Show/Hide Conditional Text)
    I see these two condition tags, Hide Text and HideText. I use Hide Text but not HideText.Apparently, at some point I changed the name of the condition tag.
    Then I open Chapter1.fm.
    When I open the Show/Hide Conditional Text panel, HideText isn't there.
    What I want to do is to delete HideText (the one I don't use), but I can't find ourt how to do it. any ideas out there?
    One more bit of information that might help figure out what's going on:
    I select Chapter1.fm in the book.
    Then I select Show as per condition in the Show/hide Conditional Text panel.
    Select HideText in the Hide field.
    Click the left arrow (<--) to move HideText to the Show field.
    Click Apply.
    I get this error message in the Book Error Log:
    Cannot show the following tags because they do not exist in this document
    So, can anyone tell me how to get rid of HideText from the book files?
    Thanks!
    John N.

    John, some troubleshooting questions:
    1. did all of the file(s) originate from FM10 or were any from previous versions? Did you import previous version content? Slight naming differences between FM versions is an insidious problem that many of us here can relate to ... If any of the files were from previous versions, I would start with testing FM10 original content itself, to see what naming convention FM10 starts with.
    2. if you want to dive into the innards of your problem files, you might use the venerable MIFBrowser, a freebie from
    http://www.wideman-one.com/gw/tech/framemaker/mifbrowse.htm
    Although it hasn't been updated in a loooooong time, it should still work perfectly with FM10 MIF files.  It's just a viewer, not an editor, but it will help you get a handle on both the conditional tags in-situ, in comparison to the tag as defined in the condition catalog section.
    MIF is a bit daunting if you've never looked at it, but with MIFBrowse the various sections of content are more easily viewable.
    3. With copies of your FM files safely backed up you could then edit the conditions in the.MIF files in a text editor (or by using FM itself, although this takes some special care to ensure that the file remains as text. I personally fine text editors (e.g. NotepadPlus or EmEditor) easier to use because viewing line numbers helps when trying to sync between what you see in the MIFBrowse display vs. actually edit the content.
    4. It's also possible to save the .book file as .mif to then examine/edit the conditional tag catalog with a text editor. You could copy the "missing" conditional definition from one of the chapters into the .book file.
    Sheila

  • Sorry about first try : how to avoid html-text tag converting & to & amp;

    subject
    how to avoid html:text tag converting "&" to "& amp;"?
    body
    hi,
    i have some values on DB like "& #351;" and when i use html:text to
    show binding's value, html:text converts "&" to "& amp;". in generated
    html, it looks like "& amp;#351;".
    how to avoid this conversion?
    thanks...
    Ayhan G�ng�r
    note: i use white-space among special characters because browser renders them. ex : (& amp; to &)

    hi, i use property attribute of html:text.
    property is declared in UIModel xml file.
    i mean, i don't use something like
    <html:text value="data"/>i use just like
    <html:text property="bindingName"/>and value is shown in generated html input tag as value.
    html:text has no attribute like filter.
    i think i should override html:text tag, and create a new tag that checks if value includes "& #351;" this type data. If there is, don't convert "&" to "& amp;"?
    any suggestions?
    thanks...
    Ayhan

  • Text Tags appearing on my Agreements

    Just recently, my agreements are showing both the checkbox and the text tag to create on my final agreements to my customers - HELP.  It's happening for multiple agreements that were once working - what happen.  Ex:  {{$r}}  {{#r=[]*_es_:signer1}}, The box appears fine, but so does the text tags.

    Hi Cheryl
    This is a known issue which is being worked on by our engineering teams.
    The current workaround would be to try using the same font in the entire document.Try a font other than Cambria and Calibri.
    Thanks

  • INDESIGN CC TEXT TAGGING PROBLEM

    I currently import text primarily from Filemaker which tags the data then manipulate it in word so that when brought into Indesign, the styles sheets set are put to the text once we have included the heading of <ASCII-MAC>. We have just upgraded to creative cloud and now we dont seem to be able to import any text at all. The most I can do is bring in the text as a word document therefore no styles allocated and useless tagging codes showing. Example of the text we used to import from word as text only:
    <ASCII-MAC>
    <pstyle:Title>
    The Economics of European Integration
    <pstyle:Subtitle>
    Limits and Prospects
    <pstyle:Affiliation>
    Miroslav N. Jovanovi , United Nations Economic Commission for Europe, Geneva and University of Geneva, Switzerland
    <pstyle:Text>
    ‘In this well-researched, comprehensive account of the development of the European Union (EU), Jovanovic presents details of the progress made toward economic integration and considers aspects of the political future of the EU, e.g., the impact of the recent admission of ten additional member nations. . . A valuable resource for individuals interested in, and courses dealing with, international economics of the history and politics of modern Europe. Highly recommended.’
    – G.T. Potter, Choice
    It is of paramount importance that European firms, investors and countries, take into consideration the implications, changes and opportunities of European integration in their decision-making processes. This is reinforced by the fact that the EU has been continuously evolving and enlarging. This textbook is one of the first to cover the subject of the economics of the EU, including all 25 member countries as well as several other potential candidate countries.
    <pstyle:Contents>
    Contents: Preface  1. The Origin, Evolution and Prospects for the European Union  2. Monetary Integration  3. Fiscal Policy and the Budget  4. Common Agricultural Policy  5. Competition Policy  6. Industrial Policy in Manufacturing and Services  7. Trade Policy  8. Spatial Location of Production and Regional Policy  9. Capital Mobility  10. Mobility of Labour  11. Social Policy  12. Environment Policy  13. Transport Policy  14. Eastern Enlargement  15. Conclusion   Bibliography Index
    <pstyle:ISBNs>
    2005
    944 pp
    Can anyone offer any help as this is now preventing me from doing anything.
    Thanks

    The correct format is:
    <ASCII-MAC>
    <vsn:9>
    (ie, the text encoding in one line and the ID tagged file version in the next)
    You ended up with an empty text frame because the your source file has "Classic Mac" linebreaks. InDesign CC requires that tagged files have Unix linebreaks.
    As far as I know, MS Word doesn't offer the option to choose the line endings of text files (at least my old Mac Word 2004 doesn't). If your version allows that, you're set. If not, you can open your file in a text editor that enables linebreak options, like the free Text Wrangler or its paid big brother BBEdit. Alternatively, you can use a utility like LineBreak ( https://www.macupdate.com/app/mac/12045/linebreak ) to do the conversion in a convenient drag-and-drop operation.
    Another advice: don't put the paragraph style tag in one line and its correspondent paragraph in the next line. Your original sample:
    <pstyle:Title>
    The Economics of European Integration
    <pstyle:Subtitle>
    Limits and Prospects
    when imported as is, will ended up with unnecessary blank lines. This happens because you're telling InDesign to:
    apply the paragraph style Title,
    insert a paragraph return
    insert the string "The Economics of European Integration"
    insert a paragraph return
    apply the paragraph style Subtitle,
    insert a paragraph return
    insert the string "Limits and Prospects"
    insert a paragraph return
    The blank lines you'll see in the final result in ID are caused by the paragraph returns that exist in your tagged file, right afther the paragraph style tag (highlighted in bold above).
    The proper usage follows:
    <pstyle:Title>The Economics of European Integration
    <pstyle:Subtitle>Limits and Prospects
    By formatting the tagged file this way, you'll avoid those extra blank lines.
    Hope it helps.

Maybe you are looking for

  • Web Server Aliases not working!!

    I have set up a virtual domain "internal.blahblah.com" within that I have setup Web Server Aliases. However, I cannot get them to resolve for the life of me! I tried somthing as simple as * . No go when I enter "server.internal.blahblah.com". Anyone

  • Reports 10g vs the good old days

    Having been running reports from forms since the good/old client-server days, reports 10g is both a blessing and a curse. While it's certainly nice not to have to install software on each and every client box, since reports are now kept in cache on t

  • Executing A Stored Function

    I created the function below to generate four random number and to have them inserted into a table called RANNUMBERS. CREATE OR REPLACE FUNCTION randnumber RETURN NUMBER IS BEGIN declare i number; inivar_v number;      rannumb      number; multi_v1 n

  • ChaRM for R/3 4.5B

    Hi Experts One of our system is R/3 4.5B.   Does SolMan ChaRM support  R/3 4.5B? If so, do we need to install certain level of  Support package as prequisete?

  • Partial Eliminations

    Hello guys, I want to apply eliminations postings based on a percentage, is "Consolidation of investment" the only option to do so ? Is there a way of doing it using simple interunit eliminations ? If yes, where (in customizing) should I enter the ra