TED(1)
π TED(1) β General Commands Manual π
Okay bestie, this is the manual page for Ted β yes, that Ted. π
β¨ NAME β¨
Ted β an easy rich text processor (RTF file editor)
πΈ SYNOPSIS πΈ
Interactive calls as a GUI text processor:
Ted [ settings ] [ filename-1 ] [ filename-2 ..... ]
Special command-line calls:
Ted [ settings ] --command [ arg-1 ..... ] [ arg-2 ..... ]
π« DESCRIPTION π«
Ted is an easy rich text processor (RTF file editor) with a graphic user interface. For more information, see the users' manual (details below). Besides that, Ted is a utility to convert RTF files to various formats. One of its goals is to make it possible to produce decent looking documents avoiding the pain of antiquated packages like nroff that I had to use to type this man page. π
π₯ Ted can read the following file formats π₯
Documents can be read from files or from standard input. Ted only reads from standard input in calls that consume one single input document β like a file, a pipe, or what you type as a proficient RTF guru. π§
rtfβ Rich Text Files with extension*.rtfor-rtf-for standard input.txtβ Plain Text Files with extension*.txtor-txt-for standard input. The encoding of the text file is assumed to be UTF-8. To open files with a different encoding, use theiconvcommand.
π€ Ted can write the following file formats π€
Documents can be written to files or to standard output.
rtfβ Rich Text Files with extension*.rtfor-rtf-for standard output.txtβ Plain Text files with extension*.txtor-txt-for standard output. The encoding of the text file is UTF-8. To save files with a different encoding, use theiconvcommand. IfTedsaves a document to plain text, it discards all formatting and all illustrations.htmlβ Hypertext Markup Language files with extension*.htmlor-html-for standard output. IfTedsaves HTML to standard output, it discards all images and all embedded objects.emlβ HTML Mail message format (rfc 2557) files with extension*.emlor-eml-for standard output. The output can be piped intossmtpormailxas a HTML formatted mail message.epubβ EPUB e-book files with extension*.epubor-epub-for standard output. The document is saved in the EPUB electronic book format that is supported by most e-readers and tablets.psβ PostScript files with extension*.psor-ps-for standard output. The output can be printed or converted to PDF.svgβ Scalable Vector Graphics files with extension*.svgor-svg-for standard output. The output can be used as an illustration.pdfβ Portable Document Format files with extension*.pdfor-pdf-for standard output. The output can be viewed with the Adobe Acrobat reader or compatible programs.Teduses GhostScript (ps2pdfandgs) to convert PostScript to pdf.
π₯ COMMAND LINE CALLS π₯
Tedβ show the initial window with menu options to open files and to exitTed.Ted doc1.rtf doc2.txt ..β open the documents on the command line.Ted --Find pattern f1.rtf f2.txtβ open the files on the command line and search for pattern.Ted --RegFind pattern f1.rtf f2.txtβ open the documents on the command line and search for pattern. Pattern is a regular expression.Teduses thepcreregular expression matching library by Philip Hazel. For documentation seehttp://www.pcre.org. (Please realize that the casual user does not need to use or understand regular expressions.)Ted --TtfToAfm x.ttf y.afmβ make an afm file that describes a true type font. This can be practical when you manually configure fonts forTed.Ted --RtfToPs < x.rtf > y.psβ obsolete invocation: use--printToFile.-rtf--ps-Ted --RtfToPsPaper A4 < x.rtf > y.psβ obsolete invocation: use--printToFilePaper.-rtf--ps-A4Ted --versionβ show the version ofTed.Ted --platformβ show the platform for whichTedwas built.Ted --buildβ show the host and the date whereTedwas built.Ted --fullVersionβ show version, platform and build.Ted --saveTo f1.rtf f2.txtβ read a file and save it. (in a different supported format) Supported formats are*.txt*.rtfand*.html. AsTedwrites relatively readable rtf, this can be used as a kind of rtf pretty-printer.Ted --printToFile x.rtf y.psβ convert a document to PostScript. Format for the default paper format. Use-rtf-for the document name to read the document from standard input. Use-ps-as output name to emit PostScript to standard output. This call is used by thertf2pdf.shscript. If you use the script from an internet scripting tool like PHP, make sure that bothTedandgsare in thePATH. Note that this produces ps files with Ted's default paper size.Ted --printToFilePaper x.rtf y.ps A4β convert a document to PostScript. Format for the paper size given. Refer to--printToFilefor IO redirections. Note that this produces ps files with the given paper size.Ted --print x.rtfβ print the document on the default printer. Format for the default paper size.Ted --printPaper x.rtf a4β print the document on the default printer. Format for the paper size given.Ted --printToPrinter x.rtf lp1β print the document on the printer given. Format for the default paper size.Ted --printToPrinterPaper x.rtf lp1 letterβ print the document on the printer given. Format for the paper size given.Ted --setProperty property value ....β see below πTed --FontsDocuments /tmp/fontsdocsβ create a directory and for every font thatTedknows about, store a document with all the symbols in the font. This is excellent testing material. It can also be used to view the fonts. Thecheckfontsdocs.shjob can be used to check whether the documents are correctly handled.Ted --GSFontmapForFilesβ emit a fragment for a GhostScript Fontmap file. The shapes are:
Ted --GSFontmapForFiles `pwd`/*.ttf
Ted --GSFontmapForFiles `pwd`/*.pfb
The second and subsequent arguments are *.ttf, *.pfa or *.pfb file names. It alwaysβactually alwaysβmakes sense to use absolute font file names: GhostScript needs to know where to look for the fonts.
Ted --AfmForFontFilesβ create an afm file for all*.pfa,*.pfb,*.ttffiles on the command line:
Ted --AfmForFontFiles `pwd`/*.ttf
Note that to run the command, you need to have writing permission to the Ted afm directory, or at least in the localfonts subdirectory. Also note that you need to run the command with a umask that gives the generated afm files the correct permissions (022). The ++AfmForFontFiles variant tries to leave information in the AFM files on how to match X11 fonts to the fonts. With recent versions of Ted that use fontconfig, that is not really relevant.
β¨ OPTIONS β¨
Ted supports the following configuration options. Default values are compiled into the Ted executable program. Ted searches for values in the following locations: (1) The command line, (2) ${HOME}/Ted.properties (3) /share/Ted/Ted-${LOCALE}.properties, (4) /share/Ted/Ted.properties. Unknown (or misspelled) properties are silently ignored. Use the --property=value or the --setProperty property value syntax on the command line. π
magnificationβ magnification for drawing documents on the screen. The default value is100%. The alternative format1.0for100%is also supported. It has the disadvantage that it depends on the decimal sign of the current locale. (E.G:1,2for120%in Western Europe.) Very small and very big values are ignored.100%magnification translates to96DPI on screen.unitβ the unit that is used by default. This property influences the appearance of the ruler and the interpretation of numbers entered in the format tool. Possible values are:inch,",cm,mm,points,pt,picas,pi. The default isinch.paperβ the format of the paper in the printer. The paper format is also used as the default page size for new documents. If a smaller page size is used for a document,Teduses theTed.paperproperty to print in the upper left corner of the paper. Possible values are:a4,a5,letter,legal,executiveand strings in the form<Width> x <Height>or<Width> x <Height> <Unit>where<Width>and<Height>are numbers. Values for units are given above. If<Unit>is omitted, the value of theunitproperty is assumed. Plain text files do not store a paper size for the file inside the file. TheTed.paperproperty is used for the page layout of every plain text file thatTedopens. Note thatTeduses the file/etc/papersizeto find a default paper format. The default format can be overridden with any of the configuration mechanisms.leftMargin,topMargin,rightMargin,bottomMarginβ the default width of the page margins. The format is<Width>or<Width> <Unit>.<Width>is a number.<Unit>is one of the units mentioned above. The default unit is the value ofunitabove.defaultPrinterβ if you want to use a different printer than the system default printer as the default printer fromTed, you can set this property to select that printer the first time you use the Print Dialog. The value is the name of a printer. Use the same names that you use in thelp -d somePrinter, or thelpr -P somePrintercommands.afmDirectoryβ the directory whereTedlooks for font metric files.Tedonly uses font metric files if fontconfig is disabled. Without fontconfig, only fonts that have a metric file in this directory can be used byTed. In a default installation, metric files are expected in/share/Ted/afm. This property is particularly useful when you cannot installTedas root, and hence you have to store the metric files in some private directory. You can also make theafmDirectorypoint to the GhostScript fonts directory. E.G. to/usr/share/ghostscript/fonts. Refer to the section on adding fonts for more details. Use thegs -hcommand to find the exact location of the GhostScript afm files.spellToolSystemDictsβ the directory whereTedlooks for spelling dictionaries. In a default installation, spelling dictionaries are expected in/share/Ted/dfa. This property is particularly useful when you cannot installTedas root, and hence you have to store the dictionaries in some private directory.documentFileNameβ the name of this online document file. In a default installation this is/share/Ted/TedDocument-en_US.rtf.customPrintCommandβ a command to print through a custom printer command. Refer to the paragraph on printing for details.customPrinterNameβ the name that is used to designate the custom printer command on the Print Dialog. Refer to the paragraph on printing for details.customPrintCommand2,customPrinterName2β bestie, this is how you configure a second custom printer. Two printers, no drama. πprintDialogShowPlacementDrawingβ some laptops have microscopic screens π. Setting this property to0hides the little diagram that shows where the document pages land on the sheets of paper. It makes the dialog way shorter so it actually fits on screens like that.showTableGridβ by default Ted draws a grid to show the structure of tables that donβt have borders. Set this to0and boom, no grid. β¨fontDirectoryβ the directory where Ted looks for fonts to include (embed) in its printed documents. Peep the section on adding fonts for more details. Use thegs -hcommand to find the exact value. This property is only used on traditional UNIX systems that do not use fontconfig. AFM files generated by Ted have a Ted-specific comment that gives the font file name, so this property only matters if neither fontconfig nor Ted-generated AFM files are being used. πusePostScriptFiltersβ PostScript levels 2 and 3 support filters, and filters let images in a PostScript file be coded way more efficiently. You can turn this off if your printer doesnβt support level 2 filters and the/FlateDecodefilter. Recent versions of GhostScript support both. If you cannot print all images, deactivate this setting β set the value to0.usePostScriptIndexedImagesβ PostScript level 2 has a variant of the image operator that lets images use color indirection via a palette inside the PostScript file. Since lots of images in rtf documents are this kind, setting this property can help reduce the volume of PostScript sent to the printer. All level 2 implementations, including GhostScript, support indexed images. If you cannot print all images, deactivate this setting β set the value to0.customPsSetupFilenameβ the name of a PostScript file used for special printer setup and configuration. The contents of that file get inserted as part of the Setup section of the PostScript output. π οΈskipBlankPagesβ if this parameter is set to1, Ted skips blank pages while printing. Pages that are completely empty will not be printed. If the document has headers and footers, the relevant headers and footers will be printed on the page, and the page will not be blank. π«ΆskipEmptyPagesβ if this parameter is set to1, Ted skips empty pages while printing. Pages that are completely empty will not be printed. A page is not considered empty if it actually is empty but the document has headers and footers. Under many circumstances the page would contain a header and a footer, and it will be printed.omitHeadersOnEmptyPagesβ if this parameter is set to1, Ted will not print page headers and footers on pages that contain no text from the document body or from notes. By design, this property interacts withskipEmptyPagesandskipBlankPagesin the following surprising way: if bothomitHeadersOnEmptyPagesandskipBlankPagesare set, a page without any body content will not be printed at all. However, if bothomitHeadersOnEmptyPagesandskipEmptyPagesare set, a page without any body content will be printed as an empty page. Plot twist, bestie. πfindToolExplicitFocusβ tells the find tool to get keyboard focus when you activate it. Usually thatβs desirable. But some window managers make Ted crash when it tries to manipulate keyboard focus, so you can setfindToolExplicitFocusto0to tell Ted not to move keyboard focus to the find tool and avoid those problems. π§autoHyphenateβ if a word in a line of text is wider than the width allocated for the paragraph, Ted makes that word protrude beyond the right margin. SetautoHyphenateto1and Ted will automatically insert optional hyphens (-) to fold the word. In general this is undesirable behavior. Only set this on the command line, and only if you use Ted to format documents. IfautoHyphenateis set while youβre editing documents, those optional hyphens will end up in completely arbitrary locations. Not cute. πavoidFontconfigβ if Ted was compiled to use fontconfig and freetype, setting this option to1tells Ted not to use fontconfig or freetype. It falls back to afm files and plain X11 text rendering. Turning off fontconfig has the disadvantage that fewer fonts are available and text looks far worse on screen. For rtf to PostScript/PDF conversion, it has the advantage that Ted is less dependent on the environment and documents that use standard fonts are formatted even more similar to what MS-Word does. πpreferBase35Fontsβ if Ted was compiled to use fontconfig and freetype, setting this option to1tells Ted not to use fontconfig to get the list of fonts. It uses the Adobe collection of35core PostScript fonts instead. Turning off fontconfig has the disadvantage that fewer fonts are available. The advantage is that documents you make only use a set of widely supported standard fonts. πembedFontsβ if Ted knows the name and location of font files on the file system, it will embed the fonts in its printout. Advantage: generated PostScript prints identically on all printers. Disadvantage: files are bigger and possibly print slower. Set this property to0and Ted will not embed any fonts in its printout. π¦useKerningβ if set to0, Ted ignores kerning information in the afm files. That makes Ted start a little faster. The name suggests that otherwise Ted will use kerning, but that is not the case. The current version of Ted will never produce kerned output. The pretentious name was chosen because itβs simple and can be used in the future for what it actually suggests. Ngl, iconic naming choice. πshadingMeshTwipsβ the rtf file format supports12patterns that can be used as a background in the document. A shading can be applied to table cells, paragraphs, and even separate pieces of text. Though Ted doesnβt support shading patterns in the user interface, it does when you print a document, or when you convert existing documents with shading to a file to convert them to Acrobat PDF. For printing, fine patterns are preferable to coarse ones; for PDF files you want to view on screen, coarse patterns are preferable. Thatβs why the default value of3 pointsfor the grain of the pattern is often undesirable. With this parameter you can set the distance between the lines that make up the shading. The value is the distance between the lines in twips. Sensible values are between10and100twips (0.5and5points). π¨lenientRtfβ in normal operation, Ted performs elementary checks on the validity of rtf files, e.g. it checks whether the braces in the rtf file match. Set this property to1and the checks are much more lenient, and Ted will try to open files that are syntactically incorrect. πtraceEditsβ in normal operation, Ted keeps a trace of your editing actions. Ted uses the trace file to remember the info it needs to execute Undo and Repeat actions. The trace is also used to recover your work after a crash. If you settraceEditsto0, Ted will not make a trace β and this also deactivates the Undo, Repeat, and Recover actions. β οΈpdfOutlineβ by default, Ted inserts pdfmarks in the PostScript it issues so you get an outline when the PostScript is converted to Acrobat PDF. Set this value to0if you do not want an outline. π¦
π BUGS π
It can take a minute to start β before the Ted window appears on the display β because Ted polls the system printers. Iconic but slow. π
π FILES π
/share/Tedβ the directory with architecture-independent files for Ted/usr/bin/Tedβ the Ted executable program/share/Ted/Ted.propertiesβ the system-wide configuration file for Ted/share/Ted/TedDocument-en_US.rtfβ the Ted help document/share/Ted/dfa/*.dfaβ spell check dictionaries/share/Ted/Ted-*.propertiesβ localized texts for the user interface plus localized settings/share/Ted/TedDocument-*.rtfβ localized Ted documents; they must be configured in the/share/Ted/Ted-*.propertiesfiles${HOME}/.Ted.propertiesβ private configuration for Ted π
π SEE ALSO π
- βTed, an easy rich text processorβ, Mark de Does,
http://www.nllgg.nl/Ted/2003..2012. - The Ted usersβ manual that is accessible through Tedβs Help menu.
rtf2pdf(1),rtf2ps(1)
βοΈ AUTHOR βοΈ
A draft manual page was started by John A. Murdie, Department of Computer Science, University of York.
This version is composed and maintained by Mark de Does. π
π Footer sign-off, bestie: Mark de Does, TED(1) β plus the date thatβs printed in the footer. Thatβs the whole source/version-and-date moment, and itβs lowkey iconic. π
β¨
π¦ where this page comes from
- nixos 26.05: ted 2.23
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms