Just want to Bold and Italic words

Hello

I use this code

var doc = app.activeDocument;

var a = doc.stories.everyItem ().paragraphs.everyItem () .getElements ();

var reportFilePath = doc.fullName.absoluteURI.replace (/ \.indd$ / i, ".txt");

var len = per .length;

for (var i = 0; i < par.length; i ++)

{

fonts = var. appliedParagraphStyle.name by [i];

font1 = var. appliedFont.fullName by [i];

var AllWords = mentioning by [i];

var length = AllWords.length;

for (var q = 0; q < length; q ++)

{

var size = .fontStyle AllWords [q];

If (size == "Bold" | size == "Bold Italic" | size = "Italic")

{

WriteToFile (AllWords [q] .silence, reportFilePath);

}

}

}

function {WriteToFile (text, reportFilePath)

= new File (reportFilePath);

leader. Encoding = "UTF-8";

If (file.exists) {}

leader. Open ("e");

leader. Seek (0, 2);

}

else {}

leader. Open ("w");

}

file.writeln (Text);

leader. Close();

}

I don't want that the bold italic words another number and all

Some suggest

Hello

Include some filtering before the final execution - if passed ==> continue

that is to say:

//...
for(var q=0;q

Jarek

PS: and make the correction of vandy

Tags: InDesign

Similar Questions

  • New tab fonts is Bold and Italic until clicked on.

    Win XP Pro SP3 / FF 9.0.1
    Apparently, something has changed my view of the font browser function.
    When a new tab is opened via a link clicked tabs police is in bold and italic (used to be "BOLD" only). Mouse on the tab or onFocus doesn't change anything, but as soon as I click on it it goes for "BOLD" just as it should. When I click to another tab, it goes to the regular police force as it should.
    Same thing happens when I close FF and relaunch the browser. All the tabs from the previous session show that bold and italic with the real tab is considered "BOLD" only. By clicking on other tabs only make "BOLD" (as it should) and the ordinary police is not selected.
    Perhaps before there Bold Italic, but not the jaggy police that appears now.
    Any ideas?

    It was the last version of the appearance Nautipolis theme that caused the problem.
    I rolled back to an earlier version (Version 1.8.78) and everything is back to normal.

    NAUTIPOLIS Versions versions

  • Bold and italic

    Hello

    This question must have been asked a million times, but I find no answers to him.  How can I select both bold and italic text when you type a formula in Safari?

    I'm writing captions on a Web site, but when I try to click on the fonts, bold or italic is not available.

    Thank you

    Select the text, and then press command + B to "BOLD". Let your selected text, and then press COMMAND-I to italics.

  • TextField: bold and italic?

    Hello world!
    can I put in bold and italic in an external css in a dynamic textfield, that loads an external html and is set to a font software?
    How?

    Thanks in advance
    Cheers!

    forget it, I could solve it...
    I had to add 2 new fonts, the same font but bold and italic.

    If anyone has had the same problem as me, I did it this way:

    fonts in my library:
    Georgia: the Georgia normal
    B: Georgia Georgia "BOLD"
    The Georgia italic I: of Georgia

    CSS:
    A:LINK, A: VISITED {}
    color: #006600;
    text-decoration: none;
    }
    HOVER, {HAS: ACTIVE}
    color: #003300;
    text-decoration: none;
    }
    . I have {}
    do-family: Georgia I;
    }
    . {B}
    do-family: Georgia B.
    }

    Thanks anyway...

  • Problem of bold and italic TextFormat()

    Hello

    I'm trying to format a dynamic text field using the code below:

    var oFormat:TextFormat = new TextFormat();
    oFormat.color = QuestionColor;
    oFormat.bold = QuestionBold;
    oFormat.italic = QuestionItalic;
    oFormat.size = QuestionSize;
    txtQuestion.setNewTextFormat (oFormat);

    The value of each variable comes from an XML file. The code works except .bold and .italic, regardless of what I spend on them ('true' or 'false') text is in bold and italic.

    What I am doing wrong?

    Thank you for your help,

    you are probably using a 'true' and 'false' instead of true and false. That is to say, you use strings and not primitives.

  • I just want to play and an audio file in a page of muse!

    I want to play and audio file on a page by clicking on a button connected without going through the audio player open in another tab or window, or at all for that matter. So far, everything I've tried including the widgets available audio in another open window with a scrub bar smack dab in the middle of the screen or it takes a playlist bar and limited scrub installed directly on the page.

    All the ideas!

    Jim

    It's just how it works. If you want other options you must use custom such as Soundcloud players and various streaming services offer.

    Mylenium

  • Can you pay for 2 apps in CC I just want of AE and Premiere Pro

    I just want to use AE and Premiere Pro with adobe CC and didn't really care about the other applications. I was wondering if I could pay just for those and not other applications. Thank you!

    Yes, you can get two subscriptions for individual applications.  Choose individuals-> unique App and every product in the menu drop-down to see the price for each of them in your local currency / price...

    Creative cloud plans

    https://creative.Adobe.com/plans

  • Keeping in bold and italic in .txt

    I think that what I am about to ask is impossible, but I wanted to run by the first experts to be sure.

    I have a .doc file. I want to load the text in this file in Flash. So I convert it into a .txt using a Web site like this: http://apps.phplivedocx.org/convert/doc-to-txt.  I add in the code bit at the beginning (myTextField =), then Flash load fine. The only problem is that any marked text (highlighted in bold, italic,) is lost. Is it possible to avoid this? Or for Flash to load the text of something else than a .txt? Or to manually reinsert the HTML in the .txt and get Flash to understand? Or else, I'm not consider?

    My text field correctly displays the text in the file 'PrimaryText.txt '.  The first line of text looks like this: < b > tests this text < /b > instead of showing just "BOLD" upward. And "render text as HTML" is checked. Thanks in advance.

    doc files are files of rich text that can have all kinds of text formatting applied in them.  txt files are simple ascii text files that only contain text and have no formatting to the text.

    To get your text "BOLD" should appear when you use html tags and set the property of the TextField object to true html (or choose the rendered html option in the properties panel), you must assign the text to the textfield object using the htmlText instead of the text property property...

    txt. Text = ""BOLD" text"; Displays the text "BOLD"

    txt.htmlText = ""BOLD" text";  Displays the text "BOLD"

    (ps - please don't crosspost: it's a courtesy that saves people posting answers, I've done probably just unnecessarily)

  • breaks computer much while using seem to just want to stop, and then start, and go slowly

    My computer seems to pause a lot while I use it, it's as if I'm to halfway through something or to looking for it and my computer stops, then seems to think then lights up, but it very often does insofar as it will stop move not giving any notification. It also seems that the computer starts or perhaps might there be a problem with the hard drive to pause the cause?

    Could you provide your system specifications?

    Could list you some of the programs that you are running when this happens?

    You have an external, attached and equipment currently in use during this time?

    Make sure the device drivers for hardware such as network, video and audio are updated?

    Have you tried to do a clean boot and see if the problem persists? (see below)

    Have you installed a new hardware or software since you started facing this problem?

    You create a new user account and see if the problem persists?

    How to do a clean boot:

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    ------------------------------------

    Check your hard drive for errors:

    Click Start

    Type: CMD, according to the results, right-click CMD

    Click on "Run as Administrator"

    At the command prompt, type: chkdsk /f /r

    When you restart your system, your computer will be scanned for errors and will try to correct them.

    -------------------------------------

    Click Start
    Type: CMD, according to the results, right-click CMD
    Click on "Run as Administrator"
    At the command prompt, type: sfc/scannow

    This will check for any breach of integrity

    Restart your system
    ------------------------------------------

    Scan your computer for viruses:

    There are some that will hide your files/folders so that you don't normally see them. I strongly suggest to run a scan on your computer with your antivirus/antimalware software. If you need to, you can also use the Microsoft Safety Scanner, it's free:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Also, if your files are hidden, check out the following article on how to display the:

    http://Windows.Microsoft.com/en-us/Windows7/show-hidden-files

    ------------------------------------------

    If the problem persists, check your memory, could be faulty:

    It runs from a floppy disk or CD, you must remove or
    confirm whether your one or more of your sticks of memory are bad or the values of the SPD in the BIOS are correct.
    Let it run for as long as you can: 2,4,6,8 or several hours, so no errors at that time then your ram is OK.
    http://www.memtest.org/

  • detect if the selection is in bold or italic.

    Hello, I am building a very simple with only one button, bold and italic text editor.
    I have more options, but I was wondering how can you detect when you select
    a text if this selection is bold or italic, or bold and italic?

    Anyone has any idea on this?

    Use getTextFormat with selectionBeginIndex and selectionEndIndex.

    var format: TextFormat =
    textField.getTextFormat)
    textField.selectionBeginIndex
    textField.selectionEndIndex);

    trace (format.bold, format.italic)

  • I just want to know the real web linking to the homepage of firefox that I use comodo dragon of ice which is based firefox and I want to use firefox by default in

    I just want to know the real web linking to the homepage of firefox that I use comodo dragon of ice which is based firefox and I want to use firefox by default in

    I see you put the tag b well in there, too. It was a mistake on my part I've already edited my original post. I tried to put about: fat home using HTML tags and I went too fast. Try Subject: House. It should come with zefa logo and below that will be a Yahoo! Search box.

    My first answer as marking and re-polished solution.

  • How can I connect my Airport time capsule to my WiFi network so he just backup my Mac and not extend nor want to be a base station

    How do I connect/install my time capsule airport to my new WiFi network so she just backup my Mac and not to extend my WiFi or want to be a WiFi hotspot

    There is no way to connect a TC to a wifi network. It must be connected by ethernet to the main modem or to the router.

    I don't understand what you're asking...

    If you want that the backup more wireless computer... How the TC cannot work as Wifi hotspot... It's impossible.

  • Is it possible to restore an iPhone on a previous backup?  My phone was stolen 2 weeks ago and took me off but the thief has changed a lot of my apps and things.  I just want to know whether and how to restore them from before flight

    Is it possible to restore an iPhone on a previous backup?  My phone was stolen 2 weeks ago and took me off but the thief has changed a lot of my apps and things.  I just want to know whether and how to restore them from before flight

    How the thief has changed a lot?

    You do not have a password, find my iPhone ON?

    Read here for the restoration of the backup: http://support.apple.com/en-us/HT201252

  • Hi, whenever I hit the home button on the current page go to my home page AND also opens another tab - I just want to go to my home page without having to open another tab that I then have to close. Any ideas?

    I was just in Firefox 4. Now, whenever I hit the home the current page button goes to my homepage (which is what I want), BUT it also opens another tab - I just want to go to my home page without having to open another tab that I then have to close. Any ideas?

    Gotcha. Go to your desired homepage and close all the tabs you want to NOT open when you click the home button. Then, you have several ways to update the home page setting as described in the article.

  • If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages b

    If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages by using Outlook.

    See this article.

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

Maybe you are looking for