Skip to main content
Participant
November 16, 2010
Question

How to insert special character in sgm file and interprete it without isoents while opening in FM9.0

  • November 16, 2010
  • 1 reply
  • 1133 views

I have an sgm file which contains special characters in different languages.

<!DOCTYPE MANUAL PUBLIC "-//SWE-XXX//DTD XXX MANUAL-DTD 2.0//EN">
<MANUAL LANG="CS">
<TITEL>
Polish characters: &oacute;&ecirc;&iquest;&ntilde;&aelig;&Ntilde;&AElig;&Ecirc;&yen;&Oacute;&pound;
Czech characters: &eacute;&igrave;&oacute;&iuml;&aacute;&oslash;&egrave;&iacute;&ugrave;&ograve;&uacute;&Ograve;&Igrave;&Eacute;&Oacute;&Uacute;&Ugrave;&Egrave;&Oslash;&Iacute;&Aacute;&Iuml; aacute: &aacute;</TITEL>
</MANUAL>

Is there any way to insert special character directly in sgm file, so that it won't have to be interpreted by isoents mapping rules?

isoent.rwr interpretes oacute as:

entity "oacute" is fm char 0x00F3;

But I would like to use 0x00F3 directly in fm file, so that if any additional character is needed - I won't have to update isoent files

I've tested already:

&#x00F3;

&x00F3;

&0x00F3;

but with no luck

Is there anyone who could help me with it?

I will really appreciate your help

/Joanna

This topic has been closed for replies.

1 reply

Michael_Müller-Hillebrand
Legend
November 16, 2010

Joanna,

Your SGML editor should do that for you.

Otherwise you observe one of the stumbling blocks of SGML compared to XML, with the latter you can simply use Unicode characters (assuming the encoding is given as "UTF-8"). What is the character encoding stated at the top of your SGML file?

- Michael

aksannaAuthor
Participant
November 16, 2010

Hi Michael. Thank you for your reply.

There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:

Default API client:  FmTranslator
SGML character encoding:  ISO Latin1
XML character encoding:  UTF-8
Namespace: Enable
CSS2 Preferences:
Generate CSS2: Disable
Add Fm CSS Attribute To XML: Disable
Retain Stylesheet Information: Disable
Entity locations
Entity search paths
C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents

So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)

Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"

Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files

But what I would like to avoid is editing those isoent files each time new character is be needed.

Michael_Müller-Hillebrand
Legend
November 16, 2010

Am 16.11.2010 um 18:28 schrieb aksanna:

Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"

I feel lucky having avoided SGML times... What editor are you using to edit the .sgm file? It looks as if this editor does not use Latin-1 encoding, otherwise it would have to complain or solve the problem by replacing the characters with the defined character references.

Best method would be to switch to XML, only the all the ease of Unicode would be at your hand.

Maybe someone with real SGML experience can chime in.

- Michael