How to type in multiple spaces in mermaid? - visual-studio-code

I'm using VS Code to edit my markdown file, and need to make flowcharts (graph) to display workflow.
The problem is VS Code will not properly display the long text title, the last few part will be truncated as showed in follow:
```mermaid
graph LR
azzzzzzzz-->b
```
So I'm thinking of simply adding space after the text. However, I searched through the internet, and cannot find a way to type in multiple space.
```mermaid
graph LR
a[zzz z zzzz ]-->b
```
No matter what I try, the actual title will only display 1 space only. So if anyone can help either on truncate issue of VS Code or teach me how to type in multiple space.
I've been struggling with it for whole day, please help! Thanks a lot!

According to documentation Entity codes to escape characters you have to use the following:
It is possible to escape characters using the syntax examplified here.
graph LR
A["A double quote:#quot;"] -->B["A dec char:#9829;"]
In your example it could be the following:
```mermaid
graph LR
a["zzz #nbsp; z #nbsp; zzzz #nbsp; "]-->b
```

Related

I would like to make 5 character after first hypen(-) bigger than the rest of the sentence in Crystal Report

I am newbie in this crystal report. I would like to change the font size to be 5mm in this 0U482 in the sample data below:
82115-0U482-MA 000002
From searching the google and study in internet, this is what I found to do it. But I'm not sure how to make it working for me. Any help will be highly appreciated.
Make a new formula called modelno1 to find the word after first -
Code this into the new formula left({modelno},(len({modelno})-InStr({modelno},"-"))+1)
Make another formula called modelno2 to get only 5 character only from previous formula
Code this into modelno2 left({#modelno1},5)
Make the font size to 5mm
The code for font size is stringVar modelno1 := '<b style="font-size:5mm";>'#modelno2'<b>'
Sorry if my English is bad.
Thank you
Just an update,
I managed to make the code work as I want.
Thank you God.
The solution is:
Change the 6th step code into
'<b style="font-size:5mm";>'&left({#modelno2},5)&'</b>'
Change the paragraph formatting in the formula field to HTML Interpretation.
You should be good to go!
Cheers

Extract word between two words in Tableau

My data in a single column looks like this
Environment: PROD_A
JobName: MY JOB NAME 1
MemName: Some_Script_names
My aim is to create a calculated field where it fetches JobName.
In above sample. The output should be MY_JOB_NAME_1
Here's my code in Tableau -
MID([Description],FIND([Description],"JobName: ")+9,
FIND([Description],"MemName: ")-FIND([Description],"JobName: ")-9)
The above logic is same as excel function below. It basically finds first word and last word and then picks the one in between.
=MID(A1,SEARCH("JobName: ",A1)+9,SEARCH("MemName",A1)-SEARCH("JobName: ",A1)-9)
Issue -
Tableau is showing blank data. Not sure where my logic is wrong. Any help is appreciated.
You may be able to use REGEX funtions (depending on your data source). Try this: REGEXP_EXTRACT([Data],'JobName: (.*)')
I see that you commented that the text is in one cell and not one column as you wrote in question.
This finds the JobName and uses that position plus the lenght of it as the startposition, then finds MemName as the endposition (and calculates the number of characters between them)
=MID(A1,FIND("JobName: ",A1)+LEN("JobName: "),FIND("MemName",A1,FIND("JobName: ",A1)+LEN("JobName: ")+1)-(FIND("JobName: ",A1)+Len("JobName: ")))
The following tableau calc works, this assumes that there is no space after MY_JOB_NAME_1 and "MemName:"
MID([Text],
FIND([Text],'JobName: ')+10,
FIND(
MID([Text],
FIND([Text],'JobName: ')+10)," ")-9)

Autoformat word table in perl

I have created a word document in perl with normal text and tables.
Now i want to format my table but i can't find the way to do this.
I know to put a format on my table i need to execute following command
$table->AutoFormat(x); with x being e number from 0 to ....
But there are a lot of table styles. I want just a normal one (which is style 16) but i want to assign the border lines and vertical lines myself to create a table by my choosing. Does anyone knew the syntax for this one , or a documentation of the autoformat syntax so that i know which number is which table style
I know this is a question for documentation or tutorials but i searched a lot online and can't find any explanation about the autoformat syntax. And which numbers represet the border or the style . I hope some could help me out here.
You need to look at Microsoft's Visual Basic documentation for the
Word object model.
The OLE interface is simple to understand from there
The page for Table.AutoFormat is here

Using PowerShell to modify MS Word cell borders

I routinely create reports using MS Word. Part of this report contains a table, which I have been copying manually from Excel into the word document. I am trying to use PowerShell in order to do this automatically, but I am having trouble finding the correct formatting commands. Specifically, I am currently trying to format the table so that every border between rows is dotted instead of solid, but the borders between columns are invisible. So something like this:
Heading1 Heading2 Heading3
.................................................
H1Item1 H2Item1 H3Item1
.................................................
H1Item2 H2Item2 H3Item2
.................................................
I did find that this gets me going in the right direction, but doesn't quite provide the granularity of border control that I'm looking for:
$Table.Range.Style = "Table Grid"
$Table.Borders.InsideLineStyle = 2
$Table.Borders.OutsideLineStyle = 0
If there is any good documentation on formatting Word paramters through PowerShell, I would really appreciate the pointer. I've managed to find articles relating to how to do specific things, but no good documentation.
Aha! I found it. I was trying for a way to do it in one line, but I found that if I just edit each row as I'm adding the data to it, then I can get the whole table that way. This is the line I added to my Foreach loop:
$Table.Rows($x).Borders.InsideLineStyle = 0
I would still love a link to some good documentation if anyone knows of any!

Progress 4gl Creating a .xlsx file without excel

Version: 10.2b
I want to create a .xlsx file with progress but the machine this will run on doesn't have excel.
Can someone point me in the right direction about how to do this.
Is there a library already written that can do something like this?
Thanks for any help!
The project was moved to the Free DocxFactory Project.
It was rewritten in C++ with Progress 4GL/ABL wrappers and tutorial.
It is 300x times faster, alot of new features were added including barcodes, paging features etc.
and it's completely free for private and commercial use without any time or feature limits.
HTH
You might find this to be useful: http://www.oehive.org/project/libooxml although it appears that there is nothing there right now. There might also be an older version of that code here: http://www.oehive.org/project/lib
Also -- in many cases the need to provide data to Excel can be satisfied with a Tab or Comma delimited file.
Another trick is to create an HTML table fragment. Excel imports those quite nicely.
A super simple example of how to export a semi-colon delimited file from a temp-table. In 90% of the cases this is enough Excel-support - at least it has been for me.
DEFINE STREAM strCsv.
DEFINE TEMP-TABLE ttExample NO-UNDO
FIELD col1 AS CHARACTER
FIELD col2 AS INTEGER.
CREATE ttExample.
ASSIGN ttExample.col1 = "ABC"
ttExample.col2 = 123.
CREATE ttExample.
ASSIGN ttExample.col1 = "DEF"
ttExample.col2 = 456.
OUTPUT STREAM strCsv TO VALUE("c:\test\test.csv").
FOR EACH ttExample NO-LOCK:
EXPORT DELIMITER ";" ttExample.
END.
OUTPUT STREAM strCsv CLOSE.