Questions tagged [text]

Questions relating to working with textual information: textual analysis, data mining, etc.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Problem extend the Text style

This question follows up on a previous question SelectionMove in Stylesheets that essentially asked to how to construct a new style that was the same as a "Text" paragraph except that the ...
Spencer Rugaber's user avatar
2 votes
0 answers
40 views

Bug in the alignment of text?

If I put text in a plot as an inset, the vertical alignment of the text is normally set to the mean line of text in general. It does not matter if one writes M or m the baseline will still be aligned, ...
mathematica_guy's user avatar
2 votes
0 answers
85 views

Scale text by adjusting its immediately surrounding frame

I want to ask if it is possible to scale text in Graphics by adjusting its immediately surrounding frame, not the whole frame. ...
imida k's user avatar
  • 4,037
1 vote
0 answers
38 views

Big FontSize produces empty result

Style[A, FontSize -> 540] (* A with FontSize 540*) Style[A, FontSize -> 541] (* Nothing*) I think FontSize 541 is not too big. Practically there may be a ...
imida k's user avatar
  • 4,037
1 vote
0 answers
41 views

Scalable text in Graphics [duplicate]

From my little experience, it seems impossible to scale a text in Graphics. In other words, text in Graphics is not scalable. ...
imida k's user avatar
  • 4,037
0 votes
1 answer
68 views

"Graphics" will cause text tilted

I feel Graphics will make text tilted. As ...
Y. zeng's user avatar
  • 425
1 vote
0 answers
57 views

Trying to use SetOptions on Style to set some default plotting options

I want to set some default options for Style. I tried this: ...
Camillo's user avatar
  • 11
0 votes
0 answers
65 views

How to export a specific csv file text?

I have a data set of text in string format as ...
SAC's user avatar
  • 1,335
1 vote
1 answer
56 views

Mathematica not finding correct font for some font variants

I am experiencing a puzzling behaviour when trying to use the font Fontin in Mathematica 12.1.1.0. If I attempt to use the regular variant of the font, Mathematica instead displays the small caps ...
JonatanBB's user avatar
2 votes
1 answer
121 views

How to delete a word set in a text?

I have a setence: ...
SAC's user avatar
  • 1,335
2 votes
2 answers
178 views

How to render text at a specific height in pixels?

I would like a way to create an image of text that is a specific height in pixels. In the following code, the text is sized to fit in the specified raster. Since there are five letters, we expect each ...
abwatson's user avatar
  • 1,889
2 votes
2 answers
200 views

Text symbols not exporting correctly to PDF [version 13.2]

I am using Mathematica 13.2 on Ubuntu. I was trying to reproduce a plot that I made using Mathematica 12, but text symbols seem to not export correctly to PDF. This issue seems to apply to all non-...
Arturo don Juan's user avatar
4 votes
1 answer
68 views

Using TextCases to identify prepositions

...
Syed's user avatar
  • 38.1k
0 votes
0 answers
31 views

NotebookImport refuses to import simple notebook on Wolfram Cloud due to InterpretationFailure

I've been trying to convert one of my notebooks to text on Wolfram Cloud via the use of NotebookImport but unfortunately it just seems to flat-out not work and I ...
Jerome Beckett's user avatar
6 votes
1 answer
220 views

Documentation Search : google-like (pokygon -> polygon)

