Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Straight, single quotes problem in HTML5 and chm output

Engaged ,
Mar 08, 2021 Mar 08, 2021

In my FM2019 document I have the following text:
"An empty string (i.e. N'') is a defined value."

 

In FM it looks like:

emptyFM.JPG

But in the Responsive HTML5 output, the 2 single quotes are not there:

emptyHTML5.JPG

And they are also lost in the chm output:

emptychm.JPG

What can I do to keep them in the generated output?

EDIT:

Even worse, take a look at this FM document:

intervalsfm.JPG

But not much is left in the chm file:

intervalschm.JPG

 

TOPICS
Responsive HTML5
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Mar 08, 2021 Mar 08, 2021

Kindly use the Update 8 of FrameMaker 2019. This issue is fixed in it. You are directly use the https://supportdownloads.adobe.com/product.jsp?product=22&platform=Windows link to navigate to 'Update8'.

 

Thanks,

Namita

Translate
Community Expert ,
Mar 08, 2021 Mar 08, 2021

What's the HTML code look like in that spot? Are the single quote marks taken right out or are they rendered in such a way that the browser can't show them (btw, have you tried different browsers?)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 08, 2021 Mar 08, 2021

The FM text: An empty string (i.e. N'') is a defined value.

Has the following html source:

htmlsource.JPG

 

The FM text:

intervalsfm.JPG

Has the following html source:

htmlsourceinterval.JPG

Zoomed in:

htmlsourceintervalzoomedin.JPG

 

(Same problem in Firefox, Chrome, Edge and Opera.)

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2021 Mar 08, 2021

So what's that "FM_Data_10" thing? Is it a paragraph tag or character tag? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 08, 2021 Mar 08, 2021

It's a character tag, to use courier new font size 10 for syntax elements in regular text.

I did a test without the character tag:

FM:

bodyfm.JPG

HTML output:

bodyhtml5.JPG

HTML source:

bodyhtml5source.JPG

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2021 Mar 08, 2021

Ok, are you doing anything special to add the single quote characters?
Have you tried to leave off the character tag and see if that has any impact in the rendering?
What version of FM2019 are you on? Are you all patched up?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 08, 2021 Mar 08, 2021

If you reload my previous reply, you'll find my attempt without the character tag. (I added it some minutes ago.)

The straight, single quote character is a bit tricky to add, because if I just enter that key, I'll automatically get a non-straight, single quote. (Whatever it is called.) Which is perfect in regular text.

However, when writing code samples I need the straight ones. My trick is to copy-and-paste one, either from Notepad, or an already existing one in the FM document.

I'm using FM 19, version 15.0.7.973.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2021 Mar 08, 2021

Ok, you're short a patch - the 2019.0.8 version came out the end of Jan 2021. But first I would try using the U+0027 Unicode insertion of the single quote (or 

'

 in HTML).

Maybe @LinSims or @Bob_Niland can help out with this stuff (I don't stray off the default path very much)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 08, 2021 Mar 08, 2021

Entering U+0027 gives me the FM character

u0027.JPG

which is the same as I get when I press the regular straight quote key in FM.

 

 

And "Updates..." says

"No new updates

Adobe FrameMaker (2019 release) 64 bit

Your app is already up to date."

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 08, 2021 Mar 08, 2021

I have now learnt to do ctrl+' to get the straight quote character.

I've also edited the MasterPage Character Macros table, where I tried both Replace With ' and ' - but no improvement at all.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2021 Mar 08, 2021

Alas, not my area of expertise. I do not output to anything but PDF and I've never coded in HTML. 

 

I can see that the FM version is tagged to use Courier New, but your output doesn't look like it's using either Courier or Courier New. Maybe your CSS is overwriting things? Sorry I can't be more (if any) help. The latest versions of FM are, I believe, much better at ensuring this sort of thing works but, again, I don't output to HTML so I don't really know.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2021 Mar 08, 2021

Some random observations:
What does the output look like as PDF?
Avoid mapping to ', as that is only a legitimate named Entity in XHTML1 (not in HTML4 or 5).

To avoid any risk of SmartQuotes battles with FM, consider implementing all straight quotes as Variable:
Name: U+0027 APOSTROPHE
Def: \u0027

… and if that doesn't survive into HTML5, the problem is later in the workflow.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 08, 2021 Mar 08, 2021

Kindly use the Update 8 of FrameMaker 2019. This issue is fixed in it. You are directly use the https://supportdownloads.adobe.com/product.jsp?product=22&platform=Windows link to navigate to 'Update8'.

 

Thanks,

Namita

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 09, 2021 Mar 09, 2021

15.0.8.979, as suggested, generates the correct output!

Thank you vey much for the download link.

 

But I think it's strange that my previous version claimed to be "up to date" when I asked it to check for updates.

On my other computer, on which I installed FM last summer, I'm running version 16.0.0. But I can't remember where I found that download link.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 09, 2021 Mar 09, 2021

I just checked, what my FM 2019 (15) says. It correctly said that it is not up-to-date and I should download update 8. Hm.

Also please check for updates in FM 2020 (16)! The current version is update 1 (16.0.1). When FM does not find the update, then download it from the download link.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 09, 2021 Mar 09, 2021

Are there any reasons not to upgrade to FM2020?

Otherwise I'll do that next week, after our product release this week.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 09, 2021 Mar 09, 2021
LATEST

Of course you should update to FM 2020. I only mentioned FM 2019, because you said that it did not find the download of the update automatically.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines