Questions tagged [text]

Text is a sequence of printable characters.

Text is a sequence of printable characters.

Text can be unformatted (plain) or formatted (rich).

The most common character codes used for representing text are Unicode and ASCII:

  • ASCII is a character code and an encoding.
  • Unicode is a complex standard, with multiple encodings, the most common of which is UTF-8.
31743 questions
7
votes
3 answers

Text to speech in objective-c iPhone

I am developing an application in which I have to play string as an audio. I am using http://translate.google.com/translate_tts?tl=en&q=Hello API to speak the string but it is a little bit slow. Is there any library in objective-c to play string as…
Shivomkara Chaturvedi
  • 1,697
  • 7
  • 28
  • 42
7
votes
2 answers

Is it more performant to keep text fields within a MySql table row or in a separate table and join

I know that when using a text type field within a MySql table, the data is not stored inline but only a 'pointer' is stored in the row. I only want to infrequently retrieve the text field, so is it better to keep it in the same table but omit it…
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
7
votes
2 answers

Remove line numbers at the start of each line

I have numbers at the start of each line in my text file in the following format : 1: text written .... 2: text written .... which continues upto 973 lines. I want to delete any starting numbers with a space and a colon after it ... How do I do it…
7
votes
4 answers

onClick text change

so I'm pretty new with html and need some help. I'm trying to make 3 buttons and each of them will change the text next to when you click on them. I am using the following code for each button:
7
votes
1 answer

How to disable text selection IN
  • I'm having trouble disabling text selection in a
  • element. http://jsfiddle.net/U3djn/
    • Text
    user-select works in
    , but doesn't work in
  • content.
  • user2465422
    • 157
    • 2
    • 9
    7
    votes
    4 answers

    From PDf to String

    What is the easiest way to get the text (words) of a PDF file as one long String or array of Strings. I have tried pdfbox but that is not working for me.
    Ankur
    • 50,282
    • 110
    • 242
    • 312
    7
    votes
    3 answers

    Find specific string in a text file with VBS script

    I need to find the string "Test Case " & index in a txt file. I give you an example of the lines you can find in this file: Log_ in_U1A1
    Luceye85
    • 123
    • 1
    • 1
    • 5
    7
    votes
    3 answers

    How to remove text between two elements with jQuery

    So I got the following html:
    • test
    • /
    • test
    • /
    • test
    • /
    • test
      • Sadly this is generated by a Plone extension which was forked…
    jurihandl
    • 665
    • 1
    • 9
    • 24
    7
    votes
    3 answers

    A lighter way of discovering text writing direction

    I want to determine the writing direction of a string so that I can render Right-to-Left languages such as Arabic correctly in a CALayer. so I have this method +(UITextAlignment)alignmentForString:(NSString *)astring { UITextView *text =…
    Warren Burton
    • 17,451
    • 3
    • 53
    • 73
    7
    votes
    2 answers

    D3, SVG and textPath: How to move the text down?

    I've got a diagram with some text written along one of the paths using a textPath. However, my problem is: I need the text to be on the other side of the text path, ie, sitting below it. Here's an example: I need the text here to be within the…
    Cheyne
    • 1,964
    • 4
    • 27
    • 43
    7
    votes
    3 answers

    How to remove lines from text file not starting with certain characters (sed or grep)

    How do I delete all lines in a text file which do not start with the characters #, & or *? I'm looking for a solution using sed or grep.
    user1844845
    • 281
    • 3
    • 7
    • 15
    7
    votes
    1 answer

    Python file IO 'w' vs 'wb'

    Wondering what the real difference is when writing files from Python. From what I can see if I use w or wb I am getting the same result with text. I thought that saving as a binary file would show only binary values in a hex editor, but it also…
    pj2452
    • 905
    • 3
    • 10
    • 22
    7
    votes
    1 answer

    Android EditText setText not updating the text

    Hi there. I dont know what is happening. I am trying to change the text of an EditText when creating a DialogFragment, but the EditText is not updating the text. If I call getText().length() I notice that the content of the EditText changed. But,…
    TiagoM
    • 3,458
    • 4
    • 42
    • 83
    7
    votes
    2 answers

    How to include subscript in text for plot point labels

    Hi I'm new to R so I apologise if this is a very basic question. I'm trying to add text to a plot at point 11 on the x axis and point 900 on the y axis that will read t0= -4.0280 with the 0 as subscript. Where t0 <- -4.0280 To do this I've…
    JJS
    • 73
    • 1
    • 1
    • 4
    7
    votes
    3 answers

    Splitting text into lines with maximum length

    I have a long string and I want to fit that in a small field. To achieve that, I break the string into lines on whitespace. The algorithm goes like this: public static string BreakLine(string text, int maxCharsInLine) { int…
    John NoCookies
    • 1,041
    • 3
    • 17
    • 28