text

Find text position

Hi. Could you please help me !!!! For example, I load some page into opera/Firefox etc., there is a text on the page (which is a link). What I need is to find position of the text on the screen and send mouse click to that position. Is it possible to do? If you can, give an example please!!!! ...

where can i find any text formating scripts like the one used in stackoverflow?

I want to give users the option to format text like bold, italic, add image etc ... I want to give list of options as such as given here in stackoverflow while asking questions Where can i find any predefined scripts for that? I searched on google , but i think i haven't searched with a proper text and i couldn't find anything releva...

Encoding MySQL text fields into UTF-8 text files - problems with special characters

I'm writing a php script to export MySQL database rows into a .txt file formatted for Adobe InDesign's internal markup. Exports work, but when I encounter special characters like é or umlauts, I get weird symbols (eg Chloë Hanslip instead of Chloë Hanslip). Rather than run a search and replace for every possible weird character, I need...

UITextView - preserving carriage returns on COPY - iPhone

Hello Everyone, When I try to copy text from a UITextView to say an Email message to compose and send, the carriage returns (new lines) of the text disappear and the text connects up into one LARGE paragraph. I am not sure why this is happening. How do I fix this? Thanks ...

How can I get the dimensions of a drawn string without padding?

I'm trying to create an image with some text on it and I want the image's size to match the size of the rendered text. When I use System.Windows.Forms.TextRenderer.MeasureText(...) to measure the text, I get dimensions that include font padding. When the text is rendered, it seems to use the same padding. Is there any way to determin...

Wikipedia text download

Hi, I am looking to download full Wikipedia text for my college project. Do I have to write my own spider to download this or is there a public dataset of Wikipedia available online? To just give you some overview of my project, I want to find out the interesting words of few articles I am interested in. But to find these interesting w...

How to represent formatted text for display on IPhone/Android/WP7/PC

I am working on a multi-platform app (Mono) that will store text in a centralized location on the web and synchronize this text across clients that could potentially be IPhone/Android/WP7/OSX/Windows(WPF)/Linux/Web. I need to support some degree of rich text (at minimum bold/italic/etc./basic lists/alignment), and I am trying to find a ...

php writing array in a text file fails, why?

trying to write an array to a text file, but it is failed, can anybody say, WHY? $filename= 't12a'; for ($pnum = 1; $pnum <= 15; $pnum++){ $bbal = 3; $ipmnt = 14 * 5; $ppmnt = 26 - 7; $ebal = 48 - 4; $ccint = 54 + 45; $cpmnt = 25 + 54...

Database Storing long Text Strings

What's the best method to store long text string (> 5000 chars)? ...

Unlimited SMS API/Gateway (Sending and Receiving)

I am creating a chat application which requires that users be able to send and receive sms messages through a web interface. It would be somewhat similar to the text messaging service available in yahoo mail or in aol instant messenger. The situation is this: Given the high quantity of messages that would be sent and received, paying on ...

Highlight Read-Along Text (in a storybook type app for iPhone)

I love this feature (well, my son loves it), and I would like to implement it in a kid's book app I am doing for iPhone, but I'm clueless where to begin. I'm using Cocos2d for all the animated sprite/transition stuff, but I'm not sure how to approach highlighting text as it is narrated. Example: "Jack and Jill, drank their fill, and w...

In Python, how do I decode GZIP encoding?

I downloaded a webpage in my python script. In most cases, this works fine. However, this one had a response header: GZIP encoding, and when I tried to print the source code of this web page, it had all symbols in my putty. How do decode this to regular text? ...

Clearing content of text file using C#

How can I clear the content of a text file using C# ? ...

Shell Script - comparing lines of text, deleting matches

Hi all, I've done some searching for this but cannot find what I'm after, specifically. I have two files: "a.txt", "b.txt". Each contains a list of email addresses, separated by newlines. For all lines in "a.txt", I need to check for a match anywhere in "b.txt". If so, the email address in "a.txt" needs to be removed. (Alternativel...

What is a reliable way to detect which line break characters are used in a file?

I'm reading text files but I don't know in advance the kind of line ending used in this file. I need to know whether it uses UNIX \n or windows style \r\n line endings. What is a reliable and fast way to detect this? ...

Text editing best practices (with tags, etc.)

Hi there, I want to create a text field with some text, that is styled with tags. Think of MS Word, some ext is bold, some is a headline, etc. The tags that style the text are not visible to the user, he just sees the text in bold. How do I preserve these tags? I mean when I backspace over the closing bold-tag, for example, how do I pr...

How to underline the text in the cell in iphone

Hi, I am new to iphone development. I have created grouped table and display the contents in the cell. Now i want to display underlined the text in the cell (similar hyperlink) based on my requirements. How can i achieve this. I did some research but i cant get any idea, please help me out. Thanks. ...

Edit text with DOM

How do you edit text with DOM cms-like. //now editing in textarea and clicks button which have onclick='editText()' function editText() { var myvar = document.getElementById('myTextArea'); alert(myvar.textContent);//alerts oldtext still ? //would like it to have alerted the now new and edited text from textarea } ...

Ruby File IO question; Maintain file read position between script executions

I have two files a.txt and b.txt (henceforth a and b). My script iterates through a, does some operation, and potentially inserts a line to b. In the event the script stops, I need it to pick up where it left off. In the example below: foo was copied to b bar was copied to b zim was not copied to b (did not pass some criteria) gaz wa...

How to change text color on Macintosh? My code uses TESetText and TEUpdate for drawing.

A naive question - i am a novice on mac programming. How to change text color on Macintosh? My code uses TESetText and TEUpdate for drawing. PS - Mac is really really badly documented. ...