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

Managing non-breaking spaces in RoboHelp 2022 Update 4

Explorer ,
Aug 06, 2024 Aug 06, 2024

Copy link to clipboard

Copied

Hello everyone!

 

I'm currently facing a bit of a challenge with non-breaking spaces in RoboHelp 2022, so I wanted to poke the community's collective brains to see if I'm just missing something or if there is a better way to work with this, before I submit any bug or new feature request.

 

Before going any deeper into this, I would just like to mention that I did search this forum and others, and that I am aware that in RoboHelp, non-breaking spaces are to be added using the "insert special character" (the star) menu.

 

Here is the situation :

 

As a Canadian-French writer, I have to manage a lot of non-breaking spaces. Working for a para-governmental organization developping software for the ministry of education, the quality and accuracy of punctuation if just as important as orthograph. Take the following sentence as an example :

 

Depuis le balcon de l'hôtel de ville, le général de Gaulle déclara : « Vive Montréal, vive le Québec... Vive le Québec libre! ».

 

That sentence requires 3 non-breaking spaces:

  • 1 before the colon ( : )
  • 1 after the opening quotation mark ( « )
  • 1 before the closing quotation mark ( » )

 

I find that adding these during the writing process is quite tedious, and making sure that the non-breaking spaces are correctly setup during the revision process is very hard. 

 

Adding non-breaking spaces

 

There are two issues here :

In RoboHelp 2022, I'm required to use the "Insert special character" menu and look for the correct character to add. For one sentence, I have to do this 3 times, which is not efficient. A keyboard shortcut would greatly help here.

 

The second issue is that the only available character to add from this tool is the Narrow Non-Breaking Space. This is the French "Fine". That's the correct character if you write in French (France). In Canadian French, we require the standard size Non-Breaking space, which does not seem to be available in the special characters menu.

 

Interestingly, if you manually type : 

 

 

 

in the code view and save your topic, this will be removed and replaced with what "appears" to be a normal space. More on that later...

 

Review process

 

The review process is complicated by the fact that RoboHelp does not provide any kind of visual cue when a non-breaking space is used. There is nothing in the author view, and nothing in the code view either.

This means we cannot do a "Search & Replace" operation to look for regular spaces and replace them with non-breaking spaces.

 

There are only two ways to make sure non-breaking spaces are used correctly :

  1.  Preview the topic in a browser and resize the window to make sure words don't break where they shouldn't. You could also check the page's source to make sure that nbsp's were added.
  2. Use the third-party text editor like Notepad++ and configure it to display non-printable characters, then open each topic to make sure the proper non-breaking spaces are in place.

 

To resolve this issue, we would need some kind of visual cue that would let us know that a non-breaking space is present. This could be a toggle, like the options for special characters that is available with MS-Word, for instance. Using the html entities like   would have the advantage of being easily searchable in the source code view.

 

Quirky behaviour in RoboHelp

 

Here is some stuff I noticied while testing :

 

Adding a Narrow Non-Breaking Space using the special characters menu

 

If you use RoboHelp's add special characters menu to add a Narrow Non-Breaking Space, nothing will tell you that this happened correctly in RoboHelp's UI. Both in the author and source code views, you will only see what appears to be a normal space. If you open the topic in Notepad++, you will see a non-printable character called "NNBSP". Although this is supported by Unicode, not all browsers will render this correctly under all circumstances. It seems to be quite "hit or miss". This may be related to the font used as well, but I didn't put too much research there, as I don't care much for NNBSP anyways. There is no ASCII code for this character either.

 

Manually typing   in the source code view

 

Manually adding a non-breaking space html entity ( ) in the source code view of RoboHelp does not help either. Upon saving the topic, this will be removed and replaced with what "appears" to be a normal space. If you then open the topic in Notepad++, you will see that the non-printable character NBSP was added. Interestingly, if you preview the topic in a browser and look at that page's source, you will see   entity in the html code. Now I can't help but ask : « But why?? »

 

ALT + 255

 

This is supposed to be the official ASCII code for a non-breaking space. Actually, it is... Just not in RoboHelp, it appears. if you do ALT + 255 in the author or code views of RoboHelp, you will get a normal space. Opening the topic in Notepad++ confirms this. Interestingly, if you do ALT + 255 in Notepad++, you DO get a NBSP as expected.

 