If you search for "pokygon" in google.com, then google automatically fix error, and searches for "polygon". Like google.com, if you search for "pokygon" in mathematica (V ...
imida k's user avatar
  • 4,037
0 votes
0 answers
36 views

Plotting a list with variable(chemical formula, number)

I have a list like this List=((co2-Teo2,12),(Al2o3,15),(Ta2O5,16)); I want to plot the list so that the x axis I have the right format of chemical formula and have chemical formula in my plot legends. ...
parisa esmaili's user avatar
0 votes
0 answers
24 views

Changing list of variables in text file

Imagine I have a .txt file as follows var1 = 2; rate = 10.3; power = -12; I want to use Mathematica to automatically update these values and rewrite the .txt file ...
sam wolfe's user avatar
  • 4,187
0 votes
1 answer
64 views

WriteString does not keep the input format for a^2 + b^3?

I have a series of expression which is added one by one, not all at once, to a file (OUT.nb). for some of them that has POWER format (a^2 + b^3 ), WriteString cannot write it correct. Also I tried ...
Azzurro94's user avatar
  • 499
1 vote
0 answers
72 views

Comparing two texts, looking for matching phrases

I would like to compare two human-language, user-supplied texts. Call them Text A and Text B. Each is the length of a fat novel, i.e., around 150,000 words. Is there a tool that can help me find all ...
du_toit's user avatar
  • 11
1 vote
0 answers
48 views

Listing textual entries of the form \[ ] [closed]

How do I create a full list of textual entries for symbols of the form \[Integral], \[Sum], and so on?
David G. Stork's user avatar
4 votes
2 answers
233 views

How stack text over an arrow

As part of a visualization of a mapping from a planar domain to another planar domain, I want to create a Row of the form ...
murray's user avatar
  • 11.7k
2 votes
1 answer
65 views

create string for string seen in FullForm

Can we create a string for a string seen in FullForm ? This question is hard to explain/understand with just words. So explain with an example : Can you create a function ...
imida k's user avatar
  • 4,037
3 votes
2 answers
52 views

GraphicsColumn - Multiline text isn't adapting based on overall column size

I'm trying to use Graphics Column to add a label under my plots. Eventually these individual columns will be combined in a grid, and I want the height of each plot to be the same so I can compare data ...
user2933940's user avatar
0 votes
0 answers
47 views

I Can't "Don't word wrap"

OS : windows 10 / Mathematica version : 12.2 Close all mathematica process and start new mathematica.exe See what is checked in Menubar - Format - Word Wrapping : ...
imida k's user avatar
  • 4,037
5 votes
0 answers
123 views

Characters and prompt are offset when typing in a text cell using MM13.1

I noticed on my system (Windows 10 and MM13.1) that when I create a text cell (ALT 7) the longer my sentence is the more offset the cursor appears from where I am. When using the left arrow to go back ...
Lou's user avatar
  • 3,812
5 votes
1 answer
97 views

How to get the Echo >> symbol?

What is the character code or way to get/type the >> symbol used when echoing something?
user13892's user avatar
  • 9,043
2 votes
3 answers
415 views

Divide string into a sublist of sentence with the maximum number of character

Context: I have a long article (on Wordpress). And I'm using Google Translate API (v2) to translate this article. This article has about 300 000 characters. However, due to the limit of Google ...
Nam Nguyen's user avatar
  • 1,751
1 vote
2 answers
137 views

Change style of the above cell

How can I change the style of a given cell, by writing some code on the cell directly below the cell and executing it? ...
imida k's user avatar
  • 4,037
2 votes
1 answer
108 views

Text cell numbering

For input cells and output cells, there are automatic,natural numbering. In[1] 2+2 Out[1] 4 I mean In[1] and Out...
imida k's user avatar
  • 4,037
0 votes
0 answers
77 views

SubscriptBox Text font in Graphics[Text[Style["..."]]]

In this code in Graphics and Text Style, Graphics[Text[ Style["!(N_b)\n U(1!(*SubscriptBox[()), (V)])"]]] I obtain the $V$ in italic font, but I wanted ...
wonderich's user avatar
  • 853
4 votes
2 answers
260 views

Computing maximal FontSize to fill a rectangle?

I'd like to compute the proper FontSize for a given piece of text to fill a given Rectangle. ...
user5601's user avatar
  • 3,561
-1 votes
1 answer
65 views

Identifying capitalized words in a text analysis [closed]

I would like to be able to identify those sentences that have a capitalized word somethere OTHER than the beginning of the sentence: Be it so, then I answer'd, I too haughty Shade also sing war, and a ...
gotwals's user avatar
  • 107
1 vote
1 answer
67 views

Can WordFrequencyData run faster?

I want the WordFrequencyData of the whole WordList[] However it takes too long to get the result. ...
Patchouli Nine's user avatar
3 votes
0 answers
99 views

FeatureExtraction[] for Text -- to normalize text or not?

The title pretty much captures my question. When I use FeatureExtraction[] for text, should I normalize text before parsing it through ...
dearN's user avatar
  • 5,311
1 vote
0 answers
45 views

Finding a root word

w = "successfully"; {DictionaryWordQ[#], WordDefinition[#], PartOfSpeech[#], WordData[#]} &@w ...
Syed's user avatar
  • 38.1k
0 votes
1 answer
84 views

Go to line Out[422] in a current working .nb

When working myfile.nb with mathematica, I don't know how to search or goto the lines In[529] or Out[422], in mathematica. Ctrl+...
imida k's user avatar
  • 4,037
5 votes
2 answers
201 views

Align paragraph text to left (not just first line)

The following looks wrong to me, how can I fix the alignment for the whole paragraph? ...
user5601's user avatar
  • 3,561
3 votes
1 answer
73 views

What is the function/purpose of \!\(...\) in Graphics?

In Graphics, we input the Text form "\!\(10m prize\)", but it outputs "10 m ...
wonderich's user avatar
  • 853
1 vote
0 answers
111 views

How to label a contour in ContourPlot with arbitrary text

I want to put a label on a contour in the ContourPlot with a text, but I can not do it. I have read all questions about this issue in the slack, but I could not find an answer to it. Let say, I want ...
Mehrdad's user avatar
  • 111
4 votes
1 answer
97 views

Antialiasing doesn't work for small text, when using Polygons with holes

I have a weird problem with antialiasing of small text and Polygons. If I use Polygon with holes poly1->poly2, Antialiasing doesn't work, although I used ...
Christoph T.'s user avatar
5 votes
1 answer
41 views

Importing textual data removes some letters

I have the following file TSV file p.txt containing a single line of 3 values: "22p" "22o" "22u"...
tobalt's user avatar
  • 357
4 votes
1 answer
132 views

Importing text generates whitespaces between every character

I have a TSV file with string data in it that I want to import. While the TSV format is correctly parsed into a Mathematica table format using ...
tobalt's user avatar
  • 357
2 votes
0 answers
132 views

How to write on a surface?

How do I include text on a curved surface? For example, and as a starting point, how can I reproduce the following image I've seen some examples where people geometrically described letters to do ...
sam wolfe's user avatar
  • 4,187
3 votes
2 answers
210 views

Remove words from a string that contain special characters

I have a string like this: string="there is a humble-bee in Hanna's garden"; Now I want to exclude those words that contain "-" and "'"...
M.A.'s user avatar
  • 699
1 vote
0 answers
32 views

How to draw a line marking where each chapter occurs in a text? [duplicate]

I am performing a text analysis on C.S. Lewis's book The Lion, the Witch, and the Wardrobe. I have created the following analysis of textual occurences of Aslan or Lion, Peter, Lucy, Edmund, Susan, ...
Peter Burbery's user avatar
1 vote
1 answer
254 views

How put a value in a legend

I am trying to put in a legend a value calculated previously but as you can see by your self the output is so stranger. ...
Antonio Maria Di Mauro's user avatar
1 vote
1 answer
126 views

Rotate the label when rotating the output image with graphics3D

I am interested in drawing a labelled dashed line through points p1 and p2 with Graphics3D. ...
TobiR's user avatar
  • 254
3 votes
1 answer
75 views

Probably easy question: How to make the Text font in the subscript?

In the specific Graphic setting, precisely (somehow \ ( and \ ) are not shown properly below in Stackexchange window) Graphics[Text[Style["\ !\ (1234_L\ )",LineSpacing->{0,12}],{0,3}]] ...
wonderich's user avatar
  • 853
0 votes
0 answers
55 views

scrape App Store web data

I want to scrape the privacy information of an app on the web store page. For example, the Tiktok app information looks like this: tiktok on us app store I found that it's easy to scrape that ...
spore234's user avatar
  • 601
4 votes
1 answer
232 views

Writing a document-like Text

Imagine I have the following code Graphics[{LightBlue, Rectangle[], Black, Text["Hello", {.1, .9}]}] If I had more text to the ...
sam wolfe's user avatar
  • 4,187

1
2 3 4 5
8