Limit 'bad' characters in plain text created in TextEdit

[As usual, I have no idea where to post this because the key app, TextEdit, doesn't have a community; suggestions for alternates wecolmed.]


need a way to 'sterilize' text that I'm working on by reducing it to a simpler character set with the least hassle. My workflow requires that I copy and paste several paragraphs to several pages worth of text back and forth between the simplest plain text editor and one of several EMRs in use at my various worksites with notable lack of text editing features.


I use TextEdit as my primary editor for this because it's quick and easy to get plaintext in and out of it. But: some things acceptable to TextEdit are problems when pasted back into the EMR, such as bullets (cause a corruption error and refusal to save the pasted text) and dashes (when I type a dash or paste a dash from an existing paragraph into TextEdit, and paste it back to the EMR, it creates a vertical line of unhappiness instead of a dash.


I still can't get an answer as to what character set is acceptable in my primary EMR (resounding silence from Cerner since my tech support person and I both made the request to provide the details).


I tried to force TextEdit to work with only ASCII characters but while TextEdit offers save as ASCII options, it won't do that if the text already has forbidden characters in it, as it does if I copy/paste abstracts from PubMed.


And while I have had some success in keeping the dash problem at bay (there is a preference setting to prevent auto-dashes from being inserted when I type double hyphens), I have managed to corrupt a different setting that was keeping a minimum of formatting in my plain text as I pasted it; now when I paste, the paragraphs are merged because my paragraph setting is lost.


That is, text in TextEdit documents, set to be plain text, show up in the TextEdit window with paragraph breaks where I put them. I paste into the EMR text box, and it's one continuous paragraph with extra spaces where the paragraphs used to be.


I have a couple of TextEdit files that I saved previously as templates for various standard boilerplate entries, and when I work in those files, I get the normal paragraph-preserving behavior. But I can't find a way to compare the settings/characters etc in a new file vs the older files to figure out what the difference is.


Now I'm stuck. Helpdesk can't help because they only know Windows.


(1) anyone know what setting in TextEdit might be corrupting the paragraphs when I copy/paste?


and


(2) Can I set up a working environment in TextEdit that will identify the non-ASCII characters and replace them with something obvious--like a # sign--at the point of pasting them into a document, and also avoid being able to type nonASCII characters while I'm working on the pasted document, so that I won't have the problem at the end when I'm pasting it back into the EMR that seems too lame to cope with non-ASCII text?

MacBook Pro, macOS High Sierra (10.13.6)

Posted on Jul 28, 2018 9:21 AM

Reply
11 replies

Jul 28, 2018 6:31 PM in response to Donot Haveone

First of all, that EMR may be expecting a Windows encoding, and not Mac, or even UTF-8. What if you save the TextEdit plain text as Western (Windows Latin 1), or add Western ASCII from the customize encoding list?


Have you tried asterisk instead of bullets?


You could also try the BBEdit application which is plain text. No purchase necessary, as once the trial ends, it keeps working. I use this in preference over TextEdit.

Jul 28, 2018 6:18 PM in response to VikingOSX

I just played with the various encoding options, and both Windows Latin 1 and ASCII permit bullets, which corrupt the paste into my primary EMR (Cerner) but are OK in the others (Epic, Allscripts). I can set up an automatic text replacement but that crosses all Apple Apps because it's in system preferences, so I'd mess them up elsewhere. I'd like TextEdit alone to give me a substitute asterisk every time I try to do a bullet, but looks like that won't work.


Still, it was worth a try.

Aug 1, 2018 4:01 PM in response to Tom Gewecke

I'm trying BBEdit, and have a bunch of questions. Where is the best place to ask them?


For example


•I want to save my templates for my attestations and BBEdit offers a rather random selection of places I can save it to....but there is no 'other' to permit me to navigate to the folder of my choice. I can only save it to folders in my 'favorites' on the sidebar of Finder Windows; Documents; or 'recents'. There is no way to navigate to the folder I want (not a favorite or recent) or to create a new folder when trying to 'save' or 'save as'.


Very odd.


And


•And: can I force BBEdit to reopen a file exactly as it was before I closed it--text wrapped to window, narrow long window, text zoomed to make it easy to read, while still keeping it a simple text file for ease of copy/paste without screwing up the formatting of the EMR document I'm pasting into?


In TextEdit, it will open with my preferred wrap scheme, but not at the text size that I want, and I have to do a cmd-+ several times to restore the text zoom to a comfortable size. Minor PITA there.


In BBEdit, I have to use the menu to navigate to zoom, and to do it several times, because there isn't a keyboard shortcut like cmd-+. Bigger PITA, because I'm reverting to saved or opening a new file that I want similarly wrapped/sized/zoomed 20 to 60 times over the course of 2-3 hour session of working on many notes in a row.


Those little annoyances add up fast.


But: Remove Line Breaks is a GREAT, GREAT, BRILLIANT and BEAUTIFUL command.

Aug 1, 2018 5:11 PM in response to Donot Haveone

And finally got it right: default window opens in a nice san-serif 14 point font but still pastes into documents as plain text and keeps formatting of pasted-into document, not pasted-from document. Wraps to my window. I just have to narrow the window to my preference when I get started. Very nice. I think this is IT!


And: I can't now credit the first BBEdit post as 'this solved my problem' but I want to give the right credit. What to do?

Aug 22, 2018 6:46 PM in response to Donot Haveone

•I want to save my templates for my attestations and BBEdit offers a rather random selection of places I can save it to....but there is no 'other' to permit me to navigate to the folder of my choice.

You are looking at the default style of the Save dialog in macOS. It is "simplified." Just click the little carat button next to the file name to expand the dialog.

•And: can I force BBEdit to reopen a file exactly as it was before

In the Preferences, default editor, you can set it to always soft wrap, but that is a global setting, not per document.

In Menus & Shortcuts, you can modify the shortcuts for the menu items, including Zoom In/Out.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Limit 'bad' characters in plain text created in TextEdit

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.