Copy link to clipboard
Copied
Those three characters are what FrameMaker needs to produce a curly apostrophe. MIF needs to use the `string' and so I can't also use the apostrophe ' in a word because it creates conflict since the ' is used in the MIF statement. What is the solution? How do I get my words that contain apostrophes to come into FrameMaker?
Copy link to clipboard
Copied
LinMarie,
Welcome to the world of Unicode! I understand you are using FrameMaker 8 or 9 or 10 and your process is based on MIF files created by some other application?
Since FrameMaker 8 all text strings in MIF are no longer encoded in what was known as the FrameRoman encoding (a variant of the Windows-1252 codepage, mostly identical to the old Mac OS encoding) but in UTF-8. UTF-8 is the encoding used in most XML files and a way to store all Unicode characters in simple text files. The ASCII letters appear as ASCII letters in the UTF-8 encoding, but all others are encoded as multi-byte sequences.
You are not talking about the Unicode character APOSTROPHE which would be the straight (non-curly) single quote with the unicode value U+0027 (decimal 39). This is the character used to delimit strings in the MIF format and if it is needed inside a string it has to be written as \q. The start-of-string delimiter is the character GRAVE ACCENT U+0060 and would be written as \Q inside strings.
You seem to be looking for the »curly apostrophe« RIGHT SINGLE QUOTATION MARK U+2019. This character is not part of the ASCII character set and therefore encoded as a byte sequence E2-80-99 (decimal: 226-128-153). What you see in a text editor depends on the editor: If it supports UTF-8 it shows you the real character, if it doesn’t it shows you the Windows-1252 equivalents of that byte sequence, which happens to be acircumflex-Euro-trademarkserif.
Bottom line: Your generating process should be able to create UTF-8 encoded strings. If not, you have to handle them on your own, like entering the required UTF-8 sequences. The danger: If your editor understands UTF-8 and you enter ’, the file will contains the byte sequences for all those three letters…
I hope that explains the behavior a bit.
- Michael
Copy link to clipboard
Copied
Thank you for the explanation. We're using FrameMaker 9 and UltraEdit is our text editor of choice. So ’ will work fine as a curly apostrophe as long as my programmer has no problem replacing the ' in text strings. Could you point me to some resources that would help me in making sure we get other special characters right as we make the transition to MIF and FrameMaker? It sounds like we have to be able to convert special characters from ASCII to Unicode. We also have to make sure that the other method of text import to FrameMaker that we are using - RTF documents out of Word - will work without having to replace certain special characters. The resources I'm looking for need to be pretty basic because I find this all very confusing. A character chart maybe? Thanks for your help!
Copy link to clipboard
Copied
We're using FrameMaker 9 and UltraEdit is our text editor of choice.
This sounds strange (no offense!) As much as I use UltraEdit as a programming editor, the MIF format is not designed for direct text editing and you may have a hard time making sure everything is fine.
In general it should be enough to make sure the MIF file is in UTF-8 encoding. The UltraEdit status bar at the bottom of the window tells you the encoding of the current document. If it is DOS you could convert it using the appropriate command in the File menu to "UTF-8 (Unicode editing)" (I have an older German version running, so the wording may be different).
But the MIF format requires certain restriction which are special to MIF, and those are not handled by any editor (but FrameMaker) automatically. Your developers should have a look at the MIF Reference, available here:
http://www.adobe.com/devnet/framemaker/online_manuals.html
HTH,
- Michael
Copy link to clipboard
Copied
When I open the MIF by holding down the control or shift key, I'm asked how to treat paragraphs. I decide to treat each line as a paragraph. I'm also asked what encoding I want to use to read the text file. The default is ANSI but I choose UTF-8. Then I save the file as a Text Only file (as stated on page 9 of MIF Reference). I still have the MIF file open and I look for the test string where I added Master's (typing it with Smart Quotes turned off but getting the slanted apostrophe anyway - why is this?). I saved it as Text Only again. Then I opened the Text Only file in UltraEdit (version 13) and it shows U8-DOS in the status bar. When I save that file with .mif extension, UltraEdit menu says it's in UNICODE - ASCII escaped, so I changed that to UTF-8. When I opened the new .mif in FrameMaker the Console showed 3 lines:
MIF: "pathname\filename.mif" (1): Skipped 'MIF:
"pathname\filename.mif" (1): Skipped 'MIF:
"pathname\filename.mif" (1): Skipped '
The apostrophe worked. I went back and edited the .mif in FrameMaker, adding 3 accented characters using the Key sequences I got off the Character Set chart since I'm editing in FrameMaker. I saved that as above (.txt) and this time opened the .txt in FrameMaker and got the same 3 lines on the Console, but my accents appear fine.
Questions:
1. When I open a MIF in FrameMaker (using Windows and holding down Shift Key) and save it as Text Only (.txt), am I right in then closing the MIF file and opening the TXT file in FrameMaker to make edits? The MIF remains open after I save as Text Only.
2. Why am I NOT getting straight apostrophes when I type with the Smart Quotes setting turned off?
3. Why do I get those FrameMaker Console errors when I open .mif or .txt mif as a FrameMaker file?
Any help will be appreciated. My programmer is working with the MIF Reference for FrameMaker 9. Your link has the one for FrameMaker 7.
Copy link to clipboard
Copied
LinMarie,
Since you have a good editor there is no need to use FrameMaker to edit MIF files. Because of that I did not follow your steps and that leaves question 2: It seems the feature is either not correctly described or buggy, I can confirm the Smart Quotes OFF setting only applies to double quotes.
Workaround: To enter a single straight quote use Ctrl+Shift+'
- Michael
Copy link to clipboard
Copied
Thanks for the explanation. So we can use ’ to give us a curly apostrophe. Why is it that the \q does not turn into a curly when I have Smart Quotes turned on? I'm wondering if the Smart Quotes setting in Format / Document / Text Options works since when I type in FrameMaker an apostrophe, it's always the curly one whether I have Smart Quotes checked or not.
Linda M. Williams
Composition Manager
Peterson’s, a Nelnet company
2000 Lenox Drive
Lawrenceville, NJ 08648
phone: 800.338.3282 ext. 53316
fax: 609.896.1811
Please consider the environment before printing this e-mail.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more