Questions relating to working with textual information: textual analysis, data mining, etc.
8
votes
5answers
187 views
Determine the Number of Lines in a Text File
I have looked and looked but I do not see a simple efficient way to get MMA to return the number of lines in a text file?
I thought about reading the file until it returned the EOF marker, but that ...
2
votes
1answer
62 views
diff-able text-only notebooks?
I would like to save my Mathematica notebooks as plain-text documents, so that I can keep them under git version control.
I thought that ...
0
votes
2answers
59 views
Iterating Reads From a Text File and Writing the Results of Operation
I have a very large text (TSV) file. I am able to now read single line, thanks to StackExchange. I am able to read a part of that line using the part operator. I want to iterate through the whole ...
3
votes
3answers
129 views
Label points in plot with a text
I'm a newbie at Mathematica and I couldn't find how to label the maximum and the zero of a simple function in Plot with their names:
...
14
votes
2answers
195 views
Haiku Extractor
Inspired by the cool Tumblr Haiku Times that searches for accidental haiku in New York Times articles, I tried my hand at implementing such a search in Mathematica for my own text samples.
I'm still ...
2
votes
0answers
75 views
Exporting large numbers to a text file [duplicate]
I need to export large numbers to an ASCII text file, but as simple digits without powers of ten, e.g. I need to write 123456.789 to the file and not 1.23456789E10^5. It seems like such a simple ...
6
votes
1answer
81 views
How do you force line spacing to be uniform when a line contains characters with vector or overdot?
A persistent problem I've run into is that certain character decorations within the text of a paragraph will often add extra line spacing even if there is already plenty of space between lines. This ...
2
votes
2answers
137 views
3D scatter plot from a txt file
I have a txt file with space-delimited x, y, z coordinates of several points. The points are organized into groups of unequal size; the groups are delimited by skipping a line, like this:
...
7
votes
1answer
221 views
Poor anti-aliasing in Rotated text with ClearType on
There is a problem on my system that occurs when text is rotated 90 degrees as it is in frame labels. This only happens when ClearType is turned on, and only around 90 degrees of rotation.
I am ...
8
votes
1answer
206 views
What is the full list of all font families?
I'm having trouble finding a complete list of the FontFamily strings that mathematica supports.
1
vote
1answer
105 views
Spacer and Text in Graphics going Awry (in Mathematica 7)
Use of a vertical Spacer in justified text inside a graphic isn't working as required. The result in the green box looks right, but when this is placed in a ...
2
votes
4answers
126 views
How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably?
How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably?
This means if I have
...
0
votes
2answers
122 views
Why is Mathematica treating my text as input?
I have typed in some text input by using Alt-7 to convert everything into text, but why is text still evaluated? Or is there better way to make comments other than (* text here *), because in my text ...
17
votes
2answers
398 views
Movable text on a curve
Having an arbitrary curve defined as InterpolatingFunction, what is the best way to place a text on this curve? The text generally has two rows, for example: ...
1
vote
1answer
263 views
Importing formatted, highlighted text from : HTML vs RTF vs. XML
We would like the ability to import and analyze ASCII documents that have been manually segmented by highlighting and changing font colors of various sections, eg:
The original line breaks, ...