Using spacebar between spans

 

Another quirk I stumbled upon during my testing is the fact that RoboHelp stubbornly refuses to insert a normal space between spans. For example, consider this html code :

 

<p>Depuis le balcon de l'hôtel de ville, le général de Gaulle <span class="deux-points">déclara</span> <span class="citation">Vive Montréal, vive le Québec... Vive le Québec libre!</span></p>

 

Now, you can't see it, but that space between the span class "deux-points" and the span class "citation" is actually a non-breaking space! Try as you might, it is impossible to tell RoboHelp to insert a regular space there. The only way to do it within RoboHelp is to start by typing the entire sentence without any formatting. Then, apply the styles, being careful NOT to select the space between "déclara" and "Vive" in the process. RoboHelp will then leave this space alone. Another way to do it is to add the correct space type in Notepad++. Again : « But why?? »

 

By the way...

 

We are currently trying to work around the whole non-breaking space issue by using CSS styles, which bring its own set of challenges with RoboHelp. If you are interested, this will render absolutely 100% perfectly in any modern browser, if you are willing to deal with the extraneous &nbsp; issue mentioned above :

 

/***************************************/
/*** Guillemetisation et deux-points ***/
/***************************************/

/* Guillemets français */
span.guillemets {
  white-space: normal;
}
span.guillemets:before {
  white-space: nowrap;
  content: "« ";
}
span.guillemets:after {
  white-space: nowrap;
  content: " »";
}

/* Citation guillemets et italique */
span.citation {
  white-space: normal;
  font-style: italic;
}
span.citation:before {
  white-space: nowrap;
  font-style: normal;
  content: "« ";
}
span.citation:after {
  white-space: nowrap;
  font-style: normal;
  content: " »";
}

/* Mise en forme pour deux-points avec espace insécable */
span.deux-points {
  white-space: normal;
}
span.deux-points:after {
  white-space: nowrap;
  content: " :";
}

 

 

In summary :

 

  • Adding the non-breaking spaces is a painstaking process.
  • The correct character we need to use is not available as an option.
  • The revision process is hard du to the lack of visual cues in the RoboHelp UI.
  • The quirky behaviour of some operations needs to be fixed.

 

Concluding...

 

Now that I'm done, I realize this is more of an instruction manual on how to do non-breaking spaces in RoboHelp! I'm happy if this helps anyone, but I'm really looking for a more efficient way to deal with this.

Views

284

Translate

Translate

Report

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 ,
Aug 06, 2024 Aug 06, 2024

Copy link to clipboard

Copied

Sylvio @ GRICS I think you just took the prize for the longest post! 🙂

 

It's a very unique problem and I don't have any real solution other than to suggest a macro program such as Macro Express. It can be set up to repeat operations such as going to the toolbar and making a specific selection or switching to source view and inserting specific code. It's not free and there are free alternatives. However, in my view Macro Express is the best. 

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

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
Explorer ,
Aug 09, 2024 Aug 09, 2024

Copy link to clipboard

Copied

Hi! Yes, I realize how long this post is! Sorry about that and thank you for taking the time. I guess I went a bit overboard exploring every possible avenue!
I did explore macros a little bit, which does help in taking some clicks off the "NBSP-adding process", if I may call it that.

 

Unfortunately, it appears that not much can be done for the part that comes "after", where we read back our own work or revise the work of a colleague, to make sure NBSP's were indeed added properly. That is, unless the RoboHelp dev team intervenes to improve on this.

Votes

Translate

Translate

Report

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 ,
Aug 09, 2024 Aug 09, 2024

Copy link to clipboard

Copied

Guess it's time for you to fire up the Tracker (https://tracker.adobe.com/) to send in your wishlist item around this.

Votes

Translate

Translate

Report

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 ,
Aug 09, 2024 Aug 09, 2024

Copy link to clipboard

Copied

LATEST

No need to apologise. 

 

Adobe staff do not monitor the forum. As @Jeff_Coatsworth has said, submit a request. 

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

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
Resources
RoboHelp Documentation
Download Adobe RoboHelp