@Rouben Rostamian Thank you. I appreciate it! I have testet your procedure and it works. What I would like, though, is having the Matrix creation done outside of the procedure. The problem is, that your script won't be able to automatically detect the size of the Matrix needed in order to display the entire Matrix. Here is my requirements:
The user should specify the number of columns towards the top of the document, for example columns:=20. A procedure like your Do_Danish should give as output a list of symbols representing the original text stripped for all symbols and spaces except for the letters a-z, æ, ø, å AND the corresponding capital letters A-Z, Æ, Ø, Å. When that is done, the length of the list can be determined in order to calculate how many rows (variable named rows) are needed to display the 'strippedlist' as a matrix. Since Maple doesn't display an entire big Matrix by default, it will also be necessary to call the interface command to set it properly. I am thinking of something like:
textlength := Length(strippedlist);
rows := iquo(textlength, columns);
interface(rtablesize = max(rows, columns));
Then later use the following command to display the Matrix:
Matrix(rows + 1, columns, strippedlist)
I hope that makes sense?