text

Text box size in Flash

Is there a way to get the size of a dynamic text box at run time? ...

System.IO.StreamWrite and Spanish Characters

I need to write the following string to a txt a File: SEGS,AUS1,1,0,0,712205,584,8659094,2,NUÑEZ FELIX ARTURO,584 I when I use: using (System.IO.StreamWriter sw = new System.IO.StreamWriter(@fileSobrantes, true)) { sw.WriteLine("SEGS,AUS1,1,0,0,712205,584,8659094,2,NUÑEZ FELIX ARTURO,584"); } I get this in the file SEG...

panoramic text visualization with seadragon (or other)?

i'm working on a visualization of a text file with 100k lines, max 1k characters/line, as one large, navigable image. similar to the bleak house example in blaise's ted talk demo of seadragon, but even simpler -- basically just the view from cat filename.txt, but with a view that's zoomed out so that the whole file is initially visible ...

.NET: How do I tell if an encoding supports all the chars in my string?

I've got lots of text that I need to output, which includes all sorts of characters from many languages. Sometimes I need to output the text in character encodings other than Unicode (eg, Shift-JIS, or ISO-8859-2), in order to match the page it's going to. If the text has characters that the encoding can't handle (eg, Japanese character...

Is there a clean approach to justify text in Reporting Service?

I'm creating a Report using SQL Reporting Services and I need to justify the text inside a textbox. By justify a mean aligning the text to both margin, left AND right. Just like justifying text in MS Word. I've been browsing a lot and found only a few smelly solutions. Is there a clean way to do this? Thanks, Pedro ...

create pdf with long lines, fit to pagewidth without wordwrap

i'd like to create a large pdf (not typical page size) with long lines, max ~1000 characters / line, where the page size and font are such that no lines need to wrap. the intention is not for the text in this document to be readable when the full page is viewed on any reasonably-sized monitor -- instead the reader can zoom to individual...

Why does IE7 display my webpage incorrectly?

If you look at www.kwikhousesale.co.uk in any FF, Google Chrome, Opera, IE8 etc. it displays fine. However, when using IE7 all the text shifts to the right resulting in much of the text appearing off the page. Please could somebody help me to resolve this issue? ...

.NET equivalent or alternative to Java's GlyphVector?

I'm in the process of porting a Java program to .NET using IKVM. Unfortunately IKVM's Graphics2D implementation throws a NotImplementedException in drawGlyphVector, i.e. it needs to be "fleshed out" with a .NET implementation (or by reducing it to calls of other IKVM Graphics2D methods which are implemented). Any ideas for an equivalent...

sIFR 3.0 - Text wrap/wrapping inconsistent in Firefox 3 on PC only.

This is a recurring problem I have in Firefox 3.0. It seems when I keep refreshing sometimes it wraps, sometimes it doesn't. When it doesn't wrap, I can adjust the window size and the sIFR'd element will snap to its correct size. I need my elements to wrap on load, based on the width of it's container. I have the most current 'nightly b...

Java Swing custom text JEditorPane

I have a list of Objects (the model) that are constantly appended to (similar to a log file) and I'd like to display as rich text in a JEditorPane (the view). How can I glue them together? http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#document doesn't seem to give enough information to use. ...

Create a MySQL table from a list of terms in a text file

Hi, I have a text file with a long list of terms (approx 800) sorted alphabetically in the format: aword bword cword ... I would like to use this file to create a new MySQL table where each term is a field, all with the property VARCHAR(5). Would be best if the fields were inserted in the order in which they appear in the file as I ...

Import a fixed width text into Excel 2003 using VB

Hello. I have a fixed width text file and I want to automatically import certain spaces in each line into specific cells of an Excel 2003 sheet. Can you help me? I will re-phrase my question because the previous one wasn't very clear. I need to read specific characters (i.e. 12-17, 23-29) and place them inside a excel sheet. Is this po...

combine regex in ruby

Given this text: /* F004 (0309)00 */ /* field 1 */ /* field 2 */ /* F004 (0409)00 */ /* field 1 */ /* field 2 */ how do I parse it into this array: [ ["F004"],["0309"],["/* field 1 */\n/* field 2 */"], ["F004"],["0409"],["/* field 1 */\n/* field 2 */"] ] I got code working to parse the fir...

How do I create dynamically text in a movie clip using as3?

I would like to create text animated like a comet. I would like to create a gravity effect, accelerate the movie clip on vector, set a starting position on stage and load the text from a xml file. ...

.net Text delimited libraries?

Does the .net framework have any builtin assemblies for handling reading and writing from and to text delimited files? Or is this something I have create myself? ...

Text Wrapping in Gedit

Is is possible in Gedit (The GNOME text editor) to indent a wrapped line of text? For Example: if (x > y) { System.out.println("ABCDEFGHIJ KLMNOPQRSTUVWXYZ"); } instead of: if (x > y) { System.out.println("ABCDEFGHIJ KLMNOPQRSTUVWXYZ"); } ...

Set text outlining / border in Actionscript 3.0

How can I set the properties for the text outline / border for each character in a line of text in AS3 ? ...

How can I make java.text.NumberFormat format 0.0d as “0” and not “+0”?

Need result with sign, except for 0.0d. Ie: -123.45d -> "-123.45", 123.45d -> "+123.45", 0.0d -> "0". I invoke format.setPositivePrefix("+") on the instance of DecimalFormat to force the sign in the result for positive inputs. ...

How can I remove text at beginning of a file using a regex?

I have a bunch of files that contain a semi-standard header. That is, the look of it is very similar but the text changes somewhat. I want to remove this header from all of the files. From looking at the files, I know that what I want to remove is encapsulated between similar words. So, for instance, I have: Foo bar...some text here...

Python and text manipulation

Hi, I want to learn a text manipulation language and I have zeroed in on Python. Apart from text manipulation Python is also used for numerical applications, machine learning, AI, etc. My question is how do I approach the learning of Python language so that I am quickly able to write sophisticated text manipulation utilities. Apart from